From c053d5d46189ade85b268df1b84384f967e08815 Mon Sep 17 00:00:00 2001 From: Szymon Porwolik Date: Sun, 10 Mar 2019 23:42:29 +0100 Subject: [PATCH] - Fixed self_kills with colistion couted as teamkills. -Added Landing_Other stat fild --- 01_DCS/Hooks/Perun.lua | 5 ++++- 02_Windows_App/Perun_v1/Perun_v1.csproj | 4 ++-- 03_MySQL/m1081_perun.sql | 2 ++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/01_DCS/Hooks/Perun.lua b/01_DCS/Hooks/Perun.lua index e18456c..a7b0d61 100644 --- a/01_DCS/Hooks/Perun.lua +++ b/01_DCS/Hooks/Perun.lua @@ -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 diff --git a/02_Windows_App/Perun_v1/Perun_v1.csproj b/02_Windows_App/Perun_v1/Perun_v1.csproj index f5f95d1..3cc2bed 100644 --- a/02_Windows_App/Perun_v1/Perun_v1.csproj +++ b/02_Windows_App/Perun_v1/Perun_v1.csproj @@ -32,8 +32,8 @@ Perun true Perun.htm - 0 - 0.5.0.%2a + 1 + 0.5.3.%2a false true true diff --git a/03_MySQL/m1081_perun.sql b/03_MySQL/m1081_perun.sql index ddf2755..0e2b40c 100644 --- a/03_MySQL/m1081_perun.sql +++ b/03_MySQL/m1081_perun.sql @@ -158,6 +158,8 @@ CREATE TABLE IF NOT EXISTS `pe_LogStats` ( `ps_ship_landings` int(11) UNSIGNED NOT NULL DEFAULT '0', `ps_farp_takeoffs` int(11) UNSIGNED NOT NULL DEFAULT '0', `ps_farp_landings` int(11) UNSIGNED NOT NULL DEFAULT '0', + `ps_other_landings` int(10) UNSIGNED NOT NULL DEFAULT '0', + `ps_other_takeoffs` int(10) UNSIGNED NOT NULL DEFAULT '0', PRIMARY KEY (`pe_LogStats_id`), UNIQUE KEY `UNIQUE_STATS_PER_MISSION_AND_UCID_AND_TYPE` (`pe_LogStats_playerid`,`pe_LogStats_missionhash_id`,`pe_LogStats_type`) USING BTREE, KEY `pe_LogStats_type` (`pe_LogStats_type`)