env_fog
Jump to navigation
Jump to search
| CClientFog |
triggers.cpp |
env_fog is a logical entity available in ![]()
![]()
Counter-Strike 1 series,
Deathmatch Classic, and
Spirit of Half-Life. 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
- Name (targetname) <string>
- The targetname that other entities refer to this entity by, usually via the target, killtarget, and TriggerTarget KVs.
- In
, fog can be toggled by targeting it.
- 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

) - 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

) - 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
) - Distance where the fog begins to appear.
- Stop distance (fogStopDistance) <integer> (only in
) - Distance where the fog ends to appear.
- Fog density (density) <integer> (only in

) - Density of the fog.
Flags
- Start On : [1] (only in
) - If this entity has a targetname, it will start off unless this spawnflag is used.
- Is Fading : [32768] (only in
) !FGD - Handled via game code; do not set manually.