ACE3/addons/medical_treatment/functions/fnc_treatmentAdvanced_fullHealTreatmentTime.sqf
Glowbal a8831a0d16 Change split medical in two components
- medical component is responsible for the injuries and common functionality
- medical_treatment component is responsible for offering treatment functionality
2016-06-13 17:00:56 +02:00

25 lines
504 B
Plaintext

/*
* Author: Ruthberg
* Calculates the personal aid kit treatment time based on amount of damage to heal
*
* Arguments:
* unit <OBJECT>
*
* Return Value:
* treatment time <NUMBER>
*
* Example:
* [_target] call ace_medical_fnc_treatmentAdvanced_fullHealTreatmentTime
*
* Public: No
*/
#include "script_component.hpp"
private _totalDamage = 0;
{
_totalDamage = _totalDamage + _x;
} forEach (_this getVariable [QEGVAR(medical,bodyPartStatus), []]);
(10 max (_totalDamage * 10) min 120)