mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Removed legacy code
This commit is contained in:
parent
58ed8a6c81
commit
f1fbf6a8eb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user