Linedef type 75

From SRB2 Wiki
Jump to navigation Jump to search
Player sinking into quicksand.

Linedef type 75, Make FOF Quicksand, is a type of linedef special that makes it so every tagged FOF becomes a quicksand.

It can be used to create sand, mud, or any other sludgy material that the player will be pulled into on contact. The player can escape the quicksand simply by jumping many times. However, normal jump height is greatly reduced in quicksand, so any ledges near the quicksand that are meant for escape should be low enough for the player to jump onto. Sinking deep into quicksand alone will not harm the player, so death pits are normally placed under the quicksand so the player dies if they sink too deep. The player can sink right to the bottom of the quicksand and fall out of the bottom if it is placed above the sector floor, so it is possible to make secret areas or even alternate routes under quicksand, à la Sandopolis Zone from Sonic 3 & Knuckles.

This effect can be applied to any type of FOF, allowing for different kinds of effect combinations, for example, a FOF may have the Bounce effect and Quicksand combined, making the player having to bounce a few times before it starts to sink.

Setup

Arg1 should be tagged to the FOF control linedef that should have the quicksand effect. The player's sinking speed is determined by Arg2. The greater the value, the faster the player sinks. If the argument value is 0, the player does not sink at all. The absolute value equals one fracunit per tic of sinking speed. The friction is determined by Arg3. The friction determines the "sludginess" of the player's movement while he is in the quicksand. The less the value, the slower the player moves. If the argument value is 0, the player is completely unable to move while in quicksand. If the argument value is somewhat above 50, the movement instead becomes "slippery", as though the player is walking in oil. However, this is not recommended, as the physics are unrealistic.

Sample

Example file: Ex_ld075_udmf_makefofquicksand.wad 

This map contains a Solid FOF with a Quicksand effect applied.