CSGO Game Mode Commands: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added base gamemode column. The named modes are not broken.)
(Reorganized text, added information about inaccessible (?) .cfg files and added column of .cfg files of gamemodes)
Line 3: Line 3:
Here is the table of official game modes and its console commands in [[Counter-Strike: Global Offensive]].
Here is the table of official game modes and its console commands in [[Counter-Strike: Global Offensive]].


To launch a map with a desired game mode, you generally have to type the commands <code>game_type X</code> and <code>game_mode Y</code> into the console ''before loading'' a map by using the <code>[[Map (ConCommand)|map]] <mapname></code> console command, or ''before changing'' a map by using the <code>[[changelevel]] <mapname></code> console command.
The game uses the values of <code>game_type</code> and <code>game_mode</code> (and <code>sv_skirmish_id</code>, see below) to determine the gamemode that it loads when a map is loaded with the <code>[[Map (ConCommand)|map]]</code> or <code>[[changelevel]]</code> command. If these values are not set before loading a map, it results in the last gamemode played or <code>casual</code>, in case the game has just been launched, because their initial values are 0 (except they are set via launch options or a .cfg file).


{{tip|Set Launch Options can be used. (e.g: +game_type <number> +game_mode <number> +map <mapname>)}}
So, to launch a map with a desired game mode, you basicly have to set these two values by typing the commands <code>game_type <number></code> and <code>game_mode <number></code> into the console ''before loading'' a map by using the <code>[[Map (ConCommand)|map]] <mapname></code> console command, or ''before changing'' a map by using the <code>[[changelevel]] <mapname></code> console command.


The easier way is to invoke <code>map</code> or <code>changelevel</code> followed by the map name and one of the optional gamemode parameters, for example <code>map de_dust2 deathmatch</code> or <code>changelevel myCustomMap coop</code>. Then, the game will adjust <code>game_type</code> and <code>game_mode</code> for you and launch the map. If you don't use the optional gamemode parameter, like <code>map de_dust2</code>, the game will use the last gamemode played or <code>casual</code>, in case the game has just been launched.
{{tip|Set Launch Options can be used, e.g: <code>+game_type <number> +game_mode <number> +map <mapname></code>}}


{{note | This information is taken from <code>csgo/gamemodes.txt</code>.}}
The smarter way is to use the optional gamemode parameter of the <code>map</code> and <code>changelevel</code> command, for example <code>map de_dust2 deathmatch</code> or <code>changelevel myCustomMap coop</code>. If such a gamemode parameter is given and if it is valid, the game will adjust <code>game_type</code> and <code>game_mode</code> for you and launch the map with the associated gamemode.
 
{{note | The information of this table can be found in <code>csgo/gamemodes.txt</code>.}}


