Console Useful Controls: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
No edit summary
Zbyl (talk | contribs)
Added section about spawning entities, sorted general commands table.
Line 20: Line 20:


|-
|-
!align=left|r_showskel 1
!align=left|noclip
|Shows skeleton in-game with joints names
|Player flies through everything.


|-
|-
Line 28: Line 28:


|-
|-
!align=left|g_showCollisionModels 1
!align=left|god
|Shows collision models. Use '''g_maxShowDistance N''' to increase the distance where they are shown to.
|Player cannot be harmed.
 
|-
!align=left|killmonsters
|Removes all AI from a map.
 
|-
!align=left|tdm_show_loot
|Shows loot items through walls for a short time.


|-
|-
!align=left|g_dragentity 1
!align=left|g_dragentity 1
|Aim at entity and hold attack control then pull back
|Aim at entity and hold attack control then pull back
|-
!align=left|pm_noclipspeed N
|Changed the speed of player noclip movement


|-
|-
!align=left|g_fov N
!align=left|g_fov N
|N=angle of field of view, eg, '''<code>g_fov 30</code>''' = zoom in to restrict field of view to 30 degrees. Default = 90
|N=angle of field of view, eg, '''<code>g_fov 30</code>''' = zoom in to restrict field of view to 30 degrees. Default = 90
|-
!align=left|g_showEntityInfo 1
|Show info about near entities (as box with classname)


|-
|-
Line 44: Line 60:


|-
|-
!align=left|god
!align=left|g_frametime 1
|Player cannot be harmed.
|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.
 
|-
!align=left|r_showskel 1
|Shows skeleton in-game with joints names
 
|-
!align=left|g_showCollisionModels 1
|Shows collision models. Use '''g_maxShowDistance N''' to increase the distance where they are shown to.


|-
|-
Line 58: Line 86:
!align=left|r_showlightcount 1
!align=left|r_showlightcount 1
|Using colours shows the number of lights hitting a surface, black = 0, red = 1, blue = 2... etc
|Using colours shows the number of lights hitting a surface, black = 0, red = 1, blue = 2... etc
|}
== Spawning entities ==
{|class="wikitable sortable" border=1 style="border-color: grey; border-collapse: collapse; font-size: 92%; margin-left: 1em" cellspacing=0 cellpadding=3
|-
!bgcolor=#ffdead|Command
!bgcolor=#ffdead|Description
|-
!align=left|spawn atdm:weapon_blackjack
|Spawns blackjack in front of the player. Look up if entity gets spawned under the floor.
|-
!align=left|spawn atdm:weapon_shortsword
|Spawns a sword.


|-
|-
!align=left|noclip
!align=left|spawn atdm:ammo_broadhead
|Player flies through everything.
|Spawns one arrow.
 
|-
!align=left|spawn atdm:ammo_broadhead inv_ammo_amount 50
|Spawns 50 arrows (one entity with 50 ammo). Simillar technique can be used for other ammo types.
 
|-
!align=left|spawn atdm:ammo_firearrow
|


|-
|-
!align=left|pm_noclipspeed N
!align=left|spawn atdm:ammo_gasarrow
|Changed the speed of player noclip movement
|


|-
|-
!align=left|g_showEntityInfo 1
!align=left|spawn atdm:ammo_mossarrow
|Show info about near entities (as box with classname)
|


|-
|-
!align=left|g_frametime 1
!align=left|spawn atdm:ammo_noisemaker
|Timing info for each frame, see [[Profiling#g_frametime|Profiling]].
|


|-
|-
!align=left|r_showPrimitives 1
!align=left|spawn atdm:ammo_ropearrow
|Show info about number of [[drawcalls]] and tris/shadow tris rendered.
|


|-
|-
!align=left|killmonsters
!align=left|spawn atdm:ammo_waterarrow
|Removes all AI from a map.
|


|}
|}
With the Doom 3 console you can press tab after typing something to autocomplete, for example <tt>spawn atdm:<tab></tt> will cycle through the various spawnables. You can also add additional spawnargs using the following syntax: <tt>spawn classname [key value] [key value] ...</tt>.


==See Also==
==See Also==

Revision as of 12:36, 1 February 2013

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
noclip Player flies through everything.
notarget enemy AI will not attack player
god Player cannot be harmed.
killmonsters Removes all AI from a map.
tdm_show_loot Shows loot items through walls for a short time.
g_dragentity 1 Aim at entity and hold attack control then pull back
pm_noclipspeed N Changed the speed of player noclip movement
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
g_showEntityInfo 1 Show info about near entities (as box with classname)
com_showfps 1 Show fps to test performance.
g_frametime 1 Timing info for each frame, see Profiling.
r_showPrimitives 1 Show info about number of drawcalls and tris/shadow tris rendered.
r_showskel 1 Shows skeleton in-game with joints names
g_showCollisionModels 1 Shows collision models. Use g_maxShowDistance N to increase the distance where they are shown to.
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


Spawning entities

Command Description
spawn atdm:weapon_blackjack Spawns blackjack in front of the player. Look up if entity gets spawned under the floor.
spawn atdm:weapon_shortsword Spawns a sword.
spawn atdm:ammo_broadhead Spawns one arrow.
spawn atdm:ammo_broadhead inv_ammo_amount 50 Spawns 50 arrows (one entity with 50 ammo). Simillar technique can be used for other ammo types.
spawn atdm:ammo_firearrow
spawn atdm:ammo_gasarrow
spawn atdm:ammo_mossarrow
spawn atdm:ammo_noisemaker
spawn atdm:ammo_ropearrow
spawn atdm:ammo_waterarrow

With the Doom 3 console you can press tab after typing something to autocomplete, for example spawn atdm:<tab> will cycle through the various spawnables. You can also add additional spawnargs using the following syntax: spawn classname [key value] [key value] ....

See Also

Cvars in The Dark Mod