From 9907889e23f15695061f209081c0cc6e488344fb Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Wed, 2 Oct 2013 15:48:22 -0500 Subject: [PATCH] should increase timer each time after lockout --- SQF/dayz_code/compile/player_unlockDoor.sqf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/compile/player_unlockDoor.sqf b/SQF/dayz_code/compile/player_unlockDoor.sqf index 48623d4bd..944797344 100644 --- a/SQF/dayz_code/compile/player_unlockDoor.sqf +++ b/SQF/dayz_code/compile/player_unlockDoor.sqf @@ -48,11 +48,13 @@ if(!isNull dayz_selectedDoor) then { KeyCodeTry = KeyCodeTry + 1; - if(KeyCodeTry >= 5) then { + if (!isNil 'KeyCodeTryTimer') then {KeyCodeTryTimer = diag_tickTime+10;}; + + if(KeyCodeTry >= ((round(random 4)) + 4)) then { if (isNil 'KeyCodeTryTimer') then {KeyCodeTryTimer = diag_tickTime+10;}; - cutText ["Wrong code entered too many times wait 10 seconds", "PLAIN DOWN"]; + cutText ["Wrong code entered to many times wait 10 seconds", "PLAIN DOWN"]; _display = findDisplay 41144; _display closeDisplay 3000; };