Point viewcontrol: Difference between revisions
Jump to navigation
Jump to search
Note:This entity has many problems. See the discussion page for full descriptions and fixes.
Bug:The camera doesn't follow its path correctly. It will not follow paths at all if it doesn't have an
Bug:The camera ignores the
Bug:The camera fails to function when parented, logic_measure_movement can be used as a workaround. [todo tested in ?]
Bug:If the camera is killed while active, or the player suicides, the camera will be stuck permanently on the player's screen. The only fix afterwards is for the player to reconnect to the server. [todo tested in ?]
(Started using new templates) |
(Mentioned point_viewcontrol_multiplayer in Synergy's "All Players" spawnflag) |
||
Line 36: | Line 36: | ||
{{Fl|64|Interruptable by Player|If the player presses +Use, disable.}} | {{Fl|64|Interruptable by Player|If the player presses +Use, disable.}} | ||
{{Fl|128|Set FOV|since={{as}}|nofgd=1}} | {{Fl|128|Set FOV|since={{as}}|nofgd=1}} | ||
{{Fl|128|All Players|only={{synergy}}|Controls the view of all players.}} | {{Fl|128|All Players|only={{synergy}}|Controls the view of all players. {{note|{{ent|point_viewcontrol_multiplayer}} can be used instead in {{Game link|Left 4 Dead}} and later.}}}} | ||
== Inputs == | == Inputs == |
Revision as of 06:47, 23 June 2020
Template:Base point It is a camera entity that controls the player's view. While it's active, the player will see out of the camera.


Entity to Look At
set. [todo tested in ?]
New Train Speed
keyvalue and Teleport to THIS path_corner
spawnflag on path_tracks. [todo tested in ?]

Keyvalues
- Entity to Look At ([todo internal name (i)]) <targetname>
- Name of the entity that the camera should point at and track while active.
- Target Attachment Name ([todo internal name (i)]) <string>
- If set, the camera will focus on the specified attachment on the 'Entity to Look At'.
- Hold Time ([todo internal name (i)]) <integer>
- The amount of time the camera should control the player's view for, after which it deactivates itself. If the camera should stay active until told to deactive, set the 'Infinite Hold Time' spawnflag.
- Path Corner ([todo internal name (i)]) <targetname>
- The first path corner in a track that the camera should move along once it's activated. If not specified, the camera won't move.
- Interpolate Position To Player ([todo internal name (i)]) <boolean> (only in
)
- Gradually interpolate player's position to here on start.
- Initial Speed ([todo internal name (i)]) <string>
- The starting speed that the camera moves at, if it's on a path track.
- Acceleration units/sec^2 ([todo internal name (i)]) <string>
- The speed at which the camera accelerates to path corner's desired speeds.
- Stop Deceleration units/sec^2 ([todo internal name (i)]) <string>
- The speed at which the camera decelerates to path corner's desired speeds.
- Tracking Speed of the camera ([todo internal name (i)]) <float> (in all games since
)
- The speed that the camera tries to follow it's look target.
- FOV rate ([todo internal name (i)]) <float> (in all games since
) !FGD
- How fast we change to the new FOV.
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Pitch Yaw Roll (Y Z X) (angles) <QAngle>
- This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
Flags
- Start At Player : [1]
- Start the camera at the player's position.
Bug:Breaks the camera movement if the player was still moving when the camera activated. [todo tested in ?]
- Follow Player : [2]
- This is the same as if you set the lookat target to !player.
Bug:Causes camera issues in multiplayer. [todo tested in ?]
- Freeze Player : [4]
- Stop recognizing input from the player.
- Infinite Hold Time : [8]
- Ignore the hold time, and stay activated until explicitly disabled.
- Snap to goal angles : [16]
- Make Player non-solid : [32]
- Interruptable by Player : [64]
- If the player presses +Use, disable.
- All Players : [128] (only in
)
- Controls the view of all players.
Note:point_viewcontrol_multiplayer can be used instead in
Left 4 Dead and later.
Inputs
- Enable
- Enable the point_viewcontrol, and start controlling the player's view.
- Disable
- Disable the point_viewcontrol, and stop controlling the player's view.
- SetTargetAttachment <string > (in all games since
)
- Set a new attachment on the target for the camera to point at.
- ReturnToEyes (in all games since
)
- Return the camera view to the player's eyes.
- TeleportToView (in all games since
)
- Teleport the player to the current position of the camera.
- SetTrackSpeed <float > (in all games since
)
- Set the speed that the camera will try to track it's target.
Outputs
- OnEndFollow
- Fired when the point_viewcontrol deactivates, due to the
Disable
input being received, theEntity to Look At
being destroyed, or theHold Time
expiring.