Env zoom: Difference between revisions
Jump to navigation
Jump to search

Bug:Does not function in 
, and possibly most multiplayer games. [todo tested in ?]
(-added class hierarchy, cleanup) |
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.) |
||
Line 2: | Line 2: | ||
{{Lang}} | {{Lang}} | ||
{{CD|CEnvZoom|file1=env_zoom.cpp}} | {{CD|CEnvZoom|file1=env_zoom.cpp}} | ||
{{ | {{this is a|e0|name=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.}} | ||
Revision as of 10:18, 4 January 2024


![]() |
---|
CEnvZoom |
![]() |
env_zoom
is an e0 available 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.



Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- 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
- Allow Suit Zoom : [1]
Inputs
- Zoom
- Start controlling the player's FOV.
- UnZoom
- Stop controlling the player's FOV.