Team round timer
From Valve Developer Community
Revision as of 13:46, 28 September 2007 by Baliame
Round Timer. Timer starts paused by default.
This point entity is exclusive to Team Fortress 2.
- <int> Initial timer length. (in seconds)
- <int> Maximum timer length (0 = no max). This value is used to ensure the timer never goes above this value when SetTime and AddTime are used. (in seconds)
- <boolean> Should the timer start paused? (will need to send a Resume input to start the timer if this is set).
- <int> Length of setup time before the round begins and the timer starts to countdown the normal time. (0 = no setup time) Setup time is run at the beginning of every round before the normal time begins. (in seconds)
- <boolean> Reset the timer time after a round restart. This is not the setup time, but the normal round time.
- <boolean> Let the timer automatically count down the end of a round.
- <boolean> Note: You can only show one timer in the HUD at a time.
- Pause the timer.
- Resume the timer.
- <int> Set the timer to this value (in seconds).
- <int> Add time to the timer (in seconds). Added time cannot excede the max timer length.
- <string> Input takes a string (space delimited) with the team number and the time to be added (in seconds) because of the team (2 for red, 3 for blue, and 0 for no team...but you could just use AddTime for that). Added time cannot excede the max timer length. Example: 2 600 (adds 10 minutes because of team red)
- Restart the timer.
- <int> Show this timer in the HUD (0 no, 1 yes).
- <int> Set the max timer length to this value (in seconds). The timer's time will never excede this value.
- <int> Turn off/on the auto countdown feature (0 no, 1 yes).
- <int> Set the setup time length to this value (in seconds).
- Template:O targetname
- Sent when 5 minutes remain.
- Sent when 4 minutes remain.
- Sent when 3 minutes remain.
- Sent when 2 minutes remain.
- Sent when 1 minutes remain.
- Sent when 30 seconds remain.
- Sent when 10 seconds remain.
- Sent when 5 seconds remain.
- Sent when 4 seconds remain.
- Sent when 3 seconds remain.
- Sent when 2 seconds remain.
- Sent when 1 second remains.
- Sent when the round starts.
- Sent when the timer is finished.
- Sent when the setup time begins.
- Sent when the setup time is finished.