Page 1 of 1

How to increase mortar ammunition for Miltia?

Posted: 2015-07-06 12:20
by lordzionleader
Hey Guys.

Lately I've been playing on PR and noticed that the mortar ammo limit is bloody ridiculous and is far from 'realism'. However I can understand that I stops people from camping at their mortar base and blowing the **** outta the enemy for like 30 mins.

Myself and friend agreed to challenge each other, myself having rapid firing mortars with heaps of ammo and him having one manned tanks with cheats.
I then ran into a massive problem. I managed to edit the mortar files in objects_weapons_server.zip but the game won't recognize this at all, I even made smoke bomb radius from x to 180 which is a massive jump and I can see that it is registering those changes. I also edited the supply trucks to carry 6 heavy crates instead of two.
What is going on?

How do I make a mortar have at least 1800 rounds instead of piss poor 8 and a fire rate of 60 rounds per minute. Yup, one each second.
I already did the edit as you can see:

rem ---BeginComp:SingleFireComp ---
ObjectTemplate.createComponent SingleFireComp
ObjectTemplate.fire.roundsPerMinute 60
ObjectTemplate.fire.fireStartDelay CRD_NORMAL/1/2/0
ObjectTemplate.fire.addFireRate 1
ObjectTemplate.fire.burstSize 6
rem ---EndComp ---
rem ---BeginComp :D efaultAmmoComp ---
ObjectTemplate.createComponent DefaultAmmoComp
ObjectTemplate.ammo.nrOfMags 1
ObjectTemplate.ammo.magSize 1800
ObjectTemplate.ammo.autoReload 1
ObjectTemplate.ammo.reloadWithoutPlayer 1
rem ---EndComp ---

I changed both mortar_team1 and mortar_team2 and it didn't even do anything...
Help!

Re: How to increase mortar ammunition for Miltia?

Posted: 2015-07-06 17:19
by Mats391
You are changing the wrong mortars :)
mortar_team1 and _team2 are the offmap mortars used by the commander. Change the deployable_mortar_m252 at objects\common\deployable_mortar_m252

Re: How to increase mortar ammunition for Miltia?

Posted: 2015-07-06 18:15
by M42 Zwilling
Also note that you can set ObjectTemplate.ammo.magSize to -1 for unlimited ammo. I'm not sure what you're planning to do, but if you were going to have your friend join your game over Hamachi or something, having a magSize over 1023 and less than infinity would cause a crash, though IIRC you're fine if you do it on your own. ;)

Re: How to increase mortar ammunition for Miltia?

Posted: 2015-07-06 23:35
by lordzionleader
[R-DEV]Mats391 wrote:You are changing the wrong mortars :)
mortar_team1 and _team2 are the offmap mortars used by the commander. Change the deployable_mortar_m252 at objects\common\deployable_mortar_m252
Danke :)

Re: How to increase mortar ammunition for Miltia?

Posted: 2015-07-06 23:36
by lordzionleader
[R-DEV]M42 Zwilling wrote:Also note that you can set ObjectTemplate.ammo.magSize to -1 for unlimited ammo. I'm not sure what you're planning to do, but if you were going to have your friend join your game over Hamachi or something, having a magSize over 1023 and less than infinity would cause a crash, though IIRC you're fine if you do it on your own. ;)
Thanks mate :D