Jump to content
Sign in to follow this  
imustkill

Ammo Crate Limits

Recommended Posts

I have some rather large stockpiles of weapons and ammo in the crates. When players pick up some of these goodies, a lot of random pieces of ammo exit the box and lay on the ground. I was curious to know if anybody knew what the maximum capacity is of a crate, and how to increase it so the random weapons & magazines aren't thrown all over the ground when somebody goes to a crate.

Thanks.

Share this post


Link to post
Share on other sites

so far i havent seen a limit to it yet but u could use a script to reset the ammo boxes after x amount of seconds

just to be on the safe side.. wink_o.gif

im using the following script with an interval of 5 minutes

to reset and to repair it if destroyed

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

// ammo.sqs by interal

// usage :

// [this,west] exec "ammo.sqs"

// u can also use [this,east] for east weapons to be loaded

_ammo = _this select 0

_side = _this select 1

#start

_ammo setdammage 0

clearmagazinecargo _ammo

clearweaponcargo _ammo

?(_side == west) : goto "west"

?(_side == east) : goto "east"

?(_side != west && _side != east) : goto "error"

#west

_ammo addweaponcargo ["M16A2",100]

_ammo addweaponcargo ["M16A2GL",100]

_ammo addweaponcargo ["M16A4",100]

_ammo addweaponcargo ["M16A4_GL",100]

_ammo addweaponcargo ["M16A4_ACG",100]

_ammo addweaponcargo ["M16A4_ACG_GL",100]

_ammo addweaponcargo ["M4",100]

_ammo addweaponcargo ["M4AIM",100]

_ammo addweaponcargo ["M4A1SD",100]

_ammo addweaponcargo ["M4SPR",100]

_ammo addweaponcargo ["M4A1",100]

_ammo addweaponcargo ["M4A1GL",100]

_ammo addweaponcargo ["G36K",100]

_ammo addweaponcargo ["G36C",100]

_ammo addweaponcargo ["G36A",100]

_ammo addweaponcargo ["MP5A5",100]

_ammo addweaponcargo ["MP5SD",100]

_ammo addweaponcargo ["M249",100]

_ammo addweaponcargo ["M240",100]

_ammo addweaponcargo ["M24",100]

_ammo addweaponcargo ["M107",100]

_ammo addweaponcargo ["M9",100]

_ammo addweaponcargo ["M9SD",100]

_ammo addweaponcargo ["M136",100]

_ammo addweaponcargo ["Javelin",100]

_ammo addweaponcargo ["Stinger",100]

_ammo addmagazinecargo ["30Rnd_556x45_Stanag",100]

_ammo addmagazinecargo ["FlareWhite_M203",100]

_ammo addmagazinecargo ["FlareGreen_M203",100]

_ammo addmagazinecargo ["FlareRed_M203",100]

_ammo addmagazinecargo ["FlareYellow_M203",100]

_ammo addmagazinecargo ["1Rnd_HE_M203",100]

_ammo addmagazinecargo ["30Rnd_556x45_StanagSD",100]

_ammo addmagazinecargo ["30Rnd_556x45_G36",100]

_ammo addmagazinecargo ["30Rnd_9x19_MP5",100]

_ammo addmagazinecargo ["30Rnd_9x19_MP5SD",100]

_ammo addmagazinecargo ["200Rnd_556x45_M249",100]

_ammo addmagazinecargo ["100Rnd_762x51_M240",100]

_ammo addmagazinecargo ["5Rnd_762x51_M24",100]

_ammo addmagazinecargo ["10Rnd_127x99_M107",100]

_ammo addmagazinecargo ["15Rnd_9x19_M9",100]

_ammo addmagazinecargo ["15Rnd_9x19_M9SD",100]

_ammo addmagazinecargo ["M136",100]

_ammo addmagazinecargo ["Javelin",100]

_ammo addmagazinecargo ["Stinger",100]

goto "equip"

#east

_ammo addweaponcargo ["AK74",100]

_ammo addweaponcargo ["AK74GL",100]

_ammo addweaponcargo ["AKS74U",100]

_ammo addweaponcargo ["AKS74UN",100]

_ammo addweaponcargo ["AKS74PSO",100]

