SWITCHES

From ZDoom Wiki

Jump to: navigation, search
Warning: This page describes a feature created for Boom that is maintained in ZDoom for backwards-compatibility purposes only. It is not recommended that new projects make use of this feature. Everything that can be done with the SWITCHES lump can be done better and more easily by using ANIMDEFS.

The SWITCHES lump is a list of wall texture names that describe additional switches to be used by the engine. One cannot just create a SW1xxxxx/SW2xxxxx texture pair and expect the engine to know it is a switch, since there is a hard-coded list of switches. Using this lump allows a wad author to specify additional switch textures in a Boom-compatible port.

Specification

SWITCHES is a series of 20 byte entries:

  • 9 bytes: null-terminated name of the "off" texture
  • 9 bytes: null-terminated name of the "on" texture
  • 2 bytes: 16 bit int specifying which IWADs this switch works with:
    • 0: terminate SWITCHES list
    • 1: Shareware
    • 2: Shareware, Doom
    • 3: Shareware, Doom, Doom 2

The last entry, with a 0 in its final two bytes, is not used.

This information is from the file "boomref.txt".

Personal tools