mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
24 lines
596 B
Plaintext
24 lines
596 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: Zakant
|
|
* Handles the start of the CPR treatment.
|
|
*
|
|
* Arguments:
|
|
* 0: The medic <OBJECT>
|
|
* 1: The patient <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_caller", "_target"];
|
|
|
|
_target setVariable [QGVAR(receiveCPR), true, true]; // Target receives CPR
|
|
if (EGVAR(medical,CPRcreatesPulse) && {GET_HEART_RATE(_target) == 0}) then {
|
|
_target setVariable [VAR_HEART_RATE, round (30 + random [-5, 0, 5]) , true]; // And we have a (random) pulse
|
|
};
|
|
|
|
_target setVariable [QEGVAR(medical,lastTimeUpdated), CBA_missionTime, true];
|