Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe
  • 0
Sign in to follow this  
Romgrafist

Прокси шлема

Сделал шлем. Сделал к нему визор отдельным файлом. Цепляю визор как прокси. Шлем спавню, а он сразу с визором. Слот под визор есть, но постой и визор туды не втыкается. Прикладываю конфиг и иерархию файлов.

Уже делал подобную хрень: "пояс строителя", но там прокси все были взяты из стандартных моделей: молоток, пила и т.д. Там всё ОК работает. Здесь же не пойму что за бесятина творится. И ещё один момент: когда одеваешь шлем то прокси не двигается с башкой, а висит на месте. Что-то нужно дописать в model.cfg, или в самом конфиге?

class CfgPatches
{
	class RGAlphaHelmet
	{
		units[] = {};
		weapons[] = {};
		requiredVersion = 0.1;
		requiredAddons[] = {
			"DZ_Data",
			"DZ_Characters"
			};
	};
};

class CfgMods
{
	class RGAlphaHelmet
	{
		dir="RGAlphaHelmet";
		picture="";
		action="";
		hideName=1;
		hidePicture=1;
		name="RGAlphaHelmet";
		author="Romgrafist";
		credits="Romgrafist";
		authorID="1";
		version="1.0.1";
		extra=0;
		type="mod";
		dependencies[]=
		{
			"Game", "World", "Mission"
		};
		class defs
		{
			class gameScriptModule
			{
				value = "";
				files[] = 
				{
					"RGAlphaHelmet/scripts/3_Game"
				};
			};
			class worldScriptModule
			{
				value="";
				files[]=
				{
					"RGAlphaHelmet/scripts/4_World"
				};
			};
			class missionScriptModule
			{
				value = "";
				files[] = 
				{
					"RGAlphaHelmet/Scripts/5_Mission"
				};
			};
			
		};
	};
};
class cfgSlots {
		class Slot_RGVisor
		{
			name="RGVisor";
			displayName="RGVisor";
			ghostIcon="knife";
		};
	};
	class CfgNonAIVehicles
{
	class ProxyAttachment;
	class ProxyRGVisor: ProxyAttachment
	{
		scope = 2;
		model = "RGAlphaHelmet\RGAlphaHelmet_Zabralo_g.p3d";
		inventorySlot[] = {"RGVizor"};
	};
};
	
class CfgVehicles
{
	class Clothing;
	
	class RGVisor: Clothing
	{
		scope=0;
		displayName="$STR_RGAlphaVisor_0";
		descriptionShort="$STR_RGAlphaVisor_1";
		model="RGAlphaHelmet\RGAlphaHelmet_Zabralo_g.p3d";
		simulation="itemoptics";
		animClass="Binoculars";
		rotationFlags=17;
		weight=36;
		itemSize[]={3,2};
		lootTag[]=
		{
			"Military_west",
			"Military_east",
			"Civilian"
		};
		lootCategory="Eyewear";
		itemInfo[]=
		{
			"Clothing",
			"RGVizor"
		};
		inventorySlot[]=
		{
			"RGVizor"
		};
		class DamageSystem
		{
			class GlobalHealth
			{
				class Health
				{
					hitpoints=500;
					healthLevels[]=
					{
						
						{
							1,
							
							{
								"RGAlphaHelmet\data\RGAlphaHelmet_Zabralo.rvmat"
							}
						},
						
						{
							0.69999999,
							
							{
								"RGAlphaHelmet\data\RGAlphaHelmet_Zabralo.rvmat"
							}
						},
						
						{
							0.5,
							
							{
								"RGAlphaHelmet\data\RGAlphaHelmet_Zabralo_damage.rvmat"
							}
						},
						
						{
							0.30000001,
							
							{
								"RGAlphaHelmet\data\RGAlphaHelmet_Zabralo_damage.rvmat"
							}
						},
						
						{
							0,
							
							{
								"RGAlphaHelmet\data\RGAlphaHelmet_Zabralo_destruct.rvmat"
							}
						}
					};
				};
			};
		};
		class AnimEvents
		{
			class SoundWeapon
			{
				class pickUpItem
				{
					soundSet="DarkMotoHelmet_pickup_SoundSet";
					id=797;
				};
				class drop
				{
					soundset="DarkMotoHelmet_drop_SoundSet";
					id=898;
				};
			};
		};
	};
	class RGAlphaVisor_Green: RGVisor
	{
		scope=2;
		visibilityModifier=0.69999999;
		hiddenSelectionsTextures[]=
		{
			"RGAlphaHelmet\data\Zabralo\Green\Zabralo_co.paa",
			"RGAlphaHelmet\data\Zabralo\Green\Zabralo_co.paa",
			"RGAlphaHelmet\data\Zabralo\Green\Zabralo_co.paa"
		};
	};
	
	


class RGAlphaHelmet_ColorBase: Clothing
	{
		scope=0;
		displayName="$STR_RGAlphaHelmet_0";
		descriptionShort="$STR_RGAlphaHelmet_1";
		model="\RGAlphaHelmet\RGAlphaHelmet_g.p3d";
		inventorySlot[]=
		{
			"Headgear"
		};
		attachments[] = 
		{
			"RGVisor"
		};
		repairableWithKits[]={8};
		repairCosts[]={25};
		headSelectionsToHide[]=
		{
			"Clipping_HelmetMich"
		};
		
