mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Medical - Fix being stuck in unconscious animation after ragdoll (#7499)
This commit is contained in:
parent
3bc727f960
commit
bd040ca19d
@ -62,3 +62,11 @@
|
||||
[QEGVAR(medical,woundReceived), [_x, "Head", _lethality, _killer, "#vehiclecrash", [HITPOINT_INDEX_HEAD,1]], _x] call CBA_fnc_targetEvent;
|
||||
} forEach (crew _vehicle);
|
||||
}, true, ["ParachuteBase"]] call CBA_fnc_addClassEventHandler;
|
||||
|
||||
// Fixes units being stuck in unconscious animation when being knocked over by a PhysX object
|
||||
["CAManBase", "AnimDone", {
|
||||
params ["_unit", "_anim"];
|
||||
if (local _unit && {_anim == "unconscious" && {lifeState _unit != "INCAPACITATED"}}) then {
|
||||
[_unit, false] call FUNC(setUnconsciousAnim);
|
||||
};
|
||||
}] call CBA_fnc_addClassEventHandler;
|
||||
|
Loading…
x
Reference in New Issue
Block a user