]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/default/bot.qc
Add minplayers_per_team cvar: fill server with bots to reach this number of players...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / default / bot.qc
index 9ebcffae3c8383657da46d4b571e24dfcdd92b2a..a0b7e47fbc37cb9e6954b91c1100a19fdf841c5f 100644 (file)
@@ -604,6 +604,8 @@ bool bot_fixcount()
        else if ((realplayers || autocvar_bot_join_empty || (currentbots > 0 && time < 5)))
        {
                int minplayers = max(0, floor(autocvar_minplayers));
+               if (teamplay)
+                       minplayers = max(0, floor(autocvar_minplayers_per_team) * AvailableTeams());
                int minbots = max(0, floor(autocvar_bot_number));
 
                // add bots to reach minplayers if needed