Skip to content

Commit

Permalink
Fix cardiac arrest timeout death (#6451)
Browse files Browse the repository at this point in the history
  • Loading branch information
kymckay authored and thojkooi committed Jul 19, 2018
1 parent 848d65a commit ab11d90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
params ["_unit"];

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
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ params ["_unit"];
private _time = EGVAR(medical,cardiacArrestTime);
_time = _time + random [_time*-0.1, 0, _time*0.1];

_unit setVariable [QEGVAR(medical,cardiacArrestTime), _time];
_unit setVariable [QEGVAR(medical,cardiacArrestStart), CBA_missionTime];
_unit setVariable [QGVAR(cardiacArrestTime), _time];
_unit setVariable [QGVAR(cardiacArrestStart), CBA_missionTime];

[_unit] call EFUNC(medical_status,setCardiacArrest);

0 comments on commit ab11d90

Please sign in to comment.