CSGO Game Mode Commands: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(complemented table, added 'map command optional parameter' column with explanation and added skirmish_id table)
(named source, added links and did small adjustments)
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]]. <br>
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.
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.


Line 8: Line 9:
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 next table.
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>.}}


{| class="standard-table"
{| class="standard-table"
Line 26: Line 29:
| <code>competitive</code>
| <code>competitive</code>
|-
|-
| Wingman
| [[Creating_a_Wingman_Map|Wingman]]
| 0
| 0
| 2
| 2
Line 36: Line 39:
| <code>scrimcomp5v5</code>
| <code>scrimcomp5v5</code>
|-
|-
| Arms Race
| [[Creating_a_Arsenal:_Arms_Race_Map|Arms Race]]
| 1
| 1
| 0
| 0
| <code>armsrace, gungameprogressive</code>
| <code>armsrace, gungameprogressive</code>
|-
|-
| Demolition
| [[Creating_a_Arsenal:_Demolition_Map|Demolition]]
| 1
| 1
| 1
| 1
Line 51: Line 54:
| <code>deathmatch</code>
| <code>deathmatch</code>
|-
|-
| Custom
| [[CSGO_Custom_Game_Mode|Custom]]
| 3
| 3
| 0
| 0
Line 61: Line 64:
| <code>training</code>
| <code>training</code>
|-
|-
| Guardian
| [[Creating_a_Guardian_Scenario_Map|Guardian]]
| 4
| 4
| 0
| 0
| <code>guardian, cooperative</code>
| <code>guardian, cooperative</code>
|-
|-
| Co-op Strike
| [[Creating_a_Co-op_Strike_Map|Co-op Strike]]
| 4
| 4
| 1
| 1
Line 76: Line 79:
| <code>skirmish</code>
| <code>skirmish</code>
|-
|-
| Danger Zone
| [[Creating_a_Danger_Zone_Map|Danger Zone]]
| 6
| 6
| 0
| 0
Line 82: Line 85:
|}
|}


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.
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.


{| class="standard-table"
{| class="standard-table"
!Game Mode
!Game Mode
!sv_skirmish_id
!sv_skirmish_id
!explanation
!description
|-
|-
| Stab Stab Zap
| Stab Stab Zap
Line 105: Line 108:
| Bodyshots deal no damage.
| Bodyshots deal no damage.
|-
|-
| Hunter-Gatherers (non-functional?)
| Hunter-Gatherers (broken?)
| 7
| 7
| Team deathmatch with collecting dogtags.
| Team deathmatch with collecting dogtags. <br> However, with the above loading method, this mode behaves like Undefined.
|-
|-
| Heavy Assault Suit (non-functional?)
| Heavy Assault Suit (broken?)
| 8
| 8
| Heavy armor can be purchased for 6000 $.
| Heavy armor can be purchased for 6000 $. <br> However, with the above loading method, this mode behaves like Undefined.
|-
|-
| Armsrace (non-functional?)
| Arms Race (broken?)
| 10
| 10
| Armsrace?
| With the above loading method, this mode behaves like Undefined.
|-
|-
| Demolition (non-functional?)
| Demolition (broken?)
| 11
| 11
| Demolition?
| With the above loading method, this mode behaves like Undefined.
|-
|-
| Retakes {{warning | Game crashes if there is '''''exactly one''''' bomb site.}}
| [[CSGO_Game_Mode_-_Retakes|Retakes]]
| 12
| 12
| 3 T's vs. 4 CT's, retake scenario.
| 3 T's vs. 4 CT's, retake scenario. {{warning | Game crashes if the map has '''''exactly one''''' bomb site.}}
|-
|-
| Undefined
| Undefined

Revision as of 16:52, 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 second table.

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
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 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.

Game Mode sv_skirmish_id description
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 (broken?) 7 Team deathmatch with collecting dogtags.
However, with the above loading method, this mode behaves like Undefined.
Heavy Assault Suit (broken?) 8 Heavy armor can be purchased for 6000 $.
However, with the above loading method, this mode behaves like Undefined.
Arms Race (broken?) 10 With the above loading method, this mode behaves like Undefined.
Demolition (broken?) 11 With the above loading method, this mode behaves like Undefined.
Retakes 12 3 T's vs. 4 CT's, retake scenario.
Warning.pngWarning: Game crashes if the map has exactly one bomb site.
Undefined other Like Casual, 5 min rounds, solid teammates.