-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathrespawnTimer.ser
More file actions
31 lines (23 loc) · 1.18 KB
/
Copy pathrespawnTimer.ser
File metadata and controls
31 lines (23 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Disabled by default: remove # from the filename to enable this script.
# this script will show the remaining time for respawn waves
!-- OnEvent RoundStarted
$separator = " "
# forever loop makes it continue until the server restarts
# so we dont have to worry about the respawn timer stopping
forever
wait 1s
# fetch duration to next wave for chaos
$chaosWave = FormatDuration {GetWaveTimer chaosWave} "MMm SSs"
$miniChaosWave = FormatDuration {GetWaveTimer miniChaosWave} "MMs SSs"
# fetch duration to next wave for mtf
$mtfWave = FormatDuration {GetWaveTimer mtfWave} "MMm SSs"
$miniMtfWave = FormatDuration {GetWaveTimer miniMtfWave} "MMs SSs"
# create the hint to be sent to spectators
$hint = "<size=30>respawn waves:<br></size><size=20>"
$hint = $hint + "<color=#008F1C>Chaos Wave - {$chaosWave}</color>" + $separator
$hint = $hint + "<color=#0096FF>MTF Wave - {$mtfWave}</color><br>"
$hint = $hint + "<color=#008F1C>Mini Chaos Wave - {$miniChaosWave}</color>" + $separator
$hint = $hint + "<color=#0096FF>Mini MTF Wave - {$miniMtfWave}</color><br>"
# send the hint to spectators
Hint @spectatorPlayers 2s $hint
end