Console Command List/M
Command | Default | Cheat? | Help Text |
---|---|---|---|
m_customaccel | 0 | Custom mouse acceleration (0 disable, 1 to enable, 2 enable with separate yaw/pitch rescale).
Formula: mousesensitivity = ( rawmousedelta^m_customaccel_exponent ) * m_customaccel_scale + sensitivity. If mode is 2, then x and y sensitivity are scaled by m_pitch and m_yaw respectively. | |
m_customaccel_exponent | 1 | Mouse move is raised to this power before being scaled by scale factor. | |
m_customaccel_max | 0 | Max mouse move scale factor, 0 for no limit | |
m_customaccel_scale | 0 | Custom mouse acceleration value. | |
m_filter | 0 | Mouse filtering (set this to 1 to average the mouse over 2 frames). | |
m_forward | 1 | Mouse forward factor. | |
m_mouseaccel1 | 0 | Windows mouse acceleration initial threshold (2x movement). | |
m_mouseaccel2 | 0 | Windows mouse acceleration secondary threshold (4x movement). | |
m_mousespeed | 1 | Windows mouse speed factor (range 1 to 20). | |
m_pitch | 0 | Mouse pitch factor. | |
m_side | 0 | Mouse side factor. | |
m_yaw | 0 | Mouse yaw factor. | |
map | Start playing on specified map. | ||
map_background | Runs a map as the background to the main menu. | ||
map_edit | None | ||
map_noareas | 0 | Disable area to area connection testing. | |
mapcyclefile | mapcycle.txt | Sets the map cycle file to use for cycling maps. | |
maps | Displays list of maps. | ||
mat_antialias | 0 | Enable MSAA anti-aliasing. | |
mat_bloom | 1 | None | |
mat_bufferprimitives | 1 | None | |
mat_bumpbasis | 0 | None | |
mat_bumpmap | 1 | Toggles bumpmap rendering on/off. | |
mat_camerarendertargetoverlaysize | 128 | Yes | None |
mat_clipz | 1 | None | |
mat_compressedtextures | 1 | When set to 0 the engine will use uncompressed textures for the current map. | |
mat_configcurrent | Show the current video control panel config for the material system. | ||
mat_crosshair | Display the name of the material/texture under the crosshair. | ||
mat_debug | None | ||
mat_debugdepth | 0 | None | |
mat_debugdepthmode | 0 | None | |
mat_debugdepthval | 128 | None | |
mat_debugdepthvalmax | 256 | None | |
mat_depthbias_decal | -262144 | None | |
mat_depthbias_normal | 0 | Yes | None |
mat_diffuse | 1 | Yes | When set to 0, shows specular map on models with $envmaptint values. Use with mat_fullbright to view specular on brushes. |
mat_drawflat | 0 | Yes | None |
mat_drawwater | 1 | Yes | None |
mat_dxlevel | 90 | Changes what GPU features are used based on DirectX version. Maximum supported values are 95 (98 in and 100 in Source Filmmaker). Not available since Left 4 Dead engine branch. | |
mat_envmapsize | 128 | Adjusts the resolution of environment maps that are used for reflective surfaces. | |
mat_envmaptgasize | 32 | Adjusts the resolution of the cubemap_screenshot PFM files created by the envmap command. | |
mat_fastnobump | 0 | None | |
mat_fastspecular | 1 | Enable/Disable specularity for visual testing. Will not reload materials and will not affect perf. | |
mat_fillrate | 0 | Yes | None |
mat_filterlightmaps | 1 | Smooths lightmaps. Lighting appears blocky and pixelated when this is off. | |
mat_filtertextures | 1 | Smooths textures. Textures appear blocky and pixelated when this is off. | |
mat_forceaniso | 1 | Sets Anistropic Filtering Level | |
mat_forcedynamic | 0 | Yes | Forces the use of dynamic lighting where applicable. |
mat_forcehardwaresync | 1 | None | |
mat_frame_sync_enable | 1 | Yes | None |
mat_frame_sync_force_texture | 0 | Yes | Force frame syncing to lock a managed texture. |
mat_framebuffercopyoverlaysize | 128 | None | |
mat_fullbright | 0 | Yes | When set to 1 it turns on self-illumination for geometry. Automatically enabled if the map does not contains any lighting. |
mat_hsv | 0 | None | |
mat_info | Shows material system info | ||
mat_leafvis | 0 | Draw wireframe of current leaf | |
mat_levelflush | 1 | None | |
mat_loadtextures | 1 | None | |
mat_luxels | 0 | Yes | Turns on luxel visualization. |
mat_maxframelatency | 1 | None | |
mat_measurefillrate | 0 | Yes | None |
mat_mipmaptextures | 1 | None | |
mat_monitorgamma | 2 | Monitor gamma (typically 2.2 for CRT, LCD with IPS, OLED and 1.7 for LCD with TN). | |
mat_norendering | 0 | None | |
mat_normalmaps | 0 | Yes | Turns on normalmap visualization |
mat_normals | 0 | Yes | Turns on surface normal visualization |
mat_parallaxmap | 0 | Enables the use of parallax maps | |
mat_picmip | 0 | Sets texture quality. Is the same as the "Texture Detail" menu. Values are -1-Very High (Orange Box only), 0-High, 1-Medium, 2-Low. Some games may offers value down to -10 (which is the highest quality possible), such as Team Fortress 2. | |
mat_proxy | 0 | Yes | None |
mat_reducefillrate | 0 | None | |
mat_reloadallmaterials | Reloads every VMT. Can take several seconds to complete. | ||
mat_reloadmaterial | Reloads a specific VMT. File path and name after "materials/" needs to be specified. | ||
mat_reloadtextures | None | ||
mat_reversedepth | 0 | Yes | None |
mat_savechanges | Saves current video configuration to the registry. | ||
mat_setvideomode | Changes the resolution and display mode of the game window. Tests in reveal the following: Format of parameters is mat_setvideomode [width] [height] [display mode] . Display mode can be negative or 0 for Fullscreen, and positive above 0 for Windowed. Resolution will automatically be rounded to the nearest resolution in the normal Window Settings menu (eg: 1600x800 will be rounded to 1600x900 ). If the resolution does not match any pre-defined resolutions (such as 720x1280 ), it appears to default to 1600x900 .
Bug: According to the tests in , menus may incorrectly become visible. Only occurred when in an active round, where several in-game UIs would appear on-screen with broken text. [todo tested in?] | ||
mat_shadowstate | 1 | None | |
mat_show_texture_memory_usage | 0 | Display the texture memory usage on the HUD. | |
mat_showcamerarendertarget | 0 | Yes | None |
mat_showenvmapmask | 0 | None | |
mat_showframebuffertexture | 0 | Yes | None |
mat_showlightmapcomponent | 0 | 0: show normal-mapped lightmap 1: show component 11: show component 21: show component 3 | |
mat_showlightmappage | -1 | None | |
mat_showlowresimage | 0 | Show the texture in the lowest quality possible. | |
mat_showmaterials | Show materials. | ||
mat_showmaterialsverbose | None | ||
mat_showmiplevels | 0 | None | |
mat_showtextures | Show textures. | ||
mat_showwatertextures | 0 | Yes | None |
mat_skybloomamount | 1 | None | |
mat_slopescaledepthbias_decal | 0 | Yes | None |
mat_slopescaledepthbias_normal | 0 | Yes | None |
mat_softwarelighting | 0 | Enable Software rendered lighting, may cause crashes on some games. | |
mat_softwareskin | 0 | None | |
mat_specular | 1 | Enable/Disable specularity for performance testing. Will cause a material reload upon change. | |
mat_spewvertexandpixelshaders | Print all vertex and pixel shaders currently loaded to the console. | ||
mat_stub | 0 | Yes | None |
mat_suppress | Suppress a material from drawing | ||
mat_surfaceid | 0 | None | |
mat_surfacemat | 0 | Show surface material name for brushes faces | |
mat_texture_limit | -1 | If this value is not -1, the material system will limit the amount of texture memory it uses in a frame. Useful for identifying performance cliffs. The value is in kilobytes. | |
+mat_texture_list | None | ||
-mat_texture_list | None | ||
mat_texture_list | 0 | For debugging, show a list of used textures per frame | |
mat_texture_list_all | 0 | If this is nonzero, then the texture list panel will show all currently-loaded textures. | |
mat_texturelist_directories | 0 | None | |
mat_texturelist_files | 1 | None | |
mat_trilinear | 1 | None | |
mat_viewportscale | 1 | Yes | Debugging viewport scale |
mat_vsync | 0 | Force sync to vertical retrace | |
mat_wateroverlaysize | 128 | None | |
mat_wireframe | 0 to 3 | Yes | See Optimization Commands. |
mat_yuv | 0 | Turns the screen monochrome | |
maxplayers | Change the maximum number of players allowed on this server. | ||
mem_dump | Dump memory stats. | ||
mem_dumpstats | 0 | Dump current and max heap usage info to console at end of frame ( set to 2 for continuous output ) | |
mem_force_flush | 0 | Force cache flush of unlocked resources on every alloc. | |
metropolice_charge | 1 | None | |
metropolice_chase_use_follow | 0 | None | |
metropolice_move_and_melee | 1 | None | |
minisave | Saves game (for current level only!) | ||
mod_forcedata | 1 | Forces all model file data into cache on model load. | |
monk_headshot_freq | 2 | None | |
mortar_visualize | 0 | None | |
+movedown | None | ||
-movedown | None | ||
+moveleft | None | ||
-moveleft | None | ||
+moveright | None | ||
-moveright | None | ||
+moveup | None | ||
-moveup | None | ||
mp_allowNPCs | 1 | None | |
mp_autokick | 1 | None | |
mp_autoteambalance | 1 | None - New Source Engine | |
mp_autoteambalance_delay | 1 | Time after the teams become unbalanced to attempt to switch players. - New Source Engine | |
mp_autoteambalance_warning_delay | 1 | Time after the teams become unbalanced to print a balance warning. - New Source Engine | |
mp_allowspectators | 1 | Toggles whether the server allows spectator mode or not. | |
mp_autocrosshair | 1 | None | |
mp_bonusroundtime | 1 | Time after round win until round restarts - New Source Engine | |
mp_buytime | 1.5 | Time players have to buy weapons | |
mp_chattime | 10 | Amount of time players can chat after the game is over. | |
mp_decals | 200 | None | |
mp_defaultteam | 0 | None | |
mp_enableroundwaittime | 1 | Enable timers to wait between rounds. - New Source Engine | |
mp_facefronttime | 3 | After this amount of time of standing in place but aiming to one side, go ahead and move feet to face upper body. | |
mp_falldamage | 0 | None | |
mp_feetyawrate | 720 | How many degrees per second that we can turn our feet or upper body. | |
mp_flashlight | 0 | If 1, enable Flashlight on multiplayer mode. | |
mp_footsteps | 1 | None | |
mp_forcecamera | 0 | Restricts spectator modes for dead players. | |
mp_forcerespawn | 1 | None | |
mp_fraglimit | 0 | None | |
mp_freezetime | 5 | None | |
mp_friendlyfire | 0 | None | |
mp_ik | 1 | Use IK on in-place turns. | |
mp_logecho | 1 | None | |
mp_logfile | 1 | None | |
mp_maxrounds | 1 | Max number of rounds to play before server changes maps - New Source Engine. | |
mp_respawntime | 10 | Sets the time before respawn - New Source Engine. | |
mp_restartround | 1 | If non-zero, the current round will restart in the specified number of seconds - New Source Engine. | |
mp_roundtime | 4 | None | |
mp_stalemate_timelimit | 1 | Timelimit (in seconds) of the stalemate round. - New Source Engine. | |
mp_teamlist | 0 | None | |
mp_teamoverride | 1 | None | |
mp_teamplay | 0 | None | |
mp_teams_unbalance_limit | 1 | Teams are unbalanced when one team has this many more players than the other team. (0 disables check) - New Source Engine. | |
mp_timelimit | 0 | Game time per map in minutes. | |
mp_weaponstay | 0 | None | |
mp_winlimit | 0 | Max number of rounds one team can win before server changes maps - New Source Engine. | |
mp3 | (Counter-Strike: Source only) Starts the Valve MP3 Player. | ||
muzzleflash_light | 1 | None |