kus / cs2-modded-server

Modded Counter Strike 2 (CS2) Dedicated Server with Metamod and CounterStrikeSharp for Windows and Linux that can automatically be setup on Google Cloud.
GNU Lesser General Public License v3.0
341 stars 72 forks source link

Bots are standing still in deathmatch mode #6

Closed Toutzn closed 1 year ago

Toutzn commented 4 years ago

Hi,

first I would say big big thanks for your big work on that modded server! This is fantastic! could you explain in you're readme what is needed to enable bots working in deathmatch mode?

Thanks a lot

sfhsjr commented 3 years ago

In the ./csgo/cfg/gamemode_deathmatch.cfg file change the line:

mp_bot_ai_bt "scripts/ai/deathmatch/bt_default.kv3"

to:

mp_bot_ai_bt "scripts/ai/deathmatch/bt_config.kv3"

There is an issue with the custom bot ai settings.

Then in the ./csgo/cfg/deathmatch_settings.cfg file delete the line:

bot_kick

Then, add in these few bot setting lines. This will make the server have a minimum of 5 players/bots when a person joins a team:


bot_chatter                                                     "off"
bot_join_after_player                           1
bot_quota                                                       5
bot_quota_mode                                          "fill"
bot_difficulty                                  3
kus commented 1 year ago

Thanks @sfhsjr, I have added you recommendations in and bots work well now.

I have made the server more bot friendly. By default there will be bots in deathmatch, gungame, gungame ffa, retakes, scoutsknives and wingman.

The default is set to add 1 bot if only 1 human is in the server, and then if there is 2 or more humans there will be no bots.

You can overwrite the settings for the bot by creating a "custom file" which is a new feature I added, you can read about it here.

If you copy this file custom_bots.cfg and put it in the /csgo/custom_files/cfg/ directory (/home/steam/csgo/custom_files/cfg/ on default linux setup) and you can modify it and change say bot_quota to 10 if you want 10 players at all times. When the server starts (if using linux) it will merge this file into the game cfg and it will execute every time bots.cfg executes.