List of console commands and variables: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
Line 40: Line 40:


=Cheats=
=Cheats=
These commands provide an alternative method of entering some [[List of cheat codes|cheat codes]].
{{see|List of console commands/Cheats}}
 
====god====
 
Toggles god mode (IDDQD) on or off.
 
Flags: not in network games, only in levels
 
====noclip====
 
Toggles no clipping (IDCLIP) on or off.
 
Flags: not in network games, only in levels
 
====nuke====
 
Kills all enemies on the level, and if there are no enemies, kills all friends on the level (equivalent to KILLEM).
 
Flags: server-only, only in level, net command
 
====infammo====
 
Toggles infinite ammo (INFSHOTS) on or off.
 
Flags: not in network games, only in levels
 
====mdk====
 
Fires a tracer from the player that instantly kills any monster the player is targetting.
 
Flags: only in level, not in netgames, hidden
 
====mdkbomb====
 
As above, but fires 60 such tracers in a circle around the player.
 
Flags: only in level, not in network games, hidden
 
====spacejump====
 
Allows the player to jump any number of times in midair; useful for testing linked portals.
 
Flags: only in level, not in network games, hidden
 
====viles ====
 
A special command for DOOM II only. Try it and see what happens :)
 
Flags: only in level, not in network games, hidden
 
====vilehit====
 
If the player is autoaiming at an enemy, the player will perform an Arch-vile attack on that enemy.
 
Flags: only in level, not in network games
 
====banish====
 
If the player is autoaiming at an enemy, the enemy will be removed from the play simulation and its memory will be freed once no other objects reference it.
 
Flags: only in level, not in network games


=Video Options=
=Video Options=

Revision as of 12:26, 3 March 2012

Console commands carry out a particular action when sent to the console.

Back to Console

Core commands

See List of console commands/Core commands

Menus

See List of console commands/Menus

Keybindings

See List of console commands/Keybindings

Networking

disconnect

Disconnects from any ongoing network game and sets full-screen console mode.

Flags: only in network games

playerinfo

Displays name information for all connected players.

frags

Displays the current frag count for all players.

kick playernum

Kicks the player with the specified player number from the game. Player numbers can be retrieved with playerinfo.

Flags: server-only

say ...

Sends all arguments as a single message to all players in a network game.

Flags: net command

Cheats

See List of console commands/Cheats

Video Options

v_modelist

Prints a list of available video modes to the console.

animshot numframes

Takes the given number of consecutive screenshots for the purpose of making a crude animation. Would be useful for animated GIFs or AVI movies. This command will make the game run very slow, however, and will eat up disk space quickly, so use it with care.

screenshot

Takes a single screenshot. Bind this command to a key in order to take a shot without the console in the way.

Sound Options

s_playmusic name

Plays the given lump as music, if that lump can be found in the music hash table. Only lumps listed in the internal music table, or new lumps with names beginning with "D_" in DOOM or "MUS_" in Heretic are available.

Player Options

listskins

Lists names of all available player skins.

listwads

Lists all currently loaded WAD files.

Demos

These commands are related to playing / recording demos. For all of these commands, the demo specified by demoname must have been added in either a WAD or on the command-line with the -file option. Demos cannot be played directly from a file name.

timedemo demoname showmenu

Starts the given demo as a time demo, in which the framerate of the game can be measured. If showmenu is set to 1, a meter comparing the framerate against that of a "fast" machine will be displayed after the demo is complete. Otherwise, the framerate will be printed to the console as a number.

Flags: not in a network game

playdemo demoname

Plays the given demo normally.

Flags: not in a network game

stopdemo

Stops any currently playing demo and drops to console.

Flags: not in a network game

Gameplay

These commands directly affect gameplay in various ways.

pause

Pauses or unpauses the game.
Flags: server-only 

i_error ...

Simulates an internal game engine error. Prints any arguments provided as a single string when the game exits. 

spawn objecttype <friend>

Spawns a map object of the given internal type (DeHackEd number minus 1) in front of the player. If friend is provided and is a non-zero number, the object will be friendly. This command is for developers.

Flags: not in a network game, only in levels, hidden

