mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
8d9c17ed88
* Made AI medic use epipen on unconscious patients * Fix epi heal args, use non-local treatment funcs
26 lines
664 B
Plaintext
26 lines
664 B
Plaintext
/*
|
|
* Author: BaerMitUmlaut
|
|
* Checks if a unit needs treatment.
|
|
*
|
|
* Arguments:
|
|
* None
|
|
*
|
|
* Return Value:
|
|
* Does unit need treatment <BOOL>
|
|
*
|
|
* Example:
|
|
* call ACE_medical_ai_fnc_isInjured
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
if !(alive _this) exitWith {false};
|
|
|
|
private _bloodLoss = [_this] call EFUNC(medical,getBloodLoss);
|
|
private _pain = _this getVariable [QEGVAR(medical,pain), 0];
|
|
private _unconscious = _this getVariable ["ACE_isUnconscious", false];
|
|
// private _heartRate = _this getVariable [QEGVAR(medical,heartRate), 70];
|
|
|
|
(_bloodLoss > 0) || {_pain > 0.2} || _unconscious // || {_heartRate > 100} || {_heartRate < 40}
|