How to check if warmup is running?
Posted: Sat May 23, 2015 1:47 pm
by Mahi
^ this
Posted: Sat May 23, 2015 2:00 pm
by Ayuto
Posted: Sat May 23, 2015 2:10 pm
by satoon101
If you have access to the server's console, you can use the following to print out events as they happen:
Posted: Sat May 23, 2015 4:18 pm
by Mahi
Ahh of course, didn't realize events would be fired. Thanks guys

!
EDIT: Any method to completely just disable the plugin during warmup? I find it rather stupid to have "if warmup:" everywhere and then set the warmup variable in those events.
Posted: Sat May 23, 2015 4:57 pm
by Ayuto
You could write another plugin that unloads your plugin when warmup has started and loads it again if warmup is over.
Posted: Wed May 27, 2015 5:27 am
by satoon101
To accurately know if the warmup round is going, without having to track it yourself with events, you could find the signature/symbol for CCSGameRules::IsWarmupPeriod. Once you have that, you can call that function to get the current boolean value.