Console Useful Controls: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
(I would say noclip is not only common, easy to type but also useful for getting around the level quickly)
m (add a few)
Line 1: Line 1:
==Introduction==
==Introduction==


This is a list of common console commands and cvars that are of use to Dark Mod mappers and developers for testing etc. It is in order of key words and meaning. There is no use just adding a cvar or command - one can just look on any of the published lists. Instead think what will be in the user's head. For example, you want to know the joint name on a particular AI? You might be looking under J but instead you might be think B for bone, or indeed 'Wasn't there a cvar to show the AI skeleton?' so you look under S. Or the user might look first under AI. It should ideally be under all four...
This is a list of common console commands and cvars that are of use to Dark Mod mappers and developers for testing etc. It is in order of key words and meaning.  


==Notes==
==Notes==


* Where a cvar or command is followed by a 1 (parameter) it can be taken that it is enabled by 1 and disabled by 0 unless otherwise stated.
* Where a cvar or command is followed by a 1 (parameter) it can be taken that it is enabled by 1 and disabled by 0 unless otherwise stated. '''N''' indicates a range of values.
* Where a cvar or command is followed by a N (parameter) it indicates a range of values.
* The current value of a cvar can be shown by entering its name without a value.
* The current value of a cvar can be shown by entering its name without a value.
* Parameters can be toggled between values by preceding the control with 'toggle' and following it with eg, 1 0. Example : toggle r_showtris 3 0
* Parameters can be toggled between values by preceding the control with 'toggle' and following it with eg, 1 0. Example : toggle r_showtris 3 0
* Controls can be bound to keys to be used in-game, including the toggle command, eg, bind "v" "toggle r_showportals 1 0"
* Controls can be bound to keys to be used in-game, including the toggle command, eg, <tt>bind "v" "toggle r_showportals 1 0"</tt>
* Many controls can be included in the file Doomconfig.cfg in the darkmod folder so they are automatically effective.
* Many controls can be included in the file '''Doomconfig.cfg''' in the darkmod folder so they are automatically effective.
* Some controls are disabled on exit from a map; others are permanent until manually changed.
* Some controls are disabled on exit from a map; others are permanent until manually changed.




==The List==
{|class="wikitable sortable" border=1 style="border-color: grey; border-collapse: collapse;" cellspacing=0 cellpadding=3
 
 
{|border=1 cellspacing=0 cellpadding=3
 
|-
!bgcolor=#d0d0e0 colspan=3|Common Console Commands


|-
|-
Line 36: Line 29:
|-
|-
!align=left|g_showCollisionModels 1
!align=left|g_showCollisionModels 1
|Shows collision models
|Shows collision models. Use '''g_maxShowDistance N''' to increase the distance where they are shown to.


|-
|-
Line 56: Line 49:
|-
|-
!align=left|r_showtris N
!align=left|r_showtris N
|(1) Shows triangles being rendered directly (2) shows overdrawn tri's (3) shows all tri's in scene, direct and indirect.
|(1) Shows triangles being rendered directly<br>(2) shows overdrawn tri's<br>(3) shows all tri's in scene, direct and indirect.


|-
|-
Line 69: Line 62:
!align=left|noclip
!align=left|noclip
|Player flies through everything.
|Player flies through everything.
|-
!align=left|g_showEntityInfo 1
|Show info about near entities (as box with classname)
|-
!align=left|g_frametime 1
|Timing info for each frame, see [[Profiling#g_frametime|Profiling]].
|-
!align=left|r_showPrimitives 1
|Show info about number of [[drawcalls]] and tris/shadow tris rendered.


|}
|}


{{editing}}
{{editing}}

Revision as of 18:18, 19 February 2011

Introduction

This is a list of common console commands and cvars that are of use to Dark Mod mappers and developers for testing etc. It is in order of key words and meaning.

Notes

  • Where a cvar or command is followed by a 1 (parameter) it can be taken that it is enabled by 1 and disabled by 0 unless otherwise stated. N indicates a range of values.
  • The current value of a cvar can be shown by entering its name without a value.
  • Parameters can be toggled between values by preceding the control with 'toggle' and following it with eg, 1 0. Example : toggle r_showtris 3 0
  • Controls can be bound to keys to be used in-game, including the toggle command, eg, bind "v" "toggle r_showportals 1 0"
  • Many controls can be included in the file Doomconfig.cfg in the darkmod folder so they are automatically effective.
  • Some controls are disabled on exit from a map; others are permanent until manually changed.


Command Description
r_showskel 1 Shows skeleton in-game with joints names
notarget enemy AI will not attack player
g_showCollisionModels 1 Shows collision models. Use g_maxShowDistance N to increase the distance where they are shown to.
g_dragentity 1 Aim at entity and hold attack control then pull back
g_fov N N=angle of field of view, eg, g_fov 30 = zoom in to restrict field of view to 30 degrees. Default = 90
com_showfps 1 Show fps to test performance.
god Player cannot be harmed.
r_showtris N (1) Shows triangles being rendered directly
(2) shows overdrawn tri's
(3) shows all tri's in scene, direct and indirect.
r_showportals 1 Shows all portals in scene (red=closed,green=open) If your portals dont show up they are most likely not sealing.
r_showlightcount 1 Using colours shows the number of lights hitting a surface, black = 0, red = 1, blue = 2... etc
noclip Player flies through everything.
g_showEntityInfo 1 Show info about near entities (as box with classname)
g_frametime 1 Timing info for each frame, see Profiling.
r_showPrimitives 1 Show info about number of drawcalls and tris/shadow tris rendered.