diff --git a/CHANGE LOG 1.0.6.txt b/CHANGE LOG 1.0.6.txt index d4d9f8555..37dec4d64 100644 --- a/CHANGE LOG 1.0.6.txt +++ b/CHANGE LOG 1.0.6.txt @@ -11,6 +11,7 @@ [NEW] Optional news/rules feed on player login from DayZ Mod, set dayz_enableRules in init.sqf #1673 @ebaydayz [NEW] Weapon switch hotkeys (1 = primary, 2 = pistol, 3 = melee) from DayZ Mod #1673 @ebaydayz [NEW] Added waves effect during stormy weather #974 @FramedYannick @ebaydayz +[NEW] Optional variable to restrict wearable clothes. Add DZE_RestrictSkins to init.sqf #1560 @BetterDeadThanZed @ebaydayz [CHANGED] An infection chance of -1 disables self-transfusion infection. 0 is always infected. (DZE_selfTransfuse_Values) @icomrade [CHANGED] Removed weapons from Traders hands and made them stand with arms by their side. @SilvDev diff --git a/SQF/dayz_code/actions/player_wearClothes.sqf b/SQF/dayz_code/actions/player_wearClothes.sqf index 41846d15d..31f354a27 100644 --- a/SQF/dayz_code/actions/player_wearClothes.sqf +++ b/SQF/dayz_code/actions/player_wearClothes.sqf @@ -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"; diff --git a/SQF/dayz_code/compile/player_humanityMorph.sqf b/SQF/dayz_code/compile/player_humanityMorph.sqf index cc0469b4f..a490247d4 100644 --- a/SQF/dayz_code/compile/player_humanityMorph.sqf +++ b/SQF/dayz_code/compile/player_humanityMorph.sqf @@ -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; diff --git a/SQF/dayz_code/init/variables.sqf b/SQF/dayz_code/init/variables.sqf index 0f2e67457..f6425eccf 100644 --- a/SQF/dayz_code/init/variables.sqf +++ b/SQF/dayz_code/init/variables.sqf @@ -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]; diff --git a/SQF/dayz_epoch_b/stringtable.xml b/SQF/dayz_epoch_b/stringtable.xml index ae50ec619..a8ab0b564 100644 --- a/SQF/dayz_epoch_b/stringtable.xml +++ b/SQF/dayz_epoch_b/stringtable.xml @@ -6074,6 +6074,16 @@ %1 est déjà dans votre inventaire. Déposer sur le terrain! %1 je již ve vašem inventáři. Pád na zem! + + \n\n%1 is restricted. + \n\n%1 is restricted. + \n\n%1 eingeschränkt. + \n\n%1 ограничивается. + + \n\n%1 beperkt. + \n\n%1 est restreint. + \n\n%1 je omezeno. + Repair Vehicle Repair Vehicle