Env fog (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{This is a|name=env_fog|e0|engine=1|game=Counter-Strike|game1=Counter-Strike: Condition Zero|game2=Condition Zero Deleted Scenes|game3=Deathmatch Classic}} This entity is used to cover the map in fog.
{{tabsBar|main=env_fog}}
{{CD|CClientFog|goldsrc=1|base=CBaseEntity|nolink=1|file1=[https://github.com/ValveSoftware/halflife/blob/master/dmc/dlls/cbase.h cbase.h]<br>[https://github.com/ValveSoftware/halflife/blob/master/dmc/dlls/triggers.cpp triggers.cpp]}}
{{this is a|logical entity|name=env_fog|game=Counter-Strike 1 series|game1=Deathmatch Classic}} 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 ==
== Key values ==
{{KV|Fog Color (R G B)|intn=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".}}
{{KV|Start distance|intn=startdist|int| This value defines how far away from the player the fog will start. At this range, the fog is completely transparent.|only={{dmc}} }}
{{KV|Start distance|intn=startdist|int| This value defines how far away from the player the fog will start. At this range, the fog is completely transparent.|only={{dmc}} }}
{{KV|End distance|intn=enddist|int|This value defines how far away from the player the fog will end. At this point, the fog becomes 100% opaque.|only={{dmc}} }}
{{KV|End distance|intn=enddist|int|This value defines how far away from the player the fog will end. At this point, the fog becomes 100% opaque.|only={{dmc}} }}
{{KV|Start distance|intn=fogStartDistance|int|Distance where the fog begins to appear.|only={{cs}}, {{cscz}} & {{czds}} }}
{{KV|Start distance|intn=fogStartDistance|int|Distance where the fog begins to appear.|only={{cs1series}} }}
{{KV|Stop distance|intn=fogStopDistance|int|Distance where the fog ends to appear.|only={{cs}}, {{cscz}} & {{czds}} }}
{{KV|Stop distance|intn=fogStopDistance|int|Distance where the fog ends to appear.|only={{cs1series}} }}
{{KV|Fog density|intn=density|int|Density of the fog.|only={{cs}}, {{cscz}} & {{czds}} }}
{{KV|Fog density|intn=density|int|Density of the fog.|only={{cs1series}} }}
{{KV|Fog Color (R G B)|intn=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".}}


== Flags ==
== Flags ==
{{fl|1|Fog Affects Skybox|only={{cs}}, {{cscz}} & {{czds}} }}
{{fl|1|Fog Affects Skybox|only={{cs1series}} }}

Latest revision as of 07:05, 19 May 2025

edit
C++ Class hierarchy
CClientFog
CBaseEntity
C++ 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. 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)