mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
24 lines
494 B
Plaintext
24 lines
494 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* 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 * (4/5);
|
|
_patient setVariable [QGVAR(intensity), _intensity, true];
|