Env zoom

From Valve Developer Community
Revision as of 07:19, 20 July 2021 by Orinuse (talk | contribs) (memory leak details)
Jump to navigation Jump to search
English (en)Translate (Translate)

Template:Base point It can be used to control the player's FOV. Useful for scenes where the player's view is being controlled, or player-usable binoculars/telescopes, etc.

Icon-Bug.pngBug:Does not function in Team Fortress 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 theCEnvZoomclass, defined in theenv_zoom.cppfile.

Flags

  • 1: Allow Suit Zoom

Keyvalues

Target FOV (FOV) ([todo internal name (i)]) <integer>
FOV that this entity should set the player's FOV to when active.
Seconds to reach target (Rate) ([todo internal name (i)]) <float>
Amount of time it should take to zoom to the specified FOV.


Inputs

Zoom
Start controlling the player's FOV.
UnZoom
Stop controlling the player's FOV.


Outputs