keepcalculator

06 Numbers and Powers

CS2 Server Bots Setup Guide

Card No. 06·72746 · Updated · Standard formula, shown below

Setting up bots on your Counter-Strike 2 (CS2) server lets you practice aim, test strategies, or fill empty slots when real players are offline. This guide walks you through adding bots, controlling their difficulty, and managing them with console commands and config files. You’ll need a running CS2 dedicated server and access to its command console—either in-game or via SSH/RDP.

What You’ll Need

  • A CS2 dedicated server (official or third-party hosting) with admin access.
  • The server console (in-game console enabled or SSH/RDP access).
  • Basic familiarity with CS2’s command line interface.

Step-by-Step

  1. Start your server and load a map. Bots only spawn on a loaded map. Use map de_dust2 or changelevel de_mirage in the console.
  2. Enable bots with the default command. Type bot_add in the console. This adds one bot to the opposing team (or your team if you’re spectating). Repeat to add more.
  3. Specify team and difficulty. Use bot_add_t (Terrorist) or bot_add_ct (Counter-Terrorist). For difficulty, set bot_difficulty to a value 0-3 (0=easy, 1=normal, 2=hard, 3=expert) before adding bots.
  4. Set the number of bots automatically. Use bot_quota to define how many bots you want. For example, bot_quota 10 sets a target of 10 bots. Then set bot_quota_mode fill to fill empty slots, or match to balance teams.
  5. Control bot behavior. Use bot_stop 1 to freeze bots, bot_freeze 1 to make them stand still (useful for aim training). bot_kick removes all bots.
  6. Create a config file for persistent settings. Navigate to your server’s cfg folder (usually csgo/cfg). Create a file like bot.cfg and add lines such as bot_quota 10, bot_difficulty 2, bot_quota_mode fill. Then execute it with exec bot.cfg in the console.
  7. Add bots to your own team for practice. Use bot_add_t or bot_add_ct after joining a team. To make bots on your team, you may need to set bot_join_team any and bot_join_after_player 1.
  8. Adjust bot names and chat. Use bot_prefix to add a prefix to bot names, and bot_chatter to control their voice lines (0=off, 1=minimal, 2=normal).

Common Mistakes

  • Bots not spawning: Often because the map isn’t fully loaded or the server is in a competitive mode that restricts bots. Ensure you’re on a casual or deathmatch mode, or set sv_cheats 1 temporarily.
  • Using bot_add before map load: The command does nothing if no map is active. Always load a map first.
  • Difficulty not applying: You must set bot_difficulty before adding bots. Changing it after they spawn doesn’t affect existing bots.
  • Quota not working: If bot_quota seems ignored, check bot_quota_mode. In fill mode, it adds bots to fill empty slots; in match mode, it balances teams. If you have 10 players and set quota to 10, no bots appear.
  • Bots on the same team: By default, bots join the opposite team. To force them onto your team, use bot_join_team any and then issue bot_add while you’re on a team.

Tips

  • Use bot_knives_only and bot_pistols_only for specific weapon practice. Set them to 1 to restrict bots to those weapons.
  • For aim training, set bot_difficulty 0 and bot_freeze 1 to have stationary targets.
  • Save your config so you don’t have to retype commands each time. Create a practice.cfg with your preferred bot settings and execute it after map change.
  • Use bot_zombie 1 to make bots only use melee, great for practicing movement and close-range fights.
  • To reset bots, use bot_kick then re-add them with new settings.

Troubleshooting

  • Bots don’t move: Check if bot_stop or bot_freeze is set to 1. Set them to 0 to re-enable movement.
  • Bots are too easy/hard: Adjust bot_difficulty and restart the round or kick and re-add bots.
  • Console commands not working: Ensure you have admin rights. On a dedicated server, you may need to set sv_cheats 1 for some bot commands (like bot_place).
  • Bots don’t appear in competitive mode: Competitive mode disables bots by default. Switch to casual or deathmatch, or use bot_quota_mode fill with a high quota.
  • Server crashes when adding many bots: Lower bot_quota or check your server’s performance. Bots are CPU-intensive.
  • Executing config file not working: Make sure the file is in the correct cfg folder and has a .cfg extension. Use absolute path if needed.

Frequently Asked Questions

How do I add bots to my own team?

Join a team first, then set bot_join_team any and use bot_add. The bot will join your team.

Can I set bots to only use knives?

Yes, set bot_knives_only 1 in the console. Bots will only use melee weapons.

Why do bots keep getting stuck?

This can happen on custom maps with pathfinding issues. Try a different map or use bot_stop 1 to freeze them.

How do I remove all bots quickly?

Type bot_kick in the console. This removes all bots from the server.

Can I make bots harder than expert?

No, bot_difficulty 3 is the maximum. For more challenge, try playing with fewer teammates or on smaller maps.

Do bot settings persist across map changes?

No, most bot settings reset when the map changes. Use a config file and execute it after each map load.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →