<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://3dfxdev.net/edgewiki/index.php?action=history&amp;feed=atom&amp;title=Linedef</id>
		<title>Linedef - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://3dfxdev.net/edgewiki/index.php?action=history&amp;feed=atom&amp;title=Linedef"/>
		<link rel="alternate" type="text/html" href="https://3dfxdev.net/edgewiki/index.php?title=Linedef&amp;action=history"/>
		<updated>2026-06-06T15:37:17Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.27.0</generator>

	<entry>
		<id>https://3dfxdev.net/edgewiki/index.php?title=Linedef&amp;diff=350&amp;oldid=prev</id>
		<title>Corbin: Created page with &quot;{{DoomWiki}}'''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 sided...&quot;</title>
		<link rel="alternate" type="text/html" href="https://3dfxdev.net/edgewiki/index.php?title=Linedef&amp;diff=350&amp;oldid=prev"/>
				<updated>2015-07-28T21:27:41Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{DoomWiki}}&amp;#039;&amp;#039;&amp;#039;Linedefs&amp;#039;&amp;#039;&amp;#039; are what make up the &amp;#039;shape&amp;#039; (for lack of a better word) of a map.  Every linedef is between two &lt;a href=&quot;/edgewiki/index.php?title=Vertex&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Vertex (page does not exist)&quot;&gt;vertices&lt;/a&gt; and contains one or two sided...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DoomWiki}}'''Linedefs''' are what make up the 'shape' (for lack of a better word) of a map.  Every linedef is between two [[vertex|vertices]] and contains one or two [[sidedef]]s (which contain [[wall texture]] data).  There are two major purposes of linedefs.  The first is to divide the map into [[sector]]s, and the second is to trigger action specials.&lt;br /&gt;
&lt;br /&gt;
Any area of a map directly behind a one-sided linedef is void space (which cannot be occupied except by using the &amp;lt;tt&amp;gt;idclip&amp;lt;/tt&amp;gt; [[Doom cheat codes|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.&lt;br /&gt;
&lt;br /&gt;
There are three ways to trigger an action:&lt;br /&gt;
# walkover&lt;br /&gt;
# &amp;quot;use&amp;quot; (or &amp;quot;push&amp;quot;) (with the space bar, by default)&lt;br /&gt;
# shoot (with an [[impact weapon]])&lt;br /&gt;
Which of these applies depends on the [[linedef type]] number, which also specifies what particular action will occur.&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
Most actions can be specified as either once-only or repeating (by using different linedef types).&lt;br /&gt;
&lt;br /&gt;
==Linedef structure==&lt;br /&gt;
{{Doom level format}}&lt;br /&gt;
&lt;br /&gt;
Each linedef is 14 bytes long.&lt;br /&gt;
&lt;br /&gt;
===Doom level format===&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
&lt;br /&gt;
! Offset !! Size (bytes) !! Description&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 0 || align=&amp;quot;center&amp;quot; | 2 || Start Vertex&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 2 || align=&amp;quot;center&amp;quot; | 2 || End Vertex&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 4 || align=&amp;quot;center&amp;quot; | 2 || Flags&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 6 || align=&amp;quot;center&amp;quot; | 2 || Special Type&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 8 || align=&amp;quot;center&amp;quot; | 2 || Sector Tag&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 10 || align=&amp;quot;center&amp;quot; | 2 || Right Sidedef {{ref|1}}&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 12 || align=&amp;quot;center&amp;quot; | 2 || Left Sidedef {{ref|1}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{note|1}} The special value '-1' is used to indicate no sidedef, in one-sided lines.&lt;br /&gt;
&lt;br /&gt;
===Hexen level format ===&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
&lt;br /&gt;
! Offset !! Size (bytes) !! Description&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 0 || align=&amp;quot;center&amp;quot; | 2 || Start Vertex&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 2 || align=&amp;quot;center&amp;quot; | 2 || End Vertex&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 4 || align=&amp;quot;center&amp;quot; | 2 || Flags&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 6 || align=&amp;quot;center&amp;quot; | 1 || [[Hexen action specials|Special Type]]&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 7 || align=&amp;quot;center&amp;quot; | 1 || Argument 1&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 8 || align=&amp;quot;center&amp;quot; | 1 || Argument 2&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 9 || align=&amp;quot;center&amp;quot; | 1 || Argument 3&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 10 || align=&amp;quot;center&amp;quot; | 1 || Argument 4&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 11 || align=&amp;quot;center&amp;quot; | 1 || Argument 5&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 12 || align=&amp;quot;center&amp;quot; | 2 || Right Sidedef&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | 14 || align=&amp;quot;center&amp;quot; | 2 || Left Sidedef&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Linedef flags==&lt;br /&gt;
&lt;br /&gt;
Linedefs contain a two-byte (16 bit) field reserved for various flags.  Flags are as follows:&lt;br /&gt;
&lt;br /&gt;
===Doom level format===&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
&lt;br /&gt;
!Bit&lt;br /&gt;
!Hex&lt;br /&gt;
!Description&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|0&lt;br /&gt;
|0x0001&lt;br /&gt;
|blocks [[player]]s and [[monster]]s&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|0x0002&lt;br /&gt;
|blocks monsters&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|0x0004&lt;br /&gt;
|two sided &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|0x0008&lt;br /&gt;
|upper texture is [[unpegged]]&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|0x0010&lt;br /&gt;
|lower texture is [[unpegged]]&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|0x0020&lt;br /&gt;
|[[secret]] (shows as one-sided on&lt;br /&gt;
automap), and monsters cannot open if it is a door (type 1)&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|0x0040&lt;br /&gt;
|blocks sound&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|0x0080&lt;br /&gt;
|never shows on automap&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|0x0100&lt;br /&gt;
|always shows on automap&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Boom level format===&lt;br /&gt;
Boom added one flag to Doom's linedef flags:&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
&lt;br /&gt;
!Bit&lt;br /&gt;
!Hex&lt;br /&gt;
!Description&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|0x0200&lt;br /&gt;
|The &amp;quot;use&amp;quot; action can activate other linedefs in the back (in Doom the &amp;quot;use&amp;quot; action only activates the closest linedef in the line of sight). Usually called &amp;quot;PassThru&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Hexen level format===&lt;br /&gt;
All Doom flags and also the following:&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
&lt;br /&gt;
!Bit&lt;br /&gt;
!Hex&lt;br /&gt;
!Description&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|0x0200&lt;br /&gt;
|can be activated more than once&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|10-12&lt;br /&gt;
|0x0400&lt;br /&gt;
|activated when used by player&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|10-12&lt;br /&gt;
|0x0800&lt;br /&gt;
|activated when crossed by monster&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|10-12&lt;br /&gt;
|0x0C00&lt;br /&gt;
|activated when hit by [[projectile]]&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|10-12&lt;br /&gt;
|0x1000&lt;br /&gt;
|activated when player bumps into it&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|10-12&lt;br /&gt;
|0x1400&lt;br /&gt;
|activated when crossed by projectile&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|10-12&lt;br /&gt;
|0x1800&lt;br /&gt;
|activated when used by player (with&lt;br /&gt;
pass through)&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|13&lt;br /&gt;
|0x2000&lt;br /&gt;
|line can be activated by players and&lt;br /&gt;
monsters&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|14&lt;br /&gt;
|0x4000&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|15&lt;br /&gt;
|0x8000&lt;br /&gt;
|blocks everything (includes&lt;br /&gt;
gunshots &amp;amp;amp; missiles)&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:Doom_engine]]&lt;br /&gt;
[[Category:WAD lumps]]&lt;br /&gt;
[[Category:Lists]]&lt;/div&gt;</summary>
		<author><name>Corbin</name></author>	</entry>

	</feed>