Skip to content

Commit

Permalink
Update fnc_isInStableCondition.sqf
Browse files Browse the repository at this point in the history
  • Loading branch information
dgibso29 committed Jan 5, 2022
1 parent ca2d59b commit b30de99
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions addons/medical_status/functions/fnc_isInStableCondition.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ private _requiredBloodVolume = DEFAULT_BLOOD_VOLUME * (EGVAR(medical_treatment,m
if (GET_BLOOD_VOLUME(_unit) < _requiredBloodVolume) exitWith {false};

if (EGVAR(medical_treatment,allowPainPAK) == 0 && { IS_IN_PAIN(_unit) }) exitWith {false};
if (EGVAR(medical_treatment,allowFracturesPAK) == 0 && { !(GET_FRACTURES(_unit) isEqualTo []) }) exitWith {false};

if (EGVAR(medical_treatment,allowFracturesPAK) == 0 && { (GET_FRACTURES(_unit) isNotEqualTo []) }) exitWith {false};

// Bangaded wounds required.
if (EGVAR(medical_treatment,requiredWoundStatePAK) == 1) && {(GET_OPEN_WOUNDS(_unit) findIf {_x select 2 > 0}) != -1} exitWith {false};

// Require stitched wounds.
if (EGVAR(medical_treatment,requiredWoundStatePAK) == 2 && { !(count GET_OPEN_WOUNDS(_unit) == count GET_STITCHED_WOUNDS(_unit)) }) exitWith {false};
// Stitched wounds required.
//if (EGVAR(medical_treatment,requiredWoundStatePAK) == 2 && { !(count GET_OPEN_WOUNDS(_unit) == count GET_STITCHED_WOUNDS(_unit)) }) exitWith {false};
if (EGVAR(medical_treatment,requiredWoundStatePAK) == 2 && {(GET_BANDAGED_WOUNDS(_unit) findIf {_x select 2 > 0}) != -1 }) exitWith {false};

true

0 comments on commit b30de99

Please sign in to comment.