DMFlags

There are 2 CVARs in ZDoom that control certain gameplay flags, namely DMFLAGS and DMFLAGS2. Most only affect Deathmatch games, hence the name, however others only affect Cooperative games and some work in all game modes.

  • (These DMFlags are ZDoom-specific. Zandronum DMFLAGS can be found here.)

You can set the flags via the in-game menu (Options Gameplay options), however you can also set the options directly from the command line or console.

At the console, type "dmflags[2] XXXX", where XXXX is a number representing which flags should be toggled. This number is created by adding the values for each argument you want to use.

To make the change effective from the command line, use "+set dmflags[2] XXXX".

The following table lists each of the flags currently available, along with the values needed, which CVAR you should put that value in, and what the default state of each setting is (on or off). Contrary to how one might expect it to function, the setting is simply toggled from the default when the value is set. For example, adding 2048 to DMFLAGS turns Infinite Ammo on, however adding 131072 to DMFLAGS2 turns freelook off, since on is the default state.

In a multiplayer game, only the host can change these settings unless SV_Cheats is 1.

Note that this following table may fall out of date between versions. Always refer to ZDoom's Gameplay options menu for the correct values.
(Up-to-date as of ZDoom 2.9 pre-2175-g4f21ff2 64bit. GZDoom 3.x also shares these same DMFlags and their enumerations.)

DMFlags

Flag NameCVarDefaultValueDescription
Allow Health (DM)DMFlagsON1Allows players to pick up items which restore health
Allow Powerups (DM)DMFlagsON2Allows players to pick up and use powerup items
Weapons Stay (DM)DMFlagsOFF4Weapons aren't removed from the map when a player picks them up; Doesn't work with weapons dropped by enemies
Falling damage (Old)DMFlagsOFF8Damages the player when they fall too far; uses old ZDoom damage calculation
Falling damage (Hexen)DMFlagsOFF16Damages the player when they fall too far; uses Hexen's damage calculation
Falling damage (Strife)DMFlagsOFF24Damages the player when they fall too far; uses Strife's damage calculation
Same Map (DM)DMFlagsOFF64After exiting, the current map is started over instead of proceeding to the next
Spawn Farthest (DM)DMFlagsOFF128Tries to spawn players far away from each other in a Deathmatch game
Force RespawnDMFlagsOFF256Forces the player to respawn a few seconds after death
Allow Armor (DM)DMFlagsON512Allows players to pick up items which give armor
Allow Exit (DM)DMFlagsON1024If off, trying to exit the level by normal means will kill the offending player instead
Infinite ammoDMFlagsOFF2048All players have infinite ammo
No monstersDMFlagsOFF4096Monsters placed in the map don't appear; does not stop monsters from spawning via scripts, however
Monsters respawnDMFlagsOFF8192Monsters who are killed automatically respawn; this is the default behavior for the Nightmare skill setting
Items respawnDMFlagsOFF16384Basic items, such as weapons and ammo, respawn after being picked up
Fast monstersDMFlagsOFF32768Monsters move and react faster; this is the default behavior for the Nightmare skill setting
Allow jumpDMFlagsON65536Players are allowed to jump; can be overridden in the MAPINFO lump
Allow freelookDMFlagsON262144Players are allowed to look up and down; can be overridden in the MAPINFO lump
Allow FOVDMFlagsON1048576Players are allowed to change their FOV (Field of Vision) from the default
Spawn multi. weapons (Coop)DMFlagsON2097152If off, weapons marked as Multiplayer Only in the map won't appear in Cooperative games
Allow crouchDMFlagsON4194304Players are allowed to crouch; can be overridden in the MAPINFO lump
Lose entire inventory (Coop)DMFlagsOFF16777216Players lose everything in their inventory upon death (Coop only)
Keep keys (Coop)DMFlagsON33554432If off, players lose keys upon death (Coop only)
Keep weapons (Coop)DMFlagsON67108864If off, players lose all weapons upon death and are given the standard pistol and 50 bullets on respawn (Coop only)
Keep armor (Coop)DMFlagsON134217728If off, armor is reset to 0% on death (Coop only)
Keep powerups (Coop)DMFlagsON268435456If off, powerups are lost on death (Coop only)
Keep ammo (Coop)DMFlagsON536870912If off, ammo is lost on death and the player starts with only 50 bullets (Coop only)
Lose half ammo (Coop)DMFlagsOFF1073741824If on, half of the player's ammo is removed on death (Coop only)

DMFlags2

Flag NameCVarDefaultValueDescription
Drop weaponDMFlags2OFF2Drops the player's currently selected weapon on death
No team changing (DM)DMFlags2OFF16If on, players cannot change teams in a teamplay match after the map has started.
Double ammoDMFlags2OFF64If on, ammo pickups are doubled.
DegenerationDMFlags2OFF128Players have their health slowly drained when over 100%
Allow BFG aimingDMFlags2ON256Players are allowed to aim BFG shots up and down; turn off to prevent the BFG from being fired into the ground to generate instant tracers
Barrels respawn (DM)DMFlags2OFF512Respawns barrels in a Deathmatch game
Respawn protection (DM)DMFlags2OFF1024Players who are respawning are invulnerable for a few seconds
Spawn where died (Coop)DMFlags2OFF4096If on, players respawn at the spot they died, unless they died in an instant-death sector (Sector type 115). (Coop only)
Keep frags gained (DM)DMFlags2OFF8192If on, players keep their frag count from one map to the next.
No respawnDMFlags2OFF16384If enabled, players will not be able to respawn after dying.
Lose frag on death (DM)DMFlags2OFF32768Players lose a frag each time they die.
Infinite inventoryDMFlags2OFF65536Inventory items aren't removed when used.
No monsters to exitDMFlags2OFF131072Players cannot exit the map until all monsters are killed
Allow automapDMFlags2ON262144Players are allowed to access their automap
Automap alliesDMFlags2ON524288Players can see other friendly players on the automap
Allow spyingDMFlags2ON1048576Players can use the spynext command to see through their allies' eyes
Chasecam cheatDMFlags2OFF2097152Players are allowed to use the third-person chase cam
Disallow SuicideDMFlags2OFF4194304Players cannot die due to self-inflicted damage
Allow AutoaimDMFlags2ON8388608Player weapons cannot auto aim
Check ammo for weapon switchDMFlags2ON16777216???
Icon of Sins death kis its spawnsDMFlags2ON33554432???
End sector counts for kill %DMFlags2ON67108864???
Big powerups respawnDMFlags2OFF134217728Powerups, such as the Invisibility and Invulnerability, respawn after being picked up
Allow vertical bullet spreadDMFlags2OFF1073741824Vertical bullet spread for weapons is allowed
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.