mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
30 lines
640 B
Plaintext
30 lines
640 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: Ruthberg
|
|
* Calculates the PAK treatment time based on the amount of damage to heal.
|
|
*
|
|
* Arguments:
|
|
* 0: Medic (not used) <OBJECT>
|
|
* 1: Patient <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* Treatment Time <NUMBER>
|
|
*
|
|
* Example:
|
|
* [player] call ace_medical_treatment_fnc_getHealTime
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
#define DAMAGE_SCALING_FACTOR 5
|
|
|
|
params ["", "_patient"];
|
|
|
|
private _bodyPartDamage = 0;
|
|
|
|
{
|
|
_bodyPartDamage = _bodyPartDamage + _x;
|
|
} forEach (_patient getVariable [QEGVAR(medical,bodyPartDamage), []]);
|
|
|
|
10 max (((_bodyPartDamage * DAMAGE_SCALING_FACTOR) min 180) * GVAR(timeCoefficientPAK))
|