ACE3/addons/medical/functions/fnc_treatmentAdvanced_fullHealTreatmentTime.sqf

27 lines
543 B
Plaintext
Raw Normal View History

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