Stored in the switch.ddf file or in the DDFSWTH data lump.
Switch.ddf allows you to change the animations shown when switches are activated. Each entry consists of a unique name, enclosed in square brackets, plus a series of commands that specify the on and off frames of animation and switching sounds.
Names should be descriptive of the background and switch textures, but are used in the map editor when adding switches to your maps, so should be no longer than 8 characters (without spaces).
The commands used for switch entries are as follows:
|ON_TEXTURE||[string]||The texture shown when the switch is 'on' -- Refer to name of entry in wadfile.|
|OFF_TEXTURE||[string]||The texture shown when the switch is 'off' -- Refer to name of entry in wadfile.|
|ON_SOUND||[sound]||The sound the switch makes when switched to the 'on' position -- Refer to entry in sounds.ddf|
|OFF_SOUND||[sound]||The sound the switch makes when switched to the 'off' position -- Refer to entry in sounds.ddf|
|TIME||[time]||How long the button stays with the ON texture until it changes back to the OFF texture|
Exit-level switches always use the [SWTCHX] sound regardless of the sounds listed in this file.
The following is an example of complete switch entry:
ON_TEXTURE = "SW1BRCOM";
OFF_TEXTURE = "SW2BRCOM";
|Doom Definition Files|
|Current DDF Types|
|Abandoned DDF TYPES (DOSDoom & EDGE)|