Team control point

From Valve Developer Community

Table of contents
Team_Control_Point is an entity used to make capture points
Enlarge
Team_Control_Point is an entity used to make capture points

Entity description

Designates the location of a control point.

Availability

This point entity is exclusive to Team Fortress 2.

Keyvalues

Defines the name that other entities refer to this entity by.
  • hammerid [Episode Two Update]
<integer readonly> This id is used for debugging purposes in Hammer.
Pitch Yaw Roll (Y Z X)
This entity's angular orientation in the world (also used for angular effect entities).
  • StartDisabled
<boolean>
  • point_printname
<string> Localized name to print on the HUD.
  • point_group
<integer> Used for grouping points together under a team_control_point_master (not using control point rounds).
  • point_default_owner
<integer> Default Owner of the control point. 0 = neutral, 2 = red, 3 = blu
  • point_index
<integer> Index of this point (must be unique).
  • point_warn_on_cap
<integer> Warn the team that owns the control point when the opposing team starts to capture it. 0 = no, 1 = yes.
  • point_warn_sound
<sound> Sound to be played when this point is being captured (if warn on capture is set).
  • random_owner_on_restart
<integer> Randomly set the owner of this point during a full restart of the map. The ratio of default owners among the points with this flag will be kept when selecting random owners. 0 = no, 1 = yes.
  • team_timedpoints_2
<integer> Time-based point value for RED.
  • team_timedpoints_3
<integer> Time-based point value for BLU.
  • team_capsound_0
<sound> Sound made when point resets.
  • team_capsound_2
<sound> Sound made when RED captures.
  • team_capsound_3
<sound> Sound made when BLU captures.
  • team_model_0
<model> Model when point reset.
  • team_model_2
<model> Model when RED owns the point.
  • team_model_3
<model> Model when BLU owns the point.
  • team_bodygroup_0
<integer> Reset model bodygroup.
  • team_bodygroup_2
<integer> RED model bodygroup.
  • team_bodygroup_3
<integer> BLU model bodygroup.
  • team_icon_0
<material> HUD icon material when no one owns the point.
  • team_icon_2
<material> HUD icon material when RED owns the point.
  • team_icon_3
<material> HUD icon material when BLU owns the point.
  • team_overlay_0
<material> HUD material that will overlay the icon when no one owns the point.
  • team_overlay_2
<material> HUD material that will overlay the icon when RED owns the point.
  • team_overlay_3
<material> HUD material that will overlay the icon when BLU owns the point.
  • team_previouspoint_2_0
<target_destination> The name of a previous capture point that RED must own to be able to capture this point. If empty, the team must own all points preceding this one.
  • team_previouspoint_2_1
<target_destination> The name of a second previous capture point that RED must own to be able to capture this point.
  • team_previouspoint_2_2
<target_destination> The name of a third previous capture point that RED must own to be able to capture this point.
  • team_previouspoint_3_0
<target_destination> The name of a previous capture point that BLU must own to be able to capture this point. If empty, the team must own all points preceding this one.
  • team_previouspoint_3_1
<target_destination> The name of a second previous capture point that BLU must own to be able to capture this point.
  • team_previouspoint_3_2
<target_destination> The name of a third previous capture point that BLU must own to be able to capture this point.

Flags

  • 1 : Hide control point on HUD
  • 2 : Start with model hidden
  • 4 : Disable shadow

Inputs

  • Kill
Removes this entity from the world.
Removes this entity and all its children from the world.
  • AddOutput <string>
Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.
Format: <key> <value>
Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>
Causes this entity's OnUser1-4 outputs to be fired. See User Inputs and Outputs.
  • Enable
Enable this entity.
  • Disable
Disable this entity.
  • SetOwner
<integer> Sets the owner of the entity. (0 = none, 2 = red, 3 = blu)
  • HideModel
Hide the model of the capture point.
  • ShowModel
Shows the model of the capture point again.

Outputs

Fired in response to FireUser1-4 inputs. See User Inputs and Outputs.
!activator = activator
  • OnOwnerChangedToTeam1
Sent when owner is changed to RED.
  • OnOwnerChangedToTeam2
Sent when owner is changed to BLU.
  • OnCapTeam1
Sent when RED capture this point.
  • OnCapTeam2
Sent when BLU capture this point.

See also