Linedef type 192
|This article or section should contain one or more images. Please spruce up the article by adding an image.|
Linedef type 192, Rising Platform, Solid, Translucent, is a special type of floor over floor platform. It is a translucent FOF which will rise at a constant speed when jumped or stepped upon by a player. The FOF will return to its original position at half speed when the player is no longer standing upon it.
This linedef requires three control sectors, each of which must be connected to another with at least one linedef. The easiest way to do this is to create three square sectors in a row. The controlling linedef should be attached to the sector in the center, and given an effect of linedef type 192.
The flats, floor height, and ceiling height of the FOF are determined by the flats, floor height, and ceiling height of the central control sector, and the sidedefs of the FOF's walls are determined by the sidedef of the controlling linedef. The speed of the platform's movement is indicated by the length of the controlling linedef. One fracunit of the linedef length equals 0.25 fracunits per tic of speed. The other two control sectors determine the starting and ending heights of the platform, respectively.
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, and #255 is completely opaque. Note that in the Software renderer, there are actually only eleven different distinct 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 use 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 Block Enemies flag is checked, the platform will sink when the player steps on it, rather than rising. If the Not Climbable flag is checked, the player will be required to charge a spindash while standing on the platform to make it rise.
- Example WAD: ex_ld192_fofmovingsolidtranslucent.wad
- This example WAD can be played in any gametype. It uses
MAP01, replacing Greenflower Zone Act 1.