Linedef type 125
|This article or section should contain one or more images. Please spruce up the article by adding an image.|
Linedef type 125, Goo Water, Translucent, No Sides, is a type of translucent water block with goo physics which does not render the side textures. It is generally used when the water block's sides will not be in view anyway, such as when the water is inside a sunken pit. Since its sides are not drawn, it requires less CPU power to render it.
The block is intangible, and players hear and see a "splashing" effect when moving in and out of it. While inside the block, the scene becomes distorted, and the field of view warps into wavy lines. Also, while inside the block, players will move more slowly. Unlike in regular water blocks, the gravity inside a goo water block is such that anything that enters it will slowly be pushed back upwards towards the surface of the water block – the further in an Object goes below the surface of a goo water block, the faster it will be moving upwards when it reaches the surface again.
If a player remains in a water block too long without grabbing air bubbles or acquiring an Elemental Shield, a countdown will be initiated after 20 seconds, just like in the original Sonic games. If the time runs out, the player automatically drowns. Water blocks can also be used to create slime and lava, if they have the right sector effects applied to them.
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 the 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 #192 through #255 are 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.
If the Not Climbable flag is checked, the water block will always render a separate light level, which means that the light level of the control sector will only affect the water block instead of affecting the block and below it. If the Solid Midtexture flag is checked, the water block will use the light level of the target sector, instead of the light level of the control sector. If the Repeat Midtexture flag is checked, the flats of the water block will use the "ripple" effect.
Water blocks are generally put in a pit, to simulate real water. But since water blocks are set up like any other FOF, they can be made to float in the air, or rest on top of a flat surface without a pit. However, this is not recommended, as it looks unrealistic.
While water blocks can be used alone, it is common (and generally recommended) to apply a hue to it. This is done by creating another control sector using a colormap (or by applying it to another linedef on the water block's control sector) and tagging the water block's control sector to create the hue within the water block.
- Example WAD: ex_ld125_fofgoowatertranslucentnosides.wad
- This example WAD can be played in any gametype. It uses
MAP01, replacing Greenflower Zone Act 1.