1 float numteams; // NOTE: This is changed in Sbar_SortFrags, so use it only AFTER that
5 float TeamByColor(float color)
9 case COLOR_TEAM1: return 0;
10 case COLOR_TEAM2: return 1;
11 case COLOR_TEAM3: return 2;
12 case COLOR_TEAM4: return 3;
17 float GetPlayerColor(float i)
19 return stof(getplayerkey(i, "colors")) & 15;
22 vector GetTeamRGB(float color)
26 default: return '1 1 1';
27 case COLOR_TEAM1: return '1 0 0'; // red
28 case COLOR_TEAM2: return '0 0 1'; // blue
29 case COLOR_TEAM3: return '1 1 0'; // yellow
30 case COLOR_TEAM4: return '1 0 1'; // pink
34 string GetTeamName(float color)
38 default: return "Spectators";
39 case COLOR_TEAM1: return "Red Team";
40 case COLOR_TEAM2: return "Blue Team";
41 case COLOR_TEAM3: return "Yellow Team";
42 case COLOR_TEAM4: return "Pink Team";