mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-21 10:56:29 +03:00
Fix autorun freeze when spamming key
This commit is contained in:
@@ -155,7 +155,7 @@ if (!isDedicated) then {
|
||||
player_checkRecipe = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_checkRecipe.sqf";
|
||||
|
||||
// EPOCH ADDITIONS
|
||||
dayz_autoRunOff = {dayz_autoRun = false; terminate dayz_autoRunThread; player playActionNow "Stop";};
|
||||
dayz_autoRunOff = {dayz_autoRun = false; terminate dayz_autoRunThread; if (speed player > 0) then {player playActionNow "Stop"};};
|
||||
dog_findTargetAgent = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\dog_findTargetAgent.sqf";
|
||||
dze_deathMessage = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\dze_deathMessage.sqf";
|
||||
dze_filterCheats = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_filterCheats.sqf";
|
||||
|
||||
@@ -1074,12 +1074,14 @@ class FSM
|
||||
"} else {" \n
|
||||
" _currentWpn = ""Makarov"";" \n
|
||||
" _currentAnim = ""aidlpercmstpsraswpstdnon_player_idlesteady02"";" \n
|
||||
" //Prevent fresh spawns running on login when they died running, switchMove does not stop it" \n
|
||||
" disableUserInput true;" \n
|
||||
" player playActionNow 'Stop';" \n
|
||||
" disableUserInput false;" \n
|
||||
" disableUserInput true;" \n
|
||||
" disableUserInput false;" \n
|
||||
" if (speed player > 0) then {" \n
|
||||
" //Prevent fresh spawns running on login when they died running, switchMove does not stop it" \n
|
||||
" disableUserInput true;" \n
|
||||
" player playActionNow 'Stop';" \n
|
||||
" disableUserInput false;" \n
|
||||
" disableUserInput true;" \n
|
||||
" disableUserInput false;" \n
|
||||
" };" \n
|
||||
"};" \n
|
||||
"" \n
|
||||
"reload player;" \n
|
||||
|
||||
Reference in New Issue
Block a user