From f2e9c3b5d425706db2af14418d4e38aa7bde61ae Mon Sep 17 00:00:00 2001 From: johnb432 <58661205+johnb432@users.noreply.github.com> Date: Wed, 15 Jan 2025 12:30:58 -0800 Subject: [PATCH] Medical AI - Take max for CPR instead of min (#10669) Take max for CPR instead of min --- addons/medical_ai/functions/fnc_healingLogic.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/medical_ai/functions/fnc_healingLogic.sqf b/addons/medical_ai/functions/fnc_healingLogic.sqf index 10e0549e767..758259832d6 100644 --- a/addons/medical_ai/functions/fnc_healingLogic.sqf +++ b/addons/medical_ai/functions/fnc_healingLogic.sqf @@ -220,7 +220,7 @@ if (true) then { private _canGiveIV = _needsIV && {_healer call EFUNC(medical_treatment,isMedic)} && {([_healer, "@iv"] call FUNC(itemCheck)) # 0}; // Has IVs - private _doCPR = IN_CRDC_ARRST(_target) && {EGVAR(medical_treatment,cprSuccessChanceMin) > 0}; + private _doCPR = IN_CRDC_ARRST(_target) && {EGVAR(medical_treatment,cprSuccessChanceMax) > 0}; // If in cardiac arrest, first add some blood to injured if necessary, then do CPR (doing CPR when not enough blood is suboptimal if you have IVs) // If healer has no IVs, allow AI to do CPR to keep injured alive