Linedef type 469

From SRB2 Wiki
Jump to navigation Jump to search
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 typesLinedef executors [view]
Triggers:

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


Actions:
Sector:
Set Tagged Sector's Floor Height/TextureSet Tagged Sector's Ceiling Height/TextureCopy Light Level to Tagged SectorsSet Tagged Sector's FlatsChange Tagged Sectors' TagChange Front Sector's TagStart Adjustable Flickering LightStart Adjustable Pulsating LightStart Adjustable Blinking Light (unsynchronized)Start Adjustable Blinking Light (synchronized)Fade Light LevelStop Lighting EffectChange Plane Scroller DirectionSet Tagged Sector's Light Level
Plane movement:
Move Tagged Sector's FloorMove Tagged Sector's CeilingMove Floor According to Front Texture OffsetsMove Ceiling According to Front Texture OffsetsStop Plane MovementStart Platform MovementCrush Ceiling OnceCrush Floor OnceCrush Ceiling and Floor Once
Player/Object:
TeleporterChange Object StateStop ObjectAward ScoreEnable/Disable 2D ModeEnable/Disable Gravity FlipAward Power-UpDisable Player ControlChange Object SizeChange Object Type StateEnable Bosses with ParameterTrack Object's AngleStop Tracking Object's AngleAward RingsSpawn ObjectStop Timer/Exit Stage in Record AttackDye ObjectTrigger Egg Capsule
Other:
Change MusicPlay Sound EffectRun ScriptSwitch to Cut-Away ViewChange SkyChange WeatherShatter FOFChange Tagged Linedef's TexturesStart Metal Sonic RaceCondition Set TriggerCall Lua FunctionEarthquakeMake FOF Disappear/ReappearMake FOF CrumbleChange Tagged Sector's ColormapChange SkyboxExecute Linedef Executor (from Tag)Execute Linedef Executor (Random Range)Set FOF TranslucencyFade FOFStop Fading FOFFade Tagged Sector's ColormapStop Fading Tagged Sector's ColormapControl Text PromptToggle Level Fail
PolyObject:
Door SlideDoor SwingMoveMove, OverrideRotate RightRotate Right, OverrideRotate LeftRotate Left, OverrideMove by WaypointsTurn Invisible, IntangibleTurn Visible, TangibleSet TranslucencyFade Translucency