void setcolor(entity this, int clr)
{
-#if 0
+#if 1
this.clientcolors = clr;
this.team = (clr & 15) + 1;
#else
{
KillPlayerForTeamChange(player);
PlayerScore_Clear(player); // works only in game modes without teams
- CS(player).parm_idlesince = time;
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)
{