Ah right. Those are scripted! Some of the waves spawn when you reach a certain amount of kills in a level while the others trigger when you enter an area.