Author Topic: Gun Recoil  (Read 1288 times)

How do I get the kick back on the gun USP45 that i have made. eg the gun's tip rotates upwards simulating the kick given by the gun? at the moment my gun stays still and the standard gun has a kick. (Recoil)

Fixed.... (Second Last Line change plant to ShiftAway)

New question: I have now made a UMP and i want it to have a small recoil eg shaking as it shoots. How can i achieve that?
« Last Edit: April 06, 2010, 11:32:52 PM by BULLsEYE091 »

Soo.... do we post, you do you lock?

whom has the given??? he does what he like

It's in the scripting, this will make it have recoil
Code: [Select]
function gunImage::onFire(%this,%obj,%slot)
{
if(%obj.getDamagePercent() < 1.0)
%obj.playThread(2, shiftAway);
Parent::onFire(%this,%obj,%slot);
}

Specifically, this line will
Code: [Select]
%obj.playThread(2, shiftAway);That line makes the player play the animation. You can make him play sit, shiftup, jump, and more.

Specifically, this line will
Code: [Select]
%obj.playThread(2, shiftAway);That line makes the player play the animation. You can make him play sit, shiftup, jump, and more.

hao 2?

hao 2?

Don't be so daft.
Look through the player animations, willya, and Replace em with the desired animation. Herp Derp

Specifically, this line will
Code: [Select]
%obj.playThread(2, shiftAway);That line makes the player play the animation. You can make him play sit, shiftup, jump, and more.
What's that Sandvich? A gun that blasts you back on your bum?

Maybe sandvich, maybe