Generic Lift: Difference between revisions

From ZDoom Wiki
Jump to navigation Jump to search
Content deleted Content added
Eevee (talk | contribs)
mention "default" delay
Eevee (talk | contribs)
mention doom defaults, add table of boom delays
 
Line 2: Line 2:
{{Special|203|tag, speed, delay, type, height|General BOOM linetype|Lift|type2=Platform}}
{{Special|203|tag, speed, delay, type, height|General BOOM linetype|Lift|type2=Platform}}


* ''tag'': Tag of affected sector
* ''tag'': Tag of affected sector, or 0 to use the line's back side.
* ''speed'': Lift's [[Definitions#Sector_movement_speed|movement speed]]. Doom's standard lifts move at 32, and blazing lifts move at 64.
* ''speed'': Speed of move
* ''delay'': Octics before reversing direction. Vanilla Doom lifts waited for 3 seconds, or 24 octics.
* ''delay'': Octics before reversing direction. Doom waits for 24 octics (3 seconds).
* ''type'': Specifies what type of platform this is
* ''type'': Specifies what type of platform this is; see below.
* ''height'': Distance to move if target is 0.
* ''height'': Distance to move; only used when ''target'' is 0.


This special encapsulates [[Boom]]'s generalized lifts. Type can be one of the following values:
This special encapsulates [[Boom]]'s generalized lifts.

== Parameters ==

=== Delay ===
Because the largest values used in Boom maps could not fit in tics in the Hexen map format, this generalized special uses values in octics. For reference, the following table provides equivalence for the values available in Boom. Use the values from the octics column. You can also use any arbitrary value you want.
{| {{prettytable}}
! Seconds !! Tics !! Octics !! Notes
|-
| 1 || 35 || 8 ||
|-
| 3 || 105 || 24 || Equivalent to vanilla lift delay
|-
| 4.7 || 165 || ~38 ||
|-
| 10 || 350 || 80 ||
|}

=== Type ===


{| {{prettytable}}
{| {{prettytable}}
Line 23: Line 41:
|4||[[Plat_PerpetualRaise]]||Floor
|4||[[Plat_PerpetualRaise]]||Floor
|}
|}

== Examples ==
== Examples ==



Latest revision as of 00:59, 3 January 2016

203:Generic_Lift (tag, speed, delay, type, height)


  • tag: Tag of affected sector, or 0 to use the line's back side.
  • speed: Lift's movement speed. Doom's standard lifts move at 32, and blazing lifts move at 64.
  • delay: Octics before reversing direction. Doom waits for 24 octics (3 seconds).
  • type: Specifies what type of platform this is; see below.
  • height: Distance to move; only used when target is 0.

This special encapsulates Boom's generalized lifts.

Parameters

Delay

Because the largest values used in Boom maps could not fit in tics in the Hexen map format, this generalized special uses values in octics. For reference, the following table provides equivalence for the values available in Boom. Use the values from the octics column. You can also use any arbitrary value you want.

Seconds Tics Octics Notes
1 35 8
3 105 24 Equivalent to vanilla lift delay
4.7 165 ~38
10 350 80

Type

Value Target Default sound sequence
0 Plat_UpByValue Platform
1 Plat_DownWaitUpStay Platform
2 Plat_DownToNearestFloor (does not exist as an explicit action special) Platform
3 Plat_DownToLowestCeiling (does not exist as an explicit action special) Platform
4 Plat_PerpetualRaise Floor

Examples

Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.