Info texlights (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(probably not stub just short)
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{stub}}
{{This is a|internal=1|point entity|name=info_texlights|game=ZHLT|game1=VHLT|nocat=1}}
{{HL1}} '''info_texlights''' is a point entity available with [[ZHLT|Zoner's Half-Life Tools]] and modern forks such as [[VHLT|Vluzacn's Half-Life Tools]].
It works similarly to a [[RAD file]] by allowing textures to emit light.  


== Entity description ==
== Keyvalues ==
It works similarly to a [[lights.rad]] file by allowing textures to emit light. Texture lights are defined through its key values, where the key is the name of the texture to emit light from, and the value is the color and intensity of the light. For example, a keyvalue pair with the key {{mono|LIGHT1}} and the value {{mono|255 0 0 200}} would make the texture ''LIGHT1'' emit a red light.
{{KV|<texture_name_added_with_smartedit_off>|brightness|intn=0|[[Texlight]]s are defined through its key values, where the key is the name of the texture to emit light from, and the value is the color and intensity of the light.  
:{{example|For example, a keyvalue pair with the key {{mono|LIGHT1}} and the value {{mono|255 0 0 200}} would make the texture ''LIGHT1'' emit a red light. Alternatively, a single number can be used, in which case the light color is automatically determined by the average color of the texture.}}}}
:{{Important|In VHLT, lights from info_texlights with color set to {{code|255 255 255}} will use the average color of the texture instead of white. Use {{code|254 254 254}} instead.}}
 
== See also ==
* [[RAD file]]


[[Category:Entities]]
[[Category:Half-Life]]
[[Category:Half-Life Entities]]
[[Category:Third Party Tools]]
[[Category:Third Party Tools]]
[[Category:ZHLT entities]]
[[Category:VHLT entities]]

Latest revision as of 09:05, 28 April 2025

info_texlights is an internal point entity available in ZHLT ZHLT and VHLT VHLT. It works similarly to a RAD file by allowing textures to emit light.

Keyvalues

<texture_name_added_with_smartedit_off> <brightness>
Texlights are defined through its key values, where the key is the name of the texture to emit light from, and the value is the color and intensity of the light.
PlacementTip.pngExample:For example, a keyvalue pair with the key LIGHT1 and the value 255 0 0 200 would make the texture LIGHT1 emit a red light. Alternatively, a single number can be used, in which case the light color is automatically determined by the average color of the texture.
Icon-Important.pngImportant:In VHLT, lights from info_texlights with color set to 255 255 255 will use the average color of the texture instead of white. Use 254 254 254 instead.

See also