Skip to content

Commit

Permalink
Slow down self-revive timeout when downed
Browse files Browse the repository at this point in the history
  • Loading branch information
jaj22 committed Jul 14, 2024
1 parent 53cd15a commit 98faa9a
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 98faa9a

Please sign in to comment.