]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/teamplay.qc
Bot waypoints: teach bots to jump gaps by implementing jump waypoints. Spawn it with...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / teamplay.qc
index d9682ed6acffcbfe81c791f43c578e08f0e8c58a..f2e24a7a57a0722d69af094465d76cb7f8118505 100644 (file)
@@ -181,7 +181,7 @@ bool Player_SetTeamIndex(entity player, int index)
                {
                        // This is important when players join the game and one of their
                        // color matches the team color while other doesn't. For example
-                       // [BOT]Lion.
+                       // [BOT]Lion: color 0 4.
                        SetPlayerColors(player, new_team - 1);
                }
                return true;
@@ -236,7 +236,7 @@ bool SetPlayerTeam(entity player, int team_index, int type)
        }
        else if (team_index == -1)
        {
-               if (!CS(player).just_joined)
+               if (!CS(player).just_joined && player.frags != FRAGS_SPECTATOR)
                        Send_Notification(NOTIF_ALL, NULL, MSG_INFO, INFO_QUIT_SPECTATE, player.netname);
        }
        return true;
@@ -464,8 +464,8 @@ entity TeamBalance_CheckAllowedTeams(entity for_whom)
                team_ent.m_num_bots = 0;
        }
        setthink(balance, TeamBalance_Destroy);
-       
-       int teams_mask = 0;     
+
+       int teams_mask = 0;
        string teament_name = string_null;
        bool mutator_returnvalue = MUTATOR_CALLHOOK(TeamBalance_CheckAllowedTeams,
                teams_mask, teament_name, for_whom);