Line type (XG)

From Doomsday Wiki
Jump to: navigation, search

An XG line is a normal Doom line whose type is set to an XG line type. XG lines can either be active or inactive. It is possible to disable an XG line, which means the line will be skipped in all event processing and the line's timer will not be incremented.

Line types are divided into various classes, which define what the line does. The class is executed when the line is activated, deactivated (or both) or by some other means. Some examples of line classes include Move plane, End level, and Change wall texture. Adding new line classes will not break backwards compatibility.

An XG line type definition begins like this:

Line Type {
  ID = 5000;  # A unique ID number.

This unique ID number is required for each line type. It is the actual type number that will be used in a level editor, instead of the line types defined by the original game.