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
(-added class hierarchy, cleanup)
Line 1: Line 1:
{{Source topicon}}
{{Source topicon}}
{{Lang}}
{{Lang}}
{{CD|CEnvZoom|file1=env_zoom.cpp}}
{{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.
{{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.}}
{{Bug|Does not function in {{tf2}}{{l4d2}}, and possibly most multiplayer games.}}
{{code class|CEnvZoom|env_zoom.cpp}}


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


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


== Inputs ==
== 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}}


== Flags ==
 
*1: Allow Suit Zoom


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

Revision as of 17:57, 4 September 2023

English (en)Translate (Translate)
C++ Class hierarchy
CEnvZoom
CPointEntity
CBaseEntity
C++ env_zoom.cpp

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 ?]

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
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.