Env zoom: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(updates. E's finished)
Line 1: Line 1:
{{base point|env_zoom}}  
{{lang|Env zoom}}
{{base point|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.


==Entity description==
{{code class|CEnvZoom|env_zoom.cpp}}
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 ==
==Flags==
{{KV|Seconds to reach target|float|Amount of time it should take to reach the specified FOV.}}
*1: Allow Suit Zoom
{{KV|Target FOV|integer|FOV that this entity should set the player's FOV to when active.}}
{{KV Targetname}}


== Flags ==
==Keyvalues==
* 1 : Allow Suit Zoom
{{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 BaseEntity}}


== 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 Targetname}}
{{I BaseEntity}}


== Outputs ==
==Outputs==
{{O Targetname}}
{{O BaseEntity|l4d=1}}


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

Revision as of 02:07, 3 October 2018

English (en)Translate (Translate)

Template:Base point 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.

C++ In code, it is represented by theCEnvZoomclass, defined in theenv_zoom.cppfile.

Flags

  • 1: Allow Suit Zoom

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.


Inputs

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


Outputs