Skip to content

Commit

Permalink
dead bodies falling through the ground fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomcat-SG committed Dec 19, 2020
1 parent 446d7d9 commit 1a64d43
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions addons/circulation/functions/fnc_treatment.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1a64d43

Please sign in to comment.