This article's documentation is for anything that uses the Source engine. Click here for more information.

env_detail_controller

From Valve Developer Community
Jump to navigation Jump to search
Icon-NotInFGD.png
This entity is not in the FGD by default, except in Counter-Strike: SourceCounter-Strike: Global OffensiveLeft 4 Dead seriesLeft 4 Dead seriesGarry's Mod.
See below for instructions on making it available.
C++ Class hierarchy
CEnvDetailController
CBaseEntity
C++ env_detail_controller.cpp

env_detail_controller is a logical entity available in all Source Source games. It selects preffered fade distances for all details sprites in the map.

Warning.pngWarning: The game will take the lower distance values from cl_detailfade and cl_detailfade convars and this entity. In practice this means a rendering distance higher than the default settings isn't possible.
Note.pngNote: This entity is disabled in Counter-Strike: Global Offensive. Changing the fade distance does nothing.

Keyvalues

Start Fade Dist/Pixels (fademindist) <integer>
The distance at which the detail props will start fading away.
End Fade Dist/Pixels (fademaxdist) <integer>
The distance at which the detail props will stop fading and stop drawing entirely.
Note.pngNote: These are cached once on level start, therefore they can't be changed at runtime.

FGD Code

@PointClass base(Angles) = env_detail_controller : "An entity that lets you control the fade distances for detail props."
[
	fademindist(float) : "Start Fade Dist/Pixels" : 400 : "Distance at which the prop starts to fade."
	fademaxdist(float) : "End Fade Dist/Pixels" : 1200 : "Maximum distance at which the prop is visible."
]

See also