CCMDs:Control

From ZDoom Wiki
Jump to: navigation, search

These console commands are used to directly control the player or HUD. They can be bound to a key in the controls menu from within the game.

See the CCMDs article for general information on how to use commands.

Controls

Each control has both a + command and a corresponding - command. Where the + command begins a player action, the - command ends the same action. For example, pressing the key bound to +forward will start the player moving forward. Releasing it will execute -forward, which halts the players forward movement.

Game controls

  • +altattack
Use your weapon's secondary fire.
  • +attack
Use your weapon's primary fire.
  • +back
Move backward. (Backpedal)
  • +crouch
Makes the player crouch while the key is pressed. Not to be confused with crouch, which toggles crouching on and off.
  • +forward
Move (walk or run) forward.
  • +jump
Jump. You can also use this command to swim upwards. If you were crouching, you also automatically uncrouch.
  • +klook
Look modifier key. While active, +forward and +back behave like +lookup and +lookdown, respectively.
  • +left
Turn (rotate) to the left.
  • +lookdown
Look down toward the floor.
  • +lookup
Look up toward the ceiling.
  • +mlook
Mouselook modifier. If the freelook CVAR is false, you must use the key bound to this while moving your mouse forward or backwards to look up and down. Otherwise, this does nothing.
  • +movedown
Fly or swim down.
  • +moveleft
Move (strafe) to the left.
  • +moveright
Move (strafe) to the right.
  • +moveup
Fly or swim up.
  • +reload
Go to the weapon's "reload" state, provided that the weapon explicitly allows it with A_WeaponReady(WRF_ALLOWRELOAD).
  • +right
Turn (rotate) to the right.
  • +showscores
While held, displays the scoreboard, which displays player names and frag count during a multiplayer game.
  • +speed
Normally, this causes your player to move faster (run) while held. If the cl_run CVAR is set, then this reverses roles and causes your player to move more slowly (walk) instead.
  • +strafe
Strafe modifier key. While active, +left and +right behave like +moveleft and +moveright, respectively.
  • +use
Try to use or activate something in front of you.
  • +user1
  • +user2
  • +user3
  • +user4
These do nothing by themselves, but can be checked using the GetPlayerInput function to incorporate custom features into a PWAD.
  • +zoom
Go to the weapon's "zoom" state, provided that the weapon explicitly allows it with A_WeaponReady(WRF_ALLOWZOOM).

Automap controls

These controls are only active while in full automap mode.

  • +am_pandown
If the am_followplayer CVAR is false, the view of the map moves downward (to the South).
  • +am_panleft
If the am_followplayer CVAR is false, the view of the map moves leftward (to the West).
  • +am_panright
If the am_followplayer CVAR is false, the view of the map moves rightward (to the East).
  • +am_panup
If the am_followplayer CVAR is false, the view of the map moves upward (to the North).
  • +am_zoomin
Zoom in to get a closer look at the map.
  • +am_zoomout
Zoom out to get a broader view of the map.
  • am_clearmarks
Removes all user-placed automap marks.
  • am_gobig
Zoom the map out to put the entire level in view
  • am_restorecolors
Reset custom automap colors to their default values.
  • am_setmark
Set a mark at the center position (player arrow in follow mode; crosshair in no-follow mode).
  • am_togglefollow
Toggles follow mode on and off.
  • am_togglegrid
Toggles grid layer display on and off.
  • am_toggletexture
Toggles textured automap on and off. Note that textured automap requires GL nodes to have been built: if no GL nodes are available, the automap will remain untextured.
  • am_zoom int value
Zoom to the given zoom level.

Other commands

  • centerview
Resets free look to the horizontal.
  • crouch
Toggles crouching mode on and off. Not to be confused with +crouch, which only enables crouching while the key is pressed.
  • invdrop
Drops the currently selected inventory item.
  • invnext
Selects the next inventory item you possess.
  • invprev
Selects the previous inventory item you possess.
  • invuse
Activates the currently selected inventory item.
  • invuseall
Activates every inventory item you possess.
  • land
If you are using a flight item, deactivates it and causes you to land.
  • pause
Pauses and unpauses the game.
  • select <item>
Selects the given artifact, provided there is one in inventory.
  • showpop <number>
Display a Strife-style pop-up. The number can be:
  1. Log / mission objectives
  2. Key list
  3. Status / weapons, ammo, and statistics
  • sizedown
Decrements screenblocks by 1, shrinking the view window.
  • sizeup
Increments screenblocks by 1, enlarging the view window.
  • slot <slotnumber>
Selects the next weapon from the specified weapon slot.
  • toggleconsole
Toggles display of the console on/off.
  • togglemap
Press to active the automap. Press again to return to the game. If am_overlay is true, this is also used toggle the overlay map.
  • togglemessages
Toggles display of game messages on/off. The only difference between doing this and "toggle show_messages" is that this command always displays a message describing the current state of messages.
Toggles the display of the scoreboard on and off.
  • turn180
Instantly turns the player 180 degrees, reversing his facing.
  • turnspeeds [speed1 [speed2 [speed3 [speed4]]]]
Controls how quickly you turn with the keyboard. Using this command without any parameters lists the current turning speeds. To set the speeds, specify at least one, and any you do not specify will be filled in automatically. The different speeds are used in the following situations:
  1. Turning while walking
  2. Turning while running
  3. Just started turning while walking
  4. Just started turning while running
  • use <item>
Uses an item of class type <item>, if present in the player's inventory. If the item is not present, nothing happens. For correct activation of Hexen's flechettes from the console, see useflechette below.
  • useflechette
Hexen's flechettes require special handling due to the actual item in the inventory being different depending on the player class picking them up. This command uses a flechette of the type corresponding to the player class, if present in the player's inventory. If the player has no flechettes in their inventory, nothing happens.
  • weapdrop
Drops the currently selected weapon.
  • weapnext
Selects the next weapon (in order) that you own and have ammo for.
  • weapprev
Selects the previous weapon (in order) that you own and have ammo for.

See also