Timers
Two 15 minute timer templates that will fail the wave once reaching zero. One is text based while the other utilizes the Halloween boss health bar. Instructions on how to change the countdown time can be found in the template files listed below.
How to use
Both timers are simple to use and can be added into any mission running on our servers.
Text-Based Timer
- Add the template to your mission by adding
#base reverse_timer_text_v2_simple.popto the top of your popfile - Add this block to WaveSchedule, same place as StartingCurrency
PointTemplates { texttimerv2_setup { OnSpawnOutput { Target timerdisplay Action runscriptcode Param "timer(10,00,0.7,0.9,`0 255 255`)" // timer(minutes,seconds,xpos,ypos,`color`) } } } SpawnTemplate texttimerv2_setup [$SIGSEGV]
- Change the Param if needed for time duration, the timer's position on the hud, and the timer text's color
Trigger timerpause using a WaveSpawn output such as FirstSpawnOutput to pause or unpause the timer
Send a SetValue input on addtime to add or remove time from the current timer (e.g. SetValue 120 with a time 3:25 becomes 5:25)
Send a SetValue input on settime to set the desired time (e.g SetValue 600 with a time 3:25 becomes 10:00)
Boss Bar Timer
- Add the template to your mission by adding
#base reverse_timer.popto the top of your popfile - Add
SpawnTemplate "timertest" [$SIGSEGV]to WaveSchedule, same place as StartingCurrency - Trigger
showtimerusing a WaveSpawn output such as FirstSpawnOutput to display the bar on the HUD - Trigger
timer_relayto begin the countdown - Send the
CancelPendinginput totimer_relayinstead ofTriggerto pause the timer, it can be restarted by re-triggering
Boss bar limitations:
- Only one Tank/Chief boss bar can be present at once without overlapping
- Overrides Halloween boss bar, meaning a Halloween boss cannot be used alongside this
- Size of the bar cannot be changed, only the rate it decreases
Templates
Text based timer: https://testing.potato.tf/tf/scripts/population/reverse_timer_text.pop
Boss bar timer: https://testing.potato.tf/tf/scripts/population/reverse_timer.pop