How to increase mortar ammunition for Miltia?

Making or wanting help making your own asset? Check in here
Post Reply
lordzionleader
Posts: 17
Joined: 2015-07-04 07:07

How to increase mortar ammunition for Miltia?

Post 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!
User avatar
Mats391
PR:BF2 Lead Developer
Posts: 7643
Joined: 2010-08-06 18:06

Re: How to increase mortar ammunition for Miltia?

Post 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
M42 Zwilling
Retired PR Developer
Posts: 613
Joined: 2012-06-10 11:27

Re: How to increase mortar ammunition for Miltia?

Post 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. ;)
Image


"How many posts have there been about how much better PR was back in 0.X? The fact is that if we played the older versions we would start to remember the shortcomings, but we tend to hold onto the good memories tighter than the bad ones." - Murphy
lordzionleader
Posts: 17
Joined: 2015-07-04 07:07

Re: How to increase mortar ammunition for Miltia?

Post 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 :)
lordzionleader
Posts: 17
Joined: 2015-07-04 07:07

Re: How to increase mortar ammunition for Miltia?

Post 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
Post Reply

Return to “PR:BF2 Community Modding”