Forum posts

I tried this method,but somehow it seems doesn't work well.Everytime I press the mouse left button,it will fire until bullet is exhausted.after reload it will shoot again without any control.
I found something interesting while looking at glock.mdl in counter-strike.The shoot1 and shoot2 sequence is 3 round burst while only shoot3 sequence is simi-automatic.Maybe similarly to it we can create a new burst animation then use it in the code?(Like when pressing the button execute the PrimaryAttack( ) three times but only play the burst animation once?)
Thanks for your reply!
I tried this method and make a little change in it.Now it can fire in 3 round burst.
However,it still a little difference to what i expected.
Now it needs to press and hold mouse left button to fire 3 shots,what i really want is when i click the button,it will fire 3 shots(Just like the Glock in counter-strike).Can you help me?
I'm trying to make a fire selector for my mp5(when you press right mouse button,it ,will change fire mode from fully-automatic to 3 round burst,then to simi-automatic),I have already done the fully-automatic part and simi-automatic part,but don't know how to make the 3 round burst.Can someone help me?