Palette flash
Palette flashes are effects created in vanilla Doom by changing the palette used. The PLAYPAL lump therefore contains 14 palettes (28 palettes in Hexen). Palette 0 is used in normal conditions, palettes 1 to 8 are meant for taking damage, palettes 9 to 12 for picking up bonus items, and palette 13 for wearing the radiation suit (or, in Strife, being poisoned). In Hexen, palettes 13 to 20 are used for poison damage, 21 for frozen death, 22 to 24 for firing the Wraithverge and 25 to 27 for firing the Bloodscourge.
ZDoom, however, only uses the normal palette in all circumstances and instead emulates palette flashes with screen blending. This allows to have unlimited types of palette flashes as well as allows proper handling of image formats that do not use the PLAYPAL. Another advantage of ZDoom's approach is that blendings can be combined: for example, using simultaneously a radiation-shielding suit and picking up an item while taking damage from enemy fire results in vanilla Doom in one of the screen effects having priority on the other; whereas ZDoom will combine the effects together.
Custom palette flashes can be created with the Powerup.Colormap and Player.DamageScreenColor properties in DECORATE, and with pickupcolor in a MAPINFO GameInfo section.
For inventory items, the palette flash can be disabled via the INVENTORY.NOSCREENFLASH actor flag.
The blending color values for the default palette flashes were taken from the