Home   Help Search Login Register  

Author Topic: Ammo Truck Troubles  (Read 1386 times)

0 Members and 1 Guest are viewing this topic.

Offline Captain

  • Members
  • *
Ammo Truck Troubles
« on: 28 May 2006, 14:00:33 »
This is a re-post from the BI Forums but I thought I may get a more accurate/quicker/better response here. 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...

Code: [Select]
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.

Captain
« Last Edit: 28 May 2006, 14:12:47 by Captain »

Sanctuary

  • Guest
Re: Ammo Truck Troubles
« Reply #1 on: 30 May 2006, 19:51:49 »
I have replied in the BIS forum, but if you don't see :

I had the same problem when testing some ideas with a vehicle.
You have this problem because the mp ammo trucks are inheriting their values from the BIS ammo truck, and BIS ammo truck is getting this
Code: [Select]
transportMaxMagazines=200;And , if you count the JAM ammo you added in the truck class definition, it goes over this maximmum of 200

So in the class definition of your ow ammo truck, add
Code: [Select]
transportMaxMagazines=300;
This will solve your problem.