Jump to content
Sign in to follow this  
Drumheller

How do I increase a vehicle ammunition capacity?

Recommended Posts

Hey guys,

I just spent about 20 min searching because I KNOW this has been answered before, but I couldn't get any results.

All I want to do is bump the ammo capacity of the Hunter LMG from 400 total to 800 total. I can't imagine it's too hard, probably only one command, but I simply can't find it anywhere.

Thanks!

Share this post


Link to post
Share on other sites

Short of editing the configs, you could add as many magazines as you'd like in the init line of the vehicle. For example:

{this addMagazineTurret ["200Rnd_127x99_mag_Tracer_Red",[0]]} foreach [1,2]

This adds 2 mags (400 rounds) of red tracers to the Hunter HMG.

Share this post


Link to post
Share on other sites

Awesome. Thanks for the amazingly fast reply. I tried:

{this addMagazineTurret ["200Rnd_127x99_mag_Tracer_Red",[0]]} foreach [1,3]

To get a third spare, but I suppose that is the incorrect value to adjust. For future self reference, which value do I change for the number of extra magazines.

Additionally, where are you getting the class names, so I can use this as a base for other vehicles in the future.

Thanks again!

---------- Post added at 03:30 PM ---------- Previous post was at 03:26 PM ----------

Ok well I figured out that it's

{this addMagazineTurret ["200Rnd_127x99_mag_Tracer_Red",[0]]} foreach [1,2,3,4,etc]

for more mags(minus the "etc" of course :p)

Share this post


Link to post
Share on other sites

These are what I use, yes this may not be done the right way but it works for me.

ADD to Hunter For more 40mm

this addMagazine"200Rnd_40mm_G_belt";

Add to AH9 for more Rockets
this addmagazine"24Rnd_missiles"; ( this one is impractical but fun to load up a helo with a few hundred Rockets)


this Addmagzaine to Mortar for different shells

this addMagazine"8Rnd_82mm_Mo_Smoke_white";
this addMagazine"8Rnd_82mm_Mo_Flare_white";
this addMagazine"8Rnd_82mm_Mo_shells";
this addMagazine"8Rnd_82mm_Mo_Inc";

Share this post


Link to post
Share on other sites
These are what I use, yes this may not be done the right way but it works for me.

Yup, that works fine, but it gets cumbersome if you want to add more than one magazine.

MacScottie - I originally posted code that would add a dozen mags, but then edited it to reflect your exact needs. I should have stuck with the original post as it would have been clearer. Sorry for the confusion!

Share this post


Link to post
Share on other sites

Hello,

 

I am interested in applying this to vehs in BECTI to give them more ammo, do you think that is possible?

Share this post


Link to post
Share on other sites

Awesome. Thanks for the amazingly fast reply. I tried:

 

{this addMagazineTurret ["200Rnd_127x99_mag_Tracer_Red",[0]]} foreach [1,3]
To get a third spare, but I suppose that is the incorrect value to adjust. For future self reference, which value do I change for the number of extra magazines.

Additionally, where are you getting the class names, so I can use this as a base for other vehicles in the future.

Thanks again!

---------- Post added at 03:30 PM ---------- Previous post was at 03:26 PM ----------

Ok well I figured out that it's

{this addMagazineTurret ["200Rnd_127x99_mag_Tracer_Red",[0]]} foreach [1,2,3,4,etc]
for more mags(minus the "etc" of course :P)

 

Hello,

 

I am interested in applying this to vehs in BECTI to give them more ammo, do you think that is possible?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×