Skip to content

DDF Switches

Lobo edited this page Jul 5, 2024 · 2 revisions

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).

Commands

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

Notes

Exit-level switches always use the [SWTCHX] sound regardless of the sounds listed in this file.  

Examples

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.

Home

EDGE-Classic Mod Downloads

COAL

DDF     Introduction
    Animations
    Attacks
    Colormaps
    Flats
    Fonts
    Games
    Images
    Languages
    Levels
    Lines and Sectors
    Playlist
    Sounds
    Styles
    Switches
    Things
    Weapons
RTS     Introduction
    Conditions
    Directives
    Flow Control
    Level Commands
    Maps and Triggers
    Properties
    Thing Commands
    Tips and Menus
Tutorials     Creating a Weapon
    Creating an Enemy
    Creating a Friendly Creature

Compiling EDGE-Classic

Clone this wiki locally