mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-21 23:50:48 +03:00
Updating Clothes
- Update and rebuild all skins. This removes unwanted behavior of AIs and players. - Remove skins from CfgSurvival and add the needed information to CfgMagazines. We do not need two different configs to handle that.
This commit is contained in:
@@ -42,14 +42,14 @@ if ( (isClass(_config >> _itemNew)) ) then {
|
||||
if ( (isClass(_config >> _item)) ) then {
|
||||
// Current sex of player skin
|
||||
|
||||
_currentSex = getText (configFile >> "CfgSurvival" >> "Skins" >> _itemNew >> "sex");
|
||||
_currentSex = getText (configFile >> "CfgMagazines" >> _itemNew >> "sex");
|
||||
// Sex of new skin
|
||||
_newSex = getText (configFile >> "CfgSurvival" >> "Skins" >> _item >> "sex");
|
||||
_newSex = getText (configFile >> "CfgMagazines" >> _item >> "sex");
|
||||
//diag_log ("Debug Clothes: sex In: " + str(_currentSex) + " Out: " + str(_newSex));
|
||||
|
||||
if(_currentSex == _newSex) then {
|
||||
// Get model name from config
|
||||
_model = getText (configFile >> "CfgSurvival" >> "Skins" >> _item >> "playerModel");
|
||||
_model = getText (configFile >> "CfgMagazines" >> _item >> "playerModel");
|
||||
if (_model != _myModel) then {
|
||||
if(([player,_item] call BIS_fnc_invRemove) == 1) then {
|
||||
player addMagazine _itemNew;
|
||||
|
||||
Reference in New Issue
Block a user