Template:KV Light: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
(some cleanup (but still messy))
Line 1: Line 1:
;_light
; _light <[[color255]] + [[int]]>
: <[[color255]] & integer> The color and brightness of the light. RGB colors need to be between 0 and 255. Brightness can be higher.
: The color and brightness of the light. RGB colors need to be between 0 and 255. Brightness can be higher.
 
; style <choices>
; style
: {{note|Applies only to lights with a [[targetname]].}}
:<choices> A preset pattern of diverse flicker effects.
: Various pattern pre-sets (see next item).
:{|
; pattern <[[string]]>
! Literal Value || Description
:{{note|Applies only to lights with a [[targetname]].}}
|-
: A string of characters, like a sequence of piano keys, that define a pattern of brightness. '''a''' is dark and '''z''' is full intensity.
| 0 || Normal
; [[Constant-Linear-Quadratic Falloff|_constant_attn]] <float>
|-
: Influences the light spread to be more constant, by dimming near the source and brightening at the edges. Used in equation with Linear and Quadratic. (Learn more about constant, linear and quadratic attenuation [[Constant-Linear-Quadratic Falloff|here]].)
| 1 || Flicker A
; [[Constant-Linear-Quadratic Falloff|_linear_attn]] <float>  
|-
:Influences the light spread to decrease at a fixed rate. Used in equation with Constant and Quadratic. (Learn more about constant, linear and quadratic attenuation [[Constant-Linear-Quadratic Falloff|here]].)
| 2 || Slow, strong pulse
; [[Constant-Linear-Quadratic Falloff|_quadratic_attn]] <float>
|-
: Influences the light spread to decrease exponentially, i.e. faster as one moves away from the source. Used in equation with Constant and Linear. (Learn more about constant, linear and quadratic attenuation [[Constant-Linear-Quadratic Falloff|here]].)
| 3 || Candle A
; _distance <integer>
|-
: Stops the light emitted from reaching beyond this distance. Useful in cutting down compiling time by not making lights extend infinitely.
| 4 || Fast strobe
; _lightHDR <[[color255]]>
|-
: BrightnessHDR. Defaults to <code>-1 -1 -1 1</code>, which tells the compiler to inherit from <code>_light</code>.
| 5 || Gentle pulse
|-
| 6 || Flicker B
|-
| 7 || Candle B
|-
| 8 || Candle C
|-
| 9 || Slow strobe
|-
| 10 || Fluorescent flicker
|-
| 11 || Slow pulse, noblack
|}
:{{note|Applies only to light entities with a [[targetname]].}}
 
; pattern
: <string> A string of characters defining a custom pattern, '''a''' being most dark and '''z''' being most bright. Think of it as a sequence of Piano keys.
:{{note|Applies only to light entities with a [[targetname]].}}
 
; [[Constant-Linear-Quadratic Falloff|_constant_attn]]
:<float> Influences the light spread to be more constant, by dimming near the source and brightening at the edges. Used in equation with Linear and Quadratic. (Learn more about constant, linear and quadratic attenuation [[Constant-Linear-Quadratic Falloff|here]].)
 
; [[Constant-Linear-Quadratic Falloff|_linear_attn]]
:<float> Influences the light spread to decrease at a fixed rate. Used in equation with Constant and Quadratic. (Learn more about constant, linear and quadratic attenuation [[Constant-Linear-Quadratic Falloff|here]].)
 
; [[Constant-Linear-Quadratic Falloff|_quadratic_attn]]
:<float> Influences the light spread to decrease exponentially, i.e. faster as one moves away from the source. Used in equation with Constant and Linear. (Learn more about constant, linear and quadratic attenuation [[Constant-Linear-Quadratic Falloff|here]].)
 
; _distance
:<integer> Stops the light emitted from reaching beyond this distance. Useful in cutting down compiling time by not making lights extend infinitely.
 
; {{EP1 add|_lightHDR}}
:{{color}} BrightnessHDR. Defaults to <code>-1 -1 -1 1</code>, which tells the compiler to inherit from <code>_light</code>.
:{{warning|The final digit in the default string is positive. Entering four negative numbers will suck the light out of your entire map!}}
:{{warning|The final digit in the default string is positive. Entering four negative numbers will suck the light out of your entire map!}}
 
; _fifty_percent_distance <float>
; {{EP1 add|_fifty_percent_distance}}
: 50 percent falloff distance
:<float> 50 percent falloff distance
:Distance at which brightness should fall off to 50%. If set, overrides the Linear, Constant and Quadratic parameters.
:Distance at which brightness should fall off to 50%. If set, overrides the Linear, Constant and Quadratic parameters.
 
; _zero_percent_distance <float>
; {{EP1 add|_zero_percent_distance}}
: 0% falloff distance
:<float> 0 percent falloff distance
:Distance at which brightness should fall off to negligible (1/256)%. Must set _fifty_percent_distance to use.
:Distance at which brightness should fall off to negligible (1/256)%. Must set _fifty_percent_distance to use.

Revision as of 12:14, 25 June 2009

_light <color255 + int>
The color and brightness of the light. RGB colors need to be between 0 and 255. Brightness can be higher.
style <choices>
Note.pngNote:Applies only to lights with a targetname.
Various pattern pre-sets (see next item).
pattern <string>
Note.pngNote:Applies only to lights with a targetname.
A string of characters, like a sequence of piano keys, that define a pattern of brightness. a is dark and z is full intensity.
_constant_attn <float>
Influences the light spread to be more constant, by dimming near the source and brightening at the edges. Used in equation with Linear and Quadratic. (Learn more about constant, linear and quadratic attenuation here.)
_linear_attn <float>
Influences the light spread to decrease at a fixed rate. Used in equation with Constant and Quadratic. (Learn more about constant, linear and quadratic attenuation here.)
_quadratic_attn <float>
Influences the light spread to decrease exponentially, i.e. faster as one moves away from the source. Used in equation with Constant and Linear. (Learn more about constant, linear and quadratic attenuation here.)
_distance <integer>
Stops the light emitted from reaching beyond this distance. Useful in cutting down compiling time by not making lights extend infinitely.
_lightHDR <color255>
BrightnessHDR. Defaults to -1 -1 -1 1, which tells the compiler to inherit from _light.
Warning.pngWarning:The final digit in the default string is positive. Entering four negative numbers will suck the light out of your entire map!
_fifty_percent_distance <float>
50 percent falloff distance
Distance at which brightness should fall off to 50%. If set, overrides the Linear, Constant and Quadratic parameters.
_zero_percent_distance <float>
0% falloff distance
Distance at which brightness should fall off to negligible (1/256)%. Must set _fifty_percent_distance to use.