mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Implemented cpr progress function
This commit is contained in:
@ -15,3 +15,13 @@
|
|||||||
* Public: No
|
* Public: No
|
||||||
*/
|
*/
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
params ["_args", "_elapsedTime", "_totalTime"];
|
||||||
|
_args params ["_caller", "_target"];
|
||||||
|
|
||||||
|
// If the patient awakes my mysterious force, no cpr is needed!
|
||||||
|
if(_target call EFUNC(common,isAwake)) exitWith {false};
|
||||||
|
if(!(_target getVariable [QEGVAR(medical,inCardiacArrest), false])) 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
|
||||||
|
Reference in New Issue
Block a user