r5464 - trunk/data/qcsrc/client
esteel at icculus.org
esteel at icculus.org
Fri Jan 9 07:37:54 EST 2009
Author: esteel
Date: 2009-01-09 07:37:54 -0500 (Fri, 09 Jan 2009)
New Revision: 5464
Modified:
trunk/data/qcsrc/client/sbar.qc
Log:
unbalanced teams take THAT!!!!
Modified: trunk/data/qcsrc/client/sbar.qc
===================================================================
--- trunk/data/qcsrc/client/sbar.qc 2009-01-09 00:30:24 UTC (rev 5463)
+++ trunk/data/qcsrc/client/sbar.qc 2009-01-09 12:37:54 UTC (rev 5464)
@@ -1564,6 +1564,27 @@
o = Sbar_DrawNoteLine(o, s);
}
}
+ if(teamplay)
+ {
+ entity tm;
+ float scrhigh, scrlow;
+ tm = teams.sort_next;
+ if (tm)
+ {
+ scrhigh = tm.team_size;
+ scrlow = tm.team_size;
+ for(; tm.sort_next; tm = tm.sort_next)
+ {
+ scrhigh = max(scrhigh, tm.team_size);
+ scrlow = min(scrlow, tm.team_size);
+ }
+ if ((scrhigh - scrlow) > 1)
+ {
+ s = strcat(blinkcolor, "Teamnumbers are unbalanced! Press ^3", getcommandkey("team menu", "menu_showteamselect"), blinkcolor, " to adjust");
+ o = Sbar_DrawNoteLine(o, s);
+ }
+ }
+ }
//Sbar_SortFrags();
Sbar_UpdatePlayerTeams();
More information about the nexuiz-commits
mailing list