From 1a64d439cf333e0e6bfffc708e8144a4f2703c71 Mon Sep 17 00:00:00 2001 From: Tom Date: Sat, 19 Dec 2020 23:30:21 +0100 Subject: [PATCH] dead bodies falling through the ground fixed --- .../circulation/functions/fnc_treatment.sqf | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/addons/circulation/functions/fnc_treatment.sqf b/addons/circulation/functions/fnc_treatment.sqf index 182f64781..0f7c7ede3 100644 --- a/addons/circulation/functions/fnc_treatment.sqf +++ b/addons/circulation/functions/fnc_treatment.sqf @@ -55,19 +55,21 @@ private _userAndItem = if (GET_NUMBER_ENTRY(_config >> "consumeItem") == 1) then _userAndItem params ["_itemUser", "_usedItem"]; // Patient Animation Added from Old Ace -private _patientAnim = getText (_config >> "animationPatient"); -if (_patient getVariable ["ACE_isUnconscious", false]) then { - if !(animationState _patient in (getArray (_config >> "animationPatientUnconsciousExcludeOn"))) then { - _patientAnim = getText (_config >> "animationPatientUnconscious"); - }; -}; - -if (_medic != _patient && {vehicle _patient == _patient} && {_patientAnim != ""}) then { - if (_patient getVariable ["ACE_isUnconscious", false]) then { - [_patient, _patientAnim, 2] call ace_common_fnc_doAnimation; - } else { - [_patient, _patientAnim, 1] call ace_common_fnc_doAnimation; - }; +if (alive _patient) then { + private _patientAnim = getText (_config >> "animationPatient"); + if (_patient getVariable ["ACE_isUnconscious", false]) then { + if !(animationState _patient in (getArray (_config >> "animationPatientUnconsciousExcludeOn"))) then { + _patientAnim = getText (_config >> "animationPatientUnconscious"); + }; + }; + + if (_medic != _patient && {vehicle _patient == _patient} && {_patientAnim != ""}) then { + if (_patient getVariable ["ACE_isUnconscious", false]) then { + [_patient, _patientAnim, 2] call ace_common_fnc_doAnimation; + } else { + [_patient, _patientAnim, 1] call ace_common_fnc_doAnimation; + }; + }; }; //Old Ace Ending here