Page 1 of 1
Making an auto artillery gun
Posted: Sat Feb 23, 2013 9:19 pm
by Vilespring
I have been playing with the AutoFire code a bit to make some automatic artillery, when I noticed that the gun fires only 3 times before it stops. The gun is a wespe with the engine disabled and driver's position removed. I would like the gun to fire until the wespe's ammo rack is dry.
Re: Making an auto artillery gun
Posted: Sun Feb 24, 2013 6:22 am
by Swaffy
Have you tried setting the MagSize to -1 (negative one)?
Re: Making an auto artillery gun
Posted: Sun Feb 24, 2013 8:23 pm
by Vilespring
I tried it, but the gun still fired only 3 times by it's self. (me staring at it)
Re: Making an auto artillery gun
Posted: Mon Feb 25, 2013 2:02 am
by Swaffy
I don't know what to say other than making suggestions. Just mess around with the code, see if you can change somehting that you think will make it work.
Sometimes modding takes sitting back and thinking.
Try removing the networkInfo, that's one of my ideas. Next, try making the magSize 1 and the numberOfMags -1.
Re: Making an auto artillery gun
Posted: Mon Feb 25, 2013 4:15 am
by Vilespring
I have done some fiddling and I have gone to this conclusion; the gun can only fire 3 times by its self. the gun gets "stuck" after the third shot. by "stuck," I mean the reload bar stops midway, and the gun stays back from the recoil, not pushed back to its normal position. I also have learned another thing that is pretty funny. The gun still fires after it's dead, I have been blown up by a wreck a few times.
