Animated door

From ZDoom Wiki
Jump to: navigation, search

An animated door is a feature originating from Strife and completing some unfinished and unused code in Doom meant to create Wolfenstein 3D-style sliding doors.

An animated door is created with the special Door_Animated and the ANIMDEFS lump.

Contrarily to polyobjects, which can be used to implement actual sliding doors, an animated door is a variant of the vertical door: the sector must have a height of zero, and the door texture is placed on the upper texture. While opening, the door plays the opening animation (as defined in ANIMDEFS), at the end of which the door sector's ceiling is instantly raised, allowing passage. While closing, the door sector's ceiling is instantly lowered, and the animation is played in reverse.

If a solid actor blocks the door's closing movement, the door remains open. Contrarily to vertical doors and polyobjects, it will not start to move and abort, since the movement itself is instantaneous and silent.

The door's sound sequence is determined by its texture animation. It cannot be overridden by a sound sequence thing since it is not a property of the sector.

Note: Only two linedefs will be animated; the one activated and the first two-sided line found with the same texture belonging also to the door sector. Doors with more complex shapes than the usual thin rectangle (such as a cross-shaped connection between four sectors) will not behave correctly.