Added 5 minut time limit to remove spawn deads from mission stats

This commit is contained in:
VladMordock
2019-08-28 01:05:04 +02:00
committed by GitHub
parent 976feec650
commit f1eb4b64d1

View File

@@ -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
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