Detect team modes by GAME_TYPE code and sync gametype at match start

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <[email protected]>
This commit is contained in:
Debian
2026-09-18 14:19:37 +02:00
co-authored by Sisyphus
parent 016384ef12
commit cbeab1ae45
3 changed files with 20 additions and 5 deletions
+6
View File
@@ -57,6 +57,12 @@ TEAM_MAP = {
3: 'SPECTATOR'
}
# GAME_TYPE codes from MATCH_STARTED that are team-based; matching on the code
# is immune to customized factory titles (g_factoryTitle)
TEAM_GAME_TYPE_CODES = {
'TDM', 'CA', 'CTF', '1FLAG', 'HARVESTER', 'FT', 'DOM', 'RR'
}
TEAM_COLORS = {
'RED': '^1(RED)^7',
'BLUE': '^4(BLUE)^7',