CTeamSpawnPoint

From Source Entities
Jump to navigation Jump to search

Code classes:

CTeamSpawnPoint is a class in every Source game except Asw.png.

Classnames:

  • info_player_teamspawn - In Team Fortress 2, this entity is the standard player spawnpoint. A typical TF2 server can have up to 32 players in it, so usually there should be 16 spawns per team. Make sure the spawnpoint has 12-32 units of space around it from any other object, including the floor.

Note: Since only Tf2.png uses this entity, the info on this page is only accurate for TF2. See Category:Player spawn entities for entities used in other games.

Flags[edit | edit source]

These flags set which classes are allowed to use this spawnpoint. If a class does not have any valid spawns, it will still forcibly spawn players somewhere.

  • 1: Scout
  • 2: Sniper
  • 4: Soldier
  • 8: Demoman
  • 16: Medic
  • 32: Heavy
  • 64: Pyro
  • 128: Spy
  • 256: Engineer

Keyvalues[edit | edit source]

Initial Team (TeamNum) <int>
The team that this entity is "on".
Note: If the team of this entity is changed at run-time, this number will not be updated to reflect the change.
ValueTf2.png
-1-
0Any
1-
2Red
3Blue
Associated Control Point (controlpoint) <target_destination>
A team_control_point which this spawn is tied to. If the point is not owned by the team this entity is a part of, players of that team cannot use it.
Spawn Mode (SpawnMode) <choices>
How the game decides when a player can spawn here. Triggered mode will only spawn players who were sent by a trigger_player_respawn_override (in which case, the spawn point must have a targetname matching the trigger's!).
  • 0: Normal
  • 1: Triggered
Blue spawn for round (round_bluespawn) <target_destination>
Blue can spawn here if the specified team_control_point_round is active. This is used throughout Dustbowl.
Red spawn for round (round_redspawn) <target_destination>
Red can spawn here if the specified team_control_point_round is active.
Match Summary (MatchSummary) <choices>
After a competitive game is won, players will be spawned at a "Winner" spawn if their team won, and vice versa. TF2's competitive matchmaking uses this to show the winning players on the end screen and allow them to taunt, etc.
  • 0: Not Valid
  • 1: Loser
  • 2: Winner
Start Disabled (StartDisabled) <boolean>
Stay inactive until Enabled.

Inputs[edit | edit source]

SetTeam <int>
Sets this entity's team that it is a part of.
RoundSpawn (Not in FGD)
Tells the entity that a new round has begun. Seems to not have any effect.
Enable
Makes the entity active.
Disable
Makes the entity inactive.