Jump to content
Sign in to follow this  
C4P741N

Ammo Truck Troubles

Recommended Posts

I am attempting to modify the 5t ammo trucks released by [iEF] Mp to carry JAM magazines but it seems the only ammo it will give me access to is the primary ammo like "JAM_W556_30mag" or "JAM_W556M_200mag". But not others like "JAM_M433Vest" or "JAM_AT4Rocket". I am having the same problem with the JAM ammo trucks released with JAM itself, which is where I copied/modified the transportmagazines class from. Below is what I have...

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

{

class _xx_JAM_W556_30mag {magazine="JAM_W556_30mag"; count=30;};

class _xx_JAM_W556_30Bmag {magazine="JAM_W556_30Bmag"; count=30;};

class _xx_JAM_W556_G36_30mag {magazine="JAM_W556_G36_30mag"; count=30;};

class _xx_JAM_W556_AUG_30mag {magazine="JAM_W556_AUG_30mag"; count=30;};

class _xx_JAM_W556M_200mag {magazine="JAM_W556M_200mag"; count=15;};

class _xx_JAM_W762_20mag {magazine="JAM_W762_20mag"; count=30;};

class _xx_HandGrenade {magazine="HandGrenade"; count=10;};

class _xx_JAM_W762M_200mag {magazine="JAM_W762M_200mag"; count=5;};

class _xx_JAM_W762M_200FSmag {magazine="JAM_W762M_200FSmag"; count=5;};

class _xx_JAM_W762_5mag {magazine="JAM_W762_5mag"; count=10;};

class _xx_JAM_W762Sniper_20mag {magazine="JAM_W762Sniper_20mag"; count=10;};

class _xx_JAM_M433Vest {magazine="JAM_M433Vest"; count=5;};

class _xx_JAM_AT4Rocket {magazine="JAM_AT4Rocket"; count=6;};

class _xx_JAM_CAVS_AT4Rocket {magazine="JAM_CAVS_AT4Rocket"; count=6;};

};

...and I can't see a problem with it. Any help would be appreciated.

Share this post


Link to post
Share on other sites

I had the same problem when testing some ideas with a vehicle long time ago.

You have this problem because the mp ammo trucks are inheriting their values from the BIS ammo truck, and BIS is getting this

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

And , if you count the JAM ammo you added in the truck class definition, it more than this maximmum

So in the class definition of your ow ammo truck, add

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

This should solve your problem.

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  

×