xgaming.configs
Counter-Strike 2 server config
1 file

Counter-Strike 2 Server Config

Ready-to-use server.cfg for Counter-Strike 2 dedicated servers — competitive, casual and practice presets, RCON-ready and tickrate-tuned.

Config files

server.cfg
// ****************************************************************************
// Counter-Strike 2
// Config - server.cfg
// Date - 06/12/2023
// ****************************************************************************

// hostname - Hostname for server.
hostname "SERVERNAME"

// sv_password - Server password for entry into multiplayer games.
sv_password ""

// sv_setsteamaccount - token Set game server account token to use for logging in to a persistent game server account
// https://steamcommunity.com/dev/managegameservers
sv_setsteamaccount ""

// map - Start playing on specified map.
map "de_anubis"

// mapcyclefile - Name of the .txt file used to cycle the maps on multiplayer servers
mapcyclefile "mapcycle.txt"

// sv_lan - Server is a lan server ( no heartbeat, no authentication, no non-class C addresses ).
sv_lan false

// sv_logfile - Log server information in the log file.
sv_logfile true

// sv_logbans - Log server bans in the server logs.
sv_logbans true

// sv_voiceenable - Enable voice communications.
sv_voiceenable true

// sv_alltalk - Players can hear all other players, no team restrictions.
sv_alltalk false

// game_alias - Set the configuration of game type and mode based on game alias like 'deathmatch'.
// values: casual, deathmatch, competative, wingman
game_alias "casual"

// host_workshop_collection - Host a workshop map collection as a mapgroup.
// e.g host_workshop_collection "3104731381"
host_workshop_collection

// host_workshop_map - Get the latest version of the map and host it.
// e.g host_workshop_map "3075706807"
host_workshop_map

// mp_autoteambalance - Define if the game should automatically balance out teams in teamplay (0: no, default, 1: yes)
mp_autoteambalance true

What these settings mean

Quick reference for the 8 most important keys in this Counter-Strike 2 config. Hover or tap any key to see what it controls — useful when you're tuning a server for the first time and don't want to grep through the upstream wiki.

Core
2 settings
hostname
Server name shown in the in-game browser. Keep it under 64 characters and avoid colour codes if you want clean Steam listings.
sv_password
Optional join password. Empty string means a public server.
Network
1 setting
sv_lan
1 forces LAN-only mode (no Steam heartbeat). Set 0 for any internet-facing server.
Gameplay
1 setting
mp_autoteambalance
1 forces auto team balance. Usually 0 in competitive — let captains pick.
Voice
2 settings
sv_voiceenable
Master switch for in-game voice chat. 1 enabled, 0 disabled server-wide.
sv_alltalk
1 lets dead players hear the living and both teams hear each other. Off by default for competitive integrity.
Logging
2 settings
sv_logfile
1 writes log lines to disk in addition to stdout.
sv_logbans
1 logs ban / kick events. Always on for any moderated server.

More tactical fps configs

Skip the setup. Host Counter-Strike 2 with XGamingServer.

Spin up a managed Counter-Strike 2 server with one click. Backups, mods, control panel and DDoS protection included.