Env zoom: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Request: Change "memory leak" warning to not working)
mNo edit summary
Line 1: Line 1:
{{lang|Env zoom}}
{{entity|env_zoom|type=e0}} 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.
{{base point|env_zoom}} 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.
{{bug|Does not function in {{tf2}}{{l4d2}}, and possibly most multiplayer games.}}
{{bug|Does not function in {{tf2}}{{l4d2}}, and possibly most multiplayer games.}}
{{code class|CEnvZoom|env_zoom.cpp}}
{{code class|CEnvZoom|env_zoom.cpp}}

Revision as of 14:45, 14 February 2023

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.

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