local testIndefinitiveWave = { { Name = "1a", Where = "spawnbot", WaitBeforeStarting = 9999999, WaitBetweenSpawns = 0, TotalCount = 1, SpawnCount = 1, MaxActive = 1, TotalCurrency = 0, Templates = { { Class = CLASSES.Scout, Health = 1, }, }, }, } local allWaves = { [1] = testIndefinitiveWave, } local missionInfo = { PopfileNameDisplay = "strange test", SentryBusterWaitBeforeStarting = 10000, SentryBusterDamageDealtThreshold = 100000000, } local function waveStart(wave) if allWaves[wave] then RunWave(allWaves[wave]) end end local function waveInit(wave) InitMission(missionInfo) local waveData = allWaves[wave] if waveData then ParseWave(waveData, false) WaveBarGen(waveData) end end if OnWaveStartFuncs then table.insert(OnWaveStartFuncs, waveStart) else function OnWaveStart(wave) waveStart(wave) end end if OnWaveInitFuncs then table.insert(OnWaveInitFuncs, waveInit) else function OnWaveInit(wave) waveInit(wave) end end