-
Notifications
You must be signed in to change notification settings - Fork 13
DDF Switches
Stored in the DDFSWTH data lump, or the switch.ddf file.
DDFSWTH 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:
COMMAND | TYPE | EXPLANATION |
---|---|---|
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:
[SW1BRCOM]
ON_TEXTURE = "SW1BRCOM";
OFF_TEXTURE = "SW2BRCOM";
ON_SOUND=SWTCHN1;
OFF_SOUND=SWTCHN2;
DDF docs written by Andy Baker and Ziggy Gnarly, with updates by Andrew Apted, Andy Brewood and Luke Brennan. © EDGE Team, et al. 1998 - 2024.