mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
25 lines
495 B
Plaintext
25 lines
495 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 [QGVAR(bodyPartStatus), []]);
|
|
|
|
(10 max (_totalDamage * 10) min 120)
|