Block firing during unconscious wake up animation

Vanilla commit:
10cb55b8aa
This commit is contained in:
ebayShopper
2018-01-17 17:02:27 -05:00
parent 42e519a92e
commit 634a01a8d3

View File

@@ -90,6 +90,9 @@ if (player == vehicle player) then {
"dynamicBlur" ppEffectAdjust [0]; "dynamicBlur" ppEffectCommit 5; "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; "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 //once more to be safe
disableUserInput false; disableUserInput false; disableUserInput false; disableUserInput false;
disableUserInput true; disableUserInput true; disableUserInput true; disableUserInput true;