mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-21 23:50:48 +03:00
Add penalties for wrong safe/lockbox code
As per
6f072982c3 (diff-2b5340930b14ce1ae29d38ebc575c75a)
This commit is contained in:
@@ -5,13 +5,17 @@ dayz_actionInProgress = true;
|
||||
|
||||
dayz_selectedVault = _this select 3;
|
||||
dayz_combination = "";
|
||||
|
||||
if(!isNull dayz_selectedVault) then {
|
||||
|
||||
if (dayz_lastCodeFail > diag_tickTime) exitWith {
|
||||
dayz_actionInProgress = false;
|
||||
format [localize "STR_EPOCH_PLAYER_19_WAIT",round(dayz_lastCodeFail - diag_tickTime)] call dayz_rollingMessages;
|
||||
};
|
||||
|
||||
if (!isNull dayz_selectedVault) then {
|
||||
if ((typeOf dayz_selectedVault) == "VaultStorageLocked" || (typeOf dayz_selectedVault) == "VaultStorage") then {
|
||||
_ok = createdialog "SafeKeyPad";
|
||||
_ok = createDialog "SafeKeyPad";
|
||||
} else {
|
||||
_ok = createdialog "KeypadUI";
|
||||
_ok = createDialog "KeypadUI";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user