Game Development Community

Wanna apply a delay in the firing of a weapon with a fixed rate

by Mquaker · in Torque Game Engine · 09/13/2006 (9:31 pm) · 2 replies

Wanna control the rate of firing, in the case semi auto rifle such as M1 Garand
Recently too fast, want to implement a proper velocity and rate.

When I do one click to fire a bullet, by applying a bit delay
Wanna implement with the fixed rate of intervals of 0.5 second
Would give you me a detailed explanation?

thanks~~

#1
09/14/2006 (10:52 am)
Adjust the stateTimeout values in your weaponimage's statemachine where it is firing/reloading/etc. The ones that look like this:
stateTimeoutValue[3]             = 0.2;
#2
09/14/2006 (9:38 pm)
Thanks~~

stateTimeoutValue[3] = 0.3;
although apply the value 0.3seconds,
whenever try one click with a mouse, sometimes fired out of square without speeding of firing.
namely wanna apply a delay value at intervals of 0.3seconds all the time.

uhm..one click of mouse equal to fire a bullet ..but became irregular..
I feel that it is a singular phenomenon..
it is difficult for me to find out the reason, Could you help me??

Good luck..