mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
05e4f74e73
* Medical AI - Adjust healing logic for rewrite - move state machine from config to sqf - move all healing logic to seperate func - attempt to handle healing for new system * prioritize unitReady medics * move setting to subcategory under medical * Use faster GET_WOUND_BLEEDING * Update fnc_healingLogic.sqf * Update for wound array changes * Update treatment events changes * Fractures/splint * formating / use GET_OPEN_WOUNDS * Use non-localized medical category
27 lines
520 B
Plaintext
27 lines
520 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: BaerMitUmlaut
|
|
* Checks if a unit needs treatment.
|
|
*
|
|
* Arguments:
|
|
* Unit <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* Does unit need treatment <BOOL>
|
|
*
|
|
* Example:
|
|
* player call ACE_medical_ai_fnc_isInjured
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
if !(alive _this) exitWith {false};
|
|
|
|
(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}
|
|
}
|