2017-03-23 12:30:40 +00:00
|
|
|
/*
|
|
|
|
* Author: Zakant
|
2017-03-23 17:17:38 +00:00
|
|
|
* Handles the failure of the CPR treatment.
|
2017-03-23 12:30:40 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: The medic <OBJECT>
|
|
|
|
* 1: The patient <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
2017-03-23 16:26:16 +00:00
|
|
|
* None
|
2017-03-23 12:30:40 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
2017-03-23 16:32:03 +00:00
|
|
|
|
2017-03-23 12:30:40 +00:00
|
|
|
params ["_caller", "_target"];
|
2017-03-23 12:32:14 +00:00
|
|
|
|
2018-05-22 17:06:28 +00:00
|
|
|
if (!(_target call EFUNC(common,isAwake)) || {IN_CRDC_ARRST(_target)}) then {
|
2018-05-11 15:11:01 +00:00
|
|
|
_target setVariable [VAR_HEART_RATE, 0, true];
|
2017-03-23 12:32:14 +00:00
|
|
|
};
|
|
|
|
_target setVariable [QGVAR(receiveCPR), false, true];
|
|
|
|
[_target] call FUNC(calculateBlood);
|