Color Correction Volume

From Valve Developer Community
Revision as of 08:17, 4 July 2023 by Braindawg (talk | contribs) (updated warning, L4D2 was not actually tested)
Jump to navigation Jump to search
English (en)Hrvatski (hr)中文 (zh)Translate (Translate)
C++ Class hierarchy
CColorCorrectionVolume
CBaseTrigger
CBaseToggle
CBaseEntity
C++ colorcorrectionvolume.cpp

Template:Entity A color correction lookup table is faded in or out when a player enters or leaves its volume. Fade time is configurable. Template:ModernBug

Template:ModernWarning

Todo: Test in Left 4 Dead 2, which has more support for custom color correction
C++ In code, it is represented by theCColorCorrectionVolumeclass, defined in thecolorcorrectionvolume.cppfile.

Keyvalues

Lookup Fade Duration (fadeDuration) <float>
How fast the effect fades in or out when the viewer enters or exits.
Maximum Weight (maxweight) <float>
This is the maximum weight for this lookup.[Clarify]
Lookup Table Filename (filename) <string>
Pathfile from the mod folder to the .raw to reference. For info on making a file, see color correction. Example path for a file in the hl2 materials folder: materials/colorcorrection.raw
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Inputs

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.

See Also