mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +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:
@@ -11,6 +11,7 @@
|
|||||||
[NEW] Optional news/rules feed on player login from DayZ Mod, set dayz_enableRules in init.sqf #1673 @ebaydayz
|
[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] 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] 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] 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
|
[CHANGED] Removed weapons from Traders hands and made them stand with arms by their side. @SilvDev
|
||||||
|
|||||||
@@ -4,14 +4,16 @@ Added Female skin changes - DayZ Epoch - vbawol
|
|||||||
*/
|
*/
|
||||||
private ["_item","_onLadder","_hasclothesitem","_config","_text","_myModel","_itemNew","_currentSex","_newSex","_model","_playerNear"];
|
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;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
_item = _this;
|
_item = _this;
|
||||||
call gear_ui_init;
|
call gear_ui_init;
|
||||||
r_action_count = 0; //reset for strange glitch
|
r_action_count = 0; //reset for strange glitch
|
||||||
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
|
_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;
|
_hasclothesitem = _this in magazines player;
|
||||||
_config = configFile >> "CfgMagazines";
|
_config = configFile >> "CfgMagazines";
|
||||||
|
|||||||
@@ -3,8 +3,6 @@ _playerUID = _this select 0;
|
|||||||
_charID = _this select 1;
|
_charID = _this select 1;
|
||||||
_model = _this select 2;
|
_model = _this select 2;
|
||||||
|
|
||||||
if (typeOF player == _model) exitWith {cutText ['You already wear this Skin!', 'PLAIN'];};
|
|
||||||
|
|
||||||
_old = player;
|
_old = player;
|
||||||
player allowDamage false;
|
player allowDamage false;
|
||||||
|
|
||||||
|
|||||||
@@ -561,7 +561,9 @@ if (isNil "DZE_snapExtraRange") then {
|
|||||||
if (isNil "DZE_checkNearbyRadius") then {
|
if (isNil "DZE_checkNearbyRadius") then {
|
||||||
DZE_checkNearbyRadius = 30;
|
DZE_checkNearbyRadius = 30;
|
||||||
};
|
};
|
||||||
|
if (isNil "DZE_RestrictSkins") then {
|
||||||
|
DZE_RestrictSkins = [];
|
||||||
|
};
|
||||||
// needed on server
|
// needed on server
|
||||||
if(isNil "DZE_PlotPole") then {
|
if(isNil "DZE_PlotPole") then {
|
||||||
DZE_PlotPole = [30,45];
|
DZE_PlotPole = [30,45];
|
||||||
|
|||||||
@@ -6074,6 +6074,16 @@
|
|||||||
<French>%1 est déjà dans votre inventaire. Déposer sur le terrain!</French>
|
<French>%1 est déjà dans votre inventaire. Déposer sur le terrain!</French>
|
||||||
<Czech>%1 je již ve vašem inventáři. Pád na zem!</Czech>
|
<Czech>%1 je již ve vašem inventáři. Pád na zem!</Czech>
|
||||||
</Key>
|
</Key>
|
||||||
|
<Key ID="STR_EPOCH_PLAYER_315">
|
||||||
|
<Original>\n\n%1 is restricted.</Original>
|
||||||
|
<English>\n\n%1 is restricted.</English>
|
||||||
|
<German>\n\n%1 eingeschränkt.</German>
|
||||||
|
<Russian>\n\n%1 ограничивается.</Russian>
|
||||||
|
<!-- <Spanish></Spanish> -->
|
||||||
|
<Dutch>\n\n%1 beperkt.</Dutch>
|
||||||
|
<French>\n\n%1 est restreint.</French>
|
||||||
|
<Czech>\n\n%1 je omezeno.</Czech>
|
||||||
|
</Key>
|
||||||
<Key ID="STR_EPOCH_PLAYER_REPAIRV">
|
<Key ID="STR_EPOCH_PLAYER_REPAIRV">
|
||||||
<Original>Repair Vehicle</Original>
|
<Original>Repair Vehicle</Original>
|
||||||
<English>Repair Vehicle</English>
|
<English>Repair Vehicle</English>
|
||||||
|
|||||||
Reference in New Issue
Block a user