env_zoom

From Source Entities
Jump to navigation Jump to search

Code classes:

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

Bug: Does not function in Tf2.pngCss.pngCsgo-small.pngL4d.pngL4d2-small.png.

Flags[edit | edit source]

  • 1: Allow Normal Zoom (only available in Hl2.pngP2.png)

Keyvalues[edit | edit source]

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.

Inputs[edit | edit source]

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