2021-10-14 15:49:10 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
/*
|
2022-01-30 17:54:30 +00:00
|
|
|
* Author: Dani (TCVM)
|
2021-10-14 15:49:10 +00:00
|
|
|
* 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];
|
2022-08-29 00:27:10 +00:00
|
|
|
_intensity = _intensity * INTENSITY_DECREASE_MULT_PAT_DOWN;
|
2021-10-14 15:49:10 +00:00
|
|
|
_patient setVariable [QGVAR(intensity), _intensity, true];
|