From 59e3b07c36d6c78c794adf2d2431bca3fd05e0dc Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Mon, 28 Jun 2021 00:01:32 -0500 Subject: [PATCH] Common - Fix gesture anim lockout for some launchers (#8282) --- addons/common/XEH_postInit.sqf | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/addons/common/XEH_postInit.sqf b/addons/common/XEH_postInit.sqf index eec6bb45e2..1791b30dbf 100644 --- a/addons/common/XEH_postInit.sqf +++ b/addons/common/XEH_postInit.sqf @@ -420,13 +420,18 @@ GVAR(reloadMutex_lastMagazines) = []; private _gesture = getText (_wpnMzlConfig >> "reloadAction"); if (_gesture == "") exitWith {}; //Ignore weapons with no reload gesture (binoculars) private _isLauncher = _weapon isKindOf ["Launcher", configFile >> "CfgWeapons"]; - private _animConfig = ["CfgGesturesMale", "CfgMovesMaleSdr"] select _isLauncher; - private _duration = getNumber (configfile >> _animConfig >> "States" >> _gesture >> "speed"); + private _duration = 0; + if (_isLauncher) then { + _duration = getNumber (configfile >> "CfgMovesMaleSdr" >> "States" >> _gesture >> "speed"); + }; + if (_duration == 0) then { + _duration = getNumber (configfile >> "CfgGesturesMale" >> "States" >> _gesture >> "speed"); + }; if (_duration != 0) then { _duration = if (_duration < 0) then { abs _duration } else { 1 / _duration }; } else { - _duration = 3; + _duration = 6; }; TRACE_2("Reloading, blocking gestures",_weapon,_duration);