Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

List of useful console commands: Difference between revisions

From the Portal Wiki
Cqf (talk | contribs)
Hub counts as map change
Cqf (talk | contribs)
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 2: Line 2:


Using the [http://developer.valvesoftware.com/wiki/Console Developer Console], you can turn specific gameplay and graphic settings on and off or modify their values. The console can be enabled from the options menu in the Keyboard/Mouse section. Any command put in the autoexec.cfg file will automatically be loaded on game launch.
Using the [http://developer.valvesoftware.com/wiki/Console Developer Console], you can turn specific gameplay and graphic settings on and off or modify their values. The console can be enabled from the options menu in the Keyboard/Mouse section. Any command put in the autoexec.cfg file will automatically be loaded on game launch.
==cl_ commands==
# cl_showpos 1 ( def. "0" ) can useful for executing and sharing precise positioning and [[portal]] shots.
# cl_drawhud 0 ( def. "1" ) client cheat - disable the rendering of the hud during .dem playback
==r_ commands ==
# r_portal_use_pvs_optimization 0 ( def. "1" ) - Enables an optimization that allows portals to be culled when outside of the PVS
#* Recommended by some speedrunners to see while out of bounds
==sv_cheats 1==
sv_cheats 1 - disables the ability to get [[achievement]]s or submit challenge mode records, and that in [[multiplayer]] it's controlled by the host of the game.
# r_drawviewmodel 0/1 - turns viewmodels on and off
#* Can't use cheat cvar r_drawviewmodel in multiplayer, unless the server has sv_cheats set to 1 or during .dem playback.


==List of useful console commands==
==List of useful console commands==
Line 25: Line 39:
* jpeg - Take a jpeg screenshot. Use <code>jpeg_quality #</code> to control the quality level of the resultant screenshots.
* jpeg - Take a jpeg screenshot. Use <code>jpeg_quality #</code> to control the quality level of the resultant screenshots.
* screenshot - Take a TGA screenshot.
* screenshot - Take a TGA screenshot.
* r_drawviewmodel 0/1 - turns viewmodels on and off
* find <command> - a search function that displays all commands with searched term
* find <command> - a search function that displays all commands with searched term
* net_graph <1-6>
* net_graph <1-6>
Line 36: Line 49:
* maps - Display list of maps. Use <code>maps *</code> for a full listing.
* maps - Display list of maps. Use <code>maps *</code> for a full listing.


'''For recording'''
=== Recording ===


* record <demo name> - records a demo. The [[Portal 2]] will split demos on every map change (including the [[Hub]]) and adds _K as prefix where K starts from 2.
* record <demo name> - records a demo. The [[Portal 2]] will split demos on every map change (including the [[Hub]]) and adds _K as prefix where K starts from 2.
Line 46: Line 59:
*host_timescale <number> - use in conjunction with host_framerate to produce a smooth video output
*host_timescale <number> - use in conjunction with host_framerate to produce a smooth video output


[[Category:Lists]]
== External links ==
* [https://developer.valvesoftware.com/wiki/List_of_Portal_2_console_commands_and_variables "List of Portal 2 console commands and variables"]
 
[[Category:Portal]]
[[Category:Portal 2]]
 
{{cleanup|reason=1. Which commands need sv_cheats 1?}}