add:
{
	"origin" "-12484 6612 -1164"
	"targetname" "TheCurrentLevelPlugin"
	"min" "1"
	"max" "2"
	"startvalue" "1"
	"classname" "math_counter"
}

modify:
{
	match:
	{
		"targetname" "SwitchSpawns"
		"classname" "logic_branch"
	}
	insert:
	{
		"OnFalse" "TheCurrentLevelPlugin,SetValue,1,0,1"
		"OnTrue" "TheCurrentLevelPlugin,SetValue,2,0,1"
	}
}



;; _

;; stage 2 - sped up heli, so zombies can't infect under it

modify:
{
	match:
	{
		"targetname" "EndingHeliPath1"
		"classname" "path_track"
	}
	replace:
	{
		"speed" "0"
	}
}
modify:
{
	match:
	{
		"targetname" "EndingHeliPath2"
		"classname" "path_track"
	}
	replace:
	{
		"speed" "310"
	}
}

;; stage 2 - delay nuke, zm check

modify:
{
	match:
	{
		"targetname" "EndingHeliPath4"
		"classname" "path_track"
	}
	delete:
	{
		"OnPass" "Console,Command,say ** IT'S GOING TO BLOW!!! **,1,1"
		"OnPass" "Console,Command,say ** COVER YOUR EYES! THE NUCLEAR WARHEAD IS COMING! **,0,1"
		"OnPass" "NuclearExplosionRelay,Trigger,,4,1"
		"OnPass" "FinalNuke,Enable,,6,1"
		"OnPass" "ZombieDetectorSecondStage,Enable,,4,1"
		"OnPass" "ZombieDetectorSecondStage,Disable,,5,1"
		"OnPass" "ChangeLevelSecondStage,Trigger,,6,1"
	}
}
modify:
{
	match:
	{
		"targetname" "EndingHeliPath6"
		"classname" "path_track"
	}
	insert:
	{
		"OnPass" "Console,Command,say ** IT'S GOING TO BLOW!!! **,1,1"
		"OnPass" "Console,Command,say ** COVER YOUR EYES! THE NUCLEAR WARHEAD IS COMING! **,0,1"
		"OnPass" "NuclearExplosionRelay,Trigger,,4,1"
		"OnPass" "FinalNuke,Enable,,6,1"
		"OnPass" "ZombieDetectorSecondStage,Enable,,4,1"
		"OnPass" "ZombieDetectorSecondStage,Disable,,5,1"
		"OnPass" "ChangeLevelSecondStage,Trigger,,6,1"
	}
}



