From 79fed8d61ccd58a53f731c7fa5e2b59eb7c4a3b9 Mon Sep 17 00:00:00 2001 From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com> Date: Sun, 15 Dec 2024 22:32:28 -0800 Subject: [PATCH 1/2] Adds Classname to IV bags Array --- addons/medical_treatment/functions/fnc_ivBagLocal.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/medical_treatment/functions/fnc_ivBagLocal.sqf b/addons/medical_treatment/functions/fnc_ivBagLocal.sqf index 91a1db54a3f..db253abb02a 100644 --- a/addons/medical_treatment/functions/fnc_ivBagLocal.sqf +++ b/addons/medical_treatment/functions/fnc_ivBagLocal.sqf @@ -46,5 +46,5 @@ private _type = GET_STRING(_ivConfig >> "type",getText (_defaultConfig >> "typ // Add IV bag to patient's ivBags array private _ivBags = _patient getVariable [QEGVAR(medical,ivBags), []]; -_ivBags pushBack [_volume, _type, _partIndex]; +_ivBags pushBack [_volume, _type, _partIndex, _classname]; _patient setVariable [QEGVAR(medical,ivBags), _ivBags, true]; From bed08939ae97e5fcf74f05e3806a6c5181892a20 Mon Sep 17 00:00:00 2001 From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com> Date: Sun, 15 Dec 2024 22:39:13 -0800 Subject: [PATCH 2/2] Fix --- addons/medical_status/functions/fnc_getBloodVolumeChange.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/medical_status/functions/fnc_getBloodVolumeChange.sqf b/addons/medical_status/functions/fnc_getBloodVolumeChange.sqf index 61f5353583d..f9126835dc5 100644 --- a/addons/medical_status/functions/fnc_getBloodVolumeChange.sqf +++ b/addons/medical_status/functions/fnc_getBloodVolumeChange.sqf @@ -37,7 +37,7 @@ if (!isNil {_unit getVariable QEGVAR(medical,ivBags)}) then { if (_bagVolumeRemaining < 0.01) then { [] } else { - [_bagVolumeRemaining, _type, _bodyPart] + [_bagVolumeRemaining, _type, _bodyPart, _classname] }; };