Jump to content

Linedef type 469

From SRB2 Wiki
A player switching a tagged sector gravity to reverse after pressing a button, and exiting out of the tagged sector with normal gravity.

Linedef type 469, Change Tagged Sector's Gravity, is a type of linedef executor which, when triggered, changes the gravity of every tagged sector.

Setup

Arg1 should be tagged to the FOF control linedef that will have it's gravity changed. By default, the tagged sector gravity is changed to a fixed value, unless arg2 / Set/Multiply? is set to Multiply, in which case, the gravity value will be multiplied every time its triggered.

By default, the Object won't be flipped, but you can change arg3 / Flip flag to Set the flag MFE_VERTICALFLIP to the Object, or to Remove the flag instead.

The gravity strength can be set through the Stringarg1 field. The default gravity value is 1. Negative values result in negative gravity, which does not flip sprites or physics but merely pulls mid-air players and other Objects to the ceiling. Players who jump off the floor in this kind of gravity will therefore continue to rise up until they eventually become stuck under the ceiling, still in their jump animation (they are still able to move horizontally). To prevent this, change arg3 / Flip flag to Set, which gives the flag MFE_VERTICALFLIP to the Object– this will properly flip sprites and physics, allowing players and other Objects to land on the ceiling properly. If arg3 is changed to Remove, the flag will instead be removed from the object.

By default, the linedef executor won't override the current tagged sector gravity value, unless arg4 / Override gravity? is set to Yes.

Sample

Example file: Ex_ld469_setstaggedectorgravity.wad 

This map contains four buttons that apply different settings to it's tagged sectors' gravity.
The red button multiplies the tagged sector gravity to 2, while the blue button multiplies the gravity by 0.5.
The green buttons switches the tagged sector's gravity into reverse for any object inside of the affected area, by setting and removing the flag from the object.


  Linedef types – Linedef executors [view]
Triggers:

Continuous • Each Time • Once • Ring Count (Continuous • Once) • Character Ability (Continuous • Each Time • Once) • Race Only – Once • CTF Red Team (Continuous • Each Time) • CTF Blue Team (Continuous • Each Time) • No More Enemies – Once • Number of Pushables (Continuous • Once) • Condition Set Trigger (Continuous • Once) • Unlockable (Continuous • Once) • Trigger After X Calls (Continuous • Each Time) • NiGHTSerize (Each Time • Once) • De-NiGHTSerize (Each Time • Once) • NiGHTS Lap (Each Time • Once) • Ideya Capture Touch (Each Time • Once) • Player Skin (Continuous • Each Time • Once) • Object Dye (Continuous • Each Time • Once) • Emerald Check (Continuous • Each Time • Once) • NiGHTS Mare (Continuous • Each Time • Once) • Gravity Check (Continuous • Each Time • Once) • Level Load


Actions:
Sector:
Set Tagged Sector's Floor Height/Texture • Set Tagged Sector's Ceiling Height/Texture • Copy Light Level to Tagged Sectors • Set Tagged Sector's Flats • Change Tagged Sectors' Tag • Change Front Sector's Tag • Start Adjustable Flickering Light • Start Adjustable Pulsating Light • Start Adjustable Blinking Light (unsynchronized) • Start Adjustable Blinking Light (synchronized) • Fade Light Level • Stop Lighting Effect • Change Plane Scroller Direction • Set Tagged Sector's Light Level
Plane movement:
Move Tagged Sector's Floor • Move Tagged Sector's Ceiling • Move Floor According to Front Texture Offsets • Move Ceiling According to Front Texture Offsets • Stop Plane Movement • Start Platform Movement • Crush Ceiling Once • Crush Floor Once • Crush Ceiling and Floor Once
Player/Object:
Teleporter • Change Object State • Stop Object • Award Score • Enable/Disable 2D Mode • Enable/Disable Gravity Flip • Award Power-Up • Disable Player Control • Change Object Size • Change Object Type State • Enable Bosses with Parameter • Track Object's Angle • Stop Tracking Object's Angle • Award Rings • Spawn Object • Stop Timer/Exit Stage in Record Attack • Dye Object • Trigger Egg Capsule
Other:
Change Music • Play Sound Effect • Run Script • Switch to Cut-Away View • Change Sky • Change Weather • Shatter FOF • Change Tagged Linedef's Textures • Start Metal Sonic Race • Condition Set Trigger • Call Lua Function • Earthquake • Make FOF Disappear/Reappear • Make FOF Crumble • Change Tagged Sector's Colormap • Change Skybox • Execute Linedef Executor (from Tag) • Execute Linedef Executor (Random Range) • Set FOF Translucency • Fade FOF • Stop Fading FOF • Fade Tagged Sector's Colormap • Stop Fading Tagged Sector's Colormap • Control Text Prompt • Toggle Level Fail
PolyObject:
Door Slide • Door Swing • Move • Move, Override • Rotate Right • Rotate Right, Override • Rotate Left • Rotate Left, Override • Move by Waypoints • Turn Invisible, Intangible • Turn Visible, Tangible • Set Translucency • Fade Translucency