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  
SoarinSparkle

Ретекстур шмоток, неправильно отображается вещь

Код куртки:
(скрин ниже)


enum {
	DESTRUCTENGINE = 2,
	DESTRUCTDEFAULT = 6,
	DESTRUCTWRECK = 7,
	DESTRUCTTREE = 3,
	DESTRUCTTENT = 4,
	DESTRUCTNO = 0,
	DESTRUCTMAN = 5,
	DESTRUCTBUILDING = 1,
};

class CfgPatches {
	class DZ_Characters_Tops {
		units[] = {"Shirt_CheckRed", "Hoodie_Blue", "Hoodie_Black", "Hoodie_Brown", "Hoodie_Green", "Hoodie_Grey", "Hoodie_Red", "MaleTorso", "FemaleTorso"};
		weapons[] = {};
		requiredVersion = 0.1;
		requiredAddons[] = {"DZ_Characters"};
	};
};

class CfgVehicles {
	class Clothing_Base;	// External class reference
	
	class Clothing : Clothing_Base {};
	
	class OldestJacket_Colorbase : Clothing {
		displayName = "Модная курточка";
		descriptionShort = "Может носить только команда сервера";
		model = "\DZ\characters\tops\M65_Jacket_g.p3d";
		inventorySlot[] = {"Body"};
		itemInfo[] = {"Clothing", "Body"};
		weight = 30;
		itemSize[] = {4, 3};
		itemsCargoSize[] = {10, 100};
		quickBarBonus = 3;
		varWetMax = 0.49;
		heatIsolation = 0.9;
		repairableWithKits[] = {5, 2};
		repairCosts[] = {30.0, 25.0};
		soundAttType = "HeavyJacket";
		hiddenSelections[] = {"camoGround", "camoMale", "camoFemale"};
		
		class DamageSystem {
			class GlobalHealth {
				class Health {
					hitpoints = 150;
					healthLevels[] = {{1.0, {"DZ\characters\tops\Data\M65_Jacket.rvmat"}}, {0.7, {"DZ\characters\tops\Data\M65_Jacket.rvmat"}}, {0.5, {"DZ\characters\tops\Data\M65_Jacket_damage.rvmat"}}, {0.3, {"DZ\characters\tops\Data\M65_Jacket_damage.rvmat"}}, {0.0, {"DZ\characters\tops\Data\M65_Jacket_destruct.rvmat"}}};
				};
			};
			
			class GlobalArmor {
				class Melee {
					class Health {
						damage = 0.1;
					};
					
					class Blood {
						damage = 0.1;
					};
					
					class Shock {
						damage = 0.1;
					};
				};
				
				class Infected {
					class Health {
						damage = 0.9;
					};
					
					class Blood {
						damage = 0.8;
					};
					
					class Shock {
						damage = 0.9;
					};
				};
			};
		};

		class AnimEvents {
			class SoundWeapon {
				class pickUpItem {
					soundSet = "Shirt_pickup_SoundSet";
					id = 797;
				};
				
				class drop {
					soundset = "Shirt_drop_SoundSet";
					id = 898;
				};
			};
		};
	};
	
	class OldestJacket_Wolf : OldestJacket_Colorbase {
		scope = 2;
		descriptionShort = "Может носить только Wolf";
		visibilityModifier = 0.7;
		hiddenSelectionsTextures[] = {"OldestGearTops\data\M65_Jacket_Wolf.paa", "OldestGearTops\data\M65_Jacket_Wolf.paa", "OldestGearTops\data\M65_Jacket_Wolf.paa"};
	};
};

По аналогии делал перчатки, при этом перчатки отображаются правильно
 

// config.bin - 22:05:02 12/12/22, generated in 0.03 seconds
// Generated by unRap v1.06 by Kegetys
// Separate rootclasses: Disabled, Automatic comments: Enabled

