Team control point round: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Updated with data from tf-abs.fgd)
Line 1: Line 1:
{{wrongtitle|title=team_control_point_round}}
{{tf2 point|team_control_point_round}}
{{Tf2 point}}


== Entity description ==
==Entity description==
Control Point Round (you may have as many of these in the map as you would like). <!-- more like, assumes command over master -->
Control Point Round (you may have as many of these in the map as you would like).


== Keyvalues ==
==Keyvalues==
* {{KV Targetname}}
{{KV Targetname}}
* {{KV EnableDisable}}
{{KV EnableDisable}}
* '''cpr_printname'''
{{KV|Priority|integer|The priority value for this round (must be >{{=}} 0). Higher priority rounds will be picked first. If multiple rounds have the same priority value, a random selection will be used.}}
: <string> LOCALIZED name to print on the RoundInfo panel
{{KV|Restrict team from winning|choices|Prevent this team from winning by capping all the points}}
* '''cpr_priority'''
:* 0 : Neither
: <integer> The priority value for this round (must be >= 0). Higher priority rounds will be picked first. If multiple rounds have the same priority value, a random selection will be used.
:* 1 : Both
* '''cpr_restrict_team_cap_win'''
:* 2 : Red
: <choices> Prevent this team from winning by capping all the points. Overrides the <code>cpm_restrict_team_cap_win</code> setting in [[team_control_point_master]].
:* 3 : Blue
:{| class=standard-table
! Literal Value || Description
|-
| 0 || Neither
|-
| 2 || RED
|-
| 3 || BLU
|}
* '''cpr_cp_names'''
: <string> Names of the control points included in this round (space delimited). Control points may belong to more than one control point round. The names of the control points (and the rounds) should all be unique.


<!--
==Inputs==
== Flags ==
{{I Targetname}}
This entity doesn't have any flags.
{{I EnableDisable}}
-->


== Inputs ==
==Outputs==
* {{I Targetname}}
{{O Targetname}}
* {{I EnableDisable}}
{{IO|OnStart|Sent when this round is selected to be played.}}
 
{{IO|OnEnd|Sent when this round is finished.}}
== Outputs ==
{{IO|OnWonByTeam1|Sent when RED wins this round.}}
* {{O Targetname}}
{{IO|OnWonByTeam2|Sent when BLUE wins this round.}}
* '''OnWonByTeam1'''
: Sent when RED wins the game.
* '''OnWonByTeam2'''
: Sent when BLUE wins the game.
* '''OnStart'''
: Sent when this round is selected to be played.
* '''OnEnd'''
: Sent when this round is finished.


== See also ==
== See also ==
Line 50: Line 29:
* [[team_control_point_master]]
* [[team_control_point_master]]
* [[TF2/Creating a Linear Gameplay Map]]
* [[TF2/Creating a Linear Gameplay Map]]
[[Category:Team Fortress 2 Entities]]

Revision as of 22:15, 9 May 2011

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

Entity description

Control Point Round (you may have as many of these in the map as you would like).

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

Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).
Priority ([todo internal name (i)]) <integer>
The priority value for this round (must be >= 0). Higher priority rounds will be picked first. If multiple rounds have the same priority value, a random selection will be used.
Restrict team from winning ([todo internal name (i)]) <choices>
Prevent this team from winning by capping all the points
  • 0 : Neither
  • 1 : Both
  • 2 : Red
  • 3 : Blue

Inputs

EnableDisable:

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

Outputs

OnStart
Sent when this round is selected to be played.
OnEnd
Sent when this round is finished.
OnWonByTeam1
Sent when RED wins this round.
OnWonByTeam2
Sent when BLUE wins this round.

See also