Jump to content
Sign in to follow this  
brad7

Ammobox

Recommended Posts

How do i create an ammobox for the kit i have made?

Share this post


Link to post
Share on other sites

In your config.cpp

class cfgVehicles
{
class box_east_ammo_f; //ORIGINAL AMMO BOX

class MyWeaponBox_FMK3  : box_east_ammo_f
{
scope = 2;//show it on editor
accuracy = 1000;
displayName = "My  ammo Box";//AMMO BOX NAME IN EDITOR AND GAME
model = "\A3\weapons_f\ammoboxes\ammobox_f";

class TransportMagazines//MAGAZINES IN AMMO BOX
{
class MY9mm_Mags//another classname
{
magazine = "30Rnd_9x21_Mag";
count = 200;
};

};

class TransportWeapons//THIS IS WERE YOU PUT WEAPONS (AND EQUIPMENT I THINK)
{
class Test_fmk3 //class nane
{
weapon = "ft_fmk3";//weapon class name
count = 12;// amout of weapons in box
};
};
};
};

Share this post


Link to post
Share on other sites

When i try to pack the file i get a error// im packing with BINPBO

 enum {
 //  = 2,	// Error parsing: Empty enum name
DESTRUCTENGINE = 2,
DESTRUCTDEFAULT = 6,
DESTRUCTWRECK = 7,
DESTRUCTTREE = 3,
DESTRUCTTENT = 4,
STABILIZEDINAXISX = 1,
STABILIZEDINAXESXYZ = 4,
STABILIZEDINAXISY = 2,
STABILIZEDINAXESBOTH = 3,
DESTRUCTNO = 0,
STABILIZEDINAXESNONE = 0,
DESTRUCTMAN = 5,
DESTRUCTBUILDING = 1,
};

class cfgVehicles
{
class box_east_ammo_f; //ORIGINAL AMMO BOX

class DAF : box_east_ammo_f
{
scope = 2;//show it on editor
accuracy = 1000;
displayName = "Denmark Box";//AMMO BOX NAME IN EDITOR AND GAME
model = "\A3\weapons_f\ammoboxes\ammobox_f";

class TransportMagazines//MAGAZINES IN AMMO BOX
{
class DAF_Mags//another classname
{
magazine = "30Rnd_9x21_Mag";
count = 200;
};

};

class TransportWeapons//THIS IS WERE YOU PUT WEAPONS (AND EQUIPMENT I THINK)
{
class DAF //class name
{
weapon = "urban_pack";//weapon class name
count = 12;// amout of weapons in box
       weapon = "Denmark_Cap";//weapon class name
count = 12;// amout of weapons in box
       weapon = "Denmark_Helmet";//weapon class name
count = 12;// amout of weapons in box
       weapon = "DenmarkKevHelmet";//weapon class name
count = 12;// amout of weapons in box
       weapon = "DenmarkHelmetGoggles";//weapon class name
count = 12;// amout of weapons in box
       weapon = "Denmark_Light_Helmet";//weapon class name
count = 12;// amout of weapons in box
       weapon = "Example_CombatUniform_mcam";//weapon class name
count = 12;// amout of weapons in box
       weapon = "Denmark_Vest";//weapon class name
count = 12;// amout of weapons in box
};     
};
};

Share this post


Link to post
Share on other sites

Should be more like:

You should also consider using tags in your classes and pboName.

enum {
destructengine = 2,
destructdefault = 6,
destructwreck = 7,
destructtree = 3,
destructtent = 4,
stabilizedinaxisx = 1,
stabilizedinaxesxyz = 4,
stabilizedinaxisy = 2,
stabilizedinaxesboth = 3,
destructno = 0,
stabilizedinaxesnone = 0,
destructman = 5,
destructbuilding = 1
};

class CfgPatches {
class brad7_Denmark_Ammo_Box {
	units[] = {};
	weapons[] = {};
	requiredVersion = 0.1;
	requiredAddons[] = {"A3_Weapons_F"}; // You need to add the CfgPatches classes of your addons.
};
};

class CfgVehicles {

class box_east_ammo_f;

class brad7_DAF : box_east_ammo_f
{
	displayName = "Denmark Box";
	transportMaxWeapons = 40;
	transportMaxMagazines = 100;
	class TransportMagazines{};
	class TransportWeapons{};
	class TransportItems
	{
		class _xx_brad7_urban_pack
		{
			name = "brad7_urban_pack";
			count = 1;
		};
		class _xx_brad7_Denmark_Cap
		{
			name = "brad7_Denmark_Cap";
			count = 1;
		};
		class _xx_brad7_Denmark_Helmet
		{
			name = "brad7_Denmark_Helmet";
			count = 1;
		};
		class _xx_brad7_DenmarkKevHelmet
		{
			name = "brad7_DenmarkKevHelmet";
			count = 1;
		};
	};
};
};

Share this post


Link to post
Share on other sites

I copied exactly what you used but now i get the invisible uniform glitch :S

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  

×