Jump to content
Sign in to follow this  
gepanzert-faust

Help a struggling noob with his first mod/config?

Recommended Posts

Hi all, could somebody please give me some help with this (incredibly simple) attempt at a mod?

All I'm trying to do is create a replacement config that enables me to edit the contents of the various ammo boxes in Arma 3.

I thoroughly read the tutorial on the wiki, the games loads without errors, but alas it just doesn't work - my changes are not applied in game :confused:

I only included the basic Nato ammo box to get started and keep it simple, I copied the ammo box code straight from the ammo box config in the Arma 3 files.

Here are the contents of my config:

(The mod folder is called "ammo_boxes" and the .pbo is inside a folder called "addons" like the way its suppose to be).

class CfgPatches {

class ammo_boxes
	units[] = {};
	weapons = {};
	requiredVersion = 0.1;
	requiredAddons = {"A3_Weapons_F"};
};
};



class CfgVehicles {



class Box_NATO_Ammo_F: NATO_Box_Base {
	author = "$STR_A3_Bohemia_Interactive";
	_generalMacro = "Box_NATO_Ammo_F";
	scope = 2;
	displayName = "$STR_A3_CfgVehicles_Box_NATO_Ammo0";
	model = "\A3\weapons_F\AmmoBoxes\AmmoBox_F";
	icon = "iconCrateAmmo";
	transportMaxWeapons = 12;
	transportMaxMagazines = 64;

	class TransportMagazines {

		class _xx_30Rnd_65x39_caseless_mag {
			magazine = "30Rnd_65x39_caseless_mag";
			count = 12;
		};

		class _xx_16Rnd_9x21_Mag {
			magazine = "16Rnd_9x21_Mag";
			count = 6;
		};

		class _xx_11Rnd_45ACP_Mag {
			magazine = "11Rnd_45ACP_Mag";
			count = 6;
		};

		class _xx_30Rnd_45ACP_Mag_SMG_01 {
			magazine = "30Rnd_45ACP_Mag_SMG_01";
			count = 6;
		};

		class _xx_20Rnd_762x51_Mag {
			magazine = "20Rnd_762x51_Mag";
			count = 6;
		};

		class _xx_100Rnd_65x39_caseless_mag_Tracer {
			magazine = "100Rnd_65x39_caseless_mag_Tracer";
			count = 6;
		};

		class _xx_1Rnd_HE_Grenade_shell {
			magazine = "1Rnd_HE_Grenade_shell";
			count = 6;
		};

		class _xx_NLAW_F {
			magazine = "NLAW_F";
			count = 1;
		};

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

		class _xx_MiniGrenade {
			magazine = "MiniGrenade";
			count = 12;
		};
	};

	class TransportWeapons {
	};

	class TransportItems {
	};

	class AnimationSources {

		class Ammo_source {
			source = "user";
			animPeriod = 1;
			initPhase = 0;
		};

		class AmmoOrd_source {
			source = "user";
			animPeriod = 1;
			initPhase = 1;
		};

		class Grenades_source {
			source = "user";
			animPeriod = 1;
			initPhase = 1;
		};

		class Support_source {
			source = "user";
			animPeriod = 1;
			initPhase = 1;
		};
	};
};

After spending a few hours trying to figure this out, I've nearly given up :(

Share this post


Link to post
Share on other sites

Then you first need to call the class

class cfgVehicles
{
   class NATO_box_base;
   class box_nato_ammo_F: Nato_box_base
         {
        All your changes in here...
         }
};

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  

×