How To Add Bots In CS2: The Professional Guide To Server Commands And Practice Drills
Deploying artificial intelligence within Counter-Strike 2 requires a precise understanding of the Source 2 console environment and the various server variables that dictate bot behavior. By utilizing the developer console and specific command-line arguments, players can bypass standard matchmaking restrictions to create highly customized training environments for aim refinement, utility testing, and tactical execution.
Foundational Setup for Local Servers and Tactical Practice Environments
Before initiating any bot-related commands, players must ensure their client is configured to allow high-level administrative overrides. Unlike the simplified menus found in previous iterations of the franchise, Counter-Strike 2 relies heavily on the developer console for granular control. This setup phase is critical for establishing a stable local environment where commands will be registered without being overridden by default game rules or server-side limitations.
To prepare for a bot-integrated session, verify the following requirements and benchmarks:
- Primary Input Requirement: The Developer Console must be enabled within the Game Settings menu. This is typically mapped to the tilde key and serves as the primary interface for all technical execution.
- Administrative Access: You must be the host of the local lobby or have rcon access on a private dedicated server. Bots cannot be added to official Valve matchmaking servers (Premier, Competitive, or Casual).
- Performance Benchmarks: Bot AI in Source 2 is more CPU-intensive than in Global Offensive. Ensure your system maintains a stable frame rate, as adding 10 or more bots can cause significant CPU frametime spikes on mid-range hardware.
- Environment Duration: A standard practice session generally lasts between 30 to 90 minutes. Setting the round timer variable to its maximum (60 minutes) is a prerequisite for uninterrupted training.
Implementing Bot Deployment via the Source 2 Developer Console
Adding bots is not merely a single-step action but a sequence of administrative commands that define the population and distribution of the server. Following these steps ensures that the bots are placed correctly and do not interfere with the specific goals of your training session.
Step 1: Activate the Technical Interface
Navigate to the Settings menu, select the Game tab, and locate the option labeled Enable Developer Console. Set this to Yes. Once active, press the tilde key to verify the command line appears. If the console does not open, check for conflicting keybinds in your keyboard configuration.
Step 2: Initialize a Local Practice Instance
Launch Counter-Strike 2 and select the Play button. Choose the Practice option from the top navigation bar. You will be presented with three toggles on the left side: Infinite Ammo, Grenade Camera, and Show Bullet Impacts. For most bot-centric training, it is recommended to enable all three. Select your desired map and click Go.
Step 3: Circumventing Team Balance Restrictions
By default, the game prevents one team from having a significant numerical advantage over the other. To add multiple bots to a single team for 1v5 scenarios, you must disable these restrictions. Open the console and input the command mp_limitteams 0 followed by pressing enter. Immediately follow this with mp_autoteambalance false. These two commands remove the engine's internal checks that would otherwise kick or move bots to maintain an even player count.
Step 4: Executing the Bot Population Commands
To add bots, you will use the bot_add family of commands. If you wish to add a bot regardless of their faction, simply type bot_add. To be more specific, use bot_add_ct to place a bot on the Counter-Terrorist side or bot_add_t for the Terrorist side.
Pro-Tip: If you are practicing entry fragging on a specific bomb site, use the bot_add_t command repeatedly while you are on the Counter-Terrorist side to simulate a full team execute.
Step 5: Finalizing the Round State
After adding the desired number of bots, the game may require a restart of the round logic to apply the new team configurations. Type mp_restartgame 1 in the console. This will reset the clock and spawn all added bots at their respective starting locations simultaneously.
How to Change CS2 Bot Difficulty? - Easy Guide
Comprehensive Command Reference for Bot Logic and Server Manipulation
Effective practice requires more than just the presence of bots; it requires controlling their movement, difficulty, and equipment. The following table outlines the technical parameters used to fine-tune the AI experience within Counter-Strike 2.
| Command Variable | Functional Output | Recommended Value |
|---|---|---|
| bot_kick | Removes all active bots from the current server instance | N/A |
| bot_difficulty | Sets the skill level of bots (0 = Easy, 1 = Normal, 2 = Hard, 3 = Expert) | 2 or 3 |
| bot_quota | Establishes the maximum number of bots allowed in the server | 10 |
| bot_stop | Freezes all bots in their current position for static target practice | 1 (On) or 0 (Off) |
| bot_place | Teleports a bot to the exact coordinate your crosshair is pointing at | N/A |
| bot_dont_shoot | Prevents bots from firing weapons while allowing them to move | 1 |
| bot_crouch | Forces all bots into a permanent crouched state for headshot training | 1 |
| bot_mimic | Forces bots to copy your movements and firing patterns exactly | 1 |
| sv_cheats | Enables the use of high-level administrative and "cheat" commands | 1 |
| mp_maxrounds | Increases the number of rounds to prevent the match from ending | 9999 |
Advanced Bot Manipulation for Competitive Scenarios
Once the basic population is established, professional players often utilize sv_cheats 1 to unlock advanced manipulation. These techniques are essential for testing "wallbang" spots or verifying if a specific grenade lineup leaves an enemy blinded.
Warning: Using sv_cheats 1 will disable the ability to earn achievements or XP during the session, and it cannot be enabled in any matchmaking environment.
Precise Positioning with Bot Placement
If you are trying to find the perfect angle to hold a site, you do not want bots running around randomly. Use bot_stop 1 to freeze the AI. Then, look at the specific corner you want to test and type bot_place in the console. This spawns a bot exactly where you are looking. You can then move to different positions on the map to see how much of the bot's model is visible from various perspectives.
Navigation Mesh Manipulation
Sometimes bots may become stuck in certain areas of a new Workshop map. While Source 2 handles navigation meshes more efficiently than its predecessor, you may occasionally need to force a navigation update. While not a common command for casual play, technical testers use nav_generate to recalculate the paths bots can take. Note that this command will often cause the game to freeze for several seconds while it computes the map geometry.
Simulating Moving Targets
For aim tracking practice, use bot_mimic 1. This command makes the bots follow your exact movements. If you strafe left, they strafe left. This is particularly useful for setting up "shadowing" drills where you practice maintaining your crosshair on a moving target that behaves with human-like movement patterns, as they are mirroring your own inputs.
Resolving Common Bot Deployment and AI Logic Failures
Even with the correct commands, the Source 2 engine can occasionally encounter conflicts between bot logic and server settings. Addressing these requires a systematic approach to debugging the console variables.
Scenario: Bots Fail to Join After Reaching a Specific Number
- Root Cause: The bot_quota variable is set lower than the number of bots you are trying to add, or the server's maxplayers setting is restricted.
- Actionable Fix: Increase the limit by typing bot_quota 16 in the console. Additionally, ensure the map supports the number of spawn points you are requesting; some smaller aim maps only have 2 or 4 spawn points.
Scenario: Bots Automatically Join the Opposite Team Only
- Root Cause: The mp_autoteambalance and mp_limitteams variables are still active, forcing the engine to maintain a 1:1 or 1:2 ratio.
- Actionable Fix: Re-enter mp_limitteams 0 and mp_autoteambalance 0. If the issue persists, use the bot_kick command to clear the server and re-add them individually using faction-specific commands like bot_add_t.
Scenario: Bots are Invisible or Not Spawning on Workshop Maps
- Root Cause: The map's navigation mesh (the file that tells bots where they can walk) is missing or corrupted.
- Actionable Fix: Type nav_generate in the console. The game will reload the map and attempt to build a new pathing file. This process is automatic but requires the map to have valid "brushes" or "meshes" for the AI to recognize.
Scenario: Commands are Ignored by the Console
- Root Cause: The console may not recognize commands if there is a syntax error or if the server has not been initialized with the correct "Game Mode" (e.g., trying to use Competitive commands in a Wingman setup).
- Actionable Fix: Double-check the spelling of the command. In CS2, many commands have changed from their CS:GO counterparts. Use the console's "auto-complete" feature by typing the first few letters and using the arrow keys to select the correct string.
Frequently Asked Questions
Can I add bots to a private match with friends?
Yes, as the lobby host, you can use all the commands listed above. Your friends will see the bots as well, and you can use them to fill empty slots for a 5v5 practice match. Ensure your "Practice" match is set to allow friends to join before launching.
How do I make bots only use knives for training?
You can restrict bot weaponry by using the command bot_knives_only 1. To return them to using firearms, use bot_all_weapons. This is an excellent way to practice movement and "bunny hopping" while under the pressure of being chased by multiple AI entities.
Why do the bots keep moving even after I type bot_stop 1?
This usually occurs if the command was entered before the bots actually spawned. If bots are already in motion, bot_stop 1 should freeze them instantly. If it fails, try bot_freeze 1, which is a similar variable used in some server configurations to achieve the same effect.
Is there a way to save my bot settings for future sessions?
You can create a custom ".cfg" file in your CS2 game directory (usually located in game/csgo/cfg). Name it "practice.cfg" and paste your preferred commands inside. In-game, simply type exec practice in the console to apply all your bot and server settings instantly.
How can I see where the bots are through walls for training purposes?
By enabling sv_cheats 1, you can use the command r_drawothermodels 2. This renders all player and bot models in a wireframe mode that is visible through solid geometry, allowing you to practice "pre-firing" common angles or checking how bots react to noise.
Optimize Your Counter-Strike 2 Training Regiment
Mastering the technical side of bot management is the first step toward developing professional-grade aim and gamesense. Utilize these console commands to build a rigorous daily warm-up routine and gain a competitive edge in your next matchmaking session.