CPR local is now also only executed when the target is still alive.

Otherwise it's quite useless
This commit is contained in:
Glowbal 2015-06-20 12:51:42 +02:00
parent c4283404e8
commit 9e00fc479b

View File

@ -23,7 +23,7 @@ _selectionName = _this select 2;
_className = _this select 3; _className = _this select 3;
_items = _this select 4; _items = _this select 4;
if (_target getvariable [QGVAR(inCardiacArrest), false] || _target getvariable [QGVAR(inReviveState), false]) then { if (alive _target && {(_target getvariable [QGVAR(inCardiacArrest), false] || _target getvariable [QGVAR(inReviveState), false])}) then {
[[_caller, _target], QUOTE(DFUNC(treatmentAdvanced_CPRLocal)), _target] call EFUNC(common,execRemoteFnc); /* TODO Replace by event system */ [[_caller, _target], QUOTE(DFUNC(treatmentAdvanced_CPRLocal)), _target] call EFUNC(common,execRemoteFnc); /* TODO Replace by event system */
}; };
true; true;