Template:Hl1 kv light: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{ScrollBox|title=Light|
{{minititle|Light}}
; Brightness <code><[[color255]] + [[int]]></code>
{{KV|Color + Brightness|intn=_light|color255 + int|The RGB color and brightness of the light. Colors must be between 0 and 255; brightness can be anything.
: The RGB color and brightness of the light. Colors must be between 0 and 255; brightness can be anything.
:{{note|Negative brightness will suck out the amount of lighting that the equivalent positive brightness would cast.}}
; Appearance <code><integer></code>
* 0 : Normal
* 10 : Flourescent Flicker
* 2 : Slow, strong pulse
* 11 : Slow pulse, noblack
* 5 : Gentle pulse
* 1 : Flicker A
* 6 : Flicker B
* 3 : Candle A
* 7 : Candle B
* 8 : Candle C
* 4 : Fast strobe
* 9 : Slow strobe
; Custom Appearance <code><[[string]]></code>
: A string of characters, like a sequence of piano keys, that define a pattern of brightness. ''a'' is dark and ''z'' is full intensity. Applies only to lights with a targetname.
}}
}}
{{KV|Appearance (lightstyle)|intn=style|choices|Various lightstyle presets. Cannot be used on named lights.}}
{{lightstyle presets|goldsrc=1}}
{{KV|Custom Appearance|intn=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. Requires light to have a [[targetname]].}}
[[Category:Lighting]]
[[Category:Lighting]]
<noinclude>
<noinclude>
[[Category:Keyvalue Templates]]
[[Category:Keyvalue Templates]]
</noinclude>
</noinclude>

Latest revision as of 07:50, 9 February 2025

Light:

Color + Brightness (_light) <color255 + int>
The RGB color and brightness of the light. Colors must be between 0 and 255; brightness can be anything.
Note.pngNote:Negative brightness will suck out the amount of lighting that the equivalent positive brightness would cast.
Appearance (lightstyle) (style) <choices>
Various lightstyle presets. Cannot be used on named lights.
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 Underwater light mutation mmnnmmnnnmmnn Lightstyle 12.gif
63 Testing (Off) !FGD a Lightstyle 63.png
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. Requires light to have a targetname.