Fix autorun freeze when spamming key

This commit is contained in:
ebayShopper
2017-12-21 13:23:23 -05:00
parent 76cff85fc1
commit 2c83f2dfe4
3 changed files with 10 additions and 7 deletions

View File

@@ -94,6 +94,7 @@
[FIXED] Death camera height incorrect when player dies above terrain level
[FIXED] Duplicate weapon error when player dies with the same weapon in hands and on back
[FIXED] Vehicle getOut event handler no longer runs on M240 Nest and other static weapons.
[FIXED] Autorun no longer freezes players when they spam the key or attempt to reactivate it near a body of water.
[NOTE] Fixes below were included in hotfix 1.0.6.1A (March 10th 2017) and are now in the default files.
[FIXED] Fixed food and drink going down 10x faster from melee and other "working" actions.

View File

@@ -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";

View File

@@ -1074,6 +1074,7 @@ class FSM
"} else {" \n
" _currentWpn = ""Makarov"";" \n
" _currentAnim = ""aidlpercmstpsraswpstdnon_player_idlesteady02"";" \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
@@ -1081,6 +1082,7 @@ class FSM
" disableUserInput true;" \n
" disableUserInput false;" \n
" };" \n
"};" \n
"" \n
"reload player;" \n
"" \n