ineedbots / iw5_bot_warfare

The Bot Warfare mod for MW3
https://www.moddb.com/mods/bot-warfare
114 stars 29 forks source link

Kicking bots when players join #110

Closed rxyyy closed 3 months ago

rxyyy commented 3 months ago

Is there a way to maintain a full server of bots and players?

For example, with 0 players you would have 18 bots. When a player joins, a bot would get kicked, making it 17 bots and 1 player. When another player joins, it would be 16 bots and 2 players, and so on.

My current configuration is as follows. It allows one player in the server, after which it doesn't kick bots, and any subsequent attempts to join the server would be met with the 'server is full' error.

set bots_manage_fill 17                            // Amount of players/bots (look at bots_manage_fill_mode) to maintain in the match.
set bots_manage_fill_mode 0                        // bots_manage_fill players/bots counting method.
set bots_manage_fill_kick 1                        // If the amount of players/bots in the match exceeds bots_manage_fill, kick bots until no longer exceeds.
set bots_manage_fill_watchplayers 1                // Bots will not be added until one player is in the game.
set bots_main_chat 0                               // The rate bots will chat at, set to 0 to disable.
set bots_main_menu 0                               // Enable the in-game menu for hosts.
set bots_skill_max 5                               // The maximum difficulty level for the bots.
set bots_loadout_rank 0                            // What rank to set the bots.
set bots_loadout_prestige -2                       // What prestige to set the bots.
set bots_loadout_reasonable 1                      // If the bots should filter bad performing create-a-class selections.
ineedbots commented 3 months ago

sv_replaceBots is something you want

rxyyy commented 3 months ago

Got it to work, thanks.