From 26c5199dc8e72dca173ef9bcddca422656b46876 Mon Sep 17 00:00:00 2001 From: Tiny-DM <148804148+Tiny-DM@users.noreply.github.com> Date: Sun, 29 Sep 2024 14:35:34 -0400 Subject: [PATCH] Injector success and UID logging (#3389) * Update fn_initACE.sqf * add painkillers to watchlist --- A3A/addons/core/functions/init/fn_initACE.sqf | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/A3A/addons/core/functions/init/fn_initACE.sqf b/A3A/addons/core/functions/init/fn_initACE.sqf index 1c7a16e305..43d0b5480a 100644 --- a/A3A/addons/core/functions/init/fn_initACE.sqf +++ b/A3A/addons/core/functions/init/fn_initACE.sqf @@ -21,10 +21,12 @@ if (A3A_hasACEMedical) then { // log atropine, epinephrine, and morphine use // Appears to be local to the medic - ["ace_treatmentStarted", { + ["ace_treatmentSucceded", { params ["_caller", "_target", "_selectionName", "_className", "_itemUser", "_usedItem"]; - if (_usedItem in ["ACE_atropine", "ACE_epinephrine", "ACE_morphine"]) then { - ServerInfo_3("Player: %1 used %2 on %3",name _caller,_usedItem,name _target); + if (_usedItem in ["ACE_adenosine", "ACE_epinephrine", "ACE_morphine", "ACE_painkillers"]) then { + private _callerUID = ["AI",getPlayerUID _caller] select (isPlayer _caller); + private _targetUID = ["AI",getPlayerUID _target] select (isPlayer _target); + ServerInfo_5("Player %1 [%2] used %3 on %4 [%5]",name _caller,_callerUID,_usedItem,name _target,_targetUID); }; }] call CBA_fnc_addEventHandler; };