Making an auto artillery gun

Ask questions, discuss ideas, get answers
Post Reply
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Making an auto artillery gun

Post 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.
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Making an auto artillery gun

Post by Swaffy »

Have you tried setting the MagSize to -1 (negative one)?
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: Making an auto artillery gun

Post by Vilespring »

I tried it, but the gun still fired only 3 times by it's self. (me staring at it)
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Making an auto artillery gun

Post 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.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: Making an auto artillery gun

Post 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. :lol:
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
Post Reply