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

Env zoom: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{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.
{{Source topicon}}
{{bug|Does not function in {{tf2}}{{l4d2}}, and possibly most multiplayer games.}}
{{Lang}}
{{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.
{{Bug|Does not function in {{tf2}}{{l4d2}}, and possibly most multiplayer games.}}
{{code class|CEnvZoom|env_zoom.cpp}}
{{code class|CEnvZoom|env_zoom.cpp}}


==Flags==
== Keyvalues ==
*1: Allow Suit Zoom
 
==Keyvalues==
{{KV|Target FOV (FOV)|integer|FOV that this entity should set the player's FOV to when active.}}
{{KV|Target FOV (FOV)|integer|FOV that this entity should set the player's FOV to when active.}}
{{KV|Seconds to reach target (Rate)|float|Amount of time it should take to zoom to the specified FOV.}}
{{KV|Seconds to reach target (Rate)|float|Amount of time it should take to zoom to the specified FOV.}}
{{KV BaseEntity}}
{{KV BaseEntity}}


==Inputs==
== Outputs ==
{{O BaseEntity|l4d=1}}
 
== Inputs ==
{{IO|Zoom|Start controlling the player's FOV.}}
{{IO|Zoom|Start controlling the player's FOV.}}
{{IO|UnZoom|Stop controlling the player's FOV.}}
{{IO|UnZoom|Stop controlling the player's FOV.}}
{{I BaseEntity}}
{{I BaseEntity}}


==Outputs==
== Flags ==
{{O BaseEntity|l4d=1}}
*1: Allow Suit Zoom


[[Category:GUI Entities]]
[[Category:GUI Entities]]

Revision as of 05:15, 18 March 2023

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