From 597c167801bac665b33a0525b1403735e0a830dc Mon Sep 17 00:00:00 2001 From: tuntematonjr Date: Sat, 10 Aug 2024 15:59:36 +0300 Subject: [PATCH] add medic param to remaining treatment EHs --- addons/medical_treatment/functions/fnc_bandage.sqf | 2 +- addons/medical_treatment/functions/fnc_ivBag.sqf | 2 +- addons/medical_treatment/functions/fnc_medication.sqf | 2 +- addons/medical_treatment/functions/fnc_tourniquet.sqf | 2 +- addons/medical_treatment/functions/fnc_tourniquetRemove.sqf | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/addons/medical_treatment/functions/fnc_bandage.sqf b/addons/medical_treatment/functions/fnc_bandage.sqf index 8657936a66..e7b442c618 100644 --- a/addons/medical_treatment/functions/fnc_bandage.sqf +++ b/addons/medical_treatment/functions/fnc_bandage.sqf @@ -29,4 +29,4 @@ params ["_medic", "_patient", "_bodyPart", "_classname", "", "", "", "_bandageEf [_patient, "activity", LSTRING(Activity_bandagedPatient), [[_medic, false, true] call EFUNC(common,getName)]] call FUNC(addToLog); -[QGVAR(bandageLocal), [_patient, _bodyPart, _classname, _bandageEffectiveness], _patient] call CBA_fnc_targetEvent; +[QGVAR(bandageLocal), [_patient, _bodyPart, _classname, _bandageEffectiveness, _medic], _patient] call CBA_fnc_targetEvent; diff --git a/addons/medical_treatment/functions/fnc_ivBag.sqf b/addons/medical_treatment/functions/fnc_ivBag.sqf index 7f56f332b3..a856afec32 100644 --- a/addons/medical_treatment/functions/fnc_ivBag.sqf +++ b/addons/medical_treatment/functions/fnc_ivBag.sqf @@ -25,4 +25,4 @@ params ["_medic", "_patient", "_bodyPart", "_classname", "", "_usedItem"]; [_patient, _usedItem] call FUNC(addToTriageCard); [_patient, "activity", LSTRING(Activity_gaveIV), [[_medic, false, true] call EFUNC(common,getName)]] call FUNC(addToLog); -[QGVAR(ivBagLocal), [_patient, _bodyPart, _classname], _patient] call CBA_fnc_targetEvent; +[QGVAR(ivBagLocal), [_patient, _bodyPart, _classname, _medic], _patient] call CBA_fnc_targetEvent; diff --git a/addons/medical_treatment/functions/fnc_medication.sqf b/addons/medical_treatment/functions/fnc_medication.sqf index dfd08d4de2..7a60481c5d 100644 --- a/addons/medical_treatment/functions/fnc_medication.sqf +++ b/addons/medical_treatment/functions/fnc_medication.sqf @@ -26,4 +26,4 @@ params ["_medic", "_patient", "_bodyPart", "_classname", "", "_usedItem"]; private _cfg = ["CfgWeapons", "CfgMagazines"] select (isClass (configFile >> "CfgMagazines" >> _usedItem)); [_patient, "activity", LSTRING(Activity_usedItem), [[_medic, false, true] call EFUNC(common,getName), getText (configFile >> _cfg >> _usedItem >> "displayName")]] call FUNC(addToLog); -[QGVAR(medicationLocal), [_patient, _bodyPart, _classname], _patient] call CBA_fnc_targetEvent; +[QGVAR(medicationLocal), [_patient, _bodyPart, _classname, _medic], _patient] call CBA_fnc_targetEvent; diff --git a/addons/medical_treatment/functions/fnc_tourniquet.sqf b/addons/medical_treatment/functions/fnc_tourniquet.sqf index 8e70529ece..deb43930e3 100644 --- a/addons/medical_treatment/functions/fnc_tourniquet.sqf +++ b/addons/medical_treatment/functions/fnc_tourniquet.sqf @@ -30,4 +30,4 @@ if ([_patient, _bodyPart] call FUNC(hasTourniquetAppliedTo)) exitWith { [_patient, _usedItem] call FUNC(addToTriageCard); [_patient, "activity", LSTRING(Activity_appliedTourniquet), [[_medic, false, true] call EFUNC(common,getName)]] call FUNC(addToLog); -[QGVAR(tourniquetLocal), [_patient, _bodyPart], _patient] call CBA_fnc_targetEvent; +[QGVAR(tourniquetLocal), [_patient, _bodyPart, _medic], _patient] call CBA_fnc_targetEvent; diff --git a/addons/medical_treatment/functions/fnc_tourniquetRemove.sqf b/addons/medical_treatment/functions/fnc_tourniquetRemove.sqf index 97680353e4..f8dee6fe60 100644 --- a/addons/medical_treatment/functions/fnc_tourniquetRemove.sqf +++ b/addons/medical_treatment/functions/fnc_tourniquetRemove.sqf @@ -60,7 +60,7 @@ private _arrayModified = false; if (_partIndex == _bodyPartN) then { TRACE_1("delayed medication call after tourniquet removeal",_x); - [QGVAR(medicationLocal), [_patient, _bodyPart, _medication], _patient] call CBA_fnc_targetEvent; + [QGVAR(medicationLocal), [_patient, _bodyPart, _medication, _medic], _patient] call CBA_fnc_targetEvent; _occludedMedications set [_forEachIndex, []]; _arrayModified = true; };