mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix double weapon switch for standing treatment
This commit is contained in:
@ -181,8 +181,12 @@ if (vehicle _caller == _caller && {_callerAnim != ""}) then {
|
|||||||
[_caller, "", 0] call EFUNC(common,doAnimation);
|
[_caller, "", 0] call EFUNC(common,doAnimation);
|
||||||
};
|
};
|
||||||
|
|
||||||
if (stance _caller == "STAND") then {
|
if ((stance _caller) == "STAND") then {
|
||||||
_caller setvariable [QGVAR(treatmentPrevAnimCaller), "amovpknlmstpsraswrfldnon"];
|
switch (_wpn) do {//If standing, end in a crouched animation based on their current weapon
|
||||||
|
case ("rfl"): {_caller setvariable [QGVAR(treatmentPrevAnimCaller), "AmovPknlMstpSrasWrflDnon"];};
|
||||||
|
case ("pst"): {_caller setvariable [QGVAR(treatmentPrevAnimCaller), "AmovPknlMstpSrasWpstDnon"];};
|
||||||
|
case ("non"): {_caller setvariable [QGVAR(treatmentPrevAnimCaller), "AmovPknlMstpSnonWnonDnon"];};
|
||||||
|
};
|
||||||
} else {
|
} else {
|
||||||
_caller setvariable [QGVAR(treatmentPrevAnimCaller), animationState _caller];
|
_caller setvariable [QGVAR(treatmentPrevAnimCaller), animationState _caller];
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user