Template:KV BmNewLightBaseMain: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(This template stores new lights related keyvalues for all MAIN new light ents from BMS. This template will be used in NewLight_Point, NewLights_Settings, NewLight_Spot.)
 
No edit summary
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 is also may used in some other templates.
-->
{{KV BmNewLightBase}}
{{KV BmNewLightBase}}
{{KV|Enabled|intn=Enabled|Choices|
{{KV|Enabled|intn=Enabled|Choices|

Revision as of 07:03, 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. Doesn't affect shadows.
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.
Icon-Important.pngImportant:Range is limited, the limit depends on intensity value. Do not use values ​​bigger than the intensity value allows.
Examples
Enabled (Enabled) <choices>
Sets light state on spawn, enabled or disabled.
  • 0: Enabled
  • 1: Disabled
Appearance (FlareStyle) <choices>
Appearance presets.

Template:Light appearances

Tip.pngTip:Use new lights instead for lights with custom appearance, because static lightmapped lights reduces performance with this feature (especially near displacements).
Confirm:Is it possible to have your own light styles (the property are using integer values) ?
Icon-Bug.pngBug: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.
Light Ambient Color (LightColorAmbient) <color255>
The RGB color of the shadows. Colors must be between 0 and 255.
Examples
SpecularMultiplier (SpecMultiplier) <float>
Specular multiplier. Sets intensity of new specular shader from this light source. It's RGB * Intensity * SpecularMultiplier.
Examples


falloffConstant (falloffConstant) <integer> !FGD Obsolete
Deprecated.
Constant value (works only if bUseOldFallOff is enabled).
falloffLinear (falloffLinear) <integer> !FGD Obsolete
Deprecated.
Linear value (works only if bUseOldFallOff is enabled).
falloffQuadratic (falloffQuadratic) <integer> !FGD Obsolete
Deprecated.
Quadratic value (works only if bUseOldFallOff is enabled).