]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/default/bot.qc
Experimental duel gametype (forced 1v1 deathmatch mode, supports all the same maps)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / default / bot.qc
index 50c4fd06a775038394b4ce56792b00a11635c39b..10ececff6362a3964c13d9c4c3ea181e536bc671 100644 (file)
@@ -123,6 +123,9 @@ void bot_think(entity this)
        // if dead, just wait until we can respawn
        if (IS_DEAD(this))
        {
+               if (bot_waypoint_queue_owner == this)
+                       bot_waypoint_queue_owner = NULL;
+               this.aistatus = 0;
                CS(this).movement = '0 0 0';
                if (this.deadflag == DEAD_DEAD)
                {
@@ -590,6 +593,7 @@ float bot_fixcount()
                });
        }
 
+       //int player_limit = GetPlayerLimit(); // TODO: use this instead of maxclients!
        int bots;
        // add/remove bots if needed to make sure there are at least
        // minplayers+bot_number, or remove all bots if no one is playing