tf_logic_cp_timer

From Valve Developer Community
Jump to navigation Jump to search
Underlinked - Logo.png
This article needs more Wikipedia icon links to other articles to help Wikipedia icon integrate it into the encyclopedia. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024
English (en)Translate (Translate)
Class hierarchy
CCPTimerLogic
CPointEntity
CBaseEntity
tf_gamerules.cpp

tf_logic_cp_timer is a logical entity available in Team Fortress 2 Team Fortress 2. It runs a timeout timer for a control point and adds itself to the HUD for that point. This entity is used for DeGroot Keep's final 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 or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Control Point (controlpoint) <targetname>
The team_control_point associated with this timer.
Timer length (in seconds) (timer_length) <integer>
Length of the timer that runs when the control point becomes available for capture.
Team (team_number) <integer choices>
  • 0: Any
  • 2: Red
  • 3: Blue

Outputs

OnCountdownStart <void>
!activator = !caller = this entity
The countdown has begun, since the control point is now available for capture.
Warning.pngWarning:When The assigned control point is captured, the logic tied to OnCountdownStart will be ran extremely quickly, roughly every 20 ticks. Make sure all logic tied to this entities outputs are controlled by logic_relays, as the logic inside those will not be triggered.
OnCountdownEnd <void>
!activator = !caller = this entity
The time has counted down and the capture point is no longer eligible for overtime.


Confirm:Following outputs seem unused
OnCountdown15SecRemain <void>
Sent when 15 seconds remain.
OnCountdown10SecRemain <void>
Sent when 10 seconds remain.
OnCountdown5SecRemain <void>
Sent when 5 seconds remain.