Map (console command): Difference between revisions
Jump to navigation
Jump to search
Example:
mNo edit summary |
m (swapped template for modern counterpart) |
||
Line 2: | Line 2: | ||
{{for|about=the console command|the place in a game|[[Map (level design)]]|the file format|[[MAP file format]]}} | {{for|about=the console command|the place in a game|[[Map (level design)]]|the file format|[[MAP file format]]}} | ||
'''<code>map</code>''' is a [[ConCommand|console command]] that loads the specified map and starts a game on it. | '''<code>map</code>''' is a [[ConCommand|console command]] that loads the specified map and starts a game on it. | ||
{{ | {{ModernWarning|For multiplayer games, this command will kick everyone from your server before changing the map, or does a ''hard change'', so to speak. If you want to soft change your map from console use the {{ent|changelevel}} command.}} | ||
==Usage== | ==Usage== | ||
Line 9: | Line 9: | ||
The .[[BSP|bsp]] extension must be omitted. The game can access both maps in mounted [[VPK]]s and in the <code>maps\</code> folder. Maps that are in a subdirectory of <code>maps\</code> need to have the folder name included in the console command. | The .[[BSP|bsp]] extension must be omitted. The game can access both maps in mounted [[VPK]]s and in the <code>maps\</code> folder. Maps that are in a subdirectory of <code>maps\</code> need to have the folder name included in the console command. | ||
{{ | {{ModernExample|<code>map de_dust2 deathmatch</code>}} | ||
{{ModernTip|{{csgo}} The optional <code>gamemode</code> parameter can be <code>deathmatch, casual, competitive, armsrace, coopstrike ...</code>, see [[CS:GO Game Modes]].<br>{{todo|A similar list exists for {{l4d2}}.}} }} | |||
{{ | |||
==Similar Commands== | ==Similar Commands== |
Revision as of 03:50, 20 April 2023
This article is about the console command. For the place in a game, see Map (level design). For the file format, see MAP file format.
map
is a console command that loads the specified map and starts a game on it.
Template:ModernWarning
Usage
map <mapname> [gamemode]
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.

map de_dust2 deathmatch
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.
|