List of useful console commands: Difference between revisions

Jump to navigation Jump to search
AVI recording is broken and obsolete now, Valve even removed that in the Source 1 games and ask to use h264 and QuickTime recording instead.… May I suggest compiling with VirtualDub?
No edit summary
(AVI recording is broken and obsolete now, Valve even removed that in the Source 1 games and ask to use h264 and QuickTime recording instead.… May I suggest compiling with VirtualDub?)
Line 3: Line 3:
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.


== List of useful console commands ==
==List of useful console commands==
Type sv_cheats 0 or 1 to turn off or on cheats respectively.
Type sv_cheats 0 or 1 to turn off or on cheats respectively.
* portal_draw_ghosting 0/1 - Toggles the outline visible on portals through walls.
* portal_draw_ghosting 0/1 - Toggles the outline visible on portals through walls.
Line 19: Line 19:
* cm_reset_vo_progress - Resets the dialog progress of [[Cave Johnson]] in the [[Perpetual Testing Initiative]].  
* cm_reset_vo_progress - Resets the dialog progress of [[Cave Johnson]] in the [[Perpetual Testing Initiative]].  


=== Miscellaneous ===
===Miscellaneous===
 
* bind <key> "<command>" - Binds a key with a command.  
* bind <key> <command> - Binds a key with a command.  
* unbind <key> - unbinds a key
* unbind <key> - unbinds a key
* kill - Commit suicide.
* kill / explode - Commit suicide.
* 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.
Line 41: Line 40:
* record <demo name> - records a demo
* record <demo name> - records a demo
** stop - stops the recording of a demo
** stop - stops the recording of a demo
* startmovie <moviename> avi - opens up the source recorder during demo play back and allows for high quality avi format recording
* startmovie <moviename> - opens up the Source Recorder during demo playback and allows for high quality recording
**endmovie - stops source recorder
**endmovie - stop recording to image or AVI
'''NOTE: Videos that exceed the file size of 2 GB become corrupted and unviewable, either use a lower resolution before recording or record to raw images and sound instead!'''
*host_framerate <number> - tells the source recorder to record at a constant framerate
*host_framerate <number> - tells the source recorder to record at a constant framerate
*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]]
[[Category:Lists]]

Navigation menu