Generic_Door

This special encapsulates Boom's generalized doors.

202:Generic_Door (tag, speed, kind, delay, lock)

  • tag: Tag of affected sector, or 0 to use the line's back sector.
  • speed: Door's movement speed. Doom's standard doors move at 16, and blazing doors move at 64.
  • kind: Type of movement to apply to the door.
  • delay: Octics until door is automatically closed/opened. Doom waits about 34 octics.
  • lock: Required key, if any (see Key types).

Parameters

Tag

If tag is 0, then the sector on the line's back side is used.

If 128 is added to the kind parameter, the tag is used as a light tag, not a door tag; see below.

Kind

Kind can be one of four values:

  • 0  Raise door and close it after delay octics
  • 1  Open door and leave it open
  • 2  Close door and open it after delay octics
  • 3  Close door and leave it closed

If 64 is added to the kind parameter, the door is not retriggerable even if it is a manual door. This is consistent with Boom's behavior for generalized door.

If 128 is added to the kind parameter, the tag is used as a light tag, not a door tag. In this case, this special only opens the door on the line's back side. Instead, a gradual lighting effect is done in the tagged sectors. The light is gradually changed between the darkest neighboring sector when the door is fully closed and the brightest neighboring sector when the door is fully open.

Delay

Because the largest values used in Boom maps could not fit in tics in the Hexen map format, this generalized line uses values in octics. For reference, the following table provides equivalence for the values available in Boom. Use the values from the octics column. You can also use any arbitrary value you want.

SecondsTicsOcticsNotes
1358
415034Equivalent to vanilla door delay
930069
301050240

Lock

For reference, Boom allows twelve possible lock types, but it is also possible to use any defined custom lock value.

ValueKey needed to unlock
100Any key
130Any blue key
129Any red key
131Any yellow key
2Blue key card
1Red key card
3Yellow key card
5Blue skull key
4Red skull key
6Yellow skull key
229All three colors
101All six keys
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.