Returns values from Teams.txt or from the lobby settings.
Syntax
int GetTeamConfig
(int iConfig);
Parameter
iConfig:
May be one of the following values:
Name
Number
TEAM_Custom
1
TEAM_Active
2
TEAM_AllowHostilityChange
3
TEAM_Dist
4
TEAM_AllowTeamSwitch
5
TEAM_AutoGenerateTeams
6
TEAM_TeamColors
7
Remark
For TEAM_Dist the settings from the lobby will be returned. In this case it must be distinguished if TEAM_AutoGenerateTeams has been enabled or disabled because it determines the available options.
With TEAM_AutoGenerateTeams = true the possible return values are TEAMDIST_Free (0, free team choice), TEAMDIST_Host (1, teams chosen by host) or 2 (without according constant, no teams).
With TEAM_AutoGenerateTeams = false (the norm for predefined teams) the return values are TEAMDIST_Free (0), TEAMDIST_Host (1), TEAMDIST_Random (2, random teams) or TEAMDIST_RandomInv (3, random and invisible in the lobby).