point_viewcontrol_multiplayer

From Source Entities
Jump to navigation Jump to search

Present in:
L4d.pngL4D
L4d2-small.pngL4D2
P2.pngPortal 2
Csgo.pngCS:GO

Code classes:

point_viewcontrol_multiplayer is a point entity present in some Source games. It overrides the views of players. Players are unable to do anything while their view is controlled.

Flags[edit | edit source]

  • 1: Disable when move finished (available in all games since L4d2-small.png) - Automatically disables the view when done moving to Target Entity.
  • 2: Set FOV (available in all games since L4d2-small.png) - Does nothing. The FOV is always set.

Keyvalues[edit | edit source]

Field of view (fov) <float>
How wide the camera's field of view is.
Seconds to reach FOV target (fov_rate) <float>
How long it takes to shift from the player's FOV to the camera's.
Target Entity (target_entity) <target_destination> (available in all games since L4d2-small.png)
When sent the StartMovement input, the view will shift to this entity's origin and angles.
Seconds to reach target entity (interp_time) <float> (available in all games since L4d2-small.png)
How long it takes the entity to shift to Target Entity's view.
Target Team (target_team) <choices> (available in all games since P2.png)
Which team should have their view controlled.
Literal Value P2.png Csgo-small.png
-1 Don't care Don't care
0 Spectators
2 P-body Terrorists
3 Atlas CTs
Target Attachment (Not in FGD) (target_attachment) <string> (only available in Csgo-small.png)
An attachment point on Target Entity to show the view from. Tip: View attachment points ingame with ent_attachments.

Inputs[edit | edit source]

Enable
Starts controlling all the players' views.
Disable
Stops controlling all the players' views.
AddPlayer (Not in FGD)
Starts controlling only the !activator's view.
RemovePlayer (Not in FGD)
Stops controlling only the activator's view.
StartMovement  (available in all games since L4d2-small.png)
Moves the camera view to Target Entity.
OuttroPerPlayerStart (Not in FGD)  (only available in Csgo-small.png)
To do: Seems identical to StartMovement.