Jump to content
Sign in to follow this  
chauvinista

FactionClass does not work

Recommended Posts

Hello, I have little problem with my config.cpp. The TEMPL faction wont show in BLUFOR factions

I am still learning so, please have patience with me, thanks.

#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7

#define true 1
#define false 0

// type scope
#define private 0
#define protected 1
#define public 2  

class CfgPatches
{
	class SKI5_TEMPL
	{
 	units[] = {};
 	requiredVersion = 1.0;
 	requiredAddons[] = {"CACharacters_e"};
 };
};

class CfgFactionClasses {
class TEMPL {
	displayName = "TEMPL";
	priority = 1000;
	side = "1";
};
};

class CfgVehicleClasses {
class Men {
	displayName = "Men";
};
};

class CfgVehicles
{
class US_Soldier_Base_EP1;


	class SK_Soldier: US_Soldier_Base_EP1 
	{
 		vehicleClass = "Men";
	faction = "TEMPL";
	displayName = "DEBIL";
	weapons[] = {"FN_FAL","Throw","Put","ItemMap","ItemCompass","ItemWatch","ItemRadio","NVGoggles"};
	magazines[] = {"20Rnd_762x51_FNFAL","20Rnd_762x51_FNFAL","20Rnd_762x51_FNFAL","20Rnd_762x51_FNFAL","20Rnd_762x51_FNFAL","20Rnd_762x51_FNFAL","HandGrenade_East","HandGrenade_East"};
	respawnWeapons[] = {"FN_FAL","Throw","Put","ItemMap","ItemCompass","ItemWatch","ItemRadio","NVGoggles"};
	respawnMagazines[] = {"20Rnd_762x51_FNFAL","20Rnd_762x51_FNFAL","20Rnd_762x51_FNFAL","HandGrenade_East"};
		};

	class SK_Soldier_B : SK_Soldier 
	{
	displayName = "DEBIL(BATOH)";
	model = "\CA\characters_E\ACR\acr_soldier";
	backpack = "TKA_Assault_Pack_Ammo_EP1";
		};


};

Share this post


Link to post
Share on other sites

Here is my config from my Star Trek units, and I know that this works.

#define true    1
#define false    0
#define _ARMA_


class CfgPatches {
   class STA2_Federation {
       units[] = {"STA2_Command","STA2_Operations","STA2_Sciences"};
       weapons[] = {"STA2_Type2"};
       requiredVersion = 1.0;
       requiredAddons[] = {"CAData","CA_Anims_Char"};
   };
};


class CfgFactionClasses {
   class STA2_Federation {
       displayName = "Federation";
       priority = 1;
       side = 1;
       primaryLanguage = "EN";
   }
}
class CfgVehicleClasses {
   class STA2_Starfleet {
       displayName = "Starfleet Units";
   };
};
class CfgVehicles {
   class Man;
   class CAManBase : Man{};
   class US_Soldier_Base_EP1:CAManBase{};
   class STA2_Command : US_Soldier_Base_EP1 {
       vehicleClass = "STA2_Starfleet";
       faction = "STA2_Federation";
       displayName = "Command Officer";
       model = "\STA2_Federation\Animals\STA2_Command";
       scope = 2;
       weapons[] = {"STA2_Type2"};
       magazines[] = {"STA2_PhaserClip"};
       class Wounds {
           tex[] = {};
           mat[] = {"ca\characters\heads\male\defaulthead\data\hhl.rvmat", "ca\characters\heads\male\defaulthead\data\hhl_wounds.rvmat", "ca\characters\heads\male\defaulthead\data\hhl_wounds2.rvmat", "soldier_p3d\data\us_soldier_body.rvmat", "soldier_p3d\data\us_soldier_body_wound1.rvmat", "soldier_p3d\data\us_soldier_body_wound2.rvmat"};
       };
   };
};

This means my units show up under the West side, with a faction of Federation (as opposed to US, etc). Then, they will show up under the Starfleet Units for that faction.

Hope it helps.

Abs

Edited by Abs

Share this post


Link to post
Share on other sites

No worries, mate. Glad I could help.

Abs

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  

×