Skip to content

Commit

Permalink
Log output, when killed unit is local to server
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyqer committed Jul 20, 2018
1 parent 8268321 commit 60c830d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions addons/KP_Ranks/fnc/fn_getAceKiller.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ if (isNull _instigator || _instigator == _killed) then {
// In ACE, only the owner of the killed object (where it's local) can get the value of this variable, as it's not public
if (local _killed) then {
KPR_aceKiller = _killed getVariable ["ace_medical_lastDamageSource", _killer];
if (KPR_levelDebug) then {diag_log format ["[KP RANKS] [LEVEL] %1 is local to server. Instigator is: %2.", _killed, KPR_aceKiller];};
} else {
if (KPR_levelDebug) then {diag_log format ["[KP RANKS] [LEVEL] %1 not local to server. Asking owner for data.", _killed];};
// Ask the owner for the information
Expand All @@ -45,8 +46,8 @@ if (isNull _instigator || _instigator == _killed) then {
if (KPR_levelDebug && !(_this select 2)) then {diag_log format ["[KP RANKS] [LEVEL] Data received in %1ms", diag_tickTime - (_this select 3)];};
},
[_killed, _killer, local _killed, _start],
2,
{diag_log format ["[KP RANKS] [WARNING] No data received for %1 during the last 2 seconds, skipping event.", _this select 0];}
1,
{diag_log format ["[KP RANKS] [WARNING] No data received for %1 during the last second, skipping event.", _this select 0];}
] call CBA_fnc_waitUntilAndExecute;
} else {
// Directly move to the usual entity killed handling
Expand Down

0 comments on commit 60c830d

Please sign in to comment.