Team control point round: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
 Tip:Use this entity's
Tip:Use this entity's 
		
	
| No edit summary |  (Added CPP file, because TF2 SDK.) | ||
| (23 intermediate revisions by 11 users not shown) | |||
| Line 1: | Line 1: | ||
| {{ | {{CD|CTeamControlPointRound|file1=team_control_point_round.cpp}} | ||
| ==Entity  | {{this is a|logical entity|name=team_control_point_round|game=Team Fortress 2}} | ||
| {{stray ent|{{hl2dm}}}} | |||
| ==Entity description== | |||
| This entity tells the game how to split your map into rounds, with each entity describing a single round. You may have as many of these in the map as you would like. This entity is required on multi-stage maps like Dustbowl and Goldrush. {{tip|Use this entity's <code>OnStart</code> and <code>OnEnd</code> outputs to control spawnrooms and block off any areas of the map that aren't used in the relevant round.}} | |||
| == | ==Keyvalues== | ||
| {{KV Targetname}} | |||
| {{KV StartDisabled}} | |||
| {{KV|Print Name|string|LOCALIZED name to print on the RoundInfo panel}} | |||
| {{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.}} | |||
| {{KV|Control points in this round|string|Targetnames 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.}} | |||
| {{KV|Restrict team from winning|choices|Prevent this team from winning by capping all the points}} | |||
| :* 0 : Neither | |||
| :* 1 : Both | |||
| :* 2 : Red | |||
| :* 3 : Blue | |||
| ==Inputs== | ==Inputs== | ||
| {{I Targetname}} | |||
| {{I EnableDisable}} | |||
| ==Outputs== | ==Outputs== | ||
| {{O Targetname}} | |||
| {{O|OnStart|Sent when this round is selected to be played.}} | |||
| {{O|OnEnd|Sent when this round is finished.}} | |||
| {{O|OnWonByTeam1|Sent when RED wins this round.}} | |||
| {{O|OnWonByTeam2|Sent when BLUE wins this round.}} | |||
| ==See  | == See also == | ||
| * [[team_control_point]] | * [[team_control_point]] | ||
| * [[team_control_point_master]] | * [[team_control_point_master]] | ||
| * [[TF2/Creating a Linear Gameplay Map]] | |||
| [[ | |||
Latest revision as of 09:14, 13 October 2025
|  Class hierarchy | 
|---|
| CTeamControlPointRound | 
|  team_control_point_round.cpp | 
team_control_point_round  is a   logical entity  available in  Team Fortress 2.
 Team Fortress 2.
Entity description
This entity tells the game how to split your map into rounds, with each entity describing a single round. You may have as many of these in the map as you would like. This entity is required on multi-stage maps like Dustbowl and Goldrush.
 Tip:Use this entity's
Tip:Use this entity's OnStart and OnEnd outputs to control spawnrooms and block off any areas of the map that aren't used in the relevant round.Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentnameortarget).
 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.
- Control points in this round ([todo internal name (i)]) <string>
- Targetnames 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.
- 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.