enum {
	DESTRUCTENGINE = 2,
	DESTRUCTDEFAULT = 6,
	DESTRUCTWRECK = 7,
	DESTRUCTTREE = 3,
	DESTRUCTTENT = 4,
	DESTRUCTNO = 0,
	DESTRUCTMAN = 5,
	DESTRUCTBUILDING = 1,
};

class CfgPatches {
	class DZ_Characters_Gloves {
		units[] = {"MaleHands", "FemaleHands"};
		weapons[] = {};
		requiredVersion = 0.1;
		requiredAddons[] = {"DZ_Characters"};
	};
};

class CfgVehicles {
	class Clothing_Base;	// External class reference
	
	class Clothing : Clothing_Base {};
	
	class OldestGloves_Colorbase : Clothing {
		displayName = "Модные перчаточки";
		descriptionShort = "Может носить только команда сервера";
		model = "\DZ\characters\gloves\tactical_gloves_g.p3d";
		inventorySlot[] = {"Gloves"};
		simulation = "clothing";
		itemInfo[] = {"Clothing", "Gloves"};
		rotationFlags = 34;
		weight = 54;
		itemSize[] = {2, 2};
		varWetMax = 0.79;
		heatIsolation = 0.6;
		repairableWithKits[] = {5, 2};
		repairCosts[] = {30.0, 25.0};
		hiddenSelections[] = {"camoGround", "camoMale", "camoFemale", "personality"};
		
		class DamageSystem {
			class GlobalHealth {
				class Health {
					hitpoints = 165;
					healthLevels[] = {{1.0, {"DZ\Characters\gloves\data\TacticalGloves.rvmat"}}, {0.7, {"DZ\Characters\gloves\data\TacticalGloves.rvmat"}}, {0.5, {"DZ\Characters\gloves\data\TacticalGloves_damage.rvmat"}}, {0.3, {"DZ\Characters\gloves\data\TacticalGloves_damage.rvmat"}}, {0.0, {"DZ\Characters\gloves\data\TacticalGloves_destruct.rvmat"}}};
				};
			};
		};
		
		class ClothingTypes {
			male = "\DZ\characters\gloves\tactical_gloves_m.p3d";
			female = "\DZ\characters\gloves\tactical_gloves_f.p3d";
		};
		
		class AnimEvents {
			class SoundWeapon {
				class pickUpItem {
					soundSet = "WorkingGloves_pickup_SoundSet";
					id = 797;
				};
				
				class drop {
					soundset = "WorkingGloves_drop_SoundSet";
					id = 898;
				};
			};
		};
	};
	
	class TacticalGloves_OldestWolf : OldestGloves_Colorbase {
		scope = 2;
		descriptionShort = "Может носить только Wolf";
		visibilityModifier = 0.7;
		hiddenSelectionsTextures[] = {"OldestGearGloves\data\TacticalGlovesWolf.paa", "OldestGearGloves\data\TacticalGlovesWolf.paa", "OldestGearGloves\data\TacticalGlovesWolf.paa"};
	};

};

Подскажите где могут быть ошибки, или я может быть делаю неправильно? Только начал разбираться в ретекстуре

 

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

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

А модельки одежды на персонаже кто будет указывать? Добавь это в OldestJacket_Colorbase

class ClothingTypes
        {
            male="\DZ\characters\tops\M65_Jacket_m.p3d";
            female="\DZ\characters\tops\M65_Jacket_f.p3d";
        };

 

Share this post


Link to post
Share on other sites



  • 0
31 минуту назад, AlAzrael сказал:

А модельки одежды на персонаже кто будет указывать? Добавь это в OldestJacket_Colorbase

class ClothingTypes         {             male="\DZ\characters\tops\M65_Jacket_m.p3d";             female="\DZ\characters\tops\M65_Jacket_f.p3d";         };


class ClothingTypes
        {
            male="\DZ\characters\tops\M65_Jacket_m.p3d";
            female="\DZ\characters\tops\M65_Jacket_f.p3d";
        };

 

Благодарю, помогло

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.