{{{1}}}

From Valve Developer Community
Revision as of 16:11, 25 May 2016 by Fayti1703 (talk | contribs) (Move specific keyvalues to the top of the keyvalues section. (As far as I am aware, this is the standard. Feel free to correct me))
Jump to navigation Jump to search

Team Fortress 2 {{{1}}} is a point entity available in Team Fortress 2 Team Fortress 2.

Stub

This article or section is a stub. You can help by expanding it.

Entity Description

Marks a camera location for Team Fortress 2 players. Any spectating players (due to selecting the Spectator team or being unable to respawn at the time) have the ability to select this camera location to observe.

Note.pngNote:Certain game entities, such as the func_tracktrain used for payloads, will also count as observer cameras.
Icon-Bug.pngBug:Failure to include spectator cameras will lead to dedicated servers crashing if all players on a team die at the same time.  [todo tested in ?]
Icon-Bug.pngBug:Spectator cameras with a roll will taint the view of other spectatable objects (like players) that doesn't set the roll.  [todo tested in ?]

Keyvalues

Associated Team Entity ([todo internal name (i)]) <targetname>
An entity associated with this point that can be owned by a team (such as a flag or control point). Players will only be able to use this observer point if their team owns the associated team entity.
Welcome Point ([todo internal name (i)]) <boolean>
Set whether this camera is among the ones players may see when they first join the server. If no cameras have this set to "No", the game will pick from all cameras that are not team-bound.
FOV ([todo internal name (i)]) <integer>
Specifies the field-of-view angle. Larger numbers allow the camera to see more of the playing field. Default is 70.
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

TeamNum:
Initial Team (TeamNum) <choices>
Which Team the entity belongs / is assigned to on spawn
  • 0: None
  • 1: Spectator/Halloween Souls Team Fortress 2
  • 2: RED Team Fortress 2
  • 3: BLU/Robots Team Fortress 2
  • 5: Halloween Bosses (only in Team Fortress 2) !FGD


Note: Use this for cameras located inside team bases (particularly respawn areas and flag rooms) so that players cannot use them to spy on their opponents.
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.
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).
Parentname:
Parent (parentname) <targetname>
Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.

Inputs

SetTeam <integerRedirectInput/integer>
Changes the entity's team.

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.
Toggle:
Toggle
Toggle the enabled/disabled status of this entity.

Outputs