- Fixed self_kills with colistion couted as teamkills.

-Added Landing_Other stat fild
This commit is contained in:
Szymon Porwolik
2019-03-10 23:42:29 +01:00
parent 5b3d19e134
commit c053d5d461
3 changed files with 8 additions and 3 deletions

View File

@@ -493,7 +493,10 @@ Perun.onGameEvent = function (eventName,arg1,arg2,arg3,arg4,arg5,arg6,arg7)
end
Perun.LogEvent(eventName,Perun.SideID2Name( net.get_player_info(arg1, "side")) .. " player " .. net.get_player_info(arg1, "name").." killed friendy " .. net.get_player_info(arg3, "name") .. " using " .. arg2,nil,nil);
Perun.LogStatsCount(arg1,"friendly_fire",DCS.getUnitType(arg1))
if arg1 ~= arg3 then
Perun.LogStatsCount(arg1,"friendly_fire",DCS.getUnitType(arg1))
end
elseif eventName == "mission_end" then
--"mission_end", winner, msg