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
No edit summary
 
No edit summary
 
(30 intermediate revisions by 20 users not shown)
Line 1: Line 1:
{{wrongtitle|title=env_zoom}}
{{LanguageBar}} {{Source topicon}}
{{Underlinked|date=January 2024}}
{{CD|CEnvZoom|file1=env_zoom.cpp}}
{{This is a|logical entity|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.


==Entity Description==
Since {{hl2|1}} 20th Anniversary Update, this entity is used on all background maps, locking the viewer's FOV to 75.
'''Entity Name:''' env_zoom
{{Bug|hidetested=1|Does not function in {{tf2}}{{l4d2}}{{css}}, and possibly most multiplayer games.}}


An entity that 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 ==
{{KV Targetname}}
{{KV|Target FOV|intn=FOV|integer|FOV that this entity should set the player's FOV to when active.}}
{{KV|Seconds to reach target|intn=Rate|float|Amount of time it should take to zoom to the specified FOV.}}


==Keyvalues==
== Flags ==
{{fl|1|Allow Suit Zoom}}


* {{kv targetname}}
== Inputs ==
{{I|Zoom|Start controlling the player's FOV.}}
{{I|UnZoom|Stop controlling the player's FOV.}}


* '''Rate'''
[[Category:GUI Entities]]
: <float> Amount of time it should take to reach the specified FOV.
 
* '''FOV'''
: <integer> FOV that this entity should set the player's Target FOV to when active.
 
==Flags==
 
* 1 : Allow Suit Zoom
 
==Inputs==
 
* {{i targetname}}
 
* '''Zoom'''
: Start controlling the player's FOV.
 
* '''UnZoom'''
: Stop controlling the player's FOV.
 
==Outputs==
 
* {{o targetname}}
 
[[Category:Entities]]

Latest revision as of 04:32, 29 April 2025

English (en)Translate (Translate)
Underlinked - Logo.png
This article needs more Wikipedia icon links to other articles to help Wikipedia icon integrate it into the encyclopedia. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024
C++ Class hierarchy
CEnvZoom
CPointEntity
CBaseEntity
C++ env_zoom.cpp

env_zoom is a logical entity available in all Source 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.

Since Half-Life 2 20th Anniversary Update, this entity is used on all background maps, locking the viewer's FOV to 75.

Icon-Bug.pngBug:Does not function in Team Fortress 2Left 4 Dead 2Counter-Strike: Source, and possibly most multiplayer games.

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.