Jump to content
Sign in to follow this  
Goyneyyy.ahk

(resolved) trying to add an mk18 retextured variant

Recommended Posts

hello, I am trying to add an additional mk18 in black. I have managed to add additional mk-1's from the marksman DLC but I have only been so far able to reskin the base mk18.

 

any info appreciated, can't understand what I am doing wrong. code below. cheers.

 

class CfgPatches
{
	class mk18
	{
		author="goyney";
		units[]={};
		requiredAddons[] =
		{
			"A3_Weapons_F"
		};
		requiredVersion = 0.1;
		weapons[]=
		{
			"srifle_EBR_F",
			"srifle_EBR_black_F"
		};
	};
};
class CfgWeapons
{
	class srifle_EBR_F;
	class srifle_EBR_black_F : srifle_EBR_F
	{
		displayName = "MK18 EBR 7.62 mm (Black)";
		author = "goyney";
		picture = "\mk18\data\ui\gear_ebr_black_X_CA.paa";
		hiddenSelections[] =
		{
			"camo1",
			"camo2"
		};
		hiddenSelectionsTextures[] =
		{
			"\mk18\data\M14_EBR01_black_CO.paa",
			"\mk18\data\M14_EBR02_black_CO.paa"
		};
	};
};

 

 

Share this post


Link to post
Share on other sites

fixed right after the post after hours of trying beforehand!!!

baseWeapon is present in the class for all single variant weapons meaning any sub variants of the base class will be hidden in the virtual inventory. makes no sense why that is added when there is only 1 variant anyway?

so simply adding baseWeapon " ..... " ; into the sub variant class will allow the weapon to show in the VI.

 

b5dd25c90e8d3dc7b80ccff313eee66b.png

 

class CfgWeapons
{
	class srifle_EBR_F;
	class srifle_EBR_black_F : srifle_EBR_F
	{
		displayName = "MK18 EBR 7.62 mm (Black)";
		author = "goyney";
		baseWeapon = "srifle_EBR_black_F";
		picture = "\mk18\data\ui\gear_ebr_black_X_CA.paa";
		hiddenSelections[] =
		{
			"camo1",
			"camo2"
		};
		hiddenSelectionsTextures[] =
		{
			"\mk18\data\M14_EBR01_black_CO.paa",
			"\mk18\data\M14_EBR02_black_CO.paa"
		};
	};
};

 

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  

×