5#ifdef TEAMNUMBERS_THAT_ARENT_STUPID
31#define NAME_TEAM_1 CTX(_("TEAM^Red"))
32#define NAME_TEAM_2 CTX(_("TEAM^Blue"))
33#define NAME_TEAM_3 CTX(_("TEAM^Yellow"))
34#define NAME_TEAM_4 CTX(_("TEAM^Pink"))
35#define NAME_TEAM _("Team")
36#define NAME_NEUTRAL _("Neutral")
39#define KEY_TEAM_1 CTX(_("KEY^Red"))
40#define KEY_TEAM_2 CTX(_("KEY^Blue"))
41#define KEY_TEAM_3 CTX(_("KEY^Yellow"))
42#define KEY_TEAM_4 CTX(_("KEY^Pink"))
43#define FLAG_TEAM_1 CTX(_("FLAG^Red"))
44#define FLAG_TEAM_2 CTX(_("FLAG^Blue"))
45#define FLAG_TEAM_3 CTX(_("FLAG^Yellow"))
46#define FLAG_TEAM_4 CTX(_("FLAG^Pink"))
47#define GENERATOR_TEAM_1 CTX(_("GENERATOR^Red"))
48#define GENERATOR_TEAM_2 CTX(_("GENERATOR^Blue"))
49#define GENERATOR_TEAM_3 CTX(_("GENERATOR^Yellow"))
50#define GENERATOR_TEAM_4 CTX(_("GENERATOR^Pink"))
124 case "auto":
return 0;
213 return BIT(index - 1);
218#define TeamByColor(teamid) (Team_TeamToIndex(teamid) - 1)
219#define ColorByTeam(number) Team_IndexToTeam(number + 1)
222#define Team_ColorName_Lower(teamid) strtolower(Team_ColorName(teamid))
223#define Team_ColorName_Upper(teamid) strtoupper(Team_ColorName(teamid))
226#define Static_Team_ColorName_Lower(teamid) strtolower(Static_Team_ColorName(teamid))
227#define Static_Team_ColorName_Upper(teamid) strtoupper(Static_Team_ColorName(teamid))
229#define Team_FullName_WithSuffixColor(teamid, suf_col) strcat(Team_ColorName(teamid), " ", NAME_TEAM, suf_col)
230#define Team_FullName(teamid) Team_FullName_WithSuffixColor(teamid, "^7")
231#define Team_ColoredFullName_WithSuffixColor(teamid, suf_col) strcat(Team_ColorCode(teamid), Team_ColorName(teamid), " ", NAME_TEAM, suf_col)
232#define Team_ColoredFullName(teamid) Team_ColoredFullName_WithSuffixColor(teamid, "^7")
234#define Team_IndexToFullName(index) Team_FullName(Team_IndexToTeam(index))
235#define Team_IndexToColoredFullName(index) Team_ColoredFullName(Team_IndexToTeam(index))
238#define TCR(input,type,team) strreplace("^TC", COL_TEAM_##team, strreplace("^TT", strtoupper(type##_TEAM_##team), input))
241#define SAME_TEAM(a,b) (teamplay ? (a.team == b.team) : (a == b))
242#define DIFF_TEAM(a,b) (teamplay ? (a.team != b.team) : (a != b))
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
string strtolower(string s)
const string STATIC_NAME_TEAM_4
string Static_Team_ColorName(int teamid)
bool Team_IsValidTeam(int team_num)
Returns whether team value is valid.
int Team_TeamToBit(int team_num)
Converts team value into bit value that is used in team bitmasks.
bool Team_IsValidIndex(int index)
Returns whether the team index is valid.
string Team_ColorName(int teamid)
const string STATIC_NAME_TEAM_2
vector Team_ColorRGB(int teamid)
int Team_TeamToIndex(int team_num)
Converts team value into team index.
const string STATIC_NAME_TEAM_1
int Team_IndexToTeam(int index)
Converts team index into team value.
const int NUM_TEAMS
Number of teams in the game.
const string STATIC_NAME_TEAM_3
int Team_IndexToBit(int index)
Converts team index into bit value that is used in team bitmasks.
string Team_ColorCode(int teamid)
float Team_ColorToTeam(string team_color)