Trigger capture area: Difference between revisions
Jump to navigation
Jump to search
Bug:The HUD will show the waiting for teammate message if the control point is currently disabled. [todo tested in ?]
Robotboy655 (talk | contribs) m (Consistency with all other pages) |
|||
Line 27: | Line 27: | ||
==Inputs== | ==Inputs== | ||
{{I Targetname}} | |||
{{I EnableDisable}} | |||
'''SetTeam''' | |||
: <integer> Changes the entity's team. | : <integer> Changes the entity's team. | ||
'''SetTeamCanCap''' | |||
: <string> Set whether a specific team is allowed to capture this point. Format is: <team number> <(0/1)>. i.e. '2 0' would prevent RED from capturing this point, whereas '3 1' would allow BLU to cap it. | : <string> Set whether a specific team is allowed to capture this point. Format is: <team number> <(0/1)>. i.e. '2 0' would prevent RED from capturing this point, whereas '3 1' would allow BLU to cap it. | ||
==Outputs== | ==Outputs== | ||
{{O Targetname}} | |||
'''OnStartTeam1''' | |||
: Sent when RED start capture. | : Sent when RED start capture. | ||
'''OnBreakTeam1''' | |||
: Sent when a RED capture is broken. Note that the capture progress on a point must be completely drained for the capture to be considered broken. | : Sent when a RED capture is broken. Note that the capture progress on a point must be completely drained for the capture to be considered broken. | ||
'''OnCapTeam1''' | |||
: Sent when RED captures. | : Sent when RED captures. | ||
'''OnStartTeam2''' | |||
: Sent when BLU start capture. | : Sent when BLU start capture. | ||
'''OnBreakTeam2''' | |||
: Sent when a BLU capture is broken. | : Sent when a BLU capture is broken. | ||
'''OnCapTeam2''' | |||
: Sent when BLU captures. | : Sent when BLU captures. | ||
'''OnStartCap''' | |||
: Sent when either team starts capture. | : Sent when either team starts capture. | ||
'''OnBreakCap''' | |||
: Sent when either team breaks capture. | : Sent when either team breaks capture. | ||
'''OnEndCap''' | |||
: Sent when either team captures. | : Sent when either team captures. | ||
'''OnNumCappersChanged''' | |||
: Sent when the number of people in the capture area changes. The output value is the number of capturing players. {{TODO|What about no players and blocking players?}} | : Sent when the number of people in the capture area changes. The output value is the number of capturing players. {{TODO|What about no players and blocking players?}} | ||
<noinclude> | <noinclude> |
Revision as of 11:04, 31 July 2015
Entity Description
Capture area for a team_control_point to make a capture point.

Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
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 the
Enable
input).
- Control point ([todo internal name (i)]) <targetname>
- Name of the control point this area is linked to.
- Number of RED players to cap ([todo internal name (i)]) <integer>
- Number of RED players needed to begin capturing this point. If not enough players are present, the point will say "Waiting for teammate."
- Number of BLU players to cap ([todo internal name (i)]) <integer>
- Number of BLU players needed to begin capturing this point. If not enough players are present, the point will say "Waiting for teammate."
- RED Spawn Adjust ([todo internal name (i)]) <integer>
- Adjust the minimum respawn time for the RED team by this amount (in seconds) when RED captures this point. If the RED team owns this point when BLU captures it, this adjustment is reversed.
- BLU Spawn Adjust ([todo internal name (i)]) <integer>
- Adjust the minimum respawn time for the BLU team by this amount (in seconds) when BLU captures this point. If the BLU team owns this point when RED captures it, this adjustment is reversed.
Inputs
EnableDisable:
- Enable / Disable
- Enable/disable this entity from performing its task. It might also disappear from view.
SetTeam
- <integer> Changes the entity's team.
SetTeamCanCap
- <string> Set whether a specific team is allowed to capture this point. Format is: <team number> <(0/1)>. i.e. '2 0' would prevent RED from capturing this point, whereas '3 1' would allow BLU to cap it.
Outputs
OnStartTeam1
- Sent when RED start capture.
OnBreakTeam1
- Sent when a RED capture is broken. Note that the capture progress on a point must be completely drained for the capture to be considered broken.
OnCapTeam1
- Sent when RED captures.
OnStartTeam2
- Sent when BLU start capture.
OnBreakTeam2
- Sent when a BLU capture is broken.
OnCapTeam2
- Sent when BLU captures.
OnStartCap
- Sent when either team starts capture.
OnBreakCap
- Sent when either team breaks capture.
OnEndCap
- Sent when either team captures.
OnNumCappersChanged
- Sent when the number of people in the capture area changes. The output value is the number of capturing players. Todo: What about no players and blocking players?