_ammo addweaponcargo ["PK",100]

_ammo addweaponcargo ["SVD",100]

_ammo addweaponcargo ["KSVK",100]

_ammo addweaponcargo ["Makarov",100]

_ammo addweaponcargo ["MakarovSD",100]

_ammo addweaponcargo ["RPG7V",100]

_ammo addweaponcargo ["STRELA",100]

_ammo addmagazinecargo ["30Rnd_545x39_AK",100]

_ammo addmagazinecargo ["30Rnd_545x39_AKSD",100]

_ammo addmagazinecargo ["FlareWhite_GP25",100]

_ammo addmagazinecargo ["FlareGreen_GP25",100]

_ammo addmagazinecargo ["FlareRed_GP25",100]

_ammo addmagazinecargo ["FlareYellow_GP25",100]

_ammo addmagazinecargo ["1Rnd_HE_GP25",100]

_ammo addmagazinecargo ["100Rnd_762x54_PK",100]

_ammo addmagazinecargo ["10Rnd_762x54_SVD",100]

_ammo addmagazinecargo ["5Rnd_127x108_KSVK",100]

_ammo addmagazinecargo ["8Rnd_9x18_Makarov",100]

_ammo addmagazinecargo ["8Rnd_9x18_MakarovSD",100]

_ammo addmagazinecargo ["PG7V",100]

_ammo addmagazinecargo ["PG7VR",100]

_ammo addmagazinecargo ["STRELA",100]

#equip

_ammo addweaponcargo ["Laserdesignator",100]

_ammo addweaponcargo ["NVGoggles",100]

_ammo addweaponcargo ["Binocular",100]

_ammo addmagazinecargo ["PipeBomb",100]

_ammo addmagazinecargo ["TimeBomb",100]

_ammo addmagazinecargo ["Mine",100]

_ammo addmagazinecargo ["MineE",100]

_ammo addmagazinecargo ["SmokeShellRed",100]

_ammo addmagazinecargo ["SmokeShellGreen",100]

_ammo addmagazinecargo ["SmokeShell",100]

_ammo addmagazinecargo ["HandGrenadeTimed",100]

_ammo addmagazinecargo ["HandGrenade",100]

_ammo addmagazinecargo ["Laserbatteries",100]

~300

goto "start"

#error

hint "error"

exit

Share this post


Link to post
Share on other sites
so far i havent seen a limit to it yet but u could use a script to reset the ammo boxes after x amount of seconds

just to be on the safe side.. wink_o.gif

im using the following script with an interval of 5 minutes

to reset and to repair it if destroyed

Whaaaat? He's asking about the maximum capacity of the ammo crates. The max magazine and weapon storage capacity for ammo crates is defined in the config (as transportmaxweapons and transportmaxmagazines, or something like that) and the config alone, you can't change it, and it IS a finite amount (I don't have a clue what it is but you can find out by checking the config).

Share this post


Link to post
Share on other sites

just checked the config.bin file of the ammocrates and it doesnt mention a limitation

Share this post


Link to post
Share on other sites

From base class ReammoBox (that all ammo crates are based on):

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">transportMaxWeapons = 5000;

transportMaxMagazines = 20000;

All ammo crates are based on this class so they inherit these values.

Share this post


Link to post
Share on other sites

then why was i able to add 1 million m16's?

this addweaponcargo ["M16A2",1000000]

Share this post


Link to post
Share on other sites

Cause you can added them but if you take someting out you will get a so called "ammo bug", basicly what happens is the ammocrate dumps all the stuff that isnt suppose to fit in it on the ground around it.

Be happy they increased the size of the crates in arma in ofp it was much smaller.

Share this post


Link to post
Share on other sites
then why was i able to add 1 million m16's?

this addweaponcargo ["M16A2",1000000]

Yes, as the unknown said addweaponcargo ignores these max values, but the second someone tries to access the weapons in the crate the excess weapons and magazines are "spilled" out all over the ground (aka the "ammo bug"). Trying to add that many weapons manually (quite a pain to do) ingame wouldn't be possible as when the crates reach their maximum capacity it doesn't allow you to add any more (ingame).

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  

×