CSGO Game Mode Commands: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added the new _offline.cfg filenames and warning on how to get back bots.)
m (Fixing double redirect. This action was performed by a bot.)
Tag: Redirect target changed
 
(8 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{back | Counter-Strike: Global Offensive Level Creation}}
#REDIRECT [[Counter-Strike: Global Offensive/Game Modes]]
 
Here is the table of official game modes and its console commands in [[Counter-Strike: Global Offensive]].
 
The game uses the values of <code>game_type</code>, <code>game_mode</code> and <code>sv_skirmish_id</code> to determine .cfg files with commands that it executes 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. The initial values of <code>game_type</code>, <code>game_mode</code> and <code>sv_skirmish_id</code> are 0 (Casual).
 
To launch a map with a desired game mode, adjust the values of <code>game_type</code>, <code>game_mode</code> and <code>sv_skirmish_id</code> according to the tables below. '''''After that''''', load a map by using the <code>[[Map (ConCommand)|map]] <mapname></code> or <code>[[changelevel]] <mapname></code> console command.
 
{{tip | The <code>map</code> and <code>changelevel</code> commands have an optional gamemode parameter. 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> and launch the map with the associated gamemode.}}
 
{{tip | You can define aliases, for example <code>alias dust2retake "game_type 0; game_mode 0; sv_skirmish_id 12; map de_dust2"</code>. Useful for [[autoexec]]s and/or custom maps.}}
 
{{tip | Set Launch Options can be used, e.g: <code>+game_type <number> +game_mode <number> +map <mapname></code>}}
 
{{warning | If you want to test your local Competitive/Wingman/Weapon Expert map with bots, make sure to set <code>bot_quota_mode</code> to a different value other than the new value <code>competitive</code>, which (also) stops bots. Also adjust <code>bot_quota</code> (default: 10 for Competitive, 4 for Wingman). A way to permanently get back the bot joining behavior before 01/07/2021 for all of the three gamemodes is copy-pasting the configs <code>gamemode_competitive_offline.cfg</code> and <code>gamemode_competitive2v2_offline.cfg</code> and renaming them from <code>_offline.cfg</code> to <code>_server.cfg</code>, unless you already use such a file in a different way.}}
 
== Game Type and Game Mode ==
 
{{note | Unless you want to load a Skirmish Mode, make sure <code>sv_skirmish_id</code> is (e.g.) 0.}}
 
{{tip | The .cfg files ending with <code>_server.cfg</code> don't exist locally by default. You can create them and write commands into them that will be executed if you locally launch the corresponding gamemode.}}
 
{{note | The information of this table can be found in <code>csgo/gamemodes.txt</code>.}}
 
{| class="standard-table"
! Game Mode
! game_type
! game_mode
! map command optional parameter
! .cfg filenames executed, if existant
|-
| Casual (default)
| 0
| 0
| <code>casual</code>
| gamemode_casual.cfg, <br> gamemode_casual_server.cfg
|-
| Competitive / Scrimmage
| 0
| 1
| <code>competitive</code>
| gamemode_competitive.cfg, <br> gamemode_competitive_offline.cfg (only via "Offline with Bots") <br> gamemode_competitive_server.cfg
|-
| [[Creating_a_Wingman_Map|Wingman]]
| 0
| 2
| <code>scrimcomp2v2</code>
| gamemode_competitive2v2.cfg, <br> gamemode_competitive2v2_offline.cfg (only via "Offline with Bots") <br> gamemode_competitive2v2_server.cfg
|-
| Weapon Expert
| 0
| 3
| <code>scrimcomp5v5</code>
| gamemode_competitive.cfg, <br> gamemode_competitive_offline.cfg <br> op08_weapons_expert.cfg, <br> gamemode_competitive_server.cfg
|-
| [[Creating_a_Arsenal:_Arms_Race_Map|Arms Race]]
| 1
| 0
| <code>armsrace, gungameprogressive</code>
| gamemode_armsrace.cfg, <br> gamemode_armsrace_server.cfg
|-
| [[Creating_a_Arsenal:_Demolition_Map|Demolition]]
| 1
| 1
| <code>demolition, gungametrbomb</code>
| gamemode_demolition.cfg, <br> gamemode_demolition_server.cfg
|-
| Deathmatch
| 1
| 2
| <code>deathmatch</code>
| gamemode_deathmatch.cfg, <br> gamemode_deathmatch_server.cfg
|-
| Training
| 2
| 0
| <code>training</code>
| gamemode_training.cfg, <br> gamemode_training_server.cfg
|-
| [[CSGO_Custom_Game_Mode|Custom]]
| 3
| 0
| <code>custom</code>
| -
|-
| [[Creating_a_Guardian_Scenario_Map|Guardian]]
| 4
| 0
| <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]]
| 4
| 1
| <code>coop, coopstrike, coopmission</code>
| gamemode_competitive.cfg, <br> gamemode_coopmission.cfg, <br> gamemode_coopmission_server.cfg
|-
| Skirmish
| 5
| 0
| <code>skirmish</code>
| -
|-
| [[Creating_a_Danger_Zone_Map|Danger Zone]]
| 6
| 0
| <code>survival</code>
| gamemode_survival.cfg, <br> gamemode_survival_server.cfg
|}
 
 
 
