This article's documentation is for anything that uses the Source engine. Click here for more information.

Env zoom

From Valve Developer Community
Revision as of 05:15, 18 March 2023 by THE OWL (talk | contribs)
Jump to navigation Jump to search

English (en)Translate (Translate)

Template:Entity 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 2Left 4 Dead 2, and possibly most multiplayer games.  [todo tested in ?]
C++ In code, it is represented by theCEnvZoomclass, defined in theenv_zoom.cppfile.

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.


Outputs

Inputs

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


Flags

  • 1: Allow Suit Zoom