mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 04:23:13 +03:00
should fix #1938
Also prevents logout on onPause conditions, i.e. logout if in combat, another player is near, or a zombie is near
This commit is contained in:
@@ -34,16 +34,28 @@ while {(!isNull _display) && !r_player_dead} do {
|
||||
_btnAbort ctrlEnable false;
|
||||
_btnAbort ctrlSetText format["%1 (in 10)", _btnAbortText];
|
||||
[localize "str_abort_playerclose",1] call dayz_rollingMessages;
|
||||
if (TimeOutDisplayed) then {
|
||||
_display closeDisplay 2;
|
||||
closeDialog 2;
|
||||
};
|
||||
};
|
||||
case (_zedCheck) : {
|
||||
_btnAbort ctrlEnable false;
|
||||
_btnAbort ctrlSetText format["%1 (in 10)", _btnAbortText];
|
||||
[localize "str_abort_zedsclose",1] call dayz_rollingMessages;
|
||||
if (TimeOutDisplayed) then {
|
||||
_display closeDisplay 2;
|
||||
closeDialog 2;
|
||||
};
|
||||
};
|
||||
case (_inCombat) : {
|
||||
_btnAbort ctrlEnable false;
|
||||
_btnAbort ctrlSetText format["%1 (in %2)", _btnAbortText, ceil (_timeout - diag_tickTime)];
|
||||
[localize "str_abort_playerincombat",1] call dayz_rollingMessages;
|
||||
if (TimeOutDisplayed) then {
|
||||
_display closeDisplay 2;
|
||||
closeDialog 2;
|
||||
};
|
||||
};
|
||||
case (isInTraderCity) : {
|
||||
_btnAbort ctrlEnable false;
|
||||
|
||||
Reference in New Issue
Block a user