ACE3/addons/fire/functions/fnc_medical_success.sqf

24 lines
521 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
/*
2022-01-30 17:54:30 +00:00
* Author: Dani (TCVM)
* Decreases burning intensity on successful medical action.
*
* Arguments:
* 0: Medic <OBJECT>
* 1: Patient <OBJECT>
*
* Return Value:
* None
*
* Example:
* [player, cursorObject] call ace_fire_fnc_medical_success
*
* Public: No
*/
params ["_medic", "_patient"];
private _intensity = _patient getVariable [QGVAR(intensity), 0];
_intensity = _intensity * INTENSITY_DECREASE_MULT_PAT_DOWN;
_patient setVariable [QGVAR(intensity), _intensity, true];