Skip to content

Commit

Permalink
Medical AI - Take max for CPR instead of min (#10669)
Browse files Browse the repository at this point in the history
Take max for CPR instead of min
  • Loading branch information
johnb432 authored Jan 15, 2025
1 parent 35c325b commit f2e9c3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/medical_ai/functions/fnc_healingLogic.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f2e9c3b

Please sign in to comment.