Page 1 of 1

Delay on gun firing (help needed)

Posted: Mon Dec 21, 2015 6:43 pm
by Peter
I am currently making a mod which adds a new late game weapon called the Heavy Machine Gun. The idea is for it to be a much more powerful late game version of the submachine gun, with it's own ammo, graphics and the rest. I have made the gun and ammo and have yet to do the graphics, but I was wondering whether it is possible to add a delay to the firing of the gun.

For example: With a submachine gun you press the fire button, and the gun fires instantly
With the Heavy Machine Gun, you press the fire button, hold it down for a time, and after a delay it begins to fire until you let go of the fire button.

I am NOT talking about the cooldown of a gun, e.g., you fire once and then wait to fire again.


If this is not possible, then the other alternative would be for the weapon to fire in bursts, in short being able to fire a certain amount of shots before the cooldown timer. Is it possible to have the cooldown timer only go on after x shots, rather than after every shot you wait?