Ceiling_CrushAndRaiseDist
168:Ceiling_CrushAndRaiseDist (tag, dist, speed, damage [, crushmode])
- tag: Tag of affected sector
- dist: Lowest height above the floor during movement
- speed: How quickly the ceiling moves
- crush: Amount of damage to apply
- crushmode: Sets the crushing mode
Usage
Lowers and raises the ceiling of the affected sectors continually, applying crushing damage to anything underneath it. If tag is 0, then the sector on the line's back side is used. The ceiling rises and lowers at the same speed, a behavior different from Ceiling_CrushAndRaise (which is why a dist parameter couldn't simply be added to that one).
Contrarily to other crushing specials, this crusher will stop before reaching the floor, making it possible to have crushers that affect tall actors but not shorter ones.
Examples
This replicates accurately Doom's linetype 49:
Ceiling_CrushAndRaiseDist (tag, 8, 8, 10)
This replicates accurately Strife's linetype 49:
Ceiling_CrushAndRaiseDist (tag, 8, 8, 0, 2)
Conversions from linedef types
The following Doom map format types can be converted as Ceiling_CrushAndRaiseDist:
Type | Conversion | Trigger |
---|---|---|
![]() | Ceiling_CrushAndRaiseDist (tag, 8, 16, 10) | Player Cross |
![]() | Ceiling_CrushAndRaiseDist (tag, 8, 32, 10) | Player Cross |
![]() | Ceiling_CrushAndRaiseDist (tag, 8, 8, 10) | Player Cross |
![]() | Ceiling_CrushAndRaiseDist (tag, 8, 8, 0) | Player Cross |
![]() | Ceiling_CrushAndRaiseDist (tag, 8, 8, 10) | Player Use |
![]() | Ceiling_CrushAndRaiseDist (tag, 8, 8, 0, 2) | Player Use |
![]() | Ceiling_CrushAndRaiseDist (tag, 8, 8, 10) | Player Cross, Repeatable |
![]() | Ceiling_CrushAndRaiseDist (tag, 8, 8, 0) | Player Cross, Repeatable |
![]() | Ceiling_CrushAndRaiseDist (tag, 8, 16, 10) | Player Cross, Repeatable |
![]() | Ceiling_CrushAndRaiseDist (tag, 8, 32, 10) | Player Cross, Repeatable |
![]() | Ceiling_CrushAndRaiseDist (tag, 8, 16, 10) | Player Use |
![]() | Ceiling_CrushAndRaiseDist (tag, 8, 16, 10) | Player Use, Repeatable |
![]() | Ceiling_CrushAndRaiseDist (tag, 8, 8, 10) | Player Use, Repeatable |