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:
icomrade
2017-07-25 14:32:49 -04:00
parent db0ef1b744
commit 5acad04c43
2 changed files with 16 additions and 4 deletions

View File

@@ -128,9 +128,9 @@ if (isNil "keyboard_keys") then {
};};
};
_forcesave = {
dayz_lastCheckBit = diag_ticktime;
call player_forceSave;
call dayz_EjectPlayer;
if (diag_tickTime - dayz_lastSave > 10) then {
call player_forceSave;
};
};
_forcesave2 = {
if ((!isNull (findDisplay 106)) OR dialog) then {
@@ -300,7 +300,7 @@ if (isNil "keyboard_keys") then {
[actionKeys "Diary", _journal] call _addArray;
[actionKeys "NetworkStats", _journal] call _addArray;
[[DIK_F1], _muteSound] call _addArray;
//[[DIK_F4, DIK_TAB, DIK_DELETE], _forcesave] call _addArray;
[[DIK_F4, DIK_TAB, DIK_DELETE], _forcesave] call _addArray;
//[[DIK_F4, DIK_RMENU, DIK_LMENU,DIK_LSHIFT,DIK_RSHIFT,DIK_ESCAPE], _forcesave2] call _addArray;
[actionKeys "LeanLeft", _build_left ] call _addArray;
[actionKeys "LeanRight", _build_right ] call _addArray;