2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2016-09-04 09:25:03 +00:00
|
|
|
/*
|
|
|
|
* Author: BaerMitUmlaut
|
|
|
|
* Checks if a unit needs treatment.
|
|
|
|
*
|
|
|
|
* Arguments:
|
2017-10-24 21:13:12 +00:00
|
|
|
* Unit <OBJECT>
|
2016-09-04 09:25:03 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Does unit need treatment <BOOL>
|
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Example:
|
2024-07-23 13:28:40 +00:00
|
|
|
* cursorObject call ace_medical_ai_fnc_isInjured
|
2017-06-08 13:31:51 +00:00
|
|
|
*
|
2016-09-04 09:25:03 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
if !(alive _this) exitWith {false};
|
|
|
|
|
2019-07-03 14:59:28 +00:00
|
|
|
(GET_WOUND_BLEEDING(_this) > 0)
|
|
|
|
|| {GET_PAIN_PERCEIVED(_this) > 0.25}
|
|
|
|
|| {IS_UNCONSCIOUS(_this)}
|
|
|
|
|| {
|
|
|
|
private _fractures = GET_FRACTURES(_this);
|
|
|
|
((_fractures select 4) == 1) || {(_fractures select 5) == 1}
|
|
|
|
}
|
2024-08-11 07:19:35 +00:00
|
|
|
|| { GET_TOURNIQUETS(_this) isNotEqualTo DEFAULT_TOURNIQUET_VALUES }
|