/* * Author: Zakant * Handles the progress of the CPR treatment. * * Arguments: * 0: Arguments * 0: Caller * 1: Target * 1: Elapsed Time * 2: Total Time * * Return Value: * May Treatment continue * * Public: No */ #include "script_component.hpp" params ["_args", "_elapsedTime", "_totalTime"]; _args params ["_caller", "_target"]; // If the patient awakes by mysterious force, no cpr is needed! if (_target call EFUNC(common,isAwake)) exitWith {false}; if !IN_CRDC_ARRST(_target) exitWith {false}; [_target] call FUNC(calculateBlood); // Calculate blood volume. If their is no pulse, nothing happens! (alive _target) // CPR may only proceed if the patient is not dead