Quake II's cheats are enabled and disabled via the developer console, a prompt accessed by pressing the tilde ( ~ ) key. The console grants access to hundreds of commands besides and including cheats that can simply be typed into the window. For example, typing in "+attack" without quotes causes the player character to shoot endlessly while "-attack" stops it. Typing in "god" toggles invulnerability. Console commands are case insensitive; "kill" is the same as "Kill" or "kIlL." Finally, console commands may be strung together with semicolons to make a longer statement. For example, "notarget; god; noclip" executes all three of those commands and has the same effect as typing each command one by one followed by enter.
Cheat
Description
dmflags bit field
Dmflags is a number that indicates which options are turned on or off in the current game. For example, dmflags can indicate that infinite ammo (8192) is turned on or no falling damage (8) or both (8200).
give item
The "give" cheat immediately gives players the item specified. The admissible inputs to "give" can be found in the item commands appendix.
god
Toggles invulnerability. While invulnerable, the player character's health will not go down except in edge cases such as being telefragged.
kill
Instantly kills the player.
noclip
This cheat allows the player character to walk and fly through walls, even outside of the map. Note that it is possible to trap the player if noclip is disabled while inside a wall or outside of the map. Noclip would need to be used again to free the player.
notarget
Toggles notarget status. While notarget is turned on, enemies will completely ignore the player character. Notarget has two caveats. First, enemies that have already seen the player will continue to see them while unaware enemies will remain unaware. For example, the player cannot use notarget to make an enemy forget them. Second, if an enemy is shot at while notarget is turned on, they will see the player as if notarget is turned off.
map map name
The map cheat changes the current level to map name. Any valid map may be entered, even if it is a multiplayer only map. For a list of valid maps, see here.
skill 0-3
Changes the difficulty of the current game. Valid values range from 0-3. The skill cheat is only applied once the map is changed either via a cheat or exiting the level.
sv_gravity number
Sets gravity to number. The default gravity is 800.
Dmflags (Deathmatch Flags) are typically reserved for servers. Server hosts can set dmflags on their server to allow for infinite ammo, or to prevent the map from changing, or ensuring items "stay" when picked up by other players. The single player game has certain dmflags set by default but players are not allowed to change them except via cheating. Many of these flags lack immediate use in single player games, but they are provided for completion.
Flag
Description
1
No health items spawn.
2
Powerups do not spawn.
4
Weapons stay when picked up. In other words, two players can pick up the same spawned weapon rather than the weapon disappearing when the first person touches it.
8
Falling damage is disabled.
16
Powerups are used immediately on pickup. Normally, they are stored in your inventory to use later.
32
The map does not change after the game ends or the level is exited.
64
Players are set into teams by skin.
128
Players are set into teams by model.
256
Disables friendly fire.
512
Players spawn at the furthest spawn points from other players when possible.
1024
Force respawn. In multiplayer games, this disables the ability for players to respawn when they wish. Players instantly respawn on death.
2048
Armor does not spawn.
4096
No exit. Maps cannot be exited; players are killed if they try.
8192
Infinite ammo.
16384
Quad damage drops on death. Usually, the powerup disappears if a player dies with it enabled.