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

env_zoom

From Valve Developer Community
Jump to: navigation, search
Underlinked - Logo.png
This article needs more links to other articles to help integrate it into the encyclopedia. Please help improve this article by adding links that are relevant to the context within the existing text.
January 2024

English (en)
... Icon-Important.png
class hierarchy
CEnvZoom defined in env_zoom.cpp
CPointEntity
CBaseEntity

env_zoom is a point entity available in all Source Source games. 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.

Keyvalues


Targetname:
Name (targetname) <string>
The targetname that other entities refer to this entity by.
Target FOV (FOV) <integer>
FOV that this entity should set the player's FOV to when active.
Seconds to reach target (Rate) <float>
Amount of time it should take to zoom to the specified FOV.

Flags

  •  [1] : Allow Suit Zoom

Inputs

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