Point viewcontrol multiplayer: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(-cleanup)
Line 14: Line 14:
:* 2 : {{portal2}} P-Body / {{csgo}} Terrorists
:* 2 : {{portal2}} P-Body / {{csgo}} Terrorists
:* 3 : {{portal2}} ATLAS / {{csgo}} Counter-Terrorists
:* 3 : {{portal2}} ATLAS / {{csgo}} Counter-Terrorists
{{KV BaseEntity}}
{{KV Targetname}}


== Flags ==
== Flags ==
Line 26: Line 26:
{{IO|AddPlayer|Makes the [[Targetname#Keywords|!activator]] view from this entity.}}
{{IO|AddPlayer|Makes the [[Targetname#Keywords|!activator]] view from this entity.}}
{{IO|RemovePlayer|Removes [[Targetname#Keywords|!activator]] view from this entity.}}
{{IO|RemovePlayer|Removes [[Targetname#Keywords|!activator]] view from this entity.}}
{{I BaseEntity|l4d2=1|as=1}}
== Outputs ==
{{O BaseEntity|l4d=1}}


== See also ==
== See also ==

Revision as of 11:26, 3 August 2023

English (en)中文 (zh)Translate (Translate)
C++ Class hierarchy
CTriggerCameraMultiplayer
CMoveableCamera
CBaseEntity

Template:Entity It is an alternate version of point_viewcontrol which is capable of controlling the view of multiple players at once. While it's active, the players will see out of the camera. Enabling the entity will control all players' views by default, but individual players can be added/removed by using the AddPlayer and RemovePlayer inputs with said player as the !activator. Starting in Portal 2, it can also be set to only affect players on a specific team.

Keyvalues

Field of view (fov) <float>
Player FOV
Seconds to reach FOV target (fov_rate) <float>
Amount of time it should take to reach the specified FOV
Target Entity (target_entity) <targetname>
Entity to move to. (End of move will match origin and angles).
Seconds to reach target entity (interp_time) <float>
Amount of time it should take to reach the target entity's origin and angles.
Target Team (target_team) <integer> (in all games since Portal 2)
Which team (or all) to take over the camera for.
  • -1 : All players
  • 0 : No team/singleplayer
  • 2 : Portal 2 P-Body / Counter-Strike: Global Offensive Terrorists
  • 3 : Portal 2 ATLAS / Counter-Strike: Global Offensive Counter-Terrorists
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

Flags

Disable when move finished : [1]
Set FOV : [2]

Inputs

Enable <targetnameRedirectInput/string>
Enable the point_viewcontrol_multiplayer, and start controlling the players' view.
Disable
Disable the point_viewcontrol_multiplayer, and stop controlling the players' view.
StartMovement
Start the movement to the target entity.
AddPlayer
Makes the !activator view from this entity.
RemovePlayer
Removes !activator view from this entity.

See also