Linedef type 251

From SRB2 Wiki
(Redirected from Thwomp block)
Jump to: navigation, search
A Thwomp block attempting to crush the player.

Linedef type 251, Thwomp Block, is a type of floor over floor block which behaves like the Thwomp enemy from the Mario games. If the player gets too close, it will fall and attempt to crush them. It will then rise back to its original position, during which the player can use the FOF as an elevator. This linedef type is used in Pipe Towers Zone.

Setup

The flats, floor height, and ceiling height of the FOF are determined by the flats, floor height, and ceiling height of the control sector. The control linedef's middle texture is used as the Thwomp's "resting" face only until it falls for the first time, after it the linedef's lower texture is used instead for the effect. The linedef's upper texture is used as the Thwomp's "falling" face. After the Thwomp has fallen, it reverts back to its previous texture. You don't need to specify the height at which the Thwomp will stop falling; it automatically stops when it reaches the sector floor.

The light level of the control sector will determine the brightness of the shadow cast by the FOF. If the light level of the control sector is lower than that of the target sector, then it will cast a dark shadow. If the light level of the control sector is higher than that of the target sector, then the FOF will illuminate the area below it. If the light level of the control sector is equal to that of the target sector, then the FOF will not affect the light of the area below it.

Additionally, if the Solid Midtexture flag is checked, it is possible to customize the block's "crushing" sound (the linedef's front X offset indicates the sound number). If the Repeat Midtexture flag is checked, it is also possible to customize the block's speed when falling and rising using the linedef's Y and X distances, respectively. One fracunit of length equal 0.125 fracunits per tic. The default speeds for the falling and rising are 10 fracunits per tic (80 fracunits of length) and 2 fracunits per tic (16 fracunits of length), respectively.

Aesthetic tips

In general, you should use the same dimensions and textures as the Thwomp blocks in Pipe Towers Zone. Aside from possible use as generic crushers, this type of FOF too highly specialized for a lot of experimentation, so even a slightly different usage might not turn out well.

Sample

Example WAD: ex_ld251_fofmariothwompblock.wad
  Linedef typesFloor over floor [view]
Solid:
Solid, Opaque, ShadowcastingSolid, Opaque, Non-ShadowcastingSolid, TranslucentSolid, Sides OnlySolid, No SidesSolid, InvisibleIntangible from Bottom, OpaqueIntangible from Bottom, TranslucentIntangible from Bottom, Translucent, No SidesIntangible from Top, OpaqueIntangible from Top, TranslucentIntangible from Top, Translucent, No SidesOnly Tangible from Sides
Intangible:
Water, OpaqueWater, TranslucentWater, Opaque, No SidesWater, Translucent, No SidesGoo Water, TranslucentGoo Water, Translucent, No SidesIntangible, OpaqueIntangible, TranslucentIntangible, Sides OnlyIntangible, Invisible
Moving:
Air BobbingAir Bobbing (Adjustable)Reverse Air Bobbing (Adjustable)Floating, BobbingRising Platform, Solid, Opaque, ShadowcastingRising Platform, Solid, Opaque, Non-ShadowcastingRising Platform, Solid, TranslucentRising Platform, Solid, InvisibleRising Platform, Intangible from Bottom, OpaqueRising Platform, Intangible from Bottom, Translucent
Crumbling:
Crumbling, RespawnCrumbling, No RespawnCrumbling, Respawn, Intangible from BottomCrumbling, No Respawn, Intangible from BottomCrumbling, Respawn, Intangible from Bottom, TranslucentCrumbling, No Respawn, Intangible from Bottom, TranslucentCrumbling, Respawn, Floating, BobbingCrumbling, No Respawn, Floating, BobbingCrumbling, Respawn, FloatingCrumbling, No Respawn, FloatingCrumbling, Respawn, Air Bobbing
Special:
Light BlockHalf Light BlockFog BlockMario BlockThwomp BlockShatter BlockShatter Block, TranslucentBustable BlockSpin-Bustable BlockSpin-Bustable Block, TranslucentQuicksandLaserCustom FOF