Jump to content

Sign in to follow this  
Mitsu_

CfgGlasses Addon Configuration

Recommended Posts

Hello @ all.

I'd like to ask if someone could give me a proper advice on how to get my balaclava addon to work.

This is what my config.cpp includes

class CfgPatches
{
class mitsus_balaclavas
{
	units[]={};
	weapons[]={};
	requiredVersion=0.1;
	requiredAddons[]={};
};
};
class Headgear_Base_F;
class Item_Base_F;
class CfgGlasses
{
class None;
class Balaclava_tan: None
	{
		author="Mitsu";
		_generalMacro="Balaclava_tan";
		scope=2;
		scopeCurator=2;
		scopeArsenal=2;
		displayName="Balaclava Test";
		model="\A3\Characters_F_Bootcamp\Guerrilla\g_balaclava_clean.p3d";
		picture="\A3\Characters_F_Bootcamp\Data\UI\icon_G_Balaclava_clean_ca.paa";
		hiddenSelections[]=
		{
			"camo"
		};
		hiddenSelectionsTextures[]=
		{
			"balaclava\Data\balaclava_tan.paa"
		};
		identityTypes[]={};
		};
		mass=6;
	};
};

I'm not sure if I've included the needed classes properly/completely.

To clarify the problem: The item is not showing up when looking through the virtual arsenal in the Glasses section.

I did some research but had no luck.

Any advice is appreciated.

Cheers,

Mitsu

---------- Post added at 10:05 ---------- Previous post was at 09:46 ----------

I've fixed the problem myself.

The previous config was messy after all and wrong in many places.

For anybody interested here you can compare the updated/working version

class CfgPatches
{
class mitsus_balaclavas
{
	units[]={};
	weapons[]={};
	requiredVersion=0.1;
	requiredAddons[]={};
};
};
class Headgear_Base_F;
class Item_Base_F;
class CfgGlasses
{
class G_Balaclava_blk;
class Balaclava_tan: G_Balaclava_blk
{
	author="Mitsu";
	_generalMacro="Balaclava_tan";
	displayName="Balaclava Tan";
	model="\A3\Characters_F_Bootcamp\Guerrilla\g_balaclava_clean.p3d";
	picture="\A3\Characters_F_Bootcamp\Data\UI\icon_G_Balaclava_clean_ca.paa";
	hiddenSelections[]=
	{
		"camo"
	};
	hiddenSelectionsTextures[]=
	{
		"mitsus_balaclavas\Data\balaclava_tan.paa"
	};
	identityTypes[]={};
};
};

Thanks a lot.

Thread can be closed.

  • Like 1

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  

×