env_fog

An env_fog gives the whole map fog, as in Counter-Strike 1.6, and you can switch it on and off. The first env_fog
that is on sets the fog of the map.
Attributes
KeyDescriptionDefault
Name
targetnameTriggering the entity switches the fog on or off, and the fog fades to its new state over about a second. Without a name, the fog is always on. See Common keys.
Fog color
rendercolorSets the color of the fog, as red, green and blue from 0 up to 255.
Default
128 128 128Density
densitySets how thick the fog is, so the higher the value, the closer to the player things fade into the fog color. You can also type any value from 0 up to 0.01, and 0, a negative value or a value above 0.01 gives no fog.
- Misty (0.0005)
- Thin (0.0007)
- Hazy (0.001)
- Moderate (0.003)
- Dense (0.005)
- Thick (0.01)
Default
Misty (0.0005)Flags
1Start activeA fog with a Name is on when the map starts. Without this flag, a named fog starts off
Notes
- The fog is off while the player's view is in water, slime or lava
- Players who join later get the fog as it is at that moment
- If
trigger_changevalueortrigger_copyvaluechanges Fog color or Density while the fog is on, every player sees the new fog at once. See Changing keys
See also
env_fogzone- fog inside a brushenv_rain- rain over the mapenv_snow- snow over the map- Weather and fog - fog, rain and snow
Changes since 1.38
env_fogis new in SBO 2.0.0

