Jump to content
Sign in to follow this  
emcnally

Ammo configuration for INQ_M1

Recommended Posts

Hi, I'm working on a 30 rnd ammo pack for the HEMMT and I cant seem to find the information I need for my config.cpp This is my first creation so my config is probably all wrong.

The object itself is correct because I can get mines and M16 ammo from it, But no tank ammo and thats what I was designing it for. My config looks like this;

class CfgPatches

{

class EM_Ammo_Pack

{

units[] = {EM_Ammo_pack};

weapons[] = {};

requiredVersion = 1.0;

};

};

class CfgVehicles

{

class All {};

class Static: All {};

class Building: Static {};

class Strategic: Building {};

class ReammoBox : Strategic {};

class EM_Ammo_pack : ReammoBox

{

scope=2;

armor=50;

vehicleclass="EM - Ammo";

displayName="Ammo Pack";

model="\EM_Ammo_Tube\EM_Ammo_pack.p3d";

transportAmmo = 500;

class TransportWeapons

{

class _w_M16

{

weapon="M16";

count=2;

};

};

class TransportMagazines

{

class _xx_M16

{

magazine="M16";

count=80;

};

class _xx_HandGrenade

{

magazine="HandGrenade";

count=16;

};

class _xx_PipeBomb

{

magazine="PipeBomb";

count=8;

};

class INQGun120_BIS

{

magazine="INQ_Sabot120";

count=8;

};

class _x_shell

{

magazine="shell120";

count=30;

};

class _xx_Mine

{

magazine="Mine";

count=4;

};

Any input would be appreciated, thanks

Share this post


Link to post
Share on other sites

Hi,

i'm afraid you cannot add tank ammunition to ammo crates. Look at this (very old) post but answered by BI guys :

http://forums.bistudio.com/showthread.php?t=7180&highlight=ammo

Reammo trucks can reammo tanks thanks to this line only :

transportAmmo = 300000;

Only individual soldiers can take individual magazines or weapons from ammo crates and vehicles, found in the class TransportMagazines or TransportWeapons.

Maybe you should increase the transportAmmo amount and see how react tanks with low ammunition (i think that tanks without any ammunitions do not refill, they must have some left).

Share this post


Link to post
Share on other sites

Yes but only thanks to the line :

transportAmmo = 500;

and so the lines :

class INQGun120_BIS
{
magazine="INQ_Sabot120";
count=8;
};
class _x_shell
{
magazine="shell120";
count=30;
};

are useless IMO.

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  

×