mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Remove legacy code (#4960)
This commit is contained in:
parent
bec55114fa
commit
b5f6169341
@ -28,20 +28,3 @@ _unit setVariable [QGVAR(heartRate), 0, true];
|
||||
|
||||
[_unit, true] call FUNC(setUnconsciousStatemachine);
|
||||
|
||||
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