{| class="standard-table"
{| class="standard-table"
Line 16: Line 18:
! game_mode
! game_mode
! map command optional parameter
! map command optional parameter
! .cfg filenames found in gamemodes.txt
|-
|-
| Casual (default)
| Casual (default)
Line 21: Line 24:
| 0
| 0
| <code>casual</code>
| <code>casual</code>
| gamemode_casual.cfg, <br>gamemode_casual_server.cfg
|-
|-
| Competitive / Scrimmage
| Competitive / Scrimmage
Line 26: Line 30:
| 1
| 1
| <code>competitive</code>
| <code>competitive</code>
| gamemode_competitive.cfg, <br> gamemode_competitive_server.cfg
|-
|-
| [[Creating_a_Wingman_Map|Wingman]]
| [[Creating_a_Wingman_Map|Wingman]]
Line 31: Line 36:
| 2
| 2
| <code>scrimcomp2v2</code>
| <code>scrimcomp2v2</code>
| gamemode_competitive2v2.cfg, <br> gamemode_competitive2v2_server.cfg
|-
|-
| Weapon Expert
| Weapon Expert
Line 36: Line 42:
| 3
| 3
| <code>scrimcomp5v5</code>
| <code>scrimcomp5v5</code>
| gamemode_competitive.cfg, <br> op08_weapons_expert.cfg, <br> gamemode_competitive_server.cfg
|-
|-
| [[Creating_a_Arsenal:_Arms_Race_Map|Arms Race]]
| [[Creating_a_Arsenal:_Arms_Race_Map|Arms Race]]
Line 41: Line 48:
| 0
| 0
| <code>armsrace, gungameprogressive</code>
| <code>armsrace, gungameprogressive</code>
| gamemode_armsrace.cfg, <br> gamemode_armsrace_server.cfg
|-
|-
| [[Creating_a_Arsenal:_Demolition_Map|Demolition]]
| [[Creating_a_Arsenal:_Demolition_Map|Demolition]]
Line 46: Line 54:
| 1
| 1
| <code>demolition, gungametrbomb</code>
| <code>demolition, gungametrbomb</code>
| gamemode_demolition.cfg, <br> gamemode_demolition_server.cfg
|-
|-
| Deathmatch
| Deathmatch
Line 51: Line 60:
| 2
| 2
| <code>deathmatch</code>
| <code>deathmatch</code>
| gamemode_deathmatch.cfg, <br> gamemode_deathmatch_server.cfg
|-
|-
| Training
| Training
Line 56: Line 66:
| 0
| 0
| <code>training</code>
| <code>training</code>
| gamemode_training.cfg, <br> gamemode_training_server.cfg
|-
|-
| [[CSGO_Custom_Game_Mode|Custom]]
| [[CSGO_Custom_Game_Mode|Custom]]
Line 61: Line 72:
| 0
| 0
| <code>custom</code>
| <code>custom</code>
| -
|-
|-
| [[Creating_a_Guardian_Scenario_Map|Guardian]]
| [[Creating_a_Guardian_Scenario_Map|Guardian]]
Line 66: Line 78:
| 0
| 0
| <code>guardian, cooperative</code>
| <code>guardian, cooperative</code>
| gamemode_competitive.cfg, <br> gamemode_cooperative.cfg, <br> gamemode_cooperative_server.cfg
|-
|-
| [[Creating_a_Co-op_Strike_Map|Co-op Strike]]
| [[Creating_a_Co-op_Strike_Map|Co-op Strike]]
Line 71: Line 84:
| 1
| 1
| <code>coop, coopstrike, coopmission</code>
| <code>coop, coopstrike, coopmission</code>
| gamemode_competitive.cfg, <br> gamemode_coopmission.cfg, <br> gamemode_coopmission_server.cfg
|-
|-
| Skirmish
| Skirmish
Line 76: Line 90:
| 0
| 0
| <code>skirmish</code>
| <code>skirmish</code>
| -
|-
|-
| [[Creating_a_Danger_Zone_Map|Danger Zone]]
| [[Creating_a_Danger_Zone_Map|Danger Zone]]
Line 81: Line 96:
| 0
| 0
| <code>survival</code>
| <code>survival</code>
| gamemode_survival.cfg, <br> gamemode_survival_server.cfg
|}
|}


To play one of the following game modes, hit <code>sv_skirmish_id X</code> in the console and launch your map with the base gamemode. <br>
There is a third value named <code>sv_skirmish_id</code> that the game will consider when loading a map. If it is set to a value that can be found in the following table, it will load an additional .cfg file associated to the ID, which can be found at <code>csgo/cfg/gamemode_<name>.cfg</code> or <code>csgo/cfg/op08_<name>.cfg</code>. These .cfg files are supposed to be loaded to a specific base gamemode, which the creator mentioned as a comment in the first lines. Anyway, it is possible to use any base gamemode.
For example: To launch ''Stab Stab Zap'' on <code>de_dust2</code>, enter <code>sv_skirmish_id 1</code>, <code>game_type 0</code>, <code>game_mode 0</code> and <code>map de_dust2</code>, or the shorter alternative <code>sv_skirmish_id 1</code> and <code>map de_dust2 casual</code>. <br>
 
