Skip to main content
50% Discount First month
Days
Hours
Minutes
Seconds
NEW50

How to add bots to a Counter-Strike: Source server

Header image

“Counter-Strike: Source” is a popular online shooter that has captivated the hearts of countless fans. Servers usually bustle with life and do not suffer from a lack of players. However, in situations where players are scarce, a great solution is to add additional characters in the form of bots. Thanks to advanced algorithms, they can mimic various strategies and tactics, filling the gaps in your team. Additionally, you will be able to configure their behaviors to further enhance the gameplay experience. In this guide, we will describe in detail the process of adding bots to the server and configuring their behavior during the game.

How to add bots

Before configuring the bot properties on your server, you will need to add a few lines to the main configuration file. To do this, go to the game servers panel and go to the server files (you will find them in the “Files” tab).

Follow this path and run the server.cfg file:

/home/container/cstrike/cfg/server.cfg

Then, add the following lines to the end of the configuration file:

bot_prefix {Clan Tag}
bot_quota 4
bot_quota_match 0
bot_quota_mode fill
bot_join_after_player 0
bot_difficulty 1
bot_defer_to_human 1
bot_chatter off
bot_auto_vacate 4

Now, go to the “Console” tab and restart your server by selecting “Restart”. From now on, bots should be active on your Counter-Strike: Source server.

If you decide you want to deactivate bots on your server, simply delete the lines you added earlier.

How to configure bots

If you want, you can freely configure the behavior of bots on your Counter-Strike: Source server. Below is a list of available cvars that you can freely paste into the configuration file.

ValueDefault ValueDescription
bot_addThis is a value in itself. Adding this line will enable bots
bot_quota4The number of bots you want to add
bot_quota_modefillIf set to “fill”, the server will automatically add bots to maintain the specified number of players
bot_difficulty0Bot skills (0 = easy, 1 = normal, 2 = hard, 3 = expert)
bot_chatternormalControl how bots talk (off – radio – minimal – normal)
bot_auto_follow1Allow bots to automatically follow human player (0 – 1)
bot_auto_vacate1Kick bots to make room for players (0 – 1)
bot_join_after_player1Specifies whether bots must wait for human players to start the game. If you set it to 0, the bots will play themselves
bot_defer_to_human0Sets whether bots can complete goals if there are human players on the team
bot_prefixThe prefix that the bot will have before its name. Here you can enter a clan name or leave the field blank
bot_allow_rogues0If set to 1, bots will occasionally play “rouge”, i.e. not following radio commands and not completing the scenario objective
bot_walk0Determines the speed at which bots move (0 = walk + run, 1 = walk)
bot_join_teamanySpecifies which team bots can join
bot_eco_limit2000Bots will not be able to buy money if it falls below a certain amount
bot_all_weaponsThis is a value in itself. Allows bots to use all weapons
bot_knives_onlyThis is a value in itself. Allows bots to use only knives
bot_pistols_onlyThis is a value in itself. Allows bots to use only pistols
bot_snipers_onlyThis is a value in itself. Allows bots to use only sniper rifles
bot_allow_grenades1Allows bots to use grenades (0 – 1)
bot_allow_pistols1Allows bots to use pistols (0 – 1)
bot_allow_sub_machine_guns1Allows bots to use sub machine guns (0 – 1)
bot_allow_shotguns1Allows bots to use shotguns (0 – 1)
bot_allow_rifles1Allows bots to use rifles (0 – 1)
bot_allow_snipers1Allows bots to use snipers (0 – 1)
bot_allow_machine_guns1Allows bots to use machine guns (0 – 1)
Counter-Strike: Source bot cvars

We hope that our intuitive web interface has allowed you to setup Counter-Strike: Source bots easily. If you want to ask us any questions, feel free to contact us via e-mail, ticket or live chat!


Author image
About Isabela

Support Engineer