Counter-Strike 2

Counter-Strike 2

View Stats:
Majo Nov 10, 2013 @ 12:00am
How to change gamemode
Hi, few days ago I bought my own private server. But I have one problem, how to change game mode from Casual to Competitive?
Last edited by Majo; Nov 10, 2013 @ 12:02am
< >
Showing 1-2 of 2 comments
Google doesn't hurt does it?

As far as I know, you have to use one of the gamemodes - which shouldn't be a problem since you can customize it completely. I'd recommend using casual and then changing the cvars to customize it to how you want it to run. All your customizations should be in gamemodes_server.txt - this way when the server updates, your changes won't be overwrited had you made them in gamemodes.txt.

Here's an example of a GameModes_Server.txt that is a Casual Rotation server, you can easily change the cvar values and add more - use the default gamemodes.txt to find more cvars that you can use.

Quote:
// To use this file, rename it to GameModes_Server.txt
//
// Values here override the default gamemodes.txt

"GameModes_Server.txt"
{
"gameTypes"
{
"classic"
{
"gameModes"
{
"casual"
{
"maxplayers" "24"
"convars"
{
"mp_solid_teammates" "0" // Determines whether teammates are solid or not.
"mp_free_armor" "0" // Determines whether armor and helmet are given automatically.
"mp_halftime" "0" // Determines whether or not the match has a team-swapping halftime event.
"mp_startmoney" "800"
"mp_maxmoney" "16000"
"mp_afterroundmoney" "0"
"mp_friendlyfire" "0"
"sv_deadtalk" "0"
"sv_alltalk" "0"
"sv_voiceenable" "1"
"sv_allow_votes" "0"
"mp_join_grace_time" "25"
"mp_autoteambalance" "1"
"mp_autokick" "0"
"mp_timelimit" "45"
"mp_maxrounds" "0"
"mp_forcecamera" "1"
"mp_buytime" "35"
"mp_freezetime" "3"
"mp_limitteams" "2"
"mp_roundtime" "3"
"mp_win_panel_display_time" "3"
"bot_quota_mode" "fill"
"bot_quota" "0"
"bot_defer_to_human_items" "1"
"bot_defer_to_human_goals" "0"
"bot_difficulty" "1"
"bot_dont_shoot" "0"
"bot_chatter" "normal"
}

"mapgroupsMP" // List of mapgroups valid for this game mode
{
"random_classic" ""
}
}
}
}
}

//////////////////////////////////////////////////////////////////////////////////////////////
// Map groups
//
// To use a mapgroup, it needs to be defined in a keyvalues
// block such as the example below, as well as listed in the
// 'mapgroupsMP' block within the game mode that will run it,
// such as the example above.
//
// Then launch the server with '+mapgroup MAPGROUPNAME'
//
// Example:
//
// srcds -game csgo +game_mode 1 +mapgroup mg_bomb_se +map de_nuke_se
//
//
// Check the developer wiki for updated community info
// https://developer.valvesoftware.com/...icated_Servers
//////////////////////////////////////////////////////////////////////////////////////////////


"mapgroups"
{
"random_classic" // mapgroup definition
{
"name" "random_classic"
"maps"
{
"de_inferno" ""
"cs_italy" ""
"de_dust" ""
"de_nuke" ""
"de_train" ""
"de_dust2" ""
"cs_office" ""
}
}
}
}
Everything inside GameModes_Server.txt will overwrite the default values in gamemodes.txt

Here's an example of the commandline to launch the server you can use.

-game csgo -console -usercon +fps_max 300 +alias fps_max echo disabled +ip YOURIP -port 27015 +maxplayers 24 -autoupdate +game_mode 0 +game_type 0 +mapgroup random_classic -tickrate 66 +map de_dust2 +tv_port 27215 +tv_enable 0 +tv_maxclients 10 -condebug
Majo Nov 10, 2013 @ 12:36am 
It doesnt work, when I overwrite in my server. Gamemode is still Cusual.
< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: Nov 10, 2013 @ 12:00am
Posts: 2