		simulation="clothing";
		vehicleClass="Clothing";
		itemInfo[]=
		{
			"Clothing",
			"Headgear"
		};
		weight=870;
		itemSize[]={4,3};
		varWetMax=0.249;
		heatIsolation=0.5;
		hiddenSelections[]=
		{
			"camoGround",
			"camoMale",
			"camoFemale"
		};
		class DamageSystem
		{
			class GlobalHealth
			{
				class Health
				{
					hitpoints=900;
					healthLevels[]=
					{
						
						{
							1,
							
							{
								"RGAlphaHelmet\data\RGAlphaHelmet.rvmat"
							}
						},
						
						{
							0.69999999,
							
							{
								"RGAlphaHelmet\data\RGAlphaHelmet.rvmat"
							}
						},
						
						{
							0.5,
							
							{
								"RGAlphaHelmet\data\RGAlphaHelmet_damage.rvmat"
							}
						},
						
						{
							0.30000001,
							
							{
								"RGAlphaHelmet\data\RGAlphaHelmet_damage.rvmat"
							}
						},
						
						{
							0,
							
							{
								"RGAlphaHelmet\data\RGAlphaHelmet_destruct.rvmat"
							}
						}
					};
				};
			};
			class GlobalArmor
			{
				class Projectile
				{
					class Health
					{
						damage=0.5;
					};
					class Blood
					{
						damage=0;
					};
					class Shock
					{
						damage=0.5;
					};
				};
				class Melee
				{
					class Health
					{
						damage=0.5;
					};
					class Blood
					{
						damage=0;
					};
					class Shock
					{
						damage=0.5;
					};
				};
				class Infected
				{
					class Health
					{
						damage=0.5;
					};
					class Blood
					{
						damage=0;
					};
					class Shock
					{
						damage=0.5;
					};
				};
				class FragGrenade
				{
					class Health
					{
						damage=0.5;
					};
					class Blood
					{
						damage=0;
					};
					class Shock
					{
						damage=0.5;
					};
				};
			};
		};
		class ClothingTypes
		{
			male="\RGAlphaHelmet\RGAlphaHelmet_m.p3d";
			female="\RGAlphaHelmet\RGAlphaHelmet_m.p3d";
		};
		class AnimEvents
		{
			class SoundWeapon
			{
				class pickUpItem
				{
					soundSet="DarkMotoHelmet_pickup_SoundSet";
					id=797;
				};
				class drop
				{
					soundset="DarkMotoHelmet_drop_SoundSet";
					id=898;
				};
			};
		};
	
	};
	class RGAlphaHelmet_Green: RGAlphaHelmet_ColorBase
	{
		scope=2;
		visibilityModifier=0.69999999;
		color="Green";
		hiddenSelectionsTextures[]=
		{
			"RGAlphaHelmet\data\Kaska\Green\RGAlphaHelmet_co.paa",
			"RGAlphaHelmet\data\Kaska\Green\RGAlphaHelmet_co.paa",
			"RGAlphaHelmet\data\Kaska\Green\RGAlphaHelmet_co.paa"
		};
	};
};
	
	
	
	

 

 

