Map (console command): Difference between revisions
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
{{Example|1={{hl2}} <code>map d1_trainstation_01</code><br>{{csgo}} <code>map de_dust2 deathmatch</code><br>{{cs2}} <code>map de_dust2 gamemode=deathmatch</code>}} | {{Example|1={{hl2}} <code>map d1_trainstation_01</code><br>{{csgo}} <code>map de_dust2 deathmatch</code><br>{{cs2}} <code>map de_dust2 gamemode=deathmatch</code>}} | ||
{{note| | {{note| | ||
{{l4dbranch|since}} If you type the map name partially, like {{code|map l4d_river}}, then submit it, it will load the first result it found ({{code|l4d_river01_docks}}. | {{l4dbranch|since}} If you type the map name partially, like {{code|map l4d_river}}, then submit it, it will load the first result it found ({{code|l4d_river01_docks}}.</br> | ||
{{csgo}} The optional <code>gamemode</code> parameter can be one of the values <code>deathmatch, casual, competitive, armsrace, coopstrike ...</code>, see [[CS:GO Game Modes]]. | {{csgo}} The optional <code>gamemode</code> parameter can be one of the values <code>deathmatch, casual, competitive, armsrace, coopstrike ...</code>, see [[CS:GO Game Modes]]. | ||
{{todo|A similar list exists for {{l4d2}}.}} | {{todo|A similar list exists for {{l4d2}}.}} |
Revision as of 08:04, 16 February 2025
map
is a console command available in all GoldSrc,
Source, and
Source 2 games. It loads the specified map and starts a game on it.

Apparently, both commands behave like
changelevel
since 
Usage
map <mapname> map <mapname> [gamemode] // CS:GO map <mapname> [key1=value1] [key2=value2] [...] // CS2
The .bsp extension must be omitted. The game can access both maps in mounted VPKs and in the maps\
folder. Maps that are in a subdirectory of maps\
need to have the folder name included in the console command.

(in all games since ) If you type the map name partially, like map l4d_river, then submit it, it will load the first result it found (l4d_river01_docks.
The optional
gamemode
parameter can be one of the values deathmatch, casual, competitive, armsrace, coopstrike ...
, see CS:GO Game Modes.
A list of key-value pairs can be passed. As seen in the example above, this can be used to set the game mode.[What else?]
Similar Commands
ConCommand | Description |
---|---|
map_background
|
Analogous to map but loads a map as a background for the main menu. The player will not be able to move normally, but they can still use the console to move, attack, etc. This was introduced and used in ![]() ![]() ![]() |
map_commentary
|
Analogous to map but also enables commentary mode, introduced in ![]() ![]() |
maps <substring>
|
Lists all the maps the game has access to that contain a certain character sequence. Use * to list all maps.
|