endgame

Drops to console mode.

Flags: not in a network game

starttitle

Returns the game to the title screen / demo / credits loop.

Flags: not in a network game

quit

Plays a random monster sound and exits the game normally, with no prompt.

map mapname

Transfers game play to the given map. mapname may be the name of a WAD file to load, as well as the name of a map header itself.

 Examples:
 	map E1M1
 	map w00t.wad
 

Flags: server-only, net command, buffered command

kill

Causes the player to commit suiceide.

Flags: only in level, net command

addfile wadfilename

Adds the specified wad file at run-time. Some features will not function completely as expected when WADs are loaded at run-time, so for maximum compatibility always use the command line to load files.

Flags: not in network games, buffered command

exitlevel

Exits the current level. Starting with EE v3.31 beta 1, this command will not allow an exit if the player is dead unless the comp_zombie variable is set to allow zombie exits.

Flags: only in level, server-only, net command, buffered command

defdmflags <mode>

Sets the deathmatch flags variable to its default settings. If no argument is provided, dmflags is set to the default for the current game type. Otherwise, the "mode" parameter indicates what game mode's defaults to set, with the following values:

 0 = Single-player mode
 1 = Cooperative mode
 2 = Deathmatch mode
 3 = Altdeath mode (deathmatch 2.0, items respawn)
 4 = Trideath mode (DM 3, barrels respawn, players drop backpacks)
 

Flags: server-only, net command

summon thingtypename <flagslist> <mode>

Allows spawning of things via their EDF thing type name. An EDF/BEX flag list can optionally be provided, with the flags separated by commas only. By default, this will cause the listed flags to be added to the thing along with its normal flags. By specifying the third parameter as "set" or "remove", it is possible to set the thing's flags value to only the listed flags, or to remove the listed flags if the thingtype has them set by default.

Example to spawn a friendly thing:
$ summon doomimp friend 

Flags: not in a network game, only in levels, hidden

give thingtypename <num>

Spawns 1, or "num" if provided, of the object with this EDF thing type name on the player and causes the player to collect it/them. If the requested thing type is not collectable, it will not be spawned. In addition, if a collectable item is not picked up by the player, it will be removed immediately.

Flags: not in a network game, only in levels, hidden

whistle thingtypename

If there is a live, friendly thing of the given EDF type, the first such thing found on the map will be teleported in front of the player. If the thing doesn't fit where the player is trying to teleport it, it will not be teleported. It will also not be teleported across blocking lines.

Flags: not in a network game, only in levels

p_linespec name <arg> <arg> <arg> <arg> <arg>

Executes the named Eternity Engine parameterized line special with the given parameters. The line special is restricted to behaving as though it has been invoked without any linedef to reference, and thus certain effects such as sector special transfers will not occur even if specified by the special type or arguments.

Flags: not in a network game, only in levels.

EDF- and ExtraData-Related Commands

These commands are related to the Eternity Definition Files (EDF) system. They expose information which may be useful for editing or for use with other console commands.

e_dumpthings

Lists all EDF thing type mnemonics along with the DeHackEd numbers and doomednums of the corresponding types.

e_thingtype thingtypename

Lists verbose information on an EDF thingtype with the given mnemonic. If no such thingtype is defined, an error message will be given.

e_dumpitems

Lists all EDF thing type mnemonics and DeHackEd/DoomEd numbers for thing types which are collectable items. Useful in conjunction with the give command.

e_listmapthings

Lists all mapthing definitions from the current map's ExtraData. If no mapthings are defined or no ExtraData exists for the current map, an appropriate error message will be given.

e_mapthing recordnum

Lists verbose information on an ExtraData mapthing record with the given numeric record number. If no such mapthing is defined or no ExtraData exists for the current map, an appropriate error message will be given.

e_listlinedefs

Lists all linedef definitions from the current map's ExtraData. If no linedefs are defined or no ExtraData exists for the current map, an appropriate error message will be given.

e_linedef recordnum

Lists verbose information on an ExtraData linedef record with the given numeric record number. If no such linedef is defined or no ExtraData exists for the current map, an appropriate error message will be given.