Env screeneffect: Difference between revisions
Jump to navigation
Jump to search

Bug:Does not function in 
. [todo tested in ?]
Bug:Causes a memory leak in
by spamming garbage data to the console, do not use this entity for that game! [todo tested in ?]
Bug:Effects will work properly if func_reflective_glass or water with planar reflections is in player's field of view. env_fade also can't hide everything at such moment. Example. (tested in:
,
,
,
)
(position in the world irrelevant so it's logical entity) |
MyGamepedia (talk | contribs) No edit summary |
||
Line 5: | Line 5: | ||
{{bug|Does not function in {{tf2}}{{portal2}}.}} | {{bug|Does not function in {{tf2}}{{portal2}}.}} | ||
{{bug|Causes a memory leak in {{l4d2}} by spamming garbage data to the console, do not use this entity for that game!}} | {{bug|Causes a memory leak in {{l4d2}} by spamming garbage data to the console, do not use this entity for that game!}} | ||
{{bug|tested={{hl2}},{{portal}},{{portal2}},{{p2ce}}|Effects will work properly if {{ent|func_reflective_glass}} or [[Water (shader)|water]] with planar reflections is in player's field of view. {{ent|env_fade}} also can't hide everything at such moment. [https://youtu.be/_6epgXedVBg Example].}} | |||
== Keyvalues == | == Keyvalues == |
Revision as of 05:33, 4 July 2025


![]() |
---|
CEnvScreenEffect |
![]() |
env_screeneffect
is a logical entity available in all Source games. It allows screenspace effects to be played on the player's view.










Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Effect Type (type) <choices>
- Which effect to use.
- 0: Advisor Stun
- 1: Intro Blur
- 2: Groggy Vision
Inputs
- StartEffect <float >
- Start the effect with the duration in seconds as the passed parameter.
- StopEffect <float >
- Fade out the effect over the duration in seconds as the passed parameter.