DeHackEd
Note: DECORATE offers a much more powerful feature set for creating custom items and enemies. It is recommended that you use it instead of DeHacked for future projects. |
This is referred to from Special lumps, however, it is its own topic as well. ZDoom allows you to import a DeHacked patch into a WAD so that a whole mod can be packaged neatly into one file. Simple DeHacked (text, not code patches -- DeHacked version 3.0 or later) or .BEX patches may be used. For changing Strings you should use the LANGUAGE lump. The only thing that can't be done any other way is changing the default amounts of Doom's Ammo items.
DeHacked is an editor originally created for vanilla Doom that allows you to change the executable file. Hit points, sounds, frame sequences, text Strings and a few other miscellaneous values can be changed. The most common patches have been making super-fast monsters, super-fast weapons, player-seeking-self-detonating barrels, and so on, however more balanced and artistic modifications can and have been made. Even though many great effects can be achieved with DeHacked, the flexibility is not complete. Things like monster AI and armor class are still fixed or don't budge much.
Older DeHacked patches contained only illegible code that was to be applied to an executable file by the DeHacked patching utility. Later versions of DeHacked saved their patches in a human-readable plain text format that could be used the same way, but you could edit them with any text editor, mostly only feasible for small edits. When BOOM came around, it was able to load these plain-text patches and affect changes to the game upon startup without any crude hacking such as what DeHacked did to executables -- no patching of the executable. Other source-ports followed suit, and now we have command-line loadable DeHacked support with most modern source-ports. BOOM also provided certain extensions for DeHacked support, so if you see a file ending in .BEX, for Boom Extended, that is a file that uses said extensions. BEX allows greater flexibility in string editing (such as being able to do it AT ALL outside of vanilla Doom, because the prior format relied on replacing text based on offsets, which were useless unless used in conjunction with the original executable file the patch was created for.) BEX also allows application of codepointers to any frame.
ZDoom did the same, and now has its own ZDoom codepointer extensions in addition to BOOM's, which allow using effects such as the ones in Hexen and more in Doom. These are ZDoom-specific and not backward-compatible with vanilla Doom or with any other source-ports. ZDoom also has its own set of bits (ZDoom-specific bits in BEX) that can be applied to Things. These bits are also not backward-compatible.
A great place to learn to use DeHacked from the ground up is at Enjay's reference: http://www.aspectsweb.co.uk/dehacked/index.html
If you want to create dehacked patches without actually using DeHacked, you will need to know the DeHacked thing numbers. These are a set of numbers that correspond to the order the actors were defined in doom2.exe. They have no meaning outside of DeHacked and ZDoom's DeHacked loader.
- 1 Player
- 2 Trooper
- 3 Sergeant
- 4 Archvile
- 5 Archvile Attack
- 6 Revenant
- 7 Revenant Fireball
- 8 Fireball Trail
- 9 Mancubus
- 10 Mancubus Fireball
- 11 Chaingun Commando
- 12 Imp
- 13 Demon
- 14 Spectre
- 15 Cacodemon
- 16 Baron
- 17 Baron Fireball
- 18 Hell Knight
- 19 Lost Soul
- 20 Spiderdemon
- 21 Arachnotron
- 22 Cyberdemon
- 23 Pain Elemental
- 24 SS Nazi
- 25 Commander Keen
- 26 Big Brain
- 27 Demon Spawner
- 28 Demon Spawn Spot
- 29 Demon Spawn Cube
- 30 Demon Spawn Fire
- 31 Barrel
- 32 Imp Fireball
- 33 Caco Fireball
- 34 Rocket (in air)
- 35 Plasma Bullet
- 36 BGF Shot
- 37 Arach. Fireball
- 38 Bullet Puff
- 39 Blood Splat
- 40 Teleport Flash
- 41 Item Respawn Fog
- 42 Teleport Exit
- 43 BFG Hit
- 44 Green Armor
- 45 Blue Armor
- 46 Health Potion
- 47 Armor Helmet
- 48 Blue Key Card
- 49 Red Key Card
- 50 Yellow Key Card
- 51 Yellow Skull Key
- 52 Red Skull Key
- 53 Blue Skull Key
- 54 Stim Pack
- 55 Medical Kit
- 56 Soul Sphere
- 57 Invulnerability Sphere
- 58 Berserk Sphere
- 59 Blur Sphere
- 60 Radiation Suit
- 61 Computer Map
- 62 Lite Amp. Visor
- 63 Mega Sphere
- 64 Ammo Clip
- 65 Box Of Ammo
- 66 Rocket
- 67 Box Of Rockets
- 68 Energy Cell
- 69 Energy Pack
- 70 Shells
- 71 Box Of Shells
- 72 Backpack
- 73 BFG 9000
- 74 Chaingun
- 75 Chainsaw
- 76 Rocket Launcher
- 77 Plasma Gun
- 78 Shotgun
- 79 Super Shotgun
- 80 Tall Lamp
- 81 Tall Lamp 2
- 82 Short Lamp
- 83 Tall Green Pillar
- 84 Short Green Pillar
- 85 Tall Red Pillar
- 86 Short Red Pillar
- 87 Pillar With Skull
- 88 Pillar With Heart
- 89 Eye In Symbol
- 90 Flaming Skulls
- 91 Grey Tree
- 92 Tall Blue Torch
- 93 Tall Green torch
- 94 Tall Red Torch
- 95 Small Blue Torch
- 96 Small Green Torch
- 97 Small Red Torch
- 98 Brown Stub
- 99 Technical Column
- 100 Candle
- 101 Candelabra
- 102 Swaying Body
- 103 Hanging Arms Out
- 104 One-Legged Body
- 105 Hanging Torso
- 106 Hanging Leg
- 107 Hanging Arms Out 2
- 108 Hanging Torso 2
- 109 One-Legged Body 2
- 110 Hanging Leg 2
- 111 Swaying Body 2
- 112 Dead Cacodemon
- 113 Dead Marine
- 114 Dead Trooper
- 115 Dead Demon
- 116 Dead Lost Soul
- 117 Dead Imp
- 118 Dead Sergeant
- 119 Guts And Bones
- 120 Guts And Bones 2
- 121 Skewered Heads
- 122 Pool Of Blood
- 123 Pool With Skull
- 124 Pile Of Skulls
- 125 Impaled Body
- 126 Twitching Body
- 127 Large Tree
- 128 Flaming Barrel
- 129 Hanging Body 1
- 130 Hanging Body 2
- 131 Hanging Body 3
- 132 Hanging Body 4
- 133 Hanging Body 5
- 134 Hanging Body 6
- 135 Pool Of Blood 1
- 136 Pool Of Blood 2
- 137 Brains