ACE3/addons/medical_ai/functions/fnc_isInjured.sqf
Phyma ffaa195fe5 Conform function headers to coding guidelines (#5255)
* Fixed headers to work with silentspike python script

* Fixed rest of the files

* Fixed ace-team
2017-06-08 15:31:51 +02:00

26 lines
591 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];
// Advanced only?
// private _heartRate = _this getVariable [QEGVAR(medical,heartRate), 70];
(_bloodLoss > 0) || {_pain > 0.2} // || {_heartRate > 100} || {_heartRate < 40}