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?)