return result;
}
-int Team_GetWinnerTeam_WIthOwnedItems(int min_control_points)
+int Team_GetWinnerTeam_WithOwnedItems(int min_control_points)
{
int winner = 0;
for (int i = 0; i < NUM_TEAMS; ++i)
void setcolor(entity this, int clr)
{
-#if 0
+#if 1
this.clientcolors = clr;
this.team = (clr & 15) + 1;
#else
if (team_index != old_team_index)
{
KillPlayerForTeamChange(player);
- PlayerScore_Clear(player);
- CS(player).parm_idlesince = time;
+ PlayerScore_Clear(player); // works only in game modes without teams
if (!IS_BOT_CLIENT(player))
TeamBalance_AutoBalanceBots();
}
// TODO: Balance quantity of bots across > 2 teams when bot_vs_human is set (and remove next line)
- if (autocvar_bot_vs_human && AvailableTeams() == 2 && for_whom)
+ if (autocvar_bot_vs_human && AVAILABLE_TEAMS == 2 && for_whom)
{
if (autocvar_bot_vs_human > 0)
{
}
int team_num;
// TODO: Reconsider when the player is truly on the team.
- if (IS_CLIENT(it) || (it.caplayer))
+ if (IS_CLIENT(it) || INGAME(it))
{
team_num = it.team;
}