ACE3/addons/medical_status/functions/fnc_getBloodLoss.sqf

26 lines
532 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
/*
* Author: Glowbal
* Calculate the total blood loss of a unit.
*
* Arguments:
* 0: The Unit <OBJECT>
*
* Return Value:
* Total blood loss of unit <NUMBER>
*
* Example:
* [player] call ace_medical_status_fnc_getBloodLoss
*
* Public: No
*/
2015-08-22 14:25:10 +00:00
params ["_unit"];
private _woundBleeding = GET_WOUND_BLEEDING(_unit);
if (_woundBleeding == 0) exitWith {0};
private _cardiacOutput = [_unit] call FUNC(getCardiacOutput);
(_woundBleeding * _cardiacOutput * EGVAR(medical,bleedingCoefficient))