class CfgSkeletons
{
	class Default
	{
		isDiscrete = 0;
		skeletonInherit = "";
		skeletonBones[] = {};
	};
	class DayzTemporarySkeleton : Default
	{
		isDiscrete = 0;
		skeletonInherit = "";
		SkeletonBones[]=
	{
			"pelvis","",
			"launcher","pelvis",
			"weapon","pelvis",
			"propweaponbody","weapon",
			"propweaponslide","propweaponbody",
			"propweaponmag","propweaponbody",
			"propweapon01","propweaponbody",
			"propweapon02","propweaponbody",
			"propweapon03","propweaponbody",
			"propweapon04","propweaponbody",
			"propweapon05","propweaponbody",
			"propweapon06","propweaponbody",
			"propweapon07","propweaponbody",
			"propweapon08","propweaponbody",
			"propweapon09","propweaponbody",
			"propweapon10","propweaponbody",
			"lefthipextra","pelvis",
			"righthipextra","pelvis",
			"propbeltleft","pelvis",
			"propbeltright","pelvis",
			"propbeltcenter","pelvis",
			"turningaxis","pelvis",
			"propbackpackmain","pelvis",
			"propbackpacktop","propbackpackmain",
			"propbackpackextra","propbackpackmain",
			"propbackpackleft","propbackpackmain",
			"propbackpackright","propbackpackmain",
			"spine","pelvis",
			"spine1","spine",
			"proprifleunderarm","spine1",
			"spine2","spine1",
			"proprifleback","spine2",
			"propvestleft","spine2",
			"propvestright","spine2",
			"propvestfront","spine2",
			"propvestlower","propvestfront",
			"spine3","spine2",
			"propvestupper","spine3",
			"propvestback","spine3",
			"neck","spine3",
			"neck1","neck",
			"head","neck1",
			"prophelmet","head",
			"prophelmetvisor","prophelmet",
			"propmouth","head",
			"propmask","head",
			"propglasses","head",
			"prophelmetchin","head",
			"propcamera1st","head",
			"headcutscene","head",
			"eyeleft","head",
			"eyeright","head",
			"face_browfrontleft","head",
			"face_browfrontright","head",
			"face_browmiddle","head",
			"face_browsideleft","head",
			"face_browsideright","head",
			"face_cornerleft","head",
			"face_cornerright","head",
			"face_eyelidlowerleft","head",
			"face_eyelidlowerright","head",
			"face_eyelids","head",
			"face_eyelidupperleft","head",
			"face_eyelidupperright","head",
			"face_forehead","head",
			"face_cheekfrontleft","head",
			"face_cheekfrontright","head",
			"face_cheeksideleft","head",
			"face_cheeksideright","head",
			"face_cheekupperleft","head",
			"face_cheekupperright","head",
			"face_chin","head",
			"face_chopleft","head",
			"face_chopright","head",
			"face_jawbone","head",
			"face_jowl","head",
			"face_liplowerleft","head",
			"face_liplowermiddle","head",
			"face_liplowerright","head",
			"face_lipupperleft","head",
			"face_lipuppermiddle","head",
			"face_lipupperright","head",
			"face_nostrilleft","head",
			"face_nostrilright","head",
			"face_tongue","head",
			"beard","head",
			"hair","head",
			"leftshoulder","spine3",
			"leftarm","leftshoulder",
			"leftarmextra","leftarm",
			"leftarmroll","leftarm",
			"leftelbowextra","leftarmroll",
			"leftforearm","leftarmroll",
			"leftforearmextra","leftforearm",
			"leftforearmroll","leftforearm",
			"leftwristextra","leftforearmroll",
			"lefthand","leftforearmroll",
			"prophandl","lefthand",
			"lefthandring","lefthand",
			"lefthandring1","lefthandring",
			"lefthandring2","lefthandring1",
			"lefthandring3","lefthandring2",
			"lefthandpinky1","lefthandring",
			"lefthandpinky2","lefthandpinky1",
			"lefthandpinky3","lefthandpinky2",
			"lefthandmiddle1","lefthand",
			"lefthandmiddle2","lefthandmiddle1",
			"lefthandmiddle3","lefthandmiddle2",
			"lefthandindex1","lefthand",
			"lefthandindex2","lefthandindex1",
			"lefthandindex3","lefthandindex2",
			"lefthandthumb1","lefthand",
			"lefthandthumb2","lefthandthumb1",
			"lefthandthumb3","lefthandthumb2",
			"rightshoulder","spine3",
			"rightarm","rightshoulder",
			"rightarmextra","rightarm",
			"rightarmroll","rightarm",
			"rightelbowextra","rightarmroll",
			"rightforearm","rightarmroll",
			"rightforearmextra","rightforearm",
			"rightforearmroll","rightforearm",
			"rightwristextra","rightforearmroll",
			"righthand","rightforearmroll",
			"prophandr","righthand",
			"righthandring","righthand",
			"righthandring1","righthandring",
			"righthandring2","righthandring1",
			"righthandring3","righthandring2",
			"righthandpinky1","righthandring",
			"righthandpinky2","righthandpinky1",
			"righthandpinky3","righthandpinky2",
			"righthandmiddle1","righthand",
			"righthandmiddle2","righthandmiddle1",
			"righthandmiddle3","righthandmiddle2",
			"righthandindex1","righthand",
			"righthandindex2","righthandindex1",
			"righthandindex3","righthandindex2",
			"righthandthumb1","righthand",
			"righthandthumb2","righthandthumb1",
			"righthandthumb3","righthandthumb2",
			"leftupleg","pelvis",
			"leftuplegroll","leftupleg",
			"propthighleft","leftupleg",
			"leftkneeextra","propthighleft",
			"leftleg","propthighleft",
			"leftlegroll","leftleg",
			"leftfoot","leftlegroll",
			"lefttoebase","leftfoot",
			"rightupleg","pelvis",
			"rightuplegroll","rightupleg",
			"propthighright","rightupleg",
			"rightkneeextra","propthighright",
			"rightleg","propthighright",
			"rightlegroll","rightleg",
			"rightfoot","rightlegroll",
			"righttoebase","rightfoot",
			"camera","",
			"righthand_dummy","",
		};
	};
};
class CfgModels
{
	class Default
	{
		sections[] = {};
		sectionsInherit ="";
		skeletonName = "";
	};
	class RGAlphaHelmet_m : Default
	{
		
