math_lightpattern
Jump to navigation
Jump to search

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

math_lightpattern
is a point entity available in Mapbase and
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.

Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
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 the
Enable
input).
- Appearance (lightstyle) (style) <integer choices>
- Which lightstyle preset to replicate.
Lightstyle presets (epilepsy warning) Expand
- 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 <integer >
- Sets the pattern from the style presets.
- SetPattern <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 <float >
- Outputs with a brightness equivalent to the current letter.
- OutLetter <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).