Author Topic: Kaje's Minigun : Question 2!  (Read 921 times)

Alright, so currently I am editting Kaje's minigun, and im wondering how to remove the part that makes your player kind of launch backwards when you shoot (you have to be jumping), if you know how to remove it, please tell!
« Last Edit: August 10, 2011, 03:17:41 PM by Derroith »

It has something to do with recoil force.

It has something to do with recoil force.
Is there a name for it, I'm not good with names.

I don't know. Look through the weapon's datablock until you see something related to recoil.

I don't know. Look through the weapon's datablock until you see something related to recoil.
gah, can't find, even searched the file for 'recoil' and got nothing, heeeelp.

First line in onFire :
Code: [Select]
%obj.setVelocity(VectorAdd(%obj.getVelocity(),VectorScale(%obj.client.player.getEyeVector(),"-1")));

thank you yet again! You've saved me like 2 times now <3

one more problem, when a player is hit by the projectile it makes them fly around (velocity).
« Last Edit: August 10, 2011, 03:16:15 PM by Derroith »

impactImpulse/verticalImpulse in the projectileData

Kaje's Minigun was awesome.
Getting to places you can't :D