Add penalties for wrong safe/lockbox code

As per
6f072982c3 (diff-2b5340930b14ce1ae29d38ebc575c75a)
This commit is contained in:
oiad
2018-05-26 21:42:50 +12:00
parent efc57840d2
commit c3cbca144e
6 changed files with 39 additions and 21 deletions

View File

@@ -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";
};
};