== Skirmish Modes ==
 
If <code>sv_skirmish_id</code> is set to a value that can be found in the following table, it will load an additional .cfg file associated to the ID. These .cfg files are supposed to be loaded to a specific base gamemode, which is mentioned as a comment in the first lines as well as in <code>scripts/items/items_game.txt</code>. Anyway, it is possible to use any base gamemode.
 
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 "pure" gamemode from the above table, 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 skirmish IDs 2, 5 and 9 are undefined. However, there are .cfg files in <code>cfg/</code> that have no associated skirmish ID. They are mentioned at the end of the following table. They probably were the modes for the skirmish IDs 2, 5 and 9.}}
 
{{note | The information of this table can be found in <code>scripts/items/items_game.txt</code>.}}
 
{| class="standard-table"
!Game Mode
!sv_skirmish_id
!Intended Base Gamemode
!.cfg filenames executed
!Description
|-
| Stab Stab Zap
| 1
| Casual
| op08_stab_stab_zap.cfg
| Only knives and recharging taser.
|-
| Flying Scoutsman
| 3
| Casual
| op08_flying_scoutsman.cfg
| Only [[Weapon_ssg08|scouts]] and knives, low gravity, high precision.
|-
| Trigger Discipline
| 4
| Casual
| op08_trigger_discipline.cfg
| Missing shots damage yourself down to 1 HP.
|-
| Boom! Headshot!
| 6
| Deathmatch
| op08_headshots.cfg
| Bodyshots deal no damage.
|-
| Hunter-Gatherers
| 7
| Deathmatch
| op08_hunter_gatherers.cfg
| Team deathmatch with collecting dogtags.
|-
| Heavy Assault Suit
| 8
| Casual
| op08_heavy_assault_suit.cfg
| 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
| 10
| Arms Race
| -
| Equivalent to Arms Race.
|-
| Demolition
| 11
| Demolition
| -
| Equivalent to Demolition.
|-
| [[CSGO_Game_Mode_-_Retakes|Retakes]]
| 12
| Casual
| gamemode_retakecasual.cfg
| 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
| -
| Arms Race
| op08_bloodletter.cfg
| Dealing damage heals you 100 % of the damage dealt (max 200). Players take non-lethal damage over time while they are alive.
|-
| Bounty Hunter
| -
| Deathmatch
| op08_bounty_hunter.cfg
| 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
| -
| Deathmatch
| op08_team_deathmatch.cfg
| 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]]

Latest revision as of 14:48, 21 January 2024