From 24ada4dab3979c0532a61b2ae71b0b4fb0aa356b Mon Sep 17 00:00:00 2001 From: SilentSpike Date: Sun, 13 Nov 2016 21:45:38 +0000 Subject: [PATCH] Clarify the `maximumCardiacArrestTime` setting --- addons/medical/XEH_preInit.sqf | 4 ++-- addons/medical/functions/fnc_conditionCardiacArrestTimer.sqf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/medical/XEH_preInit.sqf b/addons/medical/XEH_preInit.sqf index 62f8c91e84..261bfb4a4e 100644 --- a/addons/medical/XEH_preInit.sqf +++ b/addons/medical/XEH_preInit.sqf @@ -51,9 +51,9 @@ GVAR(STATE_MACHINE) = (configFile >> "ACE_Medical_StateMachine") call CBA_statem ] call CBA_Settings_fnc_init; [ - QGVAR(maximumCardiacArrestTime), + QGVAR(cardiacArrestTime), "SLIDER", - ["Maximum Cardiac Arrest Time", "Sets the maximum amount of time a unit can stay in cardiac arrest before dying."], //@todo + ["Cardiac Arrest Time", "Sets how long cardiac arrest will last for (in minutes)."], //@todo "ACE Medical", // @todo [0, 30, 2, 0], true diff --git a/addons/medical/functions/fnc_conditionCardiacArrestTimer.sqf b/addons/medical/functions/fnc_conditionCardiacArrestTimer.sqf index 79a3263d58..2fffd7cfff 100644 --- a/addons/medical/functions/fnc_conditionCardiacArrestTimer.sqf +++ b/addons/medical/functions/fnc_conditionCardiacArrestTimer.sqf @@ -15,4 +15,4 @@ params ["_unit"]; private _startTime = _unit getVariable [QGVAR(cardiacArrestStart), CBA_missionTime]; -(CBA_missionTime - _startTime) > (GVAR(maximumCardiacArrestTime) * 60) +(CBA_missionTime - _startTime) > (GVAR(cardiacArrestTime) * 60)