From f1eb4b64d10b875ce2e9c6d19d6c1708d870eae1 Mon Sep 17 00:00:00 2001 From: VladMordock Date: Wed, 28 Aug 2019 01:05:04 +0200 Subject: [PATCH] Added 5 minut time limit to remove spawn deads from mission stats --- 01_DCS/Hooks/Perun.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/01_DCS/Hooks/Perun.lua b/01_DCS/Hooks/Perun.lua index a320d6d..7dd6fb1 100644 --- a/01_DCS/Hooks/Perun.lua +++ b/01_DCS/Hooks/Perun.lua @@ -20,7 +20,7 @@ Perun.MOTD_L2 = "Wymagamy obecnosci DCS SRS oraz TeamSpeak - szczegoly na forum" -- Variable init -Perun.Version = "v0.7.0" +Perun.Version = "v0.6.0" Perun.StatusData = {} Perun.SlotsData = {} Perun.MissionData = {} @@ -333,7 +333,9 @@ Perun.LogStatsCount = function(argPlayerID,argAction,argType) if argAction == "eject" then Perun.StatData[_ucid]['ps_ejections']=Perun.StatData[_ucid]['ps_ejections']+1 elseif argAction == "pilot_death" then - Perun.StatData[_ucid]['ps_deaths']=Perun.StatData[_ucid]['ps_deaths']+1 + if DCS.getModelTime() > 300 then + Perun.StatData[_ucid]['ps_deaths']=Perun.StatData[_ucid]['ps_deaths']+1 + end elseif argAction == "friendly_fire" then Perun.StatData[_ucid]['ps_teamkills']=Perun.StatData[_ucid]['ps_teamkills']+1 elseif argAction == "crash" then