Game Development Community

Soldier_gun help

by Wayne Eversole · in General Discussion · 07/17/2011 (8:48 am) · 3 replies

Hello everyone. I created a gun in Milkshape and used the details from the Soldier_gun.
What I noticed is that the Soldier_gun will not shoot like a normal gun. It looks like
it shoots out the bullets randomly? How can I fix this and do I need to add anything to
the models other then the shape in Milkshape?

Thanks

#1
07/17/2011 (9:56 am)
Also , how would you go about setting up the states where it fires 3 bullets but only plays the sound once?

Thanks
#2
07/17/2011 (1:58 pm)
The soldier's gun uses a spread factor, that is defined in the state machine I believe, which is what adds the randomness to the shots in onFire(). As for multiple projectiles, also take a look at onFire. That is where the projectiles are spawned and you can create more projectiles there for something like a shotgun.
#3
07/17/2011 (4:25 pm)
Sweet. I will give that a good look over.

Thank you very much.