Map (console command): Difference between revisions
Jump to navigation
Jump to search
Warning:
Warning:For multiplayer games, this command may kick everyone from your server before changing the map, or does a hard change, so to speak. If you want a soft change, use changelevel.
Apparently, both commands behave like
.
Note:
(Game mode parameter seems to be only csgo. cs2 has a new system.) |
No edit summary |
||
Line 1: | Line 1: | ||
{{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]]}} | ||
{{this is a|console command|name=map|notitlechange=1}} It loads the specified map and starts a game on it. | {{this is a|console command|name=map|notitlechange=1|engine=source|engine1=source2}} It loads the specified map and starts a game on it. | ||
{{warning|For multiplayer games, this command may kick everyone from your server before changing the map, or does a ''hard change'', so to speak. If you want a ''soft'' change, use {{ent|changelevel}}.<br>Apparently, both commands behave like <code>changelevel</code> since {{csgo}}.}} | {{warning|For multiplayer games, this command may kick everyone from your server before changing the map, or does a ''hard change'', so to speak. If you want a ''soft'' change, use {{ent|changelevel}}.<br>Apparently, both commands behave like <code>changelevel</code> since {{csgo}}.}} | ||
Revision as of 23:54, 10 February 2025
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 available in all Source and
Source 2 games.

- The {{{engine1}}} parameter is inconsistent with the name defined by the {{source2}} template. This can most likely be fixed by setting the value of the {{{engine1}}} parameter to Source 2.
If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.
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.

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