mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
reworked wearClothes to allow male/female skins
This commit is contained in:
@@ -24,13 +24,20 @@ if (vehicle player != player) exitWith {cutText ["You may not change clothes whi
|
|||||||
_myModel = (typeOf player);
|
_myModel = (typeOf player);
|
||||||
_itemNew = "Skin_" + _myModel;
|
_itemNew = "Skin_" + _myModel;
|
||||||
|
|
||||||
|
diag_log ("Debug Clothes: model In: " + str(_itemNew) + " Out: " + str(_item));
|
||||||
|
|
||||||
|
|
||||||
if ( (isClass(_config >> _itemNew)) ) then {
|
if ( (isClass(_config >> _itemNew)) ) then {
|
||||||
if ( (isClass(_config >> _item)) ) then {
|
if ( (isClass(_config >> _item)) ) then {
|
||||||
// Current sex of player skin
|
// Current sex of player skin
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
_currentSex = getText (configFile >> "CfgSurvival" >> "Skins" >> _itemNew >> "sex");
|
_currentSex = getText (configFile >> "CfgSurvival" >> "Skins" >> _itemNew >> "sex");
|
||||||
// Sex of new skin
|
// Sex of new skin
|
||||||
_newSex = getText (configFile >> "CfgSurvival" >> "Skins" >> _item >> "sex");
|
_newSex = getText (configFile >> "CfgSurvival" >> "Skins" >> _item >> "sex");
|
||||||
|
diag_log ("Debug Clothes: sex In: " + str(_currentSex) + " Out: " + str(_newSex));
|
||||||
|
|
||||||
if(_currentSex == _newSex) then {
|
if(_currentSex == _newSex) then {
|
||||||
// Get model name from config
|
// Get model name from config
|
||||||
_model = getText (configFile >> "CfgSurvival" >> "Skins" >> _item >> "playerModel");
|
_model = getText (configFile >> "CfgSurvival" >> "Skins" >> _item >> "playerModel");
|
||||||
|
|||||||
@@ -273,6 +273,23 @@ class CfgSurvival {
|
|||||||
sex = "male";
|
sex = "male";
|
||||||
playerModel = "Rocker2_DZ";
|
playerModel = "Rocker2_DZ";
|
||||||
};
|
};
|
||||||
|
class Skin_Bandit1_DZ: Default {
|
||||||
|
sex = "male";
|
||||||
|
playerModel = "Bandit1_DZ";
|
||||||
|
};
|
||||||
|
class Skin_BanditW1_DZ: Default {
|
||||||
|
sex = "female";
|
||||||
|
playerModel = "BanditW1_DZ";
|
||||||
|
};
|
||||||
|
class Skin_SurvivorW2_DZ: Default {
|
||||||
|
sex = "female";
|
||||||
|
playerModel = "SurvivorW2_DZ";
|
||||||
|
};
|
||||||
|
class Skin_SurvivorW3_DZ: Default {
|
||||||
|
sex = "female";
|
||||||
|
playerModel = "SurvivorW3_DZ";
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1085,7 +1085,30 @@ class CfgMagazines
|
|||||||
displayName = "Rocker Outfit";
|
displayName = "Rocker Outfit";
|
||||||
descriptionShort = "Rebel Uniform";
|
descriptionShort = "Rebel Uniform";
|
||||||
};
|
};
|
||||||
|
class Skin_Bandit1_DZ: SkinBase
|
||||||
|
{
|
||||||
|
scope = 2;
|
||||||
|
displayName = "Bandit Outfit";
|
||||||
|
descriptionShort = "Bandit Outfit";
|
||||||
|
};
|
||||||
|
class Skin_BanditW1_DZ: SkinBase
|
||||||
|
{
|
||||||
|
scope = 2;
|
||||||
|
displayName = "Bandit (female)";
|
||||||
|
descriptionShort = "Bandit (female)";
|
||||||
|
};
|
||||||
|
class Skin_SurvivorW3_DZ: SkinBase
|
||||||
|
{
|
||||||
|
scope = 2;
|
||||||
|
displayName = "European (female)";
|
||||||
|
descriptionShort = "European (female)";
|
||||||
|
};
|
||||||
|
class Skin_SurvivorW2_DZ: SkinBase
|
||||||
|
{
|
||||||
|
scope = 2;
|
||||||
|
displayName = "Civilian (female)";
|
||||||
|
descriptionShort = "Civilian (female)";
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1566,12 +1566,20 @@ class CfgVehicles
|
|||||||
{ "sprint",
|
{ "sprint",
|
||||||
{ "\ca\sounds\Characters\Noises\Equipment\civil-equipment-sprint-08",0.0562341,1,20 } }};
|
{ "\ca\sounds\Characters\Noises\Equipment\civil-equipment-sprint-08",0.0562341,1,20 } }};
|
||||||
};
|
};
|
||||||
hiddenSelections[] = {};
|
hiddenSelections[] = {"Camo"};
|
||||||
|
hiddenSelectionsTextures[] = {"\ca\characters_e\woman\baker\data\baker_co.paa"};
|
||||||
};
|
};
|
||||||
class BanditW1_DZ: SurvivorW2_DZ
|
class BanditW1_DZ: SurvivorW2_DZ
|
||||||
{
|
{
|
||||||
side = 1;
|
side = 1;
|
||||||
model = "\dayz\characters\woman_bandit";
|
model = "\dayz\characters\woman_bandit";
|
||||||
|
hiddenSelections[] = {"Camo"};
|
||||||
|
hiddenSelectionsTextures[] = {"\ca\characters_e\woman\baker\data\baker_co.paa"};
|
||||||
|
};
|
||||||
|
class SurvivorW3_DZ: SurvivorW2_DZ
|
||||||
|
{
|
||||||
|
hiddenSelections[] = {"Camo"};
|
||||||
|
hiddenSelectionsTextures[] = {"\ca\characters_e\Woman\Baker\Data\european_woman_01_co.paa"};
|
||||||
};
|
};
|
||||||
class Citizen1;
|
class Citizen1;
|
||||||
class PZombie_VB: Citizen1
|
class PZombie_VB: Citizen1
|
||||||
|
|||||||
Reference in New Issue
Block a user