Tf logic cp timer: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎top: clean up, added underlinked tag)
(Added a warning about a bug regarding the OnCountdownStart output.)
Line 2: Line 2:
{{lang|Tf logic cp timer}}
{{lang|Tf logic cp timer}}
{{tf2 point|tf_logic_cp_timer}} It runs a timeout timer for a [[team_control_point|control point]] and adds itself to the HUD for that point. This entity is used for DeGroot Keep's final point.
{{tf2 point|tf_logic_cp_timer}} It runs a timeout timer for a [[team_control_point|control point]] and adds itself to the HUD for that point. This entity is used for DeGroot Keep's final point.
{{bug|When The assigned control point is captured, the logic tied to <code>OnCountdownStart</code> will be ran extremely quickly, roughly every 20 ticks. Make sure all logic tied to this entities outputs are controlled by [[logic_relay|logic_relays]], as the logic inside ''those'' will not be triggered.}}


==Keyvalues==
==Keyvalues==

Revision as of 04:34, 5 March 2024

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)

Team Fortress 2 tf_logic_cp_timer is a point 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.

Icon-Bug.pngBug: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.  [todo tested in ?]

Keyvalues

TeamNum:
Initial Team (TeamNum) <choices>
Which Team the entity belongs / is assigned to on spawn
  • 0: None
  • 1: Spectator/Halloween Souls Team Fortress 2
  • 2: RED Team Fortress 2
  • 3: BLU/Robots Team Fortress 2
  • 5: Halloween Bosses (only in Team Fortress 2) !FGD
Control Point ([todo internal name (i)]) <string>
The control point the timer applies to
Timer length (in seconds) ([todo internal name (i)]) <integer>
How long the timer should be, in seconds.

Inputs

Outputs

OnCountdownStart
The countdown has begun, since the control point is now available for capture.
OnCountdownEnd
The time has counted down and the capture point is no longer eligible for overtime.