mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-08-12 18:43:18 +03:00
Prevent spamming change clothes
Vanilla development commit: https://github.com/DayZMod/DayZ/commit/98733d37abf14e3dca92fe62846761b662fabf18
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
if (dayz_lastClothesChange + 5 > diag_tickTime) exitWith {localize "str_player_actionslimit" call dayz_rollingMessages;};
|
||||||
|
dayz_lastClothesChange = diag_tickTime;
|
||||||
|
|
||||||
if (_this in DZE_RestrictSkins) exitWith { format[localize "str_epoch_player_315",_this] call dayz_rollingMessages; };
|
if (_this in DZE_RestrictSkins) exitWith { format[localize "str_epoch_player_315",_this] call dayz_rollingMessages; };
|
||||||
if (DZE_ActionInProgress) exitWith {localize "str_epoch_player_83" call dayz_rollingMessages;};
|
if (DZE_ActionInProgress) exitWith {localize "str_epoch_player_83" call dayz_rollingMessages;};
|
||||||
DZE_ActionInProgress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|||||||
@@ -563,6 +563,7 @@ if (!isDedicated) then {
|
|||||||
dayz_temperaturmin = 27; //TeeChange
|
dayz_temperaturmin = 27; //TeeChange
|
||||||
|
|
||||||
//player special variables
|
//player special variables
|
||||||
|
dayz_lastClothesChange = 0;
|
||||||
dayZ_lastPlayerUpdate = 0;
|
dayZ_lastPlayerUpdate = 0;
|
||||||
dayz_hunger = 0;
|
dayz_hunger = 0;
|
||||||
dayz_thirst = 0;
|
dayz_thirst = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user