string Team_ColorCode(float teamid)
{
- switch(teamid)
- {
+ switch(teamid)
+ {
case NUM_TEAM_1: return COL_TEAM_1;
- case NUM_TEAM_2: return COL_TEAM_2;
- case NUM_TEAM_3: return COL_TEAM_3;
- case NUM_TEAM_4: return COL_TEAM_4;
+ case NUM_TEAM_2: return COL_TEAM_2;
+ case NUM_TEAM_3: return COL_TEAM_3;
+ case NUM_TEAM_4: return COL_TEAM_4;
}
return "^7";
string Team_ColorName(float teamid)
{
- switch(teamid)
- {
+ switch(teamid)
+ {
case NUM_TEAM_1: return NAME_TEAM_1;
- case NUM_TEAM_2: return NAME_TEAM_2;
- case NUM_TEAM_3: return NAME_TEAM_3;
- case NUM_TEAM_4: return NAME_TEAM_4;
+ case NUM_TEAM_2: return NAME_TEAM_2;
+ case NUM_TEAM_3: return NAME_TEAM_3;
+ case NUM_TEAM_4: return NAME_TEAM_4;
}
return NAME_NEUTRAL;
// used for replacement in filenames or such where the name CANNOT be allowed to be translated
string Static_Team_ColorName(float teamid)
{
- switch(teamid)
- {
+ switch(teamid)
+ {
case NUM_TEAM_1: return STATIC_NAME_TEAM_1;
- case NUM_TEAM_2: return STATIC_NAME_TEAM_2;
- case NUM_TEAM_3: return STATIC_NAME_TEAM_3;
- case NUM_TEAM_4: return STATIC_NAME_TEAM_4;
+ case NUM_TEAM_2: return STATIC_NAME_TEAM_2;
+ case NUM_TEAM_3: return STATIC_NAME_TEAM_3;
+ case NUM_TEAM_4: return STATIC_NAME_TEAM_4;
}
return NAME_NEUTRAL;
switch(strtolower(team_color))
{
case "red": return NUM_TEAM_1;
- case "blue": return NUM_TEAM_2;
- case "yellow": return NUM_TEAM_3;
- case "pink": return NUM_TEAM_4;
- case "auto": return 0;
+ case "blue": return NUM_TEAM_2;
+ case "yellow": return NUM_TEAM_3;
+ case "pink": return NUM_TEAM_4;
+ case "auto": return 0;
}
return -1;