except:
minimum_required_players = 2
+ # Make an exception for CTS since it can be done by individuals and there is no Elo anyway
+ if submission.game_type_cd == "cts":
+ minimum_required_players = 1
+
return len(submission.humans) >= minimum_required_players
if game_type_cd in 'ca' 'dm' 'duel' 'rune' 'tdm':
pgstat.kills = pgstat.deaths = pgstat.suicides = 0
- if game_type_cd == 'cq':
- pgstat.kills = pgstat.deaths = pgstat.suicides = pgstat.captures = 0
- pgstat.drops = 0
-
if game_type_cd == 'ctf':
pgstat.kills = pgstat.captures = pgstat.pickups = pgstat.drops = 0
pgstat.returns = pgstat.carrier_frags = 0
pgstat.captures = pgstat.drops = pgstat.pushes = pgstat.destroys = 0
pgstat.carrier_frags = 0
- if game_type_cd == 'lms':
- pgstat.kills = pgstat.deaths = pgstat.suicides = pgstat.lives = 0
-
if game_type_cd == 'nb':
pgstat.kills = pgstat.deaths = pgstat.suicides = pgstat.captures = 0
pgstat.drops = 0
- if game_type_cd == 'rc':
- pgstat.kills = pgstat.deaths = pgstat.suicides = pgstat.laps = 0
-
return pgstat
# all team game modes have a score, so we'll zero that out always
teamstat.score = 0
- if game_type_cd in 'ca' 'ft' 'lms' 'ka':
+ if game_type_cd in 'ca' 'ft' 'ka':
teamstat.rounds = 0
if game_type_cd == 'ctf':