Sync closeDisplay exit codes for easier scripts.txt filtering

This commit is contained in:
ebaydayz
2016-11-11 14:48:28 -05:00
parent 489e0bbc77
commit 88870a6b2a
23 changed files with 41 additions and 56 deletions

View File

@@ -30,7 +30,7 @@ if (!isNull dayz_selectedDoor) then {
if (_notNearestPlayer) then {
// close display since another player is closer
_display closeDisplay 3000;
_display closeDisplay 2;
localize "STR_EPOCH_ACTIONS_16" call dayz_rollingMessages;
} else {
// get object combination
@@ -58,7 +58,7 @@ if (!isNull dayz_selectedDoor) then {
[player,"combo_unlock",0,false] call dayz_zombieSpeak;
// close display
_display closeDisplay 3000;
_display closeDisplay 2;
// unlock if locked
if (_obj animationPhase "Open_hinge" == 0) then {
@@ -86,17 +86,17 @@ if (!isNull dayz_selectedDoor) then {
if (KeyCodeTry >= ((round(random 4)) + 4)) then {
if (isNil 'KeyCodeTryTimer') then {KeyCodeTryTimer = diag_tickTime+10;};
localize "str_epoch_player_19" call dayz_rollingMessages;
_display closeDisplay 3000;
_display closeDisplay 2;
};
if(_doorMethod == "Eye") then {
localize "STR_EPOCH_DOORACCESS_FAILURE" call dayz_rollingMessages;
_display closeDisplay 3000;
_display closeDisplay 2;
};
};
};
} else {
// close display since no target
_display closeDisplay 3000;
_display closeDisplay 2;
};
DZE_DYN_UnlockDoorInprogress = nil;