Jump to content
Sign in to follow this  
theevancat

How do I prevent custom faces from spawning on AI?

Recommended Posts

So the title basically says it all. I want my faces to be selectable to players, be it in arsenal or through the editor init, but not to appear on random AI units when they spawn.

Here's a sample part of my config, with one of my faces.

class CfgPatches
{
class CSAT_Faces
{
	units[]={};
	weapons[]={};
	requiredVersion=0.1;
	requiredAddons[]=
	{
		A3_Characters_F
	};
};
};
class CfgFaces
{
class Default
{
	class Custom;
};
class Man_A3: Default
{
	class Default
	{
		displayname="$STR_CFG_FACES_Default";
		texture="\A3\Characters_F\Heads\Data\m_White_01_co.paa";
		head="DefaultHead_A3";
		identityTypes[]={};
		material="A3\Characters_F\Heads\Data\m_White_01.rvmat";
		textureHL="\A3\Characters_F\Heads\Data\hl_White_hairy_1_co.paa";
		materialHL="\A3\Characters_F\Heads\Data\hl_White_hairy_muscular.rvmat";
		textureHL2="\A3\Characters_F\Heads\Data\hl_White_hairy_1_co.paa";
		materialHL2="\A3\Characters_F\Heads\Data\hl_White_hairy_muscular.rvmat";
		disabled=0;
	};
	class TEC_PersianHead_A3_01_01: Default
	{
		displayname="Bahadur (Facepaint 01)";
		texture="\CSAT_Faces\Data\Persian01_Camo1_co.paa";
		head="PersianHead_A3";
		author="TheEvanCat";
		identityTypes[]=
		{
			"Head_TK"
		};
		material="\A3\Characters_F\Heads\Data\m_persian_01.rvmat";
		scope=0;
		disabled=0;
	};
};

I tried doing something like knocking "disabled=0" to =1, but that didn't seem to help. What should I be doing that I've missed?

Share this post


Link to post
Share on other sites

I am no expert here, but I am pretty sure it has something to do with the identityTypes[]. My guess is that it works like tags, which defines who can get what. But that's where my expertise ends.

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  

×