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

Bug:Does not function in
Team Fortress 2 and
Portal 2.
Bug:Causes a memory leak in
Left 4 Dead 2 by spamming garbage data to the console, do not use this entity for that game!
Bug:Effects will not work properly if func_reflective_glass or water with planar reflections is in player's field of view due to the effects using the
Xbox 360 as it uses
,
,
,
)
ElcarIccaa (talk | contribs) No edit summary |
MyGamepedia (talk | contribs) (The link doesn't work for me with this tmp.) |
||
| (36 intermediate revisions by 22 users not shown) | |||
| Line 1: | Line 1: | ||
{{LanguageBar}} | |||
{{CD|CEnvScreenEffect|file1=env_screenoverlay.cpp}} | |||
{{This is a|logical entity|name=env_screeneffect}} It allows screenspace effects to be played on the player's view. | |||
==Keyvalues== | {{bug|hidetested=1|Does not function in {{tf2|4}} and {{portal2|4}}.}} | ||
{{bug|hidetested=1|Causes a memory leak in {{l4d2|4}} by spamming garbage data to the console, do not use this entity for that game!}} | |||
{{bug|tested={{hl2}},{{portal}},{{p2ce}},{{bms}}|Effects will not work properly if {{ent|func_reflective_glass}} or [[Water (shader)|water]] with planar reflections is in player's field of view due to the effects using the <code>[[_rt_WaterRefraction]]</code> render target ; this should not happen on {{x360|2}} as it uses <code>_rt_FullFrameFB2</code> instead. {{ent|env_fade}} also can't hide everything at such moment. [https://youtu.be/_6epgXedVBg Example].}} | |||
== Keyvalues == | |||
{{KV Targetname}} | |||
{{KV|Effect Type|intn=type|choices|Which effect to use. | |||
:*0: Advisor Stun | |||
:*1: Intro Blur | |||
:*2: Groggy Vision | |||
|} | :*100: Chromatic Blur {{mapbase|only}} | ||
==Inputs== | :*101: Chromatic Aberration {{mapbase|only}}}} | ||
== Inputs == | |||
{{I|StartEffect|Start the effect with the duration in seconds as the passed parameter.|param=float}} | |||
{{I|StopEffect|Fade out the effect over the duration in seconds as the passed parameter.|param=float}} | |||
= | [[Category:GUI Entities]] | ||
[[Category: | |||
Latest revision as of 05:47, 21 November 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.
_rt_WaterRefraction render target ; this should not happen on _rt_FullFrameFB2 instead. env_fade also can't hide everything at such moment. Example. (tested in: Keyvalues
- Name (targetname) <string>
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentnameortarget).
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.
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.