Env screeneffect: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Merged the two notes.)
(updates)
Line 1: Line 1:
{{lang|Env screeneffect}}
{{base point|env_screeneffect}} It allows screenspace effects to be played on the player's view.
{{base point|env_screeneffect}} It allows screenspace effects to be played on the player's view.


{{note|This entity does not function in Portal 2 and Team Fortress 2.}}
{{note|This entity does not function in Portal 2 and Team Fortress 2.}}
== Keyvalues ==
{{KV|Effect Type|choices|Which effect to use.}}
:* 0 : Advisor Stun
:* 1 : Intro Blur
:* 2 : Groggy Vision
{{KV Targetname}}


== Inputs ==
{{code class|CEnvScreenEffect|env_screenoverlay.cpp}}
 
==Keyvalues==
{{KV|Effect Type (type)|choices|Which effect to use.
:*0: Advisor Stun
:*1: Intro Blur
:*2: Groggy Vision}}
{{KV BaseEntity|css=1}}
 
==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.|param=float}}
{{IO|StopEffect|Stop the effect.|param=float}}
{{I Targetname}}
{{I BaseEntity}}


== Outputs ==
==Outputs==
{{O Targetname}}
{{O BaseEntity|l4d=1}}


[[Category: GUI Entities]]
[[Category:GUI Entities]]

Revision as of 14:22, 30 September 2018

English (en)Translate (Translate)

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

Note.pngNote:This entity does not function in Portal 2 and Team Fortress 2.
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>
Stop the effect.


Outputs