		skeletonName="DayzTemporarySkeleton";
		sectionsInherit="";
		sections[]=
		{
			"zbytek",	
			"camomale",
			"camofemale",
			
		};
		
	};
	class RGAlphaHelmet_g : Default
	{
		
		skeletonName="";
		sections[]=
		{
			"zbytek",				
			"camoground",
		};
		
	};
	
	class RGAlphaHelmet_Zabralo_g : Default
	{
		
		skeletonName="";
		sections[]=
		{
			"zbytek",				
			"camoground",
			"camomale",
			"camofemale",
		};
		
	};
};

 

Пожалуйста, Войдите или Зарегистрируйтесь, чтобы увидеть это: Вложение.

Пожалуйста, Войдите или Зарегистрируйтесь, чтобы увидеть это: Вложение.

Пожалуйста, Войдите или Зарегистрируйтесь, чтобы увидеть это: Вложение.

Больше скринов система не даёт загрузить.

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 1

class CfgNonAIVehicles {
    class ProxyAttachment;  
    
    class ProxyНАЗВАНИЕ 3Д МОДЕЛИ : ProxyAttachment {
        scope = 2;
        inventorySlot = "ИМЯ СЛОТА ДЛЯ ПРОКСИ";
        model = "ПУТЬ ДО ПРОКСИ\НАЗВАНИЕ 3Д МОДЕЛИ.p3d";
    };
};

 

Название Прокси и имя модели должны быть идентичными. Выделил красным цветом

Share this post


Link to post
Share on other sites







  • 0

В конфиге не прописаны прокси визора. Поэтому спавнится вместе с шлемом.

Прокси визора должна быть привязана к кости "head", как и сам шлем. 

Share this post


Link to post
Share on other sites
  • 0
11 минут назад, Zenith сказал:

В конфиге не прописаны прокси визора. Поэтому спавнится вместе с шлемом.

Прокси визора должна быть привязана к кости "head", как и сам шлем. 

Прокси визора привязана к кости head, но потом ещё раз проверю на всякий. А вот то, что в конфиге надо прописать прокси визора, как должно выглядеть? Я уже всё кучу конфигов перекопал и ничего не нашёл годного. Что-то упускаю. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.