From 36c22a90473fd0670ab97f3a373e4ae08493ff52 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Sun, 12 May 2019 15:36:18 -0500 Subject: [PATCH] Use local version of setAnimSpeedCoef --- addons/medical_treatment/functions/fnc_treatment.sqf | 2 +- addons/medical_treatment/functions/fnc_treatmentFailure.sqf | 2 +- addons/medical_treatment/functions/fnc_treatmentSuccess.sqf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/medical_treatment/functions/fnc_treatment.sqf b/addons/medical_treatment/functions/fnc_treatment.sqf index d7b1bede991..25f48245870 100644 --- a/addons/medical_treatment/functions/fnc_treatment.sqf +++ b/addons/medical_treatment/functions/fnc_treatment.sqf @@ -111,7 +111,7 @@ if (vehicle _medic == _medic && {_medicAnim != ""}) then { // Speed up animation based on treatment time (but cap max to prevent odd animiations/cam shake) private _animRatio = (_animDuration / _treatmentTime) min 3; TRACE_3("setAnimSpeedCoef",_animRatio,_animDuration,_treatmentTime); - [QEGVAR(common,setAnimSpeedCoef), [_medic, _animRatio]] call CBA_fnc_globalEvent; + _medic setAnimSpeedCoef _animRatio; if (!isNil QEGVAR(advanced_fatigue,setAnimExclusions)) then { EGVAR(advanced_fatigue,setAnimExclusions) pushBack QUOTE(ADDON); }; diff --git a/addons/medical_treatment/functions/fnc_treatmentFailure.sqf b/addons/medical_treatment/functions/fnc_treatmentFailure.sqf index ad6cf0495fe..0b4544b22cf 100644 --- a/addons/medical_treatment/functions/fnc_treatmentFailure.sqf +++ b/addons/medical_treatment/functions/fnc_treatmentFailure.sqf @@ -38,7 +38,7 @@ if (!isNil "_endInAnim") then { }; // Reset medic animation speed coefficient -[QEGVAR(common,setAnimSpeedCoef), [_medic, 1]] call CBA_fnc_globalEvent; +_medic setAnimSpeedCoef 1; if (!isNil QEGVAR(advanced_fatigue,setAnimExclusions)) then { EGVAR(advanced_fatigue,setAnimExclusions) deleteAt (EGVAR(advanced_fatigue,setAnimExclusions) find QUOTE(ADDON)); }; diff --git a/addons/medical_treatment/functions/fnc_treatmentSuccess.sqf b/addons/medical_treatment/functions/fnc_treatmentSuccess.sqf index dbac101f5c7..389e8804b25 100644 --- a/addons/medical_treatment/functions/fnc_treatmentSuccess.sqf +++ b/addons/medical_treatment/functions/fnc_treatmentSuccess.sqf @@ -33,7 +33,7 @@ if (!isNil "_endInAnim") then { }; // Reset medic animation speed coefficient -[QEGVAR(common,setAnimSpeedCoef), [_medic, 1]] call CBA_fnc_globalEvent; +_medic setAnimSpeedCoef 1; if (!isNil QEGVAR(advanced_fatigue,setAnimExclusions)) then { EGVAR(advanced_fatigue,setAnimExclusions) deleteAt (EGVAR(advanced_fatigue,setAnimExclusions) find QUOTE(ADDON)); };