Using skirmish IDs that are not on this table will not load any .cfg files, resulting in the base gamemode. Using a different base gamemode is possible, but probably not intended.
To play one of the following game modes, hit <code>sv_skirmish_id <number></code> in the console and launch your map with the base gamemode, see above. <br>
For example: To launch ''Stab Stab Zap'' on <code>de_dust2</code>, enter <code>sv_skirmish_id 1</code> and <code>map de_dust2 casual</code>. This is equivalent to the commands <code>sv_skirmish_id 1</code>, <code>game_type 0</code>, <code>game_mode 0</code> and <code>map de_dust2</code>. <br>
To return to a base gamemode, use a skirmish ID that is not on this table (intuitively 0), so the game will not load any additional .cfg files to a gamemode.


{{note | The corresponding .cfg files can be found at <code>csgo/cfg/</code>}}
{{note | There are .cfg files which are not accessible this way. They are mentioned at the end of the following table. They probably were the modes for the skirmish IDs 2, 5 and 9.}}


{| class="standard-table"
{| class="standard-table"
Line 93: Line 111:
!sv_skirmish_id
!sv_skirmish_id
!base gamemode
!base gamemode
!description
!Description
|-
|-
| Stab Stab Zap
| Stab Stab Zap
Line 139: Line 157:
| Casual
| Casual
| 3 T's vs. 4 CT's, retake scenario. {{warning | Game crashes if the map has '''''exactly one''''' bomb site and no adjustments for the gamemode.}}
| 3 T's vs. 4 CT's, retake scenario. {{warning | Game crashes if the map has '''''exactly one''''' bomb site and no adjustments for the gamemode.}}
|-
| Bloodletter
| inaccessible?
| Arms Race
| Dealing damage heals you 100 % of the damage dealt (max 200). Players take non-lethal damage over time while they are alive.
|-
| Bounty Hunter
| inaccessible?
| Deathmatch
| All players are enemies, killed enemies will drop dogtags that anyone can pick up. Killing players awards less points. Collecting dogtags awards additional DM points.
|-
| Team Deathmatch
| inaccessible?
| Deathmatch
| Killing enemies is worth team victory points, killing enemies with the DM bonus weapon awards additional victory points. The team with the most victory points at the end of the time limit wins.
|}
|}


[[Category: Counter-Strike: Global Offensive]][[Category: Console Variables]]
[[Category: Counter-Strike: Global Offensive]][[Category: Console Variables]]

Revision as of 12:39, 8 December 2020

Counter-Strike: Global Offensive Level Creation

Here is the table of official game modes and its console commands in Counter-Strike: Global Offensive.

The game uses the values of game_type and game_mode (and sv_skirmish_id, see below) to determine the gamemode that it loads when a map is loaded with the map or changelevel command. If these values are not set before loading a map, it results in the last gamemode played or casual, in case the game has just been launched, because their initial values are 0 (except they are set via launch options or a .cfg file).

So, to launch a map with a desired game mode, you basicly have to set these two values by typing the commands game_type <number> and game_mode <number> into the console before loading a map by using the map <mapname> console command, or before changing a map by using the changelevel <mapname> console command.

Tip.pngTip:Set Launch Options can be used, e.g: +game_type <number> +game_mode <number> +map <mapname>

The smarter way is to use the optional gamemode parameter of the map and changelevel command, for example map de_dust2 deathmatch or changelevel myCustomMap coop. If such a gamemode parameter is given and if it is valid, the game will adjust game_type and game_mode for you and launch the map with the associated gamemode.

Note.pngNote: The information of this table can be found in csgo/gamemodes.txt.
Game Mode game_type game_mode map command optional parameter .cfg filenames found in gamemodes.txt
Casual (default) 0 0 casual gamemode_casual.cfg,
gamemode_casual_server.cfg
Competitive / Scrimmage 0 1 competitive gamemode_competitive.cfg,
gamemode_competitive_server.cfg
Wingman 0 2 scrimcomp2v2 gamemode_competitive2v2.cfg,
gamemode_competitive2v2_server.cfg
Weapon Expert 0 3 scrimcomp5v5 gamemode_competitive.cfg,
op08_weapons_expert.cfg,
gamemode_competitive_server.cfg
Arms Race 1 0 armsrace, gungameprogressive gamemode_armsrace.cfg,
gamemode_armsrace_server.cfg
Demolition 1 1 demolition, gungametrbomb gamemode_demolition.cfg,
gamemode_demolition_server.cfg
Deathmatch 1 2 deathmatch gamemode_deathmatch.cfg,
gamemode_deathmatch_server.cfg
Training 2 0 training gamemode_training.cfg,
gamemode_training_server.cfg
Custom 3 0 custom -
Guardian 4 0 guardian, cooperative gamemode_competitive.cfg,
gamemode_cooperative.cfg,
gamemode_cooperative_server.cfg
Co-op Strike 4 1 coop, coopstrike, coopmission gamemode_competitive.cfg,
gamemode_coopmission.cfg,
gamemode_coopmission_server.cfg
Skirmish 5 0 skirmish -
Danger Zone 6 0 survival gamemode_survival.cfg,
gamemode_survival_server.cfg

There is a third value named sv_skirmish_id that the game will consider when loading a map. If it is set to a value that can be found in the following table, it will load an additional .cfg file associated to the ID, which can be found at csgo/cfg/gamemode_<name>.cfg or csgo/cfg/op08_<name>.cfg. These .cfg files are supposed to be loaded to a specific base gamemode, which the creator mentioned as a comment in the first lines. Anyway, it is possible to use any base gamemode.

To play one of the following game modes, hit sv_skirmish_id <number> in the console and launch your map with the base gamemode, see above.
For example: To launch Stab Stab Zap on de_dust2, enter sv_skirmish_id 1 and map de_dust2 casual. This is equivalent to the commands sv_skirmish_id 1, game_type 0, game_mode 0 and map de_dust2.
To return to a base gamemode, use a skirmish ID that is not on this table (intuitively 0), so the game will not load any additional .cfg files to a gamemode.

Note.pngNote: There are .cfg files which are not accessible this way. They are mentioned at the end of the following table. They probably were the modes for the skirmish IDs 2, 5 and 9.
Game Mode sv_skirmish_id base gamemode Description
Stab Stab Zap 1 Casual Only knives and recharging taser.
Flying Scoutsman 3 Casual Only scouts and knives, low gravity, high precision.
Trigger Discipline 4 Casual Missing shots damage yourself down to 1 HP.
Boom! Headshot! 6 Deathmatch Bodyshots deal no damage.
Hunter-Gatherers 7 Deathmatch Team deathmatch with collecting dogtags.
Heavy Assault Suit 8 Casual Heavy armor can be purchased for 6000 $.
Icon-Bug.pngBug: The item is not in the buy menu. Use buy heavyarmor while not holding a rifle.  [todo tested in ?]
Arms Race 10 Arms Race Equivalent to Arms Race.
Demolition 11 Demolition Equivalent to Demolition.
Retakes 12 Casual 3 T's vs. 4 CT's, retake scenario.
Warning.pngWarning: Game crashes if the map has exactly one bomb site and no adjustments for the gamemode.
Bloodletter inaccessible? Arms Race Dealing damage heals you 100 % of the damage dealt (max 200). Players take non-lethal damage over time while they are alive.
Bounty Hunter inaccessible? Deathmatch All players are enemies, killed enemies will drop dogtags that anyone can pick up. Killing players awards less points. Collecting dogtags awards additional DM points.
Team Deathmatch inaccessible? Deathmatch Killing enemies is worth team victory points, killing enemies with the DM bonus weapon awards additional victory points. The team with the most victory points at the end of the time limit wins.