color_correction_volume
Class hierarchy |
---|
CColorCorrectionVolume |
colorcorrectionvolume.cpp
|
color_correction_volume
is a brush entity available in all Source games. A color correction lookup table is faded in or out when a player enters or leaves its volume. Fade time is configurable.
Bug:This entity does not work in Counter-Strike: Global Offensive.
Workaround:Use trigger_multiple brushes to output commands that disable an active color_correction entity and enable a separate color_correction entity in its place; upon touch.
Note:If a color_correction entity has a value of -1 in both lookup falloff start and end distance, and is active as soon as you spawn, then enable that entity's "Master" flag. All other color_correction entities must be set to "StartDisabled" as seen in their keyvalues for this to work correctly.
Bug:This entity affects all players connected in multiplayer, even if only one entity comes in contact with it. Fixed in Black Mesa. [todo tested in?]
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.Bug:Does nothing when using StartTouch inputs to enable, lookup will always appear with maximum weight/strength [todo tested in?]
- 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 the
Enable
input).
- Name
(targetname)
<string> - The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Inputs
|
See also
color_correction
- a point-based version of this entity.