Env detail controller: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(-bug)
Line 2: Line 2:
{{entity|env_detail_controller|type=e0}} It overrides the fade distances for all [[Prop Types Overview#prop_detail|details sprites]] in the map.
{{entity|env_detail_controller|type=e0}} It overrides the fade distances for all [[Prop Types Overview#prop_detail|details sprites]] in the map.
{{ModernNote|This entity is broken in {{csgo}}. Changing the fade distance does nothing.}}
{{ModernNote|This entity is broken in {{csgo}}. Changing the fade distance does nothing.}}
{{code class|CEnvDetailController|env_detail_controller.cpp}}


== Keyvalues ==
== Keyvalues ==
{{KV|Start Fade Dist/Pixels|intn=fademindist|integer|The distance at which the detail props will start fading away.}}
{{KV|Start Fade Dist/Pixels|intn=fademindist|integer|The distance at which the detail props will start fading away.}}
{{KV|End Fade Dist/Pixels|intn=fademaxdist|integer|The distance at which the detail props will stop fading and stop drawing entirely.}}
{{KV|End Fade Dist/Pixels|intn=fademaxdist|integer|The distance at which the detail props will stop fading and stop drawing entirely.}}
{{bug|Changing these keyvalues in-game doesn't seem to have any effect, only the initial values affect the detail fading (tested in {{l4d2}})}}
{{KV Targetname}}
{{KV Targetname}}


== See Also ==
== See Also ==
* [[func_detail_blocker]]
* [[func_detail_blocker]]

Revision as of 06:11, 6 August 2023

C++ Class hierarchy
CEnvDetailController
CBaseEntity
C++ env_detail_controller.cpp

Template:Entity It overrides the fade distances for all details sprites in the map. Template:ModernNote

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.
Icon-Bug.pngBug:Changing these keyvalues in-game doesn't seem to have any effect, only the initial values affect the detail fading (tested in Left 4 Dead 2)  [todo tested in ?]
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

See Also