From b609dcf5190293d6cd6bfe741b968889749042fe Mon Sep 17 00:00:00 2001 From: icomrade Date: Wed, 14 Sep 2016 18:01:18 -0400 Subject: [PATCH] Update fn_unconscious.sqf --- SQF/dayz_code/compile/fn_unconscious.sqf | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/SQF/dayz_code/compile/fn_unconscious.sqf b/SQF/dayz_code/compile/fn_unconscious.sqf index 1f210d08e..385a3f2a8 100644 --- a/SQF/dayz_code/compile/fn_unconscious.sqf +++ b/SQF/dayz_code/compile/fn_unconscious.sqf @@ -8,7 +8,6 @@ r_player_unconsciousInputDisabled = true; disableUserInput true; //only works if disableUserInput command is issued twice for some reason... disableUserInput true; -_inVeh = player != vehicle player; _start = diag_tickTime; _timeout = abs r_player_timeout; _short = _timeout < 4; @@ -26,7 +25,7 @@ _sandLevel = ctrlPosition ((uiNamespace getVariable 'DAYZ_GUI_waiting') displayC autoRunActive = false; -if (!_inVeh) then { +if (!(player != vehicle player)) then { player playAction "CanNotMove"; }; "dynamicBlur" ppEffectEnable true;"dynamicBlur" ppEffectAdjust [2]; "dynamicBlur" ppEffectCommit 0; @@ -76,7 +75,7 @@ r_player_unconsciousInProgress = false; 4 cutRsc ["default", "PLAIN",1]; -if (!_inVeh) then { +if (!(player != vehicle player)) then { [nil, player, rSWITCHMOVE, "AmovPpneMstpSnonWnonDnon_healed"] call RE; player SWITCHMOVE "AmovPpneMstpSnonWnonDnon_healed"; PVDZ_plr_SwitchMove = [player,"AmovPpneMstpSnonWnonDnon_healed"]; @@ -92,4 +91,4 @@ disableUserInput false; disableUserInput false; r_player_unconsciousInputDisabled = false; -//diag_log [ __FILE__, diag_tickTime, "done" ]; \ No newline at end of file +//diag_log [ __FILE__, diag_tickTime, "done" ];