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")) 118 switch(strtolower(team_color))
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(teamid) strcat(Team_ColorName(teamid), " ", NAME_TEAM, "^7") 230 #define Team_ColoredFullName(teamid) strcat(Team_ColorCode(teamid), Team_ColorName(teamid), " ", NAME_TEAM, "^7") 232 #define Team_IndexToFullName(index) Team_FullName(Team_IndexToTeam(index)) 233 #define Team_IndexToColoredFullName(index) Team_ColoredFullName(Team_IndexToTeam(index)) 236 #define TCR(input,type,team) strreplace("^TC", COL_TEAM_##team, strreplace("^TT", strtoupper(type##_TEAM_##team), input)) 239 #define SAME_TEAM(a,b) (teamplay ? (a.team == b.team) : (a == b)) 240 #define DIFF_TEAM(a,b) (teamplay ? (a.team != b.team) : (a != b)) const int NUM_TEAMS
Number of teams in the game.
int Team_IndexToBit(int index)
Converts team index into bit value that is used in team bitmasks.
const string STATIC_NAME_TEAM_1
vector Team_ColorRGB(int teamid)
bool Team_IsValidIndex(int index)
Returns whether the team index is valid.
string Static_Team_ColorName(int teamid)
const string STATIC_NAME_TEAM_3
const string STATIC_NAME_TEAM_2
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
const string STATIC_NAME_TEAM_4
int Team_TeamToIndex(int team_num)
Converts team value into team index.
vector(float skel, float bonenum) _skel_get_boneabs_hidden
float Team_ColorToTeam(string team_color)
string Team_ColorCode(int teamid)
string Team_ColorName(int teamid)
int Team_IndexToTeam(int index)
Converts team index into team value.
int Team_TeamToBit(int team_num)
Converts team value into bit value that is used in team bitmasks.
bool Team_IsValidTeam(int team_num)
Returns whether team value is valid.