Skip to content

Commit

Permalink
Merge pull request #3343 from jaj22/fix-eternal-life
Browse files Browse the repository at this point in the history
Slow down self-revive timeout when downed
  • Loading branch information
Bob-Murphy authored Aug 9, 2024
2 parents c255588 + 98faa9a commit 31ea5e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions A3A/addons/core/functions/Revive/fn_unconscious.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ while {(time < _bleedOut) and (_unit getVariable ["incapacitated",false]) and (a
};

if (_isPlayer) then {
// Slow down self-revive timeout expiry while downed
private _timeout = _unit getVariable ["A3A_selfReviveTimeout", -1];
if (_timeout > 0) then { _unit setVariable ["A3A_selfReviveTimeout", _timeout + 0.5] };

private _helpText = "<t size='0.8'>" + call {
if (isNull _helper) exitWith {localize "STR_A3A_fn_revive_unconscious_noAI"};
if (_helper distance _unit < 3) exitWith { format [localize "STR_A3A_fn_revive_unconscious_helping", name _helper] };
Expand Down

0 comments on commit 31ea5e2

Please sign in to comment.