Linedef type 447

From SRB2 Wiki
Jump to: navigation, search

Linedef type 447, Change Tagged Sector's Colormap, is a type of linedef executor which, when triggered, changes the colormap in every tagged sector.

Setup

By default, the colormap in the tagged sector(s) will be replaced with the colormap specified in the control linedef's front texture fields. The colormap is supplied in the same format as for linedef type 606: The front upper texture specifies the light color, which is used if the target sector is at full brightness. The front lower texture specifies the fade color, which is the color that the colormap fades to as the target sector fades towards darkness. Both colors are supplied in the format #RRGGBBA, where RR, GG, and BB determine the amount of red, green, and blue, respectively, while A specifies the alpha value. The front middle texture can be used to set optional parameters in the format #ABBCC, where A sets the colormap's flags, while BB and CC set the starting and ending brightness level for the fading effect, respectively. Refer to linedef type 606 for a detailed explanation of the colormap settings.

If Flag [8] / Peg Midtexture / Effect 3 is set, the colormap specified in the front texture fields will instead be added to the existing colormap. For example, adding a green colormap to a red colormap will make it yellow. The red, green, blue and alpha values of both the light and fade color, as well as the starting and ending brightness levels, will be added to the respective values of the existing colormap. The colormap flags will be replaced entirely. Combining this flag with the flags [5] / Slope Skew / Effect 1, [6] / Not Climbable, and/or [7] / No Midtexture Skew / Effect 2 will instead subtract the red, green and/or blue values of the new colormap from the values of the existing colormap, respectively. If Flag [15] / Transfer Line is set as well, the new colormap will not be combined with the existing one, but with a second colormap supplied in the back texture fields of the control linedef. The colormap in the target sector(s) will then be set to the combination of the front texture colormap and the back texture colormap.

If Flag [4] / Lower Unpegged is set, the new colormap's alpha values will be taken from the control linedef's front X and Y offsets instead of the A values in the texture fields. The X offset sets the light color alpha value and the Y offset sets the fade color alpha value. This is mainly useful if you want to reduce the alpha value of the existing colormap in conjunction with Flag [8] / Peg Midtexture / Effect 3, since there is no flag for subtracting the alpha value. Instead, you can set Flag [4] / Lower Unpegged and supply negative alpha values in the offsets.

Sample

Example file: Ex_ld447_changesectorcolormap.wad (MAP01) 
  • This example demonstrates the effect of Flag [8] / Peg Midtexture / Effect 3. When the player steps on the raised floor, the weak yellow colormap will change to a strong magenta. This is accomplished by subtracting green from the colormap, and adding blue and alpha.
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_ld447_changesectorcolormap.wad into the addons folder of your SRB2 directory.
    2. Start SRB2, go to the Addons menu, and then select Ex_ld447_changesectorcolormap.wad.
    3. Start the game in Single Player mode.
    4. Press the Console button (~), and type in the command MAP MAP01 -force 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) • Level Load


Actions:
Sector:
Set Tagged Sector's Floor Height/TextureSet Tagged Sector's Ceiling Height/TextureSet Tagged Sector's Light LevelChange 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 Direction
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 Prompt
PolyObject:
Door SlideDoor SwingMoveMove, OverrideRotate RightRotate Right, OverrideRotate LeftRotate Left, OverrideMove by WaypointsTurn Invisible, IntangibleTurn Visible, TangibleSet TranslucencyFade Translucency