mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
fa77fb7194
* Fixed medication (morphine, epinephrine, ...) * Fixed CPR * Improved heart rate simulation * Removed deprecated ace settings
21 lines
394 B
Plaintext
21 lines
394 B
Plaintext
/*
|
|
* Author: BaerMitUmlaut
|
|
* Checks if a unit needs treatment.
|
|
*
|
|
* Arguments:
|
|
* None
|
|
*
|
|
* Return Value:
|
|
* Does unit need treatment <BOOL>
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
if !(alive _this) exitWith {false};
|
|
|
|
private _bloodLoss = [_this] call EFUNC(medical,getBloodLoss);
|
|
private _pain = [_this] call EFUNC(medical,getPainLevel);
|
|
|
|
((_bloodLoss > 0) || {_pain > 0.2})
|