env_fog

From Valve Developer Community
Jump to navigation Jump to search
edit
Class hierarchy
CClientFog
CBaseEntity
cbase.h
triggers.cpp

env_fog is a logical entity available in Counter-Strike 1 seriesCounter-Strike 1 seriesCounter-Strike 1 series Counter-Strike 1 series and Deathmatch Classic Deathmatch Classic.

Warning.pngWarning:
  • The {{{game}}} parameter is inconsistent with the name defined by the {{Counter-Strike 1 series}} template. This can most likely be fixed by setting the value of the {{{game}}} parameter to Counter-Strike 1 series.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.

This entity is used to cover the map in fog. Most Counter-Strike FGDs do not come with this entity listed, it has to be manually added in the FGD to be used in Hammer.

Key values

Fog Color (R G B) (rendercolor) <color255>
This property allows you to set the color of the fog using an "R G B" value. For example, for blue fog you could use "0 0 255".
Start distance (startdist) <integer> (only in Deathmatch Classic)
This value defines how far away from the player the fog will start. At this range, the fog is completely transparent.
End distance (enddist) <integer> (only in Deathmatch Classic)
This value defines how far away from the player the fog will end. At this point, the fog becomes 100% opaque.
Start distance (fogStartDistance) <integer> (only in Counter-Strike 1 seriesCounter-Strike 1 seriesCounter-Strike 1 series)
Distance where the fog begins to appear.
Stop distance (fogStopDistance) <integer> (only in Counter-Strike 1 seriesCounter-Strike 1 seriesCounter-Strike 1 series)
Distance where the fog ends to appear.
Fog density (density) <integer> (only in Counter-Strike 1 seriesCounter-Strike 1 seriesCounter-Strike 1 series)
Density of the fog.

Flags

Fog Affects Skybox : [1] (only in Counter-Strike 1 seriesCounter-Strike 1 seriesCounter-Strike 1 series)