Prep for July 4th

Added in the necessary hooks to the daily challenge system for the July
4th event.
This commit is contained in:
Robert Fritzen 2017-07-02 22:29:53 -05:00
parent 04f85e58a6
commit 66218bf83b
5 changed files with 230 additions and 203 deletions

View file

@ -427,6 +427,12 @@ function HordeNextWave(%game, %wave) {
$HordeGame::RevivesLeft++;
}
$HordeGame::CurrentWave = %wave;
for(%i = 0; %i < ClientGroup.getCount(); %i++) {
%cl = ClientGroup.getObject(%i);
if(%wave != 1) {
recordAction(%cl, "HORDEWAVE", %wave-1);
}
}
HordeKillAllZombies(); //Cleans up the server
if($HordeGame::CurrentWave == 51) { //Victory
for (%i = 0; %i < ClientGroup.getCount(); %i++) {