math_lightpattern

From Valve Developer Community
Jump to navigation Jump to search
Math lightpattern.png

math_lightpattern is a point entity available in Mapbase Mapbase and Strata Source Strata Source. It replicates light styles and allows them to influence entity I/O outside of the lights themselves. This is useful for toggling prop skins or replicating light styles on env_projectedtexture.

Icon-Bug.pngBug:This is may be out of sync with default light patterns.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).
Appearance (lightstyle) (style) <integer choices>
Which lightstyle preset to replicate.
Lightstyle presets (epilepsy warning)
Literal Value Description Sequence Preview
0 Normal m Lightstyle 0.png
10 Fluorescent flicker mmamammmmammamamaaamammma Lightstyle 10.gif
2 Slow, strong pulse abcdefghijklmnopqrstuvwxyzyxwvutsrqponmlkjihgfedcba Lightstyle 2.gif
11 Slow pulse, noblack abcdefghijklmnopqrrqponmlkjihgfedcba Lightstyle 11.gif
5 Gentle pulse jklmnopqrstuvwxyzyxwvutsrqponmlkj Lightstyle 5.gif
1 Flicker A mmnmmommommnonmmonqnmmo Lightstyle 1.gif
6 Flicker B nmonqnmomnmomomno Lightstyle 6.gif
3 Candle A mmmmmaaaaammmmmaaaaaabcdefgabcdefg Lightstyle 3.gif
7 Candle B mmmaaaabcdefgmmmmaaaammmaamm Lightstyle 7.gif
8 Candle C mmmaaammmaaammmabcdefaaaammmmabcdefmmmaaaa Lightstyle 8.gif
4 Fast strobe mamamamamama Lightstyle 4.gif
9 Slow strobe aaaaaaaazzzzzzzz Lightstyle 9.gif
12 !FGD Underwater light mutation mmnnmmnnnmmnn Lightstyle 12.gif
Custom Appearance (pattern) <string>
A string of english letters, like a sequence of piano keys, that define a pattern of brightness. a is 0%, m is 100%, and z is 200%. Updates at 10 Hz.
Pattern Speed (PatternSpeed) <float>
The speed of the pattern.

Inputs

SetStyle <integerRedirectInput/integer>
Sets the pattern from the style presets.
SetPattern <stringRedirectInput/string>
Sets the pattern directly.

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.
Toggle:
Toggle
Toggle the enabled/disabled status of this entity.

Outputs

OutValue <floatRedirectOutput/float>
Outputs with a brightness equivalent to the current letter.
OutLetter <stringRedirectOutput/string>
Outputs with the current letter itself.
OnLightOn
Fires when the current letter is equivalnt to 'on' (greater than a).
OnLightOff
Fires when the current letter is equivalnt to 'off' (equal to a).