Timers: Difference between revisions

From SigMod
Jump to navigation Jump to search
No edit summary
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[File:Timers.png|thumb|Both timer templates shown above]]
[[File:Timers.png|thumb|Both timer templates shown above]]
Two timer templates that can be added to any potato mission.  One is text based while the other utilizes the Halloween boss health bar.
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 <code>#base reverse_timer_text.pop</code> to the top of your popfile
# Trigger <code>realtimer</code> using a WaveSpawn output such as FirstSpawnOutput
# Send the <code>CancelPending</code> input to <code>realtimer</code> instead of <code>Trigger</code> to pause the timer, it can be restarted by re-triggering
 
=== Boss Bar Timer ===
 
# Add the template to your mission by adding <code>#base reverse_timer.pop</code> to the top of your popfile
# Add <code>SpawnTemplate "timertest" [$SIGSEGV]</code> to WaveSchedule, same place as StartingCurrency
# Trigger <code>showtimer</code> using a WaveSpawn output such as FirstSpawnOutput to display the bar on the HUD
# Trigger <code>timer_relay</code> to begin the countdown
# Send the <code>CancelPending</code> input to <code>timer_relay</code> instead of <code>Trigger</code> to pause the timer, it can be restarted by re-triggering
 
''Boss bar limitations:''
 
# <small>Only one Tank/Chief boss bar can be present at once without overlapping</small>
# <small>Overrides Halloween boss bar, meaning a Halloween boss cannot be used alongside this</small>
# <small>Size of the bar cannot be changed, only the rate it decreases</small>
 
== 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

Revision as of 03:54, 27 February 2022

Both timer templates shown above

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

  1. Add the template to your mission by adding #base reverse_timer_text.pop to the top of your popfile
  2. Trigger realtimer using a WaveSpawn output such as FirstSpawnOutput
  3. Send the CancelPending input to realtimer instead of Trigger to pause the timer, it can be restarted by re-triggering

Boss Bar Timer

  1. Add the template to your mission by adding #base reverse_timer.pop to the top of your popfile
  2. Add SpawnTemplate "timertest" [$SIGSEGV] to WaveSchedule, same place as StartingCurrency
  3. Trigger showtimer using a WaveSpawn output such as FirstSpawnOutput to display the bar on the HUD
  4. Trigger timer_relay to begin the countdown
  5. Send the CancelPending input to timer_relay instead of Trigger to pause the timer, it can be restarted by re-triggering

Boss bar limitations:

  1. Only one Tank/Chief boss bar can be present at once without overlapping
  2. Overrides Halloween boss bar, meaning a Halloween boss cannot be used alongside this
  3. 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