Linedef type 457

From SRB2 Wiki
Jump to navigation Jump to search

Linedef type 457, Track Object's Angle, is a type of linedef executor which, when triggered, starts tracking whether the triggering Object is facing a specified Object Angle Anchor. If the Object faces too far away from the anchor for too long, another linedef executor will be executed. This effect is used in Tutorial Zone to train players how to move while keeping their view on another Object.

Setup

Place an Object Angle Anchor at the desired position in the map. Tag this linedef to the sector the anchor is placed in and make sure the tag is not used by any other sector. Once any Object triggers this linedef executor, the game will start tracking whether the Object is facing towards the anchor. The Object does not have to be a player. The front X offset determines how far away the tracked Object may face from the anchor, measured as an angle in degrees. The front Y offset determines how long the tracked Object may look away from the anchor, measured in tics. If the tracked Object faces away from the anchor by more than the specified angle for more than the specified number of tics, a trigger linedef is called. The tag of the trigger linedef is specified by the back X offset.

Normally, the tracking is stopped once the trigger linedef is executed for the first time. If Flag [7] / No Midtexture Skew / Effect 2 is set, the tracking continues afterwards. If the tracked Object triggers a linedef executor with linedef type 458, the tracking is also stopped.

Sample

Example file: Ex_ld457_trackobjectsangle.wad (MAP01) 
  • When the player steps on the grass, object angle tracking starts.
  • When the player turns away from the sunflowers, he teleports to the REDFLR floor.
How to use
  • You may load this file into your favorite map editor, such as Zone Builder. Select MAP01 as the map to load.
  • You may also load this file in the game:
    1. Save Ex_ld457_trackobjectsangle.wad into the addons folder of your SRB2 directory.
    2. Start SRB2, go to the Addons menu, and then select Ex_ld457_trackobjectsangle.wad.
    3. Start the game in Single Player mode.
    4. Press the Console button (~), and type in the command MAP MAP01 to access the example map.
  • When you load this file in the game, it replaces Greenflower Zone Act 1.

  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