Game Development Community

Rate of Fire problem

by Brett Bowen · in Torque Game Engine · 08/21/2002 (8:28 am) · 3 replies

Searched through the forums found out how to adjust the rate of fire, did that. But I have a problem. I set both timeout values to 0.7. But the only problem is now the weapon studders every 5-6 shots or so. I've played around with those values and it either makes the studder happen more often or makes a delay after a few shots. Anyone have some ideas on how to fix this, or is there a better way than adjusting the timeout values? Thanks.

#1
08/28/2002 (2:45 am)
I would set the fireDelay to 0.0 and the reload to 1.4 which is 0.7 * 2. I have a fairly fast shooting AK-47 that delays at 0.17 and it fires ok. I may miss a sound on occasion.
#2
08/28/2002 (3:18 am)
@Sam: We have that sound missing problem too... sometimes it just skips a fire sound.. really strange.
#3
08/28/2002 (8:39 pm)
I'm not 100% sure if torque supports this, but are you using looping sounds? Tribes 2 supported looping sounds. As long as the weapon was on a state with that sound, it continued to loop. Doesn't skip.