mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix cardiac arrest timeout death (#6451)
This commit is contained in:
parent
13cdb76dce
commit
ac5fedff44
@ -14,6 +14,6 @@
|
|||||||
params ["_unit"];
|
params ["_unit"];
|
||||||
|
|
||||||
private _startTime = _unit getVariable [QGVAR(cardiacArrestStart), CBA_missionTime];
|
private _startTime = _unit getVariable [QGVAR(cardiacArrestStart), CBA_missionTime];
|
||||||
private _lifeTime = _unit getVariable [QGVAR(cardiacArrestTime), GVAR(cardiacArrestTime)];
|
private _lifeTime = _unit getVariable [QGVAR(cardiacArrestTime), EGVAR(medical,cardiacArrestTime)];
|
||||||
|
|
||||||
(CBA_missionTime - _startTime) > _lifeTime
|
(CBA_missionTime - _startTime) > _lifeTime
|
||||||
|
@ -18,7 +18,7 @@ params ["_unit"];
|
|||||||
private _time = EGVAR(medical,cardiacArrestTime);
|
private _time = EGVAR(medical,cardiacArrestTime);
|
||||||
_time = _time + random [_time*-0.1, 0, _time*0.1];
|
_time = _time + random [_time*-0.1, 0, _time*0.1];
|
||||||
|
|
||||||
_unit setVariable [QEGVAR(medical,cardiacArrestTime), _time];
|
_unit setVariable [QGVAR(cardiacArrestTime), _time];
|
||||||
_unit setVariable [QEGVAR(medical,cardiacArrestStart), CBA_missionTime];
|
_unit setVariable [QGVAR(cardiacArrestStart), CBA_missionTime];
|
||||||
|
|
||||||
[_unit] call EFUNC(medical_status,setCardiacArrest);
|
[_unit] call EFUNC(medical_status,setCardiacArrest);
|
||||||
|
Loading…
Reference in New Issue
Block a user