CSGO Game Mode Commands: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(sorted table by type and mode and added Custom gamemode as mentioned in the "CSGO Custom Game Mode"-article)
(complemented table, added 'map command optional parameter' column with explanation and added skirmish_id table)
Line 1: Line 1:
{{back | Counter-Strike: Global Offensive Level Creation}}
{{back | Counter-Strike: Global Offensive Level Creation}}


Here is the table of official game modes and its console commands in [[Counter-Strike: Global Offensive]]. Type the commands into the console ''before loading'' a map by using the "[[Map (ConCommand)|map]] <mapname>" console command, or ''before changing'' a map by using the "[[changelevel]] <mapname>" console command.
Here is the table of official game modes and its console commands in [[Counter-Strike: Global Offensive]]. <br>
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.


{{tip|Set Launch Options can be used. (e.g: +game_type <number> +game_mode <number> +map <mapname>)}}
{{tip|Set Launch Options can be used. (e.g: +game_type <number> +game_mode <number> +map <mapname>)}}
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 next table.


{| class="standard-table"
{| class="standard-table"
Line 9: Line 14:
! game_type
! game_type
! game_mode
! game_mode
! map command optional parameter
|-
|-
| Casual (default)
| Casual (default)
| 0
| 0
| 0
| 0
| <code>casual</code>
|-
|-
| Competitive / Scrimmage
| Competitive / Scrimmage
| 0
| 0
| 1
| 1
| <code>competitive</code>
|-
|-
| Wingman
| Wingman
| 0
| 0
| 2
| 2
| <code>scrimcomp2v2</code>
|-
| Weapon Expert
| 0
| 3
| <code>scrimcomp5v5</code>
|-
|-
| Arms Race
| Arms Race
| 1
| 1
| 0
| 0
| <code>armsrace, gungameprogressive</code>
|-
|-
| Demolition
| Demolition
| 1
| 1
| 1
| 1
| <code>demolition, gungametrbomb</code>
|-
|-
| Deathmatch
| Deathmatch
| 1
| 1
| 2
| 2
| <code>deathmatch</code>
|-
|-
| Custom
| Custom
| 3
| 3
| any (?)
| 0
| <code>custom</code>
|-
| Training
| 3
| 2
| <code>training</code>
|-
|-
| Guardian
| Guardian
| 4
| 4
| 0
| 0
| <code>guardian, cooperative</code>
|-
|-
| Co-op Strike
| Co-op Strike
| 4
| 4
| 1
| 1
| <code>coop, coopstrike, coopmission</code>
|-
| Skirmish
| 5
| 0
| <code>skirmish</code>
|-
|-
| Danger Zone
| Danger Zone
| 6
| 6
| 0
| 0
| <code>survival</code>
|}
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 run a kind of undefined gamemode, which is almost identical to casual.
{| class="standard-table"
!Game Mode
!sv_skirmish_id
!explanation
|-
| Stab Stab Zap
| 1
| Only knives and recharging taser.
|-
| Flying Scoutsman
| 3
| Only [[Weapon_ssg08|scouts]] and knives, low gravity, high precision.
|-
| Trigger Discipline
| 4
| Missing shots damage yourself down to 1 HP.
|-
| Boom! Headshot!
| 6
| Bodyshots deal no damage.
|-
| Hunter-Gatherers (non-functional?)
| 7
| Team deathmatch with collecting dogtags.
|-
| Heavy Assault Suit (non-functional?)
| 8
| Heavy armor can be purchased for 6000 $.
|-
| Armsrace (non-functional?)
| 10
| Armsrace?
|-
| Demolition (non-functional?)
| 11
| Demolition?
|-
| Retakes {{warning | Game crashes if there is '''''exactly one''''' bomb site.}}
| 12
| 3 T's vs. 4 CT's, retake scenario.
|-
| 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 08:24, 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.

The Skirmish gamemode depends on the value of sv_skirmish_id, which is covered in the next table.

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
Custom 3 0 custom
Training 3 2 training
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, followed by map <mapname> skirmish. Any other ID will run a kind of undefined gamemode, which is almost identical to casual.

Game Mode sv_skirmish_id explanation
Stab Stab Zap 1 Only knives and recharging taser.
Flying Scoutsman 3 Only scouts and knives, low gravity, high precision.
Trigger Discipline 4 Missing shots damage yourself down to 1 HP.
Boom! Headshot! 6 Bodyshots deal no damage.
Hunter-Gatherers (non-functional?) 7 Team deathmatch with collecting dogtags.
Heavy Assault Suit (non-functional?) 8 Heavy armor can be purchased for 6000 $.
Armsrace (non-functional?) 10 Armsrace?
Demolition (non-functional?) 11 Demolition?
Retakes
Warning.pngWarning: Game crashes if there is exactly one bomb site.
12 3 T's vs. 4 CT's, retake scenario.
Undefined other Like Casual, 5 min rounds, solid teammates.