Info player teamspawn: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Better texts and there is no I angles)
No edit summary
Line 28: Line 28:


[[Category:Player spawn entities]]
[[Category:Player spawn entities]]
==Notes==
The entity must be 4 units above any surface and have a 96x96 unit space around it from other teamspawns or it will not work properly.

Revision as of 23:02, 4 March 2017

A player spawn point, it uses the same model from Half Life 2.

Team Fortress 2 info_player_teamspawn is a point entity available in Team Fortress 2 Team Fortress 2.

Entity description

This entity marks the spawn point for Team Fortress players.

A standard map should have at least 16 spawnpoints per respawn room, to account for a normal maximum team size on a server with the maximum player count raised to the maximum allowed value.

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

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.
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).
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


Warning.pngWarning:If you have ANY team_control_point_round entities in your map, you MUST also set the '<team> spawn for round' settings below. If this is not done both teams will spawn at all spawn points.

Flags

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

Inputs

Parentname:
SetParent <stringRedirectInput/string>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <stringRedirectInput/string>
Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
SetParentAttachmentMaintainOffset <stringRedirectInput/string>
As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
ClearParent
Removes this entity from the the movement hierarchy, leaving it free to move independently.

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.

Outputs

Notes

The entity must be 4 units above any surface and have a 96x96 unit space around it from other teamspawns or it will not work properly.