1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

add server scoreboard functionality

This commit is contained in:
RaidMax
2022-01-22 12:49:12 -06:00
parent a6292adf4b
commit 6458aee2ee
34 changed files with 278 additions and 100 deletions

View File

@ -1289,12 +1289,14 @@ namespace IW4MAdmin.Plugins.Stats.Helpers
if (!suicide)
{
attackerStats.Kills += 1;
attackerStats.MatchData.Kills += 1;
attackerStats.SessionKills += 1;
attackerStats.KillStreak += 1;
attackerStats.DeathStreak = 0;
}
victimStats.Deaths += 1;
victimStats.MatchData.Deaths += 1;
victimStats.SessionDeaths += 1;
victimStats.DeathStreak += 1;
victimStats.KillStreak = 0;
@ -1444,6 +1446,7 @@ namespace IW4MAdmin.Plugins.Stats.Helpers
{
session.stat?.StartNewSession();
session.detection?.OnMapChange();
session.stat?.MatchData?.StartNewMatch();
}
}