mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Use local version of setAnimSpeedCoef
This commit is contained in:
parent
940de99cc5
commit
36c22a9047
@ -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);
|
||||
};
|
||||
|
@ -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));
|
||||
};
|
||||
|
@ -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));
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user