Ad blocker interference detected!
Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers
Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.
Linedefs are what make up the 'shape' (for lack of a better word) of a map. Every linedef is between two vertices and contains one or two sidedefs (which contain wall texture data). There are two major purposes of linedefs. The first is to divide the map into sectors, and the second is to trigger action specials.
Any area of a map directly behind a one-sided linedef is void space (which cannot be occupied except by using the idclip cheat code). A two-sided linedef is needed (to separate the two sectors) any time there is a change in (1) the height or texture of the floor or ceiling, (2) the light level, or (3) the sector tag or type.
There are three ways to trigger an action:
- "use" (or "push") (with the space bar, by default)
- shoot (with an impact weapon)
Which of these applies depends on the linedef type number, which also specifies what particular action will occur.
The specified action usually will take place in the sector or sectors that have the same tag number as the linedef. Exceptions to this include local doors (which act on the sector on the other side of the line), special effects that apply to the linedef itself, and the exit-level actions.
Most actions can be specified as either once-only or repeating (by using different linedef types).
|Doom level format|
Each linedef is 14 bytes long.
|10||2||Right Sidedef 1|
|12||2||Left Sidedef 1|
1. ^ The special value '-1' is used to indicate no sidedef, in one-sided lines.
Linedefs contain a two-byte (16 bit) field reserved for various flags. Flags are as follows:
||blocks players and monsters
||upper texture is unpegged
||lower texture is unpegged
||secret (shows as one-sided on
automap), and monsters cannot open if it is a door (type 1)
||never shows on automap
||always shows on automap
||can be activated more than once
||activated when used by player
||activated when crossed by monster
||activated when hit by projectile
||activated when bumped player
||activated when crossed by projectile
||activated when used by player (with
||line can be activated by players and
||blocks everything (includes
gunshots & missiles)