Team control point: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(minoro)
Line 2: Line 2:
{{toc|left}}
{{toc|left}}
[[Image:Cappoint.JPG|thumb|Team_Control_Point is an entity used to make capture points]]{{clr}}
[[Image:Cappoint.JPG|thumb|Team_Control_Point is an entity used to make capture points]]{{clr}}
==Entity Description==


Designates a control point.
== Entity description ==
Designates the location of a control point.


==Availability==
== Availability ==
This point [[entity]] is exclusive to Team Fortress 2.
This point [[entity]] is exclusive to Team Fortress 2.


==Keyvalues==
== Keyvalues ==
* {{kv targetname}}
* {{kv targetname}}
* {{kv angles}}
* {{kv angles}}
Line 74: Line 74:
: <target_destination> The name of a third previous capture point that BLU must own to be able to capture this point.
: <target_destination> The name of a third previous capture point that BLU must own to be able to capture this point.


==Flags==
== Flags ==
* 1 : Hide control point on HUD
* 1 : Hide control point on [[HUD]]
* 2 : Start with model hidden
* 2 : Start with model hidden
* 4 : Disable shadow
* 4 : Disable shadow


==Inputs==
== Inputs ==
* {{i targetname}}
* {{i targetname}}
* {{i enabledisable}}
* {{i enabledisable}}
Line 89: Line 89:
: Shows the model of the capture point again.
: Shows the model of the capture point again.


==Outputs==
== Outputs ==
* {{o targetname}}
* {{o targetname}}
* '''OnOwnerChangedToTeam1'''
* '''OnOwnerChangedToTeam1'''
Line 100: Line 100:
: Sent when BLU capture this point.
: Sent when BLU capture this point.


==See Also==
== See also ==
* [[team_control_point_round]]
* [[team_control_point_round]]
* [[team_control_point_master]]
* [[team_control_point_master]]
[[Category:Team Fortress 2 Entities]]
[[Category:Team Fortress 2 Entities]]

Revision as of 06:01, 1 February 2008

Template:Wrongtitle

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

<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

<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

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