fog_volume
Jump to navigation
Jump to search
![]() |
---|
CFogVolume |
![]() |
fog_volume
is an e2 available in Left 4 Dead,
Left 4 Dead 2,
Black Mesa, and
Mapbase. It controls fog and other visual cinematic elements within its volume. It is necessary to have at least one fog_volume in order for (a master) color_correction to take effect in the
Left 4 Dead series.




fogui
. This command exists in 
resource/foguipanel.res
is copied from another game.
tools/toolsfog
texture for your fog volumes to quickly distinguish them from triggers while level creation.




OnStartTouch > !activator > SetFogController > [name of env_fog_controller entity]
. The input will appear as red, but it still works. Use OnEndTouch()
to change the fog back.

Keyvalues
- Fog Name (FogName) <targetname>
- The name of the fog entity associated with this volume.
- Postprocess Name (PostProcessName) <targetname>
- The name of the postprocess_controller entity associated with this volume. (not in
Xengine)


- ColorCorrection Name (ColorCorrectionName) <targetname>
- The name of the color_correction entity associated with this volume.
- Name (targetname) <string>[ Edit ]
- 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
- Start Disabled (StartDisabled) <boolean>
- Stay dormant until activated (with the
Enable
input).
Inputs
EnableDisable:
- Enable / Disable
- Enable/disable this entity from performing its task. It might also disappear from view.
See also
External links
- L4D Art Direction, Part 1: Filmic Effects - Valve blog post regarding film effects in Left 4 Dead.
- Changing fog in multiplayer game with Source 2007 - Steam forum.