Template:KV BmNewLightBase: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Cut many of the code, so we can use this template for newLights_Spawner (yeah it's just 3 KVs, lol))
(Added Purpose in the code.)
Line 1: Line 1:
<onlyinclude><!--
Purpose:
We are using this template for one or multiple pages related to Black Mesa new light entities. These templates allows you to use the same text for entities that have many identical properties, without having to make the same changes for several pages separately. This template can also be used in some other templates.
-->
{{KV|Light Color|intn=LightColor|color255|The RGB color of the light. Colors must be between 0 and 255.}}
{{KV|Light Color|intn=LightColor|color255|The RGB color of the light. Colors must be between 0 and 255.}}
{{KV|Light Intensity|intn=Intensity|float|Intensity/brightness of the light. It's RGB * intensity.}}
{{KV|Light Intensity|intn=Intensity|float|Intensity/brightness of the light. It's RGB * intensity.}}

Revision as of 07:01, 8 January 2025


Light Color (LightColor) <color255>
The RGB color of the light. Colors must be between 0 and 255.
Light Intensity (Intensity) <float>
Intensity/brightness of the light. It's RGB * intensity.
Note.pngNote:With 0 it will make the light disabled (including the effects).
Range (Range) <float>
Range of the light, or how far the light source can illuminate. Measured in Hammer Units.
Warning.pngWarning:This is one of the parameters that affects performance in the game. Smaller values ​​allow you to process less geometry and save performance.
Examples