CSGO Game Mode Commands: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(gamemode training had wrong values)
(Added base gamemode column. The named modes are not broken.)
Line 8: Line 8:


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.
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.
The Skirmish gamemode depends on the value of <code>sv_skirmish_id</code>, which is covered in the second table.


{{note | This information is taken from <code>csgo/gamemodes.txt</code>.}}
{{note | This information is taken from <code>csgo/gamemodes.txt</code>.}}
Line 85: Line 83:
|}
|}


To play one of the following game modes, hit <code>sv_skirmish_id X</code> in the console, followed by <code>map <mapname> skirmish</code>. Any other ID will result in a kind of undefined gamemode, which is almost identical to casual. Some of these gamemodes however don't load properly, either because this is not the way to load them or because they are no longer supported.
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>
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.
 
{{note | The corresponding .cfg files can be found at <code>csgo/cfg/</code>}}


{| class="standard-table"
{| class="standard-table"
!Game Mode
!Game Mode
!sv_skirmish_id
!sv_skirmish_id
!base gamemode
!description
!description
|-
|-
| Stab Stab Zap
| Stab Stab Zap
| 1
| 1
| Casual
| Only knives and recharging taser.
| Only knives and recharging taser.
|-
|-
| Flying Scoutsman
| Flying Scoutsman
| 3
| 3
| Casual
| Only [[Weapon_ssg08|scouts]] and knives, low gravity, high precision.
| Only [[Weapon_ssg08|scouts]] and knives, low gravity, high precision.
|-
|-
| Trigger Discipline
| Trigger Discipline
| 4
| 4
| Casual
| Missing shots damage yourself down to 1 HP.
| Missing shots damage yourself down to 1 HP.
|-
|-
| Boom! Headshot!
| Boom! Headshot!
| 6
| 6
| Deathmatch
| Bodyshots deal no damage.
| Bodyshots deal no damage.
|-
|-
| Hunter-Gatherers (broken?)
| Hunter-Gatherers
| 7
| 7
| Team deathmatch with collecting dogtags. <br> However, with the above loading method, this mode behaves like Undefined.
| Deathmatch
| Team deathmatch with collecting dogtags.
|-
|-
| Heavy Assault Suit (broken?)
| Heavy Assault Suit
| 8
| 8
| Heavy armor can be purchased for 6000 $. <br> However, with the above loading method, this mode behaves like Undefined.
| Casual
| Heavy armor can be purchased for 6000 $. {{bug | The item is not in the buy menu. Use <code>buy heavyarmor</code> '''''while not holding a rifle'''''.}}
|-
|-
| Arms Race (broken?)
| Arms Race
| 10
| 10
| With the above loading method, this mode behaves like Undefined.
| Arms Race
| Equivalent to Arms Race.
|-
|-
| Demolition (broken?)
| Demolition
| 11
| 11
| With the above loading method, this mode behaves like Undefined.
| Demolition
| Equivalent to Demolition.
|-
|-
| [[CSGO_Game_Mode_-_Retakes|Retakes]]
| [[CSGO_Game_Mode_-_Retakes|Retakes]]
| 12
| 12
| 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.}}
|-
| Undefined
| other
| Like Casual, 5 min rounds, solid teammates.
|}
|}


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

Revision as of 21:49, 7 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.

To launch a map with a desired game mode, you generally have to type the commands game_type X and game_mode Y 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 easier way is to invoke map or changelevel followed by the map name and one of the optional gamemode parameters, for example map de_dust2 deathmatch or changelevel myCustomMap coop. Then, the game will adjust game_type and game_mode for you and launch the map. If you don't use the optional gamemode parameter, like map de_dust2, the game will use the last gamemode played or casual, in case the game has just been launched.

Note.pngNote: This information is taken from csgo/gamemodes.txt.
Game Mode game_type game_mode map command optional parameter
Casual (default) 0 0 casual
Competitive / Scrimmage 0 1 competitive
Wingman 0 2 scrimcomp2v2
Weapon Expert 0 3 scrimcomp5v5
Arms Race 1 0 armsrace, gungameprogressive
Demolition 1 1 demolition, gungametrbomb
Deathmatch 1 2 deathmatch
Training 2 0 training
Custom 3 0 custom
Guardian 4 0 guardian, cooperative
Co-op Strike 4 1 coop, coopstrike, coopmission
Skirmish 5 0 skirmish
Danger Zone 6 0 survival

To play one of the following game modes, hit sv_skirmish_id X in the console and launch your map with the base gamemode.
For example: To launch Stab Stab Zap on de_dust2, enter sv_skirmish_id 1, game_type 0, game_mode 0 and map de_dust2, or the shorter alternative sv_skirmish_id 1 and map de_dust2 casual.
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.

Note.pngNote: The corresponding .cfg files can be found at csgo/cfg/
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.