Linedef type 145

From SRB2 Wiki
Jump to navigation Jump to search
A translucent, intangible from top FOF with no sides.

Linedef type 145, Intangible from Top, Translucent, No Sides, is a type of translucent floor over floor platform which can be fallen through from above, but not jumped through from below. Unlike linedef type 144, this FOF does not render side textures. It is useful for making vertical one-way routes where the sides would not be in view anyway. Since the side textures are not rendered, it requires less CPU power to render.

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 alpha value of this FOF's translucency can be changed by setting the control linedef's front side upper texture to the number symbol (#), followed by a three-digit decimal number, from 000 to 255. #000 is completely invisible, whereas #255 is completely opaque. Note that in the Software renderer, there are actually only eleven different values: #000–#011, #012–#037, #038–#063, #064–#088, #089–#114, #115–#139, #140–#165, #166–#191, #192–#216, #217–#242, #243–#255, where #000–#011 is invisible, and #243–#255 is opaque. The advantage of using the completely opaque values is the ability to properly render flats which contain transparent pixels. If no value is set in the front side upper texture, however, the default alpha value of #128 will be used.

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.

If Flag [7] / No Midtexture Skew / Effect 2 is checked, the inside will be rendered as well. If Flag [6] / Not Climbable is checked, the FOF will not cast a shadow.

Sample

Example file: ex_ld145_fofintangiblefromtoptranslucentnosides.wad (MAP01)
How to use
  • You may load this file into your favorite map editor, such as Zone Builder. Select MAP01 as the map to load.
  • You may also load this file in the game:
    1. Save ex_ld145_fofintangiblefromtoptranslucentnosides.wad into the addons folder of your SRB2 directory.
    2. Start SRB2, go to the Addons menu, and then select ex_ld145_fofintangiblefromtoptranslucentnosides.wad.
    3. Start the game in Single Player mode.
    4. Press the Console button (~), and type in the command MAP MAP01 to access the example map.
  • When you load this file in the game, it replaces Greenflower Zone Act 1.


  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)Dynamically Sinking PlatformWater 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