Env screenoverlay: Difference between revisions
Jump to navigation
Jump to search
Warning:
Note:An overlay will be applied to all players in multiplayer games, even when the!activatoris one player. To apply an overlay to a single client, the command
Note:In
, the overlay can be overridden by certain actions such as being ubercharged or burned. The
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.) |
Thunder4ik (talk | contribs) m (→See also: clean up, replaced: See Also → See also) |
||
Line 57: | Line 57: | ||
{{IO|SwitchOverlay|param=int|Switch to displaying a specific overlay. Pass in the desired overlay number in the parameter. Entering -1 as the value will cause the overlay to display indefinitely.}} | {{IO|SwitchOverlay|param=int|Switch to displaying a specific overlay. Pass in the desired overlay number in the parameter. Entering -1 as the value will cause the overlay to display indefinitely.}} | ||
==See | ==See also== | ||
*[http://www.youtube.com/watch?v=LVjaFo6esWw Video] with some overlays. | *[http://www.youtube.com/watch?v=LVjaFo6esWw Video] with some overlays. | ||
[[Category:GUI Entities]] | [[Category:GUI Entities]] | ||
[[Category:Special effects]] | [[Category:Special effects]] |
Revision as of 14:50, 5 January 2024
![]() |
---|
CEnvScreenOverlay |
![]() |
env_screenoverlay
is an e0 available in all Template:2 games.Template:2 topicon

- The {{{engine}}} parameter is inconsistent with the name defined by the {{2}} template.
If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.
It can display and control a set of screen overlays, to be displayed over the player's view. Useful for view effects like drunkenness, or teleporter afterimages, etc.

r_screenoverlay <material_path>
needs to be used with a point_clientcommand.


SetScriptOverlayMaterial
input or VScript function on the player can be used to set a separate overlay that will not be overriden by such actions.Materials
You can use any material as an overlay, but UnlitGeneric materials are the least likely to have any visual bugs.
Valve provides these materials in the /effects
folder:
- combine_binocoverlay
- Combine binoculars
- tp_eyefx/tpeye
- Green teleport shimmer
- tp_eyefx/tpeye2
- Red teleport shimmer
- tp_eyefx/tpeye3
- Blue teleport shimmer
- tp_eyefx/tp_eyefx
- Warped distortion, somewhat similar the one seen on strider charge shots.
- tp_eyefx/tp_black
- Black. A thin border around the overlay is still visible.
- tp_eyefx/tp_eyefx_eli
- Flashing animation of three figures. Hardly usable as an overlay.
These materials are not designed as screen overlays, but will work as one:
- debug/yuv
- Monochrome (Black and white)
- effects/com_shield002a.vmt
- The combine shield shader effect - refraction with drifting squares.
- models/effects/portalfunnel_sheet
- Red-yellow-green scrolling ground overlay
- models/props_combine/portalball001_sheet
- Green downward haze
- effects/tp_refract
- Red/Orange Refractive overlay
- glass/glasswindow_refract01
- As if looking through a glass Observation window from Portal
Flags
- Allow Suit Zoom : [1]
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
- Overlay Name 1 (OverlayName1) to Overlay Name 10 (OverlayName10) <string>
- Name of the first overlay material to display.
- Overlay Duration 1 (OverlayTime1)) to Overlay Duration 10 (OverlayTime10) <float>
- Amount of time that the overlay should be displayed for, after which it will begin showing the next overlay. Setting this to -1 will make the entity display the overlay indefinitely, until it's forced to change by an input.
Inputs
- StartOverlays
- Start displaying the first overlay.
- StopOverlays
- Stop displaying any overlays.
- SwitchOverlay <integer >
- Switch to displaying a specific overlay. Pass in the desired overlay number in the parameter. Entering -1 as the value will cause the overlay to display indefinitely.
See also
- Video with some overlays.