ACE3/addons/medical_treatment/functions/fnc_treatmentCPR_failure.sqf

22 lines
519 B
Plaintext
Raw Normal View History

/*
* Author: Zakant
* Handels the failure of the CPR treatment.
*
* Arguments:
* 0: The medic <OBJECT>
* 1: The patient <OBJECT>
*
* Return Value:
* NONE
*
* Public: No
*/
#include "script_component.hpp"
params ["_caller", "_target"];
2017-03-23 12:32:14 +00:00
2017-03-23 14:09:59 +00:00
if(!(_target call EFUNC(common,isAwake)) || {_target getVariable [QEGVAR(medical,inCardiacArrest), false]}) then {
2017-03-23 12:32:14 +00:00
_target setVariable [QEGVAR(medical,heartRate), 0, true];
};
_target setVariable [QGVAR(receiveCPR), false, true];
[_target] call FUNC(calculateBlood);