Team control point: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎Inputs: removed unised angles input)
(Requested to add the RoundActivate input. Also: changed up the description, added some internal entity names and put in some newer templates.I unfortunately need to put this as a stub, till someone comes along and fills the rest)
Line 1: Line 1:
[[File:Cappoint.JPG|thumb|Team_Control_Point is an entity used to make capture points]]
{{stub|Keyvalues need some updating, and needs internal names too}}
[[File:Cappoint.JPG|thumb|right|The final<code>team_control_point</code>from first map of<code>cp_dustbowl</code>inside a building.]]
{{tf2 point|team_control_point}} It marks the location of where a [[Creating a Capture Point|capture point]] should be at, and comes with various specific configurations that determines how it should look in the world, look in the hud, what points a team must own beforeits available, etc.


{{tf2 point|team_control_point}}
By itself, it is not capable of influencing the game, and requires a [[trigger_capture_area]] alongside it to allow it be captured. A single of either [[team_control_point_master]] or [[team_control_point_round]] must also exist in the map.
 
{{note|There is a maximum of 8 control points per map!}}
==Entity description==
Designates the location of a [[Creating a Capture Point|capture point]]; use in conjunction with [[trigger_capture_area]]. There is a maximum of 8 control points per map.


==Keyvalues==
==Keyvalues==
{{KV Targetname}}
{{KV|Start locked|intn=point_start_locked|boolean|Locked means the point will not be available for capture until it is unlocked via its input.}}
{{KV Parentname}}
{{KV Angles}}
{{KV EnableDisable}}
{{KV|Start locked|boolean|Locked means the point will not be available for capture until it is unlocked via its input.}}
{{KV|Print Name|string|LOCALIZED name to print on the HUD.}}
{{KV|Print Name|string|LOCALIZED name to print on the HUD.}}
{{KV|Group Index|integer|Used for grouping points together under a team_control_point_master (not using control point rounds).}}
{{KV|Group Index|integer|intn=point_index|Used for grouping points together under a team_control_point_master (not using control point rounds).}}
{{KV|Default Owner|choices|Default Owner of the control point.}}
{{KV|Default Owner|intn=point_default_owner|choices|Default Owner of the control point.}}
:* 0 : Neither
:* 0 : Neither
:* 2 : Red
:* 2 : Red
:* 3 : Blue
:* 3 : Blue
{{KV|Index|integer|Index of this point (must be unique).}}
{{KV|Index|intn=point_start_locked|integer|Index of this point (must be unique).}}
{{KV|Warning Type|choices|Type of warning to issue to the team that owns the control point when the opposing team starts to capture it.}}
{{KV|Warning Type|choices|Type of warning to issue to the team that owns the control point when the opposing team starts to capture it.}}
:* 0 : Normal Announcements
:* 0 : Normal Announcements
:* 1 : Final Capture Point Warning
:* 1 : Final Capture Point Warning
:* 2 : No Announcements
:* 2 : No Announcements
{{KV|Warning sound|string|Sound to be played when this point is being captured (if warn on capture is set).}}
{{KV|Warning sound|intn=point_warn_sound|string|Sound to be played when this point is being captured (if warn on capture is set).}}
{{KV|Randomly set the owner on restart|boolean|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.}}
{{KV|Randomly set the owner on restart|intn=random_owner_on_restart|boolean|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.}}
{{KV|Time-based point value for RED.|integer}}
{{KV|Time-based point value for RED.|integer}}
{{KV|Time-based point value for BLUE.|integer}}
{{KV|Time-based point value for BLUE.|integer}}
Line 37: Line 33:
{{KV|HUD overlay BLUE|material|HUD material that will overlay the icon when BLUE owns the point.}}
{{KV|HUD overlay BLUE|material|HUD material that will overlay the icon when BLUE owns the point.}}
{{KV|RED Previous Required Point 1|target_source|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. Pointing to itself means no previous point required.}}
{{KV|RED Previous Required Point 1|target_source|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. Pointing to itself means no previous point required.}}
{{KV|RED Previous Required Point 2|target_source|The name of a second previous capture point that RED must own to be able to capture this point.}}
{{KV|RED Previous Required Point 2|target_source|The name of a second previous capture point that RED must own to be abl!pe to capture this point.}}
{{KV|RED Previous Required Point 3|target_source|The name of a third previous capture point that RED must own to be able to capture this point.}}
{{KV|RED Previous Required Point 3|target_source|The name of a third previous capture point that RED must own to be able to capture this point.}}
{{KV|BLUE Previous Required Point 1|target_source|The name of a previous capture point that BLUE must own to be able to capture this point. If empty, the team must own all points preceding this one. Pointing to itself means no previous point required.}}
{{KV|BLUE Previous Required Point 1|target_source|The name of a previous capture point that BLUE must own to be able to capture this point. If empty, the team must own all points preceding this one. Pointing to itself means no previous point required.}}
{{KV|BLUE Previous Required Point 2|target_source|The name of a second previous capture point that BLUE must own to be able to capture this point.}}
{{KV|BLUE Previous Required Point 2|target_source|The name of a second previous capture point that BLUE must own to be able to capture this point.}}
{{KV|BLUE Previous Required Point 3|target_source|The name of a third previous capture point that BLUE must own to be able to capture this point.}}
{{KV|BLUE Previous Required Point 3|target_source|The name of a third previous capture point that BLUE must own to be able to capture this point.}}
{{KV BaseEntity|base=1}}
{{KV EnableDisable}}


==Flags==
==Flags==
Line 50: Line 48:


==Inputs==
==Inputs==
{{I Targetname}}
{{I BaseEntity|base=1}}
{{I Parentname}}
{{I EnableDisable}}
{{I EnableDisable}}
{{IO|SetOwner|Set the owner of the point.|param=integer}}
{{IO|SetOwner|Set the owner of the point.|param=integer}}
Line 58: Line 55:
{{IO|SetLocked|Lock the control point. 0 {{=}} unlocked, 1 {{=}} locked|param=integer}}
{{IO|SetLocked|Lock the control point. 0 {{=}} unlocked, 1 {{=}} locked|param=integer}}
{{IO|SetUnlockTime|This will automatically unlock the control point in the specified amound of time (seconds).|param=integer}}
{{IO|SetUnlockTime|This will automatically unlock the control point in the specified amound of time (seconds).|param=integer}}
{{IO|RoundActivate|Fires the<code>OnRoundStartOwnedByTeam1</code>and<code>OnRoundStartOwnedByTeam2</code>outputs, then applies the<code>Start Locked</code>keyvalue's setting}}


==Outputs==
==Outputs==
{{O Targetname}}
{{O BaseEntity}}
{{IO|OnOwnerChangedToTeam1|Sent when owner is changed to RED.}}
{{IO|OnOwnerChangedToTeam1|Sent when owner is changed to RED.}}
{{IO|OnOwnerChangedToTeam2|Sent when owner is changed to BLUE.}}
{{IO|OnOwnerChangedToTeam2|Sent when owner is changed to BLUE.}}
Line 71: Line 69:


== See also ==
== See also ==
* [[trigger_capture_area]]
* [[team_control_point_round]]
* [[team_control_point_round]]
* [[team_control_point_master]]
* [[team_control_point_master]]
* [[Creating a Capture Point]]
* [[Creating a Capture Point]]
=== MvM ===
* [[trigger_timer_door]]

Revision as of 10:23, 4 May 2021

Stub

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

The finalteam_control_pointfrom first map ofcp_dustbowlinside a building.

Team Fortress 2 team_control_point is a point entity available in Team Fortress 2 Team Fortress 2. It marks the location of where a capture point should be at, and comes with various specific configurations that determines how it should look in the world, look in the hud, what points a team must own beforeits available, etc.

By itself, it is not capable of influencing the game, and requires a trigger_capture_area alongside it to allow it be captured. A single of either team_control_point_master or team_control_point_round must also exist in the map.

Note.pngNote:There is a maximum of 8 control points per map!

Keyvalues

Start locked (point_start_locked) <boolean>
Locked means the point will not be available for capture until it is unlocked via its input.
Print Name ([todo internal name (i)]) <string>
LOCALIZED name to print on the HUD.
Group Index (point_index) <integer>
Used for grouping points together under a team_control_point_master (not using control point rounds).
Default Owner (point_default_owner) <choices>
Default Owner of the control point.
  • 0 : Neither
  • 2 : Red
  • 3 : Blue
Index (point_start_locked) <integer>
Index of this point (must be unique).
Warning Type ([todo internal name (i)]) <choices>
Type of warning to issue to the team that owns the control point when the opposing team starts to capture it.
  • 0 : Normal Announcements
  • 1 : Final Capture Point Warning
  • 2 : No Announcements
Warning sound (point_warn_sound) <string>
Sound to be played when this point is being captured (if warn on capture is set).
Randomly set the owner on restart (random_owner_on_restart) <boolean>
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.
Time-based point value for RED. ([todo internal name (i)]) <integer>
Time-based point value for BLUE. ([todo internal name (i)]) <integer>
Reset Sound ([todo internal name (i)]) <sound>
Sound made when point resets.
Red Capture Sound ([todo internal name (i)]) <sound>
Sound made when RED captures.
Blue Capture Sound ([todo internal name (i)]) <sound>
Sound made when BLUE captures.
Reset model bodygroup ([todo internal name (i)]) <integer>
Control point model bodygroup used when point reverts to neutral state.
RED model bodygroup ([todo internal name (i)]) <integer>
Control point model bodygroup used when RED owns the point.
BLUE model bodygroup ([todo internal name (i)]) <integer>
Control point model bodygroup used when RED owns the point.
HUD overlay neutral ([todo internal name (i)]) <material>
HUD material that will overlay the icon when no one owns the point.
HUD overlay RED ([todo internal name (i)]) <material>
HUD material that will overlay the icon when RED owns the point.
HUD overlay BLUE ([todo internal name (i)]) <material>
HUD material that will overlay the icon when BLUE owns the point.
RED Previous Required Point 1 ([todo internal name (i)]) <string>
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. Pointing to itself means no previous point required.
RED Previous Required Point 2 ([todo internal name (i)]) <string>
The name of a second previous capture point that RED must own to be abl!pe to capture this point.
RED Previous Required Point 3 ([todo internal name (i)]) <string>
The name of a third previous capture point that RED must own to be able to capture this point.
BLUE Previous Required Point 1 ([todo internal name (i)]) <string>
The name of a previous capture point that BLUE must own to be able to capture this point. If empty, the team must own all points preceding this one. Pointing to itself means no previous point required.
BLUE Previous Required Point 2 ([todo internal name (i)]) <string>
The name of a second previous capture point that BLUE must own to be able to capture this point.
BLUE Previous Required Point 3 ([todo internal name (i)]) <string>
The name of a third previous capture point that BLUE must own to be able to capture this point.


Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).

Flags

  • 1 : Hide Control Point on HUD
  • 2 : Start with model hidden
  • 4 : Disable shadow
  • 8 : Disable sounds

Inputs

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.
SetOwner <integerRedirectInput/integer>
Set the owner of the point.
HideModel
Hide the control point model.
ShowModel
Show the control point model again.
SetLocked <integerRedirectInput/integer>
Lock the control point. 0 = unlocked, 1 = locked
SetUnlockTime <integerRedirectInput/integer>
This will automatically unlock the control point in the specified amound of time (seconds).
RoundActivate
Fires theOnRoundStartOwnedByTeam1andOnRoundStartOwnedByTeam2outputs, then applies theStart Lockedkeyvalue's setting

Outputs

OnOwnerChangedToTeam1
Sent when owner is changed to RED.
OnOwnerChangedToTeam2
Sent when owner is changed to BLUE.
OnCapReset
Sent when owner is changed to neutral.
OnRoundStartOwnedByTeam1
Sent when a round is starting and the point is owned by RED.
OnRoundStartOwnedByTeam2
Sent when a round is starting and the point is owned by BLUE.
OnCapTeam1
Sent when RED capture this point.
OnCapTeam2
Sent when BLUE capture this point.
OnUnlocked
Sent when point unlocks.

See also

MvM