Jump to content
Sign in to follow this  
Chipchilinka5163

The texture of the knife color does not change in fashion

Recommended Posts

I decided to make a new knife. Everything works, including selections, but texture switching does not work. I've already tried everything, and changed the names of folders and selections and everything in the world

class CfgPatches
{
	class DZ_Weapons_Melee_Blade
	{
		units[]={};
		weapons[]={};
		requiredVersion=0.1;
		requiredAddons[]=
		{
			"DZ_Data",
			"DZ_Weapons_Melee"
		};
	};
};
class cfgVehicles
{
	class Inventory_Base;
	class HuntingKnife;
	class TACTIC_NOJIK_BASE: HuntingKnife
	{
		scope=0;
		displayName="Боевой нож";
		descriptionShort="Боевой нож";
		model="CustomKnife\nojik\tacticKnife.p3d";
		debug_ItemCategory=2;
		animClass="Knife";
		repairableWithKits[]={4};
		repairCosts[]={10};
		inventorySlot[]=
		{
			"Knife"
		};
		rotationFlags=17;
		canSkinBodies=1;
		RestrainUnlockType=1;
		weight=312;
		itemSize[]={1,3};
		lootTag[]=
		{
			"Military_east",
			"Military_west"
		};
		lootCategory="Tools";
		itemInfo[]=
		{
			"Knife"
		};
		hiddenSelection[]=
		{
			"noj"
		};
		hiddenSelectionTextures[]=
		{
			"CustomKnife\nojik\data\tacticKnife_co.paa"
		};
		openItemSpillRange[]={10,20};
		class DamageSystem
		{
			class GlobalHealth
			{
				class Health
				{
					hitpoints=150;
					healthLevels[]=
					{
						
						{
							1,
							
							{
								"CustomKnife\nojik\data\tacticKnife_mat.rvmat"
							}
						},
						
						{
							0.69999999,
							
							{
								"CustomKnife\nojik\data\tacticKnife_mat.rvmat"
							}
						},
						
						{
							0.5,
							
							{
								"CustomKnife\nojik\data\tacticKnife_mat_damage.rvmat"
							}
						},
						
						{
							0.30000001,
							
							{
								"CustomKnife\nojik\data\tacticKnife_mat_damage.rvmat"
							}
						},
						
						{
							0,
							
							{
								"CustomKnife\nojik\data\tacticKnife_mat_destruct.rvmat"
							}
						}
					};
				};
			};
		};
		isMeleeWeapon=1;
		suicideAnim="onehanded";
		class MeleeModes
		{
			class Default
			{
				ammo="MeleeMachete";
				range=1.2;
			};
			class Heavy
			{
				ammo="MeleeMachete_Heavy";
				range=1.2;
			};
			class Sprint
			{
				ammo="MeleeMachete_Heavy";
				range=3.3;
			};
		};
		soundImpactType="metal";
		class AnimEvents
		{
			class SoundWeapon
			{
				class animalSkinning_in
				{
					soundSet="animalSkinning_in_SoundSet";
					id=516;
				};
				class animalSkinning
				{
					soundSet="animalSkinning_SoundSet";
					id=517;
				};
				class animalSkinning_out
				{
					soundSet="animalSkinning_out_SoundSet";
					id=518;
				};
				class CutTies_end
				{
					soundSet="CutTies_end_SoundSet";
					id=519;
				};
				class CutTies_loop
				{
					soundSet="CutTies_loop_SoundSet";
					id=520;
				};
				class shaving_knife_clean
				{
					soundSet="shaving_knife_clean_SoundSet";
					id=600;
				};
				class shaving_knife1
				{
					soundSet="shaving_knife1_SoundSet";
					id=601;
				};
				class shaving_knife2
				{
					soundSet="shaving_knife2_SoundSet";
					id=602;
				};
				class shaving_knife3
				{
					soundSet="shaving_knife3_SoundSet";
					id=603;
				};
				class shaving_knife4
				{
					soundSet="shaving_knife4_SoundSet";
					id=604;
				};
				class shaving_knife5
				{
					soundSet="shaving_knife5_SoundSet";
					id=605;
				};
				class shaving_knife6
				{
					soundSet="shaving_knife6_SoundSet";
					id=606;
				};
				class shaving_knife7
				{
					soundSet="shaving_knife7_SoundSet";
					id=607;
				};
				class shaving_knife8
				{
					soundSet="shaving_knife8_SoundSet";
					id=608;
				};
				class shaving_knife9
				{
					soundSet="shaving_knife9_SoundSet";
					id=609;
				};
				class shaving_knife10
				{
					soundSet="shaving_knife10_SoundSet";
					id=610;
				};
				class shaving_knife11
				{
					soundSet="shaving_knife11_SoundSet";
					id=611;
				};
				class shaving_knife12
				{
					soundSet="shaving_knife12_SoundSet";
					id=612;
				};
				class shaving_knife13
				{
					soundSet="shaving_knife13_SoundSet";
					id=613;
				};
				class shaving_knife14
				{
					soundSet="shaving_knife14_SoundSet";
					id=614;
				};
				class shaving_knife15
				{
					soundSet="shaving_knife15_SoundSet";
					id=615;
				};
				class shaving_knife16
				{
					soundSet="shaving_knife16_SoundSet";
					id=616;
				};
				class shaving_knife17
				{
					soundSet="shaving_knife17_SoundSet";
					id=617;
				};
				class shaving_knife18
				{
					soundSet="shaving_knife18_SoundSet";
					id=618;
				};
				class shaving_knife19
				{
					soundSet="shaving_knife19_SoundSet";
					id=619;
				};
				class shaving_knife20
				{
					soundSet="shaving_knife20_SoundSet";
					id=620;
				};
				class shaving_knife21
				{
					soundSet="shaving_knife21_SoundSet";
					id=621;
				};
				class drop
				{
					soundset="combatknife_drop_SoundSet";
					id=898;
				};
			};
		};
	};
	class TACTIC_NOJIK_STANDART: TACTIC_NOJIK_BASE
	{
		scope=2;
		hiddenSelectionTextures[]=
		{
			"CustomKnife\nojik\data\tacticKnife_co.paa"
		};
	};
	class TACTIC_NOJIK_COLORFUL: TACTIC_NOJIK_BASE
	{
		scope=2;
		hiddenSelectionsTextures[]=
		{
			"CustomKnife\nojik\data\tacticKnife_rainbow_co.paa"
		};
	};
};

class CfgNonAIVehicles
{
	class ProxyAttachment;
	class Proxycombatknife: ProxyAttachment
	{
		scope=2;
		inventorySlot="Knife";
		model="CustomKnife\nojik\tacticKnife.p3d";
	};
};

 

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  

×