SWITCH

From 3DGE Wiki
Revision as of 21:06, 29 April 2016 by Corbin (talk | contribs)

Jump to: navigation, search

Switches

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

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;



Doom Definition Files
DDFlogo.gif