From 98faa9a0093129fcd7c94dd88b4d6c690a6d7eda Mon Sep 17 00:00:00 2001 From: John Jordan Date: Sun, 14 Jul 2024 18:47:25 +0100 Subject: [PATCH] Slow down self-revive timeout when downed --- A3A/addons/core/functions/Revive/fn_unconscious.sqf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/A3A/addons/core/functions/Revive/fn_unconscious.sqf b/A3A/addons/core/functions/Revive/fn_unconscious.sqf index bbbfbb15a7..1b05b155f9 100644 --- a/A3A/addons/core/functions/Revive/fn_unconscious.sqf +++ b/A3A/addons/core/functions/Revive/fn_unconscious.sqf @@ -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 = "" + 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] };