Firing Speed on Guns

G

Gsccc

Guest
I have been checking all over and i am in the scripts section of the Source Engine.GCF and I am at weapon_ar2.txt I cant seem to find anywhere where it says how fast it fires or how many shots are fired in one shot. Does anyone know where this information might be located?
 
I think it's to do with the model file, actually. If you decompile a weapon, and look at it's .qc, you'll probably see it sending off an event at a certain point in its animation. You'd need to add more of these in the sequence, and then recompile it, I think.

A demonstration to check if I'm right would be to swap the models of the mp7 and the magnum over, and see what happens. The mp7 has a much shorter fire animation, and so should fire loads more shots.

-Angry Lawyer
 
actually I think its set in code. Search the code for references to m_flNextPrimaryAttack . (look in say hl -> HL2 DLL - > Weapon_smg1) This appears to be the delay before another attack.
 
It should be in the weapon's script file.

"Bullets" = <some number> //how many bullets per shot
"CycleTime" = <some number> //how long to wait between shots
 
Back
Top