Add bounty kills to stats

This commit is contained in:
rubenwardy 2018-04-18 23:00:15 +01:00
parent cf81d194f9
commit 12d7228ff0
No known key found for this signature in database
GPG key ID: A1E29D52FF81513C
3 changed files with 10 additions and 2 deletions

View file

@ -118,6 +118,8 @@ function ctf_stats.player(name)
ctf_stats.players[name] = player_stats
end
player_stats.bounty_kills = player_stats.bounty_kills or 0
local match_player_stats =
ctf_stats.current.red[name] or ctf_stats.current.blue[name]
@ -132,6 +134,7 @@ ctf.register_on_join_team(function(name, tname)
attempts = 0,
captures = 0,
score = 0,
bounty_kills = 0,
}
end)