CS2 Game Mode Setup: Server Config Guide
In this article
Setting the game mode on a Counter-Strike 2 server lets you control whether players experience the classic competitive 5v5, the fast-paced casual mode, or a custom mode like deathmatch or arms race. This guide walks you through the exact commands and config files needed to switch modes on both dedicated and community servers, assuming you have basic file access to your server directory.
What You'll Need
- Access to your CS2 server's files (via FTP, a control panel, or a local install)
- Ability to edit text files (like
server.cfg) or run console commands - If using a hosting provider, the ability to restart the server or apply changes
- Basic familiarity with the Source engine's command line and config files
Step-by-Step
- Locate your server's config folder. The default path is
csgo/cfg/inside your server installation. If you're using a panel, look for a "Config Files" or "File Manager" section. - Open or create
server.cfg. This is the main config file that runs when the server starts. If it doesn't exist, create a new text file and name itserver.cfg. - Set the game mode using console variables. Add the following lines to
server.cfg(or run them via the server console):game_type 0 game_mode 1Here,
game_typeandgame_modework together. The values are:- Casual:
game_type 0,game_mode 0 - Competitive:
game_type 0,game_mode 1 - Wingman:
game_type 0,game_mode 2 - Deathmatch:
game_type 1,game_mode 2 - Arms Race / Gun Game:
game_type 1,game_mode 0 - Demolition:
game_type 1,game_mode 1
These are the official modes. Custom modes may require additional mods or plugins.
- Casual:
- Save the file. Ensure it is saved with UTF-8 encoding (no BOM) to avoid parsing errors.
- Restart your server. The new mode will apply on the next map change or server restart. If you're testing live, you can also type the commands directly into the server console (if you have RCON or physical access) and they take effect immediately, but a restart is cleanest.
- Verify the mode. Once the server is up, join it or check the server info. The mode should be reflected in the server browser (e.g., "Competitive"). You can also type
game_typeandgame_modein the console to see current values. - Set additional mode-specific settings (optional). For example, competitive mode often uses
mp_maxrounds 30andmp_roundtime 1.92. Deathmatch might usemp_freezetime 0. These can be added to the same config.
Common Mistakes
- Using only
game_modewithoutgame_type. Both are required to define a mode correctly. For instance, settinggame_mode 2alone could result in Wingman or Deathmatch depending on the defaultgame_type. - Editing the wrong config file. Some hosts use
autoexec.cfgor a per-map config. Make sure you're editing the file that actually runs on startup. - Forgetting to restart. Changes to
server.cfgonly apply on a fresh start or map change. If you don't restart, the old mode persists. - Using deprecated commands. Older guides reference
game_modewith different numbers (like 0 for casual, 1 for competitive) but that's correct; however, some old commands likemp_gamemodeare not used in CS2. Stick togame_typeandgame_mode. - Overwriting default settings. If you set a mode but don't adjust round times or team sizes, you might get a hybrid that feels wrong. For example, competitive mode with
mp_maxrounds 15instead of 30.
Tips
- Use a dedicated config per mode. Create files like
casual.cfg,comp.cfg, anddm.cfgwith the appropriategame_type/game_modeand other settings, then call them fromserver.cfgusingexec casual.cfg. - Test on a local server first. You can launch a listen server (from the main menu) with the same commands to see how the mode feels before applying it to your public server.
- Check the map pool. Some modes require specific maps. Deathmatch works on most maps, but Arms Race typically uses custom maps like
ar_shoots. Ensure the map you're running is compatible. - Use the server browser to confirm. The mode label shows up in the server list, so you can quickly verify without joining.
- Keep a backup. Before changing anything, copy your original
server.cfgso you can revert easily.
Troubleshooting
Server still shows the old mode after restart. Double-check that you saved the file correctly and that the server is reading the right config. Some hosts have a separate "Startup Command" that overrides server.cfg; look for a launch option like +game_type 0 +game_mode 1 and remove it or update it there.
Mode changes but the gameplay feels wrong. This usually means the mode-specific variables aren't set. For example, competitive mode without mp_teamtime or mp_maxrounds may behave oddly. Use the official competitive settings by adding them to your config.
Server crashes when starting. Check the console output for errors. Often this is due to a missing map that the mode requires. Try setting a default map with map de_dust2 in your config or in the launch options.
Changes don't apply to the next map. If you're using exec in your config, ensure the file path is correct and that the file has no syntax errors (like missing quotes). Also, if you change the mode mid-game, it only takes effect on the next map change.
RCON commands not working. If you're trying to set the mode via RCON, make sure you have the correct permissions and that the server allows RCON commands. Some hosts restrict certain commands.
Frequently Asked Questions
Can I set the game mode from the server command line?
Yes, you can add +game_type 0 +game_mode 1 to the server's launch options in your hosting panel or in a startup script. This overrides any config file settings.
What is the difference between game_type and game_mode?
game_type defines the broad category (0 for classic, 1 for gamemodes like deathmatch), while game_mode specifies the exact variant within that type. They must be used together.
How do I set up a custom game mode like retake or surf?
Custom modes require plugins like CounterStrikeSharp or SourceMod, plus a config that sets the appropriate variables. The built-in commands only cover official modes.
Will changing the game mode affect my server's ranking or matchmaking?
No, community servers are separate from official matchmaking. Your server will simply appear under the appropriate community category in the server browser.
Do I need to change game_mode for every map?
No, the mode is global for the server. It persists across map changes unless you change it again.
Can I use the same config for both casual and competitive?
You can, but you'd have to change the game_type and game_mode lines each time. It's easier to have separate config files and switch between them.