Lighting linedef types: Difference between revisions
From Eternity Wiki
Jump to navigationJump to search
No edit summary |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
The lighting linedef types change the lighting in the tagged sector. All are regular or extended types, there are no generalized lighting types. All are switched or walkovers. | The lighting linedef types change the lighting in the tagged sector. All are regular or extended types, there are no generalized lighting types. All are switched or walkovers. | ||
{{backto|Linedef types}} | |||
=Lighting Targets= | =Lighting Targets= | ||
*Lights to Minimum Neighbor | |||
:Each tagged sector is set to the minimum light level found in any adjacent sector. The tagged sectors are changed in numerical order, and this may influence the result. | |||
*Lights to Maximum Neighbor | |||
:Each tagged sector is set to the maximum light level found in any adjacent sector. The tagged sectors are changed in numerical order, and this may influence the result. | |||
Each tagged sector is set to the maximum light level found in any adjacent sector. The tagged sectors are changed in numerical order, and this may influence the result. | |||
* Blinking | * Blinking | ||
Each tagged sector begins blinking between two light levels. The brighter level is the light level in the tagged sector. The darker level is the minimum neighbor light level, or 0 if all neighbor sectors have lighting greater than or equal to the sector's at the time of activation. The blinking is non-synchronous, beginning 1-9 gametics after activation, with a dark period of 1 sec (35 gametics) and a bright period of 1/7 sec (5 gametics). | :Each tagged sector begins blinking between two light levels. The brighter level is the light level in the tagged sector. The darker level is the minimum neighbor light level, or 0 if all neighbor sectors have lighting greater than or equal to the sector's at the time of activation. The blinking is non-synchronous, beginning 1-9 gametics after activation, with a dark period of 1 sec (35 gametics) and a bright period of 1/7 sec (5 gametics). | ||
* 35 Units | * 35 Units | ||
Each tagged sector is set to a light level of 35 units. | :Each tagged sector is set to a light level of 35 units. | ||
* 255 Units | * 255 Units | ||
Each tagged sector is set to a light level of 255 units. | :Each tagged sector is set to a light level of 255 units. | ||
* Raise by Param | |||
= | :Available with parameterized lines only. Raises tagged sectors' light levels by a given amount. | ||
* Lower by Param | |||
:Available with parameterized lines only. Lowers tagged sectors' light levels by a given amount. | |||
* Change to Param | |||
:Available with parameterized lines only. Changes all tagged sectors' light levels to the given level. | |||
* Fade | |||
:Available with parameterized lines only. Fades all tagged sectors' light levels up or down to the given level. | |||
* Glow | |||
:Available with parameterized lines only. Causes all tagged sectors to fade continuously between two given light levels at a given speed. | |||
* Flicker | |||
:Available with parameterized lines only. Causes all tagged sectors to blink between two given light levels at random. Sector flickering is not synchronized. | |||
* Strobe | |||
:Available with parameterized lines only. Causes all tagged sectors to blink between two given light levels on a period between given minimum and maximum amounts of time. Sector strobing is not synchronized. | |||
=Regular and extended lighting linedef types= | |||
Regular and Extended Lighting types | Regular and Extended Lighting types | ||
Line 53: | Line 74: | ||
156 Ext WR Blinking | 156 Ext WR Blinking | ||
17 Reg W1 Blinking | 17 Reg W1 Blinking | ||
=Parameterized lighting linedef specials= | |||
'' | Eternity supports the following light level controlling parameterized linedef specials (accessible through [[ExtraData]]). If ''tag'' is 0, any such parameterized special will affect the sector behind the linedef, if applicable. | ||
*368:'''Light_RaiseByValue'''(''tag'', ''lvl'') | |||
:Adds the ''lvl'' value to the light levels of tagged sectors, capping them to 255. | |||
*369:'''Light_LowerByValue'''(''tag'', ''lvl'') | |||
:Substracts the ''lvl'' value from the light levels of tagged sectors, limiting them to 0. | |||
*370:'''Light_ChangeToValue'''(''tag'', ''lvl'') | |||
:Sets the ''lvl'' value for the light level of tagged sectors, and caps it between 0 and 255 inclusive. | |||
*371:'''Light_Fade'''(''tag'', ''destvalue'', ''tics'') | |||
:Makes the light level of tagged sectors gradually go to ''destvalue'', for the given amount of tics. ''tics'' must be greater than 0. | |||
*372:'''Light_Glow'''(''tag'', ''maxval'', ''minval'', ''tics'') | |||
:Enables periodic glowing light effect on tagged sectors. ''tics'' is the duration between the extreme light levels and must be positive. The sequence starts by fading down. | |||
*373:'''Light_Flicker'''(''tag'', ''maxval'', ''minval'') | |||
:Enables flickering light effect on tagged sectors. | |||
*374:'''Light_Strobe'''(''tag'', ''maxval'', ''minval'', ''maxtime'', ''mintime'') | |||
:Enables strobing light effect on tagged sectors. Light will periodically flash, staying at ''maxval'' level for ''maxtime'' tics and at ''minval'' level for ''mintime'' tics. | |||
[[category:Editing reference]] |
Latest revision as of 04:32, 4 March 2012
The lighting linedef types change the lighting in the tagged sector. All are regular or extended types, there are no generalized lighting types. All are switched or walkovers.
- Back to Linedef types
Lighting Targets[edit]
- Lights to Minimum Neighbor
- Each tagged sector is set to the minimum light level found in any adjacent sector. The tagged sectors are changed in numerical order, and this may influence the result.
- Lights to Maximum Neighbor
- Each tagged sector is set to the maximum light level found in any adjacent sector. The tagged sectors are changed in numerical order, and this may influence the result.
- Blinking
- Each tagged sector begins blinking between two light levels. The brighter level is the light level in the tagged sector. The darker level is the minimum neighbor light level, or 0 if all neighbor sectors have lighting greater than or equal to the sector's at the time of activation. The blinking is non-synchronous, beginning 1-9 gametics after activation, with a dark period of 1 sec (35 gametics) and a bright period of 1/7 sec (5 gametics).
- 35 Units
- Each tagged sector is set to a light level of 35 units.
- 255 Units
- Each tagged sector is set to a light level of 255 units.
- Raise by Param
- Available with parameterized lines only. Raises tagged sectors' light levels by a given amount.
- Lower by Param
- Available with parameterized lines only. Lowers tagged sectors' light levels by a given amount.
- Change to Param
- Available with parameterized lines only. Changes all tagged sectors' light levels to the given level.
- Fade
- Available with parameterized lines only. Fades all tagged sectors' light levels up or down to the given level.
- Glow
- Available with parameterized lines only. Causes all tagged sectors to fade continuously between two given light levels at a given speed.
- Flicker
- Available with parameterized lines only. Causes all tagged sectors to blink between two given light levels at random. Sector flickering is not synchronized.
- Strobe
- Available with parameterized lines only. Causes all tagged sectors to blink between two given light levels on a period between given minimum and maximum amounts of time. Sector strobing is not synchronized.
Regular and extended lighting linedef types[edit]
Regular and Extended Lighting types ------------------------------------------------------------------- # Class Trig Target 139 Reg SR 35 Units 170 Ext S1 35 Units 79 Reg WR 35 Units 35 Reg W1 35 Units 138 Reg SR 255 Units 171 Ext S1 255 Units 81 Reg WR 255 Units 13 Reg W1 255 Units 192 Ext SR Maximum Neighbor 169 Ext S1 Maximum Neighbor 80 Reg WR Maximum Neighbor 12 Reg W1 Maximum Neighbor 194 Ext SR Minimum Neighbor 173 Ext S1 Minimum Neighbor 157 Ext WR Minimum Neighbor 104 Reg W1 Minimum Neighbor 193 Ext SR Blinking 172 Ext S1 Blinking 156 Ext WR Blinking 17 Reg W1 Blinking
Parameterized lighting linedef specials[edit]
Eternity supports the following light level controlling parameterized linedef specials (accessible through ExtraData). If tag is 0, any such parameterized special will affect the sector behind the linedef, if applicable.
- 368:Light_RaiseByValue(tag, lvl)
- Adds the lvl value to the light levels of tagged sectors, capping them to 255.
- 369:Light_LowerByValue(tag, lvl)
- Substracts the lvl value from the light levels of tagged sectors, limiting them to 0.
- 370:Light_ChangeToValue(tag, lvl)
- Sets the lvl value for the light level of tagged sectors, and caps it between 0 and 255 inclusive.
- 371:Light_Fade(tag, destvalue, tics)
- Makes the light level of tagged sectors gradually go to destvalue, for the given amount of tics. tics must be greater than 0.
- 372:Light_Glow(tag, maxval, minval, tics)
- Enables periodic glowing light effect on tagged sectors. tics is the duration between the extreme light levels and must be positive. The sequence starts by fading down.
- 373:Light_Flicker(tag, maxval, minval)
- Enables flickering light effect on tagged sectors.
- 374:Light_Strobe(tag, maxval, minval, maxtime, mintime)
- Enables strobing light effect on tagged sectors. Light will periodically flash, staying at maxval level for maxtime tics and at minval level for mintime tics.