Author Topic: Weapon Recoil  (Read 467 times)

I am having problems stopping the the weapon from playing the recoil player animation. thanks for help.
« Last Edit: February 15, 2010, 07:42:05 AM by Dy mar »

This is in the gun's server.cs, it's what is responsible for the recoil animation.
Code: [Select]
function gunImage::onFire(%this,%obj,%slot)
{
Parent::onFire(%this,%obj,%slot);
%obj.playThread(2, shiftAway);
}
%obj.playThread(2, shiftAway); is what is responsible for playing the animation, you can comment it out (put two slashes behind it) and it will not play.
You could even delete the whole function and it won't matter, just don't take the Parent::onFire out or things will break.

there should be a better way to play player animations..............
thanks.