color_correction

From Valve Developer Community

Jump to: navigation, search


Hammer icon

This is a point entity available in all Source games. It loads a color correction lookup table (.raw) and controls its strength. Correction is applied in a sphere surrounding the entity, with a configurable amount of falloff. By default the effect fades in gradually and only reaches peak intensity at the entity's exact location.

Bug:In Team Fortress 2, color_correction causes control point HUD icons to display improperly. (example).

Contents

Keyvalues

Lookup Falloff Start Distance <float>
Lookup Falloff End Distance <float>
Distance from the entity at which the effect should begin and end fading out.
Maximum Weight <normal>
The intensity of the effect before falloff.
Lookup Table Filename <path\file>
The path and filename of the lookup table to load. Starts in the game root and should include file extension.
Lookup Fade In Duration <float>
Lookup Fade out Duration <float>
How fast the effect should fade in/out when the entity is enabled/disabled.
  • Targetname:

Name <string>
The targetname other entities refer to this entity by.
  • EnableDisable:

Start Disabled <bool>
Stay dormant until activated (probably with the Enable input).

Inputs

filename
Set lookup table filename.
  • Targetname:

Kill
Removes this entity from the world.
KillHierarchy
Removes this entity and all its children from the world.
AddOutput <string>
Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.
Format: <key> <value>
Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite>
FireUser1 to FireUser4
Fire the OnUser outputs; see User Inputs and Outputs.
  • EnableDisable:

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

Outputs

  • Targetname:

OnUser1 to OnUser4
Fired in response to the FireUser inputs; see User Inputs and Outputs.
OnKilled (New with Left 4 Dead)
Fired when the entity is killed and removed from the game.

See also

Personal tools