Jump to content
Sign in to follow this  
friznit2

ACE: Unit Config.CPP - adding items to backpack

Recommended Posts

I'm trying to add contents to an ACE backpack on one of StalkerGB's models. A snippet is below of what I have so far, which works technically but screams about base classes. Which base class do I need to define and how/where do I define it?

Code abbreviated for clarity

class CfgVehicles
{
          class VCB_BritMTP_Rifleman_A1: US_Soldier_Base_EP1
{
vehicleClass = "VCB_BritMTP_A";
faction = UK_ARMED_FORCES;
displayName = "Rifleman";
model = "\STKR_BritMTP\Brit_MG";
identityTypes[] = {"Language_EN_EP1","USMC_Glasses","Head_USMC"}; 
scope = 2;
nightVision = 1;
Cancarrybackpack = 1;
Icon = "\Ca\characters\data\map_ico\i_komandos_CA.paa";
weapons[] = {"ukf_L85A2_acog","ACE_BACKPACK_MULTICAM"};
magazines[] = {"30Rnd_556x45_Stanag"};

class ACE: ACE
{
	class sys_ruck
	{
	 weapons[] = {};
	 magazines[] = {"30Rnd_556x45_Stanag"};
	};
};

respawnweapons[] = {};
respawnmagazines[] = {};

 class Wounds
 {
  tex[] = {};
  mat[] = {};
 };
};
};

---------- Post added at 16:11 ---------- Previous post was at 15:36 ----------

Resolved thanks to Sickboy's patience. For reference, you need to define ACE in each of the inherited classes, so in this case:

		class SoldierWB;
	class US_Soldier_Base_EP1 : SoldierWB {
		/*extern*/ class ACE;
	};

	class US_Soldier_Medic_EP1 : US_Soldier_Base_EP1 {
		/*extern*/ class ACE;
	};	

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  

×