mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-12 03:02:56 +03:00
Add option to restrict wearable clothes
See #1560
Note: Already wearing check is not needed in player_humanityMorph
because it is already done in player_wearClothes. See:
0726311df5
This commit is contained in:
@@ -4,14 +4,16 @@ Added Female skin changes - DayZ Epoch - vbawol
|
||||
*/
|
||||
private ["_item","_onLadder","_hasclothesitem","_config","_text","_myModel","_itemNew","_currentSex","_newSex","_model","_playerNear"];
|
||||
|
||||
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_83") , "PLAIN DOWN"] };
|
||||
if (_this in DZE_RestrictSkins) exitWith { cutText [format[(localize "str_epoch_player_315"),_this], "PLAIN DOWN"] };
|
||||
|
||||
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_83"), "PLAIN DOWN"] };
|
||||
DZE_ActionInProgress = true;
|
||||
|
||||
_item = _this;
|
||||
call gear_ui_init;
|
||||
r_action_count = 0; //reset for strange glitch
|
||||
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
|
||||
if (_onLadder) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_player_21") , "PLAIN DOWN"]};
|
||||
if (_onLadder) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_player_21"), "PLAIN DOWN"]};
|
||||
|
||||
_hasclothesitem = _this in magazines player;
|
||||
_config = configFile >> "CfgMagazines";
|
||||
|
||||
@@ -3,8 +3,6 @@ _playerUID = _this select 0;
|
||||
_charID = _this select 1;
|
||||
_model = _this select 2;
|
||||
|
||||
if (typeOF player == _model) exitWith {cutText ['You already wear this Skin!', 'PLAIN'];};
|
||||
|
||||
_old = player;
|
||||
player allowDamage false;
|
||||
|
||||
|
||||
@@ -561,7 +561,9 @@ if (isNil "DZE_snapExtraRange") then {
|
||||
if (isNil "DZE_checkNearbyRadius") then {
|
||||
DZE_checkNearbyRadius = 30;
|
||||
};
|
||||
|
||||
if (isNil "DZE_RestrictSkins") then {
|
||||
DZE_RestrictSkins = [];
|
||||
};
|
||||
// needed on server
|
||||
if(isNil "DZE_PlotPole") then {
|
||||
DZE_PlotPole = [30,45];
|
||||
|
||||
Reference in New Issue
Block a user