Skip to content

Commit

Permalink
Injector success and UID logging (#3389)
Browse files Browse the repository at this point in the history
* Update fn_initACE.sqf

* add painkillers to watchlist
  • Loading branch information
Tiny-DM authored Sep 29, 2024
1 parent c964a3c commit 26c5199
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions A3A/addons/core/functions/init/fn_initACE.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit 26c5199

Please sign in to comment.