Env screeneffect: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (memory leak details)
m (Did some quick testing in Gmod, pretty obvious effect visible. The parameter of StopEffect determines how long the fade out effect takes to fully complete. StopEffect doesn't seem to work without a parameter either, from what I saw.)
Line 15: Line 15:
==Inputs==
==Inputs==
{{IO|StartEffect|Start the effect with the duration in seconds as the passed parameter.|param=float}}
{{IO|StartEffect|Start the effect with the duration in seconds as the passed parameter.|param=float}}
{{IO|StopEffect|Stop the effect. {{todo|What does the parameter do?}}|param=float}}
{{IO|StopEffect|Fade out the effect over the duration in seconds as the passed parameter.|param=float}}
{{I BaseEntity}}
{{I BaseEntity}}



Revision as of 17:02, 19 July 2023

English (en)Translate (Translate)

Template:Base point It allows screenspace effects to be played on the player's view.

Icon-Bug.pngBug:Does not function in Team Fortress 2Portal 2.  [todo tested in ?]
Icon-Bug.pngBug:Causes a memory leak in Left 4 Dead 2 by spamming garbage data to the console, do not use this entity for that game!  [todo tested in ?]
C++ In code, it is represented by theCEnvScreenEffectclass, defined in theenv_screenoverlay.cppfile.

Keyvalues

Effect Type (type) ([todo internal name (i)]) <choices>
Which effect to use.
  • 0: Advisor Stun
  • 1: Intro Blur
  • 2: Groggy Vision


Inputs

StartEffect <floatRedirectInput/float>
Start the effect with the duration in seconds as the passed parameter.
StopEffect <floatRedirectInput/float>
Fade out the effect over the duration in seconds as the passed parameter.


Outputs