Door_Animated

From ZDoom Wiki
Jump to: navigation, search

14:Door_Animated (tag, speed, delay, lock)


  • tag: Tag of affected sector
  • speed: How quickly the door opens
  • delay: Tics until door closes
  • lock: Required key (See Key types)

Opens the affected sector like a door but instead of raising the ceiling visibly it plays a texture animation on the front sides of the door sector. This is used by ZDoom to manage Strife's animated doors. There are a few limitations to observe:

  1. The sector must be set up like a normal door, that is, its ceiling height should be equal to its floor height.
  2. The texture to be used must be defined in the ANIMDEFS lump.
  3. The door sector may only have 2 sides which face another sector.
  4. Those 2 sides must have the same texture.

Examples

Here is an example of ANIMDEFS definition for a Strife door:

animateddoor  SIGLDR01
	opensound DoorOpenLargeMetal
	closesound DoorCloseLargeMetal
	pic SIGLDR01 
	pic SIGLDR02 
	pic SIGLDR03 
	pic SIGLDR04 
	pic SIGLDR05  
	pic SIGLDR06 
	pic SIGLDR07 
	pic SIGLDR08 

The Strife linetypes 144 and 207 are translated to this:

Door_Animated (0, 4, 3*35)