Env fog (GoldSrc): Difference between revisions
Jump to navigation
Jump to search
SirYodaJedi (talk | contribs) No edit summary |
Theuaredead` (talk | contribs) (Hi, the information pertaining fog in CS is wrong. Some of these are DS exclusive and do not affect 1.6 and standard CZero. Though, it seems like the spawn flags between 1.6/CZero and DS differ. Please refer to de_vostok_cz. Unknown to how CSX handles these commands.) |
||
| Line 7: | Line 7: | ||
{{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={{ | {{KV|Start distance|intn=fogStartDistance|int|Distance where the fog begins to appear.|only={{czds}} }} | ||
{{KV|Stop distance|intn=fogStopDistance|int|Distance where the fog ends to appear.|only={{ | {{KV|Stop distance|intn=fogStopDistance|int|Distance where the fog ends to appear.|only={{czds}} }} | ||
{{KV|Fog density|intn=density|int|Density of the fog.|only={{ | {{KV|Fog density|intn=density|int|Density of the fog.|only={{cs}}{{cscz}} }} | ||
== Flags == | == Flags == | ||
{{fl|1|Fog Affects Skybox|only={{ | {{fl|1|Fog Affects Skybox|only={{czds}} }}{{confirm}} | ||
Revision as of 16:44, 7 November 2025
| CClientFog |
triggers.cpp |
env_fog is a logical entity available in ![]()
![]()
Counter-Strike 1 series and
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
) - 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.