Small AutoRun fixes

This commit is contained in:
He-Man 2018-01-19 16:14:21 +01:00
parent 1efca0123e
commit b743a9be31
3 changed files with 8 additions and 4 deletions

View File

@ -19,6 +19,9 @@
private["_canAutoRun","_currentPos"]; private["_canAutoRun","_currentPos"];
_canAutoRun = true; _canAutoRun = true;
if !(alive player) exitwith {
false
};
if !(istouchingground player) exitwith { if !(istouchingground player) exitwith {
false false
}; };

View File

@ -62,6 +62,8 @@ EPOCH_buildMode = 0;
EPOCH_snapDirection = 0; EPOCH_snapDirection = 0;
EPOCH_Target = objNull; EPOCH_Target = objNull;
EPOCH_IsAutoRunning = false;
// playerKilledScreen // playerKilledScreen
_playerKilledScreen = getText(_config >> "playerKilledScreen"); _playerKilledScreen = getText(_config >> "playerKilledScreen");
if (_playerKilledScreen isEqualTo "") then {_playerKilledScreen = "TapOut2"}; if (_playerKilledScreen isEqualTo "") then {_playerKilledScreen = "TapOut2"};

View File

@ -2,11 +2,10 @@
if (EPOCH_IsAutoRunning) then { if (EPOCH_IsAutoRunning) then {
if (call EPOCH_AutoRun_Check) then { if (call EPOCH_AutoRun_Check) then {
call EPOCH_AutoRun call EPOCH_AutoRun;
} }
else { else {
EPOCH_IsAutoRunning = false; EPOCH_IsAutoRunning = false;
player switchMove ""; player switchMove "";
["Autorun stopped",5] call Epoch_Message;
}; };
}; };