Line Type (DED)

From Doomsday Wiki
Jump to: navigation, search

Cleanup Note: This article should be cleaned up to be more readable and/or to more closely follow the Wiki article guidelines.

Line type
Attributes: Copy
Type ReferenceDED Syntax

Below you'll find the description for each value in a DED Line Type definition. Values of type "flags" are strings that will be evaluated to an integer when the DED file is read.

2.4.1 ID

Type: integer

A unique integer number identifying this line type. The value is used in level editors to refer to this type. Note that XG line types take precedence, so if the ID number is the same as that of a normal Doom line type, the XG version will be used. IDs must be in range from 1 to 65535.

2.4.2 Comment

Type: string

The Comment property was added to make it easier to manage line types. DED Manager will show this comment in the lookup dropdown lists and in the information section of the main index, but Doomsday itself does not use this string for anything. It's a good idea to make the Comment a short description of what the line type does, for instance:

Comment = "A/Lower LT ceil to next lowest"; This would suggest that when activated the line will lower the ceiling of the sectors with a matching tag number to their next lowest adjacent ceiling.

2.4.3 Flags

Type: flags

There are several flags that are used to control various aspects about the line type, including activation method and requirements and the time to execute the line's function. The Flags property uses the flag definitions that begin with ltf_ .

2.4.4 Flags2

Type: flags

There are several flags that are used to control various aspects about the line type, including activation method and requirements and the time to execute the line's function. The Flags2 property uses the flag definitions that begin with ltf2_ .

2.4.4.1 Line function

ltf2_when_act

0x1

The function of the line is executed when the line changes state from inactive to active, i.e. it's activated.

ltf2_when_deact

0x2

The function of the line is executed when the line changes state from active to inactive, i.e. it's deactivated.

ltf2_when_last

0x10

The function of the line can only be executed when the line's counter is one (1). Otherwise the function won't be processed at all.

ltf2_while_act

0x4

The function of the line is executed repeatedly while the line is active. Controlled with Ticker start time, Ticker end time and Ticker tics.

ltf2_while_inact

0x8

The function of the line is executed repeatedly while the line is inactive. Controlled with Ticker start time, Ticker end time and Ticker tics.

2.4.4.3 Behavior

ltf2_multiple

0x1000000

When the line is activated or deactivated, copy the state of the line to all the lines with a matching tag number. This can be used for instance with doors, if you want that activating one side of the door marks the other side active as well (so the door can't be re-opened while it's already opening).

ltf2_2sided

0x2000000

The line can be activated and deactivated from both sides. If this flag is not used, only the events that deal with the front side of the line are processed.

ltf2_global_a_msg

0x4000000

The activation message (Act message) will be sent to all players in the game.

ltf2_global_d_msg

0x8000000

The deactivation message (Deact message) will be sent to all players in the game.

ltf2_global_msg

0xC000000

ltf2_global_a_msg and ltf2_global_d_msg combined. Both the activation and deactivation messages (Act message and Deact message) will be sent to all players in the game.

2.4.5 Flags3

Type: flags

Reserved for future extensions.

2.4.6 Class

Type: flags

Sets the class of the line. Each class performs a specific function (see Classes). Only one of the ltc_ flags is allowed. Usage of integer parameters Ip0, Ip1, Ip2…Ip19, floating point parameters Fp0, Fp1, Fp2…Fp19 and string parameters Sp0, Sp1…Sp4 varies depending on the value of this property.

2.4.7 Type

Type: flags

Activation type of the line. One of the following values:

lat_timed_off lat_timed_on lat_flip lat_flip_timed_off lat_flip_timed_on

See for a description of the types.

2.4.8 Count

Type: integer

Initial value for the line's counter, which is decremented every time the line successfully processes an event that is not a Chain event. Once the counter reaches zero all events will fail. A negative value for this property means the counter is disabled, and won't be checked during the line's event processing.

2.4.9 Time

Type: float

Time to stay active or inactive, in seconds. Used with lat_timed_* and lat_flip_timed_* activation types.

2.4.10 Act tag

Type: integer

Activation tag number of this line type. Several types can have the same activation tag. This number can be used in line references (with for instance lref_act_tagged ). All signed 32-bit integer values are accepted.

2.4.11 Health above

Alternative: Ap0

Type: integer

Activation parameter 0. Activator health must be above this if the ltf2_health_above flag is set.

2.4.12 Health below

Alternative: Ap1

Type: integer

Activation parameter 1. Activator health must be below this if the ltf2_health_below flag is set.

2.4.13 Power above

Alternative: Ap2

Type: integer

Activation parameter 2. Activator power (armor) must be above this if the ltf2_power_above flag is set.

2.4.14 Power below

Alternative: Ap3

Type: integer

Activation parameter 3. Activator power (armor) must be below this if the ltf2_power_below flag is set.

2.4.15 Line act lref

Alternative: Ap4

Type: flags

Reference to the lines that must be active for the activation or deactivation of this line to succeed. This property sets the type of the line reference. (See References) The value must be one of the Flag definitions that begin with lref_ . Only used with the ltf2_line_act flag.

2.4.16 Line act lrefd

Alternative: Ap5

Type: integer

Data component of the reference to the required active lines. (See References) Only used with the ltf2_line_act flag.

2.4.17 Line inact lref

Alternative: Ap6

Type: flags

Reference to the lines that must be inactive for the activation or deactivation of this line to succeed. This property sets the type of the line reference. (See References) The value must be one of the Flag definitions that begin with lref_ . Only used with the ltf2_line_inact flag.

2.4.18 Line inact lrefd

Alternative: Ap7

Type: integer

Data component of the reference to the required inactive lines. (See References) Only used with the ltf2_line_inact flag.

2.4.19 Color

Alternative: Ap8

Type: integer

Activation parameter 8. Used with the ltf2_color flag. Specifies the required player color of the activator.

2.4.20 Thing type

Alternative: Ap9

Type: string

Activation parameter 9. Used with the ltf2_mobj_gone flag. Specifies the type of thing the flag refers to. ID of the thing type (for example POSSESSED). Case sensitive.

2.4.21 Ticker start time

Type: float

Number of seconds measured from the beginning of the level to start processing Ticker events for the line.

2.4.22 Ticker end time

Type: float

Number of seconds measured from the beginning of the level to stop processing Ticker events for the line. If this value is less than or equal to zero, the processing of Ticker events will continue indefinitely.

2.4.23 Ticker tics

Type: integer

Interval between consecutive Ticker events, in 35 Hz game tics. A value of zero means a Ticker event is sent on every tick, i.e. 35 times per second.

2.4.24 Event chain

Type: integer

Event chain for this type of lines (see Chains). ID number of an XG line type.

2.4.25 Act chain

Type: integer

Activation chain for this type of lines ( see Chains). ID number of an XG line type.

2.4.26 Deact chain

Type: integer

Deactivation chain for this type of lines ( see Chains). ID number of an XG line type.

2.4.27 Wall section

Type: flags

Accepted values:

lws_none lws_mid lws_upper lws_lower

Defines which part of the line is affected by Act texture and Deact texture. Combining the values is not allowed, so Act texture and Deact texture can only be used to change one part of the wall. Note that any textures of the line that begin with SW1 or SW2 (switch textures) are automatically swapped with their counterparts when the line is activated or deactivated, regardless of the Wall section setting.

2.4.28 Act texture

Type: string

Name of the texture to set to the section of the line specified with Wall section when the line is activated. Note that any textures of the line that begin with SW1 or SW2 (switch textures) are automatically swapped with their counterparts when the line is activated or deactivated, regardless of the Act texture property.

2.4.29 Deact texture

Type: string

Name of the texture to set to the section of the line specified with Wall section when the line is deactivated. Note that any textures of the line that begin with SW1 or SW2 (switch textures) are automatically swapped with their counterparts when the line is activated or deactivated, regardless of the Deact texture property.

2.4.30 Act sound

Type: string

ID of the sound that will be played when the line is activated. The sound will appear to originate from the center of the sector where the line belongs to.

2.4.31 Deact sound

Type: string

ID of the sound that will be played when the line is deactivated. The sound will appear to originate from the center of the sector where the line belongs to.

2.4.32 Act message

Type: string

Message that will be sent to the activator of the line. If the ltf2_global_a_msg flag is set, the message will be sent to all players in the game. If the activator is a missile, its originator will receive the message. Note that the act message

2.4.33 Deact message

Type: string

Message that will be sent to the deactivator of the line. If the ltf2_global_d_msg flag is set, the message will be sent to all players in the game. If the activator is a missile, its originator will receive the message.

2.4.34 Texmove angle

Type: float

Direction to scroll the texture of the line, given in degrees: 0=right, 90=up, 180=left and 270=down. All floating-point values are accepted, though, even negative ones.

2.4.35 Texmove speed

Type: float

Speed of texture scrolling as pixels per game tic (35 Hz). The speed of 2 would scroll the texture 70 pixels per second.

2.4.36 Ip0 ... Ip19

Type: integer or string

Integer or string parameters (which will be translated to various integer values) for the line's function. Usage depends on the class of the line.

2.4.37 Fp0 ... Fp19

Type: float

Floating point parameters for the line's function. Usage depends on the class of the line.

2.4.38 Sp0 ... Sp4

Type: string

String parameters for the line's function. Usage depends on the class of the line.