Jump to content

Definecheat

From EDukeWiki

definecheat <cheat number> <text to activate cheat>

Similar to definequote. This command does not allow the user to create new cheats with new functionality, but simply allows the user to change the text which activates the hard coded cheats. There are a total of 27 cheats, the first 26 of which can be redefined with definecheat.

To change the two letter combination that's entered before the cheat, see cheatkeys.

Trivia: The Duke Nukem 3D source code indicates that cheat 15 was "bonus" and cheat 25 was "ending" during development.

You can use dc as a shorthand for this command.

Values

The following values are used with activatecheat, definecheat, definecheatdescription and EVENT_ACTIVATECHEAT.

ExposedValueLabelDescription
No0CHEAT_CORNHOLIOToggle god mode and infinite Jetpack
No1CHEAT_STUFFGive all weapons, inventory and keys
No2CHEAT_SCOTTYChange level to ###
No3CHEAT_COORDSDisplay coordinates
No4CHEAT_VIEWToggle third-person view
No5CHEAT_TIMEPrints the message "Crosshair: off"
No6CHEAT_UNLOCKActivate all doors, switches, etc
No7CHEAT_CASHMANSpawn money when pressing use
No8CHEAT_ITEMSGive all inventory and keys
No9CHEAT_RATEDisplay frame rate
No10CHEAT_SKILLChange skill level to #
No11CHEAT_BETAPrints the message "Pirates Suck!"
No12CHEAT_HYPERGive and use Steroids
No13CHEAT_MONSTERSToggle monsters
14<RESERVED>
15<RESERVED>
No16CHEAT_TODDPrints the message "Register Cosmo Today!"
No17CHEAT_SHOWMAPToggle full automap
No18CHEAT_KROZToggle god mode
No19CHEAT_ALLENPrints the message "Buy Major Stryker"
No20CHEAT_CLIPToggle no-clipping mode
No21CHEAT_WEAPONSGive all weapons
No22CHEAT_INVENTORYGive all inventory
No23CHEAT_KEYSGive all keys
No24CHEAT_DEBUGDisplay debug data and create debug.map file
25<RESERVED>
No26CHEAT_COMEGETSOMEToggles godmode, gives full health + armor and gives all keys, weapons and ammo (no inventory items). Unlike CHEAT_KROZ, does not unset the 'dead' flag on the player.
Defines
define CHEAT_CORNHOLIO                  0
define CHEAT_STUFF                      1
define CHEAT_SCOTTY                     2
define CHEAT_COORDS                     3
define CHEAT_VIEW                       4
define CHEAT_TIME                       5
define CHEAT_UNLOCK                     6
define CHEAT_CASHMAN                    7
define CHEAT_ITEMS                      8
define CHEAT_RATE                       9
define CHEAT_SKILL                      10
define CHEAT_BETA                       11
define CHEAT_HYPER                      12
define CHEAT_MONSTERS                   13
define CHEAT_TODD                       16
define CHEAT_SHOWMAP                    17
define CHEAT_KROZ                       18
define CHEAT_ALLEN                      19
define CHEAT_CLIP                       20
define CHEAT_WEAPONS                    21
define CHEAT_INVENTORY                  22
define CHEAT_KEYS                       23
define CHEAT_DEBUG                      24
define CHEAT_COMEGETSOME                26