Map (console command): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(WARNING)
(added similar console commands)
Line 1: Line 1:
The '''map''' [[ConCommand|console command]] loads the specified map and starts a game on it. '''Warning:''' 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 [[changelevel]] command.
The '''map''' [[ConCommand|console command]] loads the specified map and starts a game on it. {{Warning|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==
{{syntax|map <mapname>}} (Without extension .bsp)
<code>map mapname</code> (omit the .bsp extension)


Can access both maps in mounted [[GCF]]s and in the local mod/game <code>maps</code> folder.
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.


== See also ==
==map_background==
* [[Console Command List]]
<code>map_background</code> is a command analogous to <code>map</code> that will load a map as a background. The player will not be able to move normally, but they can still use the console to move, attack, etc.
 
==map_commentary==
<code>map_commentary</code> is a command that is analogous to <code>map</code> but also enables [[commentary mode]].
 
==maps==
<code>maps</code> lists all the maps the game has access to that begin with a certain prefix. Use <code>*</code> to list all maps.
 
==See also==
*[[Console Command List]]


[[Category: Console Commands]]
[[Category: Console Commands]]

Revision as of 14:09, 18 August 2018

The map console command loads the specified map and starts a game on it.

Warning.pngWarning: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 changelevel command.

Usage

map mapname (omit the .bsp extension)

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_background

map_background is a command analogous to map that will load a map as a background. The player will not be able to move normally, but they can still use the console to move, attack, etc.

map_commentary

map_commentary is a command that is analogous to map but also enables commentary mode.

maps

maps lists all the maps the game has access to that begin with a certain prefix. Use * to list all maps.

See also