added weapon-stats endpoint

This commit is contained in:
2021-10-13 17:30:17 +02:00
parent ddd9b79ebb
commit d74b8e3447
3 changed files with 207 additions and 100 deletions

View File

@@ -317,6 +317,10 @@ func (p *DemoParser) parseWorker() {
}
for _, tMatchPlayer := range tStats {
if tMatchPlayer.Color == "" {
tMatchPlayer.Color = stats.ColorGrey
}
p.lock.Lock()
nMatchPLayer, err := tMatchPlayer.Update().
SetDmgTeam(tMatchPlayer.DmgTeam).