Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Injector success and UID logging #3389

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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