def create_game_stat(session, game_meta, game, server, gmap, player, events):\r
"""Game stats handler for all game types"""\r
\r
- pgstat = create_default_game_stat(session, game.game_type_cd)\r
+ game_type_cd = game.game_type_cd\r
+\r
+ pgstat = create_default_game_stat(session, game_type_cd)\r
\r
# these fields should be on every pgstat record\r
pgstat.game_id = game.game_id\r
if key == 'scoreboard-caps': pgstat.captures = int(value)\r
if key == 'scoreboard-score': pgstat.score = int(round(float(value)))\r
if key == 'scoreboard-deaths': pgstat.deaths = int(value)\r
- if key == 'scoreboard-kills': pgstat.kills = int(value)\r
+ if key == 'scoreboard-kills':\r
+ if game_type_cd != 'cts':\r
+ pgstat.kills = int(value)\r
if key == 'scoreboard-suicides': pgstat.suicides = int(value)\r
if key == 'scoreboard-objectives': pgstat.collects = int(value)\r
if key == 'scoreboard-captured': pgstat.captures = int(value)\r