From 634a01a8d3e415efc991b52e4cf6a7bda5433f72 Mon Sep 17 00:00:00 2001 From: ebayShopper Date: Wed, 17 Jan 2018 17:02:27 -0500 Subject: [PATCH] Block firing during unconscious wake up animation Vanilla commit: https://github.com/DayZMod/DayZ/commit/10cb55b8aa39a5e2be3c1969c5c24347aa9515ef --- SQF/dayz_code/compile/fn_unconscious.sqf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SQF/dayz_code/compile/fn_unconscious.sqf b/SQF/dayz_code/compile/fn_unconscious.sqf index 7a5e21367..c0de6e20b 100644 --- a/SQF/dayz_code/compile/fn_unconscious.sqf +++ b/SQF/dayz_code/compile/fn_unconscious.sqf @@ -90,6 +90,9 @@ if (player == vehicle player) then { "dynamicBlur" ppEffectAdjust [0]; "dynamicBlur" ppEffectCommit 5; "colorCorrections" ppEffectAdjust [1, 1, 0, [1, 1, 1, 0.0], [1, 1, 1, 1], [1, 1, 1, 1]];"colorCorrections" ppEffectCommit 5; +//Prevent firing while weapon is still shown on back. AmovPpneMstpSnonWnonDnon_healed has disableWeapons=0 in config (should be =1) +waitUntil {uiSleep 1; !(animationState player in ["ainjppnemstpsnonwnondnon_rolltofront","amovppnemstpsnonwnondnon_healed","amovppnemstpsnonwnondnon"])}; + //once more to be safe disableUserInput false; disableUserInput false; disableUserInput true; disableUserInput true;