Removed legacy code

This commit is contained in:
Zakant 2017-03-23 14:00:55 +01:00 committed by Zakant
parent 58ed8a6c81
commit f1fbf6a8eb

View File

@ -25,20 +25,3 @@ _unit setVariable [QGVAR(heartRate), 0, true];
[_unit, true] call FUNC(setUnconscious);
[QEGVAR(medical,InjuryCritical), _unit] call CBA_fnc_localEvent;
private _timeInCardiacArrest = 120 + round(random(600));
[{
params ["_args", "_idPFH"];
_args params ["_unit", "_startTime", "_timeInCardiacArrest"];
private _heartRate = _unit getVariable [QGVAR(heartRate), DEFAULT_HEART_RATE];
if (_heartRate > 20 || !alive _unit) exitWith {
[_idPFH] call CBA_fnc_removePerFrameHandler;
_unit setVariable [QGVAR(inCardiacArrest), nil, true];
};
if (CBA_missionTime - _startTime >= _timeInCardiacArrest) exitWith {
[_idPFH] call CBA_fnc_removePerFrameHandler;
_unit setVariable [QGVAR(inCardiacArrest), nil, true];
[_unit] call FUNC(setDead);
};
}, 1, [_unit, CBA_missionTime, _timeInCardiacArrest] ] call CBA_fnc_addPerFrameHandler;