mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
ffaa195fe5
* Fixed headers to work with silentspike python script * Fixed rest of the files * Fixed ace-team
28 lines
542 B
Plaintext
28 lines
542 B
Plaintext
/*
|
|
* Author: Glowbal
|
|
* Check if a unit is in a stable condition
|
|
*
|
|
* Arguments:
|
|
* 0: The patient <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* Is in stable condition <BOOL>
|
|
*
|
|
* Example:
|
|
* [bob] call ACE_medical_fnc_isInStableCondition
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
params ["_unit"];
|
|
|
|
private _totalBloodLoss = 0;
|
|
{
|
|
// total bleeding ratio * percentage of injury left
|
|
_totalBloodLoss = _totalBloodLoss + ((_x select 4) * (_x select 3));
|
|
} forEach (_unit getVariable [QGVAR(openWounds), []]);
|
|
|
|
(_totalBloodLoss == 0);
|