Template:KV BmNewLightBase: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(This template stores new lights related keyvalues for new lights from BMS. This template is base (we don't have all point/spot light kvs in newlights_settings). We will use it for KV BmNewLightPoint and KV BmNewLightSpot.)
 
(Cut many of the code, so we can use this template for newLights_Spawner (yeah it's just 3 KVs, lol))
Line 1: Line 1:
{{KV|Enabled|intn=Enabled|Choices|
Sets light state on spawn, enabled or disabled.
*0: Enabled
*1: Disabled}}
{{KV|Appearance|intn=FlareStyle|Choices|Appearance presets.
{{Light appearances}}
{{tip|Use new lights instead for lights with custom appearance, because static lightmapped lights reduces performance with this feature (especially near displacements).}}
{{ModernConfirm|Is it possible to have your own light styles (the property are using integer values) ?}}
}}
{{bug|hidetested=1|{{ent|NewLights_settings}} doesn't apply this property if applied on Static or Stationary light type. Fixes after save reload. Works fine with Dynamic light type.}}
{{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 Ambient Color|intn=LightColorAmbient|color255|The RGB color of the shadows. Colors must be between 0 and 255.
{{expand|margin_left=2em|title=Examples|
<gallery mode=packed heights=290px>
File:cShadowC1.jpg| thumb | left | 510px | 0 0 0
File:cShadowC2.jpg| thumb | left | 510px | 255 0 0
File:cShadowC3.jpg| thumb | left | 510px | 255 128 128
</gallery>
}}
}}
{{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.}}
:{{Note|With 0 it will make the light disabled (including the effects).}}
:{{Note|With 0 it will make the light disabled (including the effects).}}
{{KV|SpecularMultiplier|intn=SpecMultiplier|float|Specular multiplier. Sets intensity of [https://developer.valvesoftware.com/wiki/New_Specular new specular] shader from this light source. It's RGB * Intensity * SpecularMultiplier.
{{expand|margin_left=2em|title=Examples|
<br>
<gallery mode=packed heights=290px>
File:cBS IN1.jpg| thumb | left | 510px | SpecularMultiplier - 1
File:cBS IN10.jpg| thumb | left | 510px | SpecularMultiplier - 10
File:cBS IN20.jpg| thumb | left | 510px | SpecularMultiplier - 20
</gallery>
}}
}}
{{KV|Range|intn=Range|float|Range of the light, or how far the light source can illuminate. Measured in Hammer Units.}}
{{KV|Range|intn=Range|float|Range of the light, or how far the light source can illuminate. Measured in Hammer Units.}}
:{{warning|This is one of the parameters that affects performance in the game. Smaller values ​​allow you to process less geometry and save performance.}}
:{{warning|This is one of the parameters that affects performance in the game. Smaller values ​​allow you to process less geometry and save performance.}}
Line 41: Line 12:
</gallery>
</gallery>
}}
}}
{{KV|falloffConstant|intn=falloffConstant|integer|Constant value (works only if bUseOldFallOff is enabled).|nofgd=1|deprecated=1}}
{{KV|falloffLinear|intn=falloffLinear|integer|Linear value (works only if bUseOldFallOff is enabled).|nofgd=1|deprecated=1}}
{{KV|falloffQuadratic|intn=falloffQuadratic|integer|Quadratic value (works only if bUseOldFallOff is enabled).|nofgd=1|deprecated=1}}

Revision as of 08:25, 7 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