add:
{
	"origin" "-896 192 320"
	"targetname" "TheCurrentLevelPlugin"
	"min" "1"
	"max" "3"
	"startvalue" "1"
	"classname" "math_counter"
}


modify:
{
	match:
	{
		"targetname" "Chapter1Relay"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "TheCurrentLevelPlugin,SetValue,1,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "Chapter2Relay"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "TheCurrentLevelPlugin,SetValue,2,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "Chapter3Relay"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "TheCurrentLevelPlugin,SetValue,3,0,1"
	}
}

;-----------------------
;-----MARATHON MODE-----
;-----------------------

modify:
{
	match:
	{
		"classname" "logic_auto"
	}
	insert:
	{
		"OnMapSpawn" "Console,Command,mp_roundtime 30,0,-1"
	}
	delete:
	{
		"OnMapSpawn" "Chapter2Relay,Trigger,,1.5,-1"
		"OnMapSpawn" "Chapter3Relay,Trigger,,1.5,-1"
	}
}

filter:
{
	"classname"	"trigger_multiple"
	"targetname" "Chapter1ZombieEndingChecker"
}
filter:
{
	"classname" "trigger_multiple"
	"targetname" "Chapter2ZombieEndingChecker"
}
filter:
{
	"classname" "logic_relay"
	"targetname" "LevelUpChapter1Relay"
}
filter:
{
	"classname" "logic_relay"
	"targetname" "LevelUpChapter2Relay"
}
filter:
{
	"classname" "trigger_hurt"
	"targetname" "Chapter1Nuke"
}
filter:
{
	"classname" "trigger_hurt"
	"targetname" "Chapter2Nuke"
}
filter:
{
	"classname" "info_particle_system"
	"targetname" "Chapter1EndExplosion"
}
filter:
{
	"classname" "prop_dynamic_override"
	"targetname" "C4Model"
}
filter:
{
	"classname" "info_particle_system"
	"targetname" "C4Explosion"
}
filter:
{
	"classname" "env_sprite"
	"targetname" "C4Sprite"
}
filter:
{
	"classname" "logic_case"
	"targetname" "C4Decoder"
}
filter:
{
	"classname" "math_counter"
	"targetname" "C4Counter"
}
filter:
{
	"classname" "logic_timer"
	"targetname" "C4Timer"
}
filter:
{
	"classname" "ambient_generic"
	"targetname" "C4Beep"
}
filter:
{
	"classname" "ambient_generic"
	"targetname" "C4Boom"
}
filter:
{
	"classname" "ambient_generic"
	"targetname" "C4Boom2"
}
filter:
{
	"classname" "ambient_generic"
	"targetname" "C4Noise"
}

modify:
{
	match:
	{
		"classname" "func_door"
		"targetname" "Chapter1FinalElevator"
	}
	delete:
	{
		"OnOpen" "CCEffectsEnergyLoad,FireUser1,,8.5,1"
		"OnOpen" "CCEffectsHighContrast,FireUser1,,8.5,1"
		"OnOpen" "Explosion,PlaySound,,8.5,1"
	}
	insert:
	{
		"OnFullyOpen" "Chapter2Relay,Enable,,0,1"
		"OnFullyOpen" "Chapter2Relay,Trigger,,2,1"
	}
}

add:
{
	"model" "*135"
	"classname" "trigger_teleport"
	"targetname" "teleport_ch1_to_ch2_marathon"
	"origin" "11008 7200 2928"
	"spawnflags" "1"
	"StartDisabled" "1"
	"target" "Chapter2SpawnDestination"
}

modify:
{
	match:
	{
		"classname" "logic_relay"
		"targetname" "Chapter2Relay"
	}
	delete:
	{
		"OnTrigger" "Console,Command,exec antartika/ch2,0,-1"
		"OnTrigger" "Console,Command,exec antartika/ch2_overwrite,1,-1"
		"OnTrigger" "Chapter2SpawnTeleport,Enable,,0,-1"
	}
	insert:
	{
		"OnTrigger" "Chapter2SpawnTeleport,Enable,,10,-1"
		"OnTrigger" "teleport_ch1_to_ch2_marathon,Enable,,10,-1"
		"OnTrigger" "Chapter1Song3,Volume,0,0,-1"
	}
}

modify:
{
	match:
	{
		"classname" "func_door"
		"targetname" "FinalChapter2Door"
	}
	delete:
	{
		"OnFullyOpen" "Console,Command,say ** We need to hold! We'll place charges on this bridge for it to blow up! **,4,-1"
		"OnFullyOpen" "Console,Command,say ** The bomb is being planted! Don't let them past the middle of the bridge! *,12,-1"
	}
	insert:
	{
		"OnFullyOpen" "Chapter3Relay,Enable,,0,1"
		"OnFullyOpen" "Chapter3Relay,Trigger,,25,1"
		"OnFullyOpen" "Chapter2Song3,Volume,0,20,1"
	}
}

add:
{
	"model" "*135"
	"classname" "trigger_teleport"
	"targetname" "teleport_ch2_to_ch3_marathon"
	"origin" "5888 8224 4600"
	"spawnflags" "1"
	"StartDisabled" "1"
	"target" "CliffBTeleport"
}

modify:
{
	match:
	{
		"classname" "logic_relay"
		"targetname" "Chapter3Relay"
	}
	delete:
	{
		"OnTrigger" "Console,Command,exec antartika/ch3,0,-1"
		"OnTrigger" "Console,Command,exec antartika/ch3_overwrite,1,-1"
		"OnTrigger" "CliffBTeleport,AddOutput,origin 6928 9768 4532,0,-1"
	}
	insert:
	{
		"OnTrigger" "teleport_ch2_to_ch3_marathon,Enable,,0,-1"
	}
}

modify:
{
	match:
	{
		"classname" "path_track"
		"targetname" "HeliTrack30"
	}
	insert:
	{
		"OnPass" "Console,Command,say ** YOU COMPLETED MARATHON MODE IN BLIZZARD MODE **,2,-1"
	}
}

;-----------------------
;-----BLIZZARD MODE-----
;-----------------------

modify:
{
	match:
	{
		"classname" "logic_relay"
		"targetname" "DecodeCvarsRelay"
	}
	delete:
	{
		"OnTrigger" "Setting1,Disable,,2,-1"
	}
}

modify:
{
	match:
	{
		"classname" "logic_relay"
		"targetname" "Chapter1Relay"
	}
	insert:
	{
		"OnTrigger" "BlizardModeRelay,Trigger,,0,-1"
	}
	delete:
	{
		"OnTrigger" "Console,Command,exec antartika/ch1,0,-1"
		"OnTrigger" "Console,Command,exec antartika/ch1_overwrite,1,-1"
	}
}

modify:
{
	match:
	{
		"classname" "logic_relay"
		"targetname" "BlizardModeRelay"
	}
	delete:
	{
		"OnTrigger" "Console,Command,exec antartika/blizard,6,-1"
		"OnTrigger" "Console,Command,exec antartika/blizard_overwrite,6.2,-1"
	}
	insert:
	{
		"OnTrigger" "Console,Command,zr_respawn 1,3,-1"
		"OnTrigger" "Console,Command,zr_respawn_delay 3,3,-1"
		"OnTrigger" "Console,Command,zr_respawn_team_zombie 1,3,-1"
		"OnTrigger" "Console,Command,zr_respawn_team_zombie_world 1,3,-1"
		"OnTrigger" "Console,Command,zr_class_modify zombies health 4 1,3,-1"
		"OnTrigger" "Console,Command,zr_class_modify zombies speed 1.05 1,3,-1"
		"OnTrigger" "Console,Command,zr_class_modify zombies knockback 0.8 1,3,-1"
	}
}
