mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Small AutoRun fixes
This commit is contained in:
parent
1efca0123e
commit
b743a9be31
@ -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
|
||||||
};
|
};
|
||||||
|
@ -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"};
|
||||||
|
@ -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;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
Loading…
Reference in New Issue
Block a user