;-------------------------
; GENERAL: ADD GLOBAL TERRORIST FILTER
;-------------------------
add:
{
	"classname" "filter_activator_team"
	"targetname" "MapFilterT"
	"filterteam" "2"
}
;-------------------------
; SPAWN: REMOVE TRIGGER FOR MUSIC, USES LOGIC_AUTO INSTEAD
;-------------------------
filter:
{
	"model" "*60"
	"hammerid" "186957"
	"classname" "trigger_once"
}
;-------------------------
; FIRST ELEVATOR: TRIGGER OUTPUTS
;-------------------------
modify:
{
	match:
	{
		"model" "*58"
		"hammerid" "71594"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "OriginalElevator,Open,,20,-1"
		"OnStartTouch" "Command,Command,say **THE ELEVATOR WILL GO UP IN 20 SECONDS!!**,0,-1"
		"OnStartTouch" "Command,Command,say **THE ELEVATOR IS GOING UP!**,20,-1"
		"OnStartTouch" "1stage,Open,,0,-1"
	}
	insert:
	{
		"OnTrigger" "1stage,Open,,0,1"
		"OnTrigger" "Command,Command,say **THE ELEVATOR WILL GO UP IN 20 SECONDS!!**,0,1"
		"OnTrigger" "OriginalElevator,Open,,20,1"
		"OnTrigger" "Command,Command,say **THE ELEVATOR IS GOING UP!**,20,1"
	}
}
;-------------------------
; POST FIRST ELEVATOR: REMOVE ENABLE TELEPORT TRIGGERS. (MOVED TO ELEVATOR)
;-------------------------
filter:
{
	"model" "*67"
	"hammerid" "169136"
	"classname" "trigger_once"
}
filter:
{
	"model" "*69"
	"hammerid" "215717"
	"classname" "trigger_once"
}
;-------------------------
; POST FIRST ELEVATOR: MAKE ELEVATOR UNBLOCKABLE + ENABLE TELEPORT FROM ELEVATOR
;-------------------------
modify:
{
	match:
	{
		"model" "*63"
		"hammerid" "71604"
		"classname" "func_movelinear"
	}
	replace:
	{
		"blockdamage" "10000"
	}
	insert:
	{
		"OnFullyOpen" "mapbeginningtele,Enable,,15,1"
		"OnFullyOpen" "Command,Command,say **The zombies will teleport to the elevator in 15 seconds!**,0,1"
	}
}
;-------------------------
; FIRST DOOR: BUTTON OUTPUTS
;-------------------------
modify:
{
	match:
	{
		"model" "*59"
		"hammerid" "49137"
		"classname" "func_button"
	}
	delete:
	{
		"OnPressed" "1stage1door,Open,,20,-1"
		"OnPressed" "Command,Command,say >>>Door opens in 20 seconds<<<,0,-1"
		"OnPressed" "Command,Command,say '**THE DOOR IS OPEN! GO GO GO!**',20,-1"
	}
	insert:
	{
		"OnPressed" "Command,Command,say **Door opens in 20 seconds**,0,1"
		"OnPressed" "1stage1door,Open,,20,1"
		"OnPressed" "Command,Command,say **THE DOOR IS OPEN! GO GO GO!**,20,1"
	}
}
;-------------------------
; SECOND DOOR: TRIGGER OUTPUTS
;-------------------------
modify:
{
	match:
	{
		"model" "*74"
		"hammerid" "65811"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "1stage2door,Open,,20,-1"
		"OnStartTouch" "Command,Command,say >>>Door opens in 20 seconds<<<,0,-1"
		"OnStartTouch" "Command,Command,say '***THE DOOR IS OPEN! GO GO GO!!!***',20,-1"
		"OnStartTouch" "secondteleport,Enable,,35,-1"
		"OnStartTouch" "Command,Command,say ''***The zombies will get teleported in 15 seconds!***'',20,-1"
	}
	insert:
	{
		"OnTrigger" "Command,Command,say **Door opens in 20 seconds**,0,1"
		"OnTrigger" "1stage2door,Open,,20,1"
		"OnTrigger" "Command,Command,say **THE DOOR IS OPEN! GO GO GO!!!**,20,1"
		"OnTrigger" "Command,Command,say **The zombies will get teleported in 15 seconds!**,20,1"
		"OnTrigger" "secondteleport,Enable,,35,1"
	}
}
;-------------------------
; FIRST LAVA PIT: FIX HURT TRIGGER + CHANGE FILTERS
;-------------------------
modify:
{
	match:
	{
		"model" "*49"
		"hammerid" "164809"
		"classname" "trigger_hurt"
	}
	replace:
	{
		"model" "*1"
		"origin" "-32 -4796 -10744"
		"filtername" "MapFilterCT"
	}
}
modify:
{
	match:
	{
		"model" "*1"
		"hammerid" "164734"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"filtername" "MapFilterT"
	}
}
filter:
{
	"hammerid" "164799"
	"classname" "filter_activator_team"
	"targetname" "lavahurt1filter"
}
filter:
{
	"hammerid" "164785"
	"classname" "filter_activator_team"
	"targetname" "lavatele1filter"
}
;-------------------------
; THIRD DOOR: TRIGGER OUTPUTS
;-------------------------
modify:
{
	match:
	{
		"model" "*57"
		"hammerid" "65846"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "1stage3door,Open,,20,-1"
		"OnStartTouch" "Command,Command,say >>>Door opens in 20 seconds<<<,0,-1"
		"OnStartTouch" "1movingbrush,Open,,0,-1"
		"OnStartTouch" "2movingbrush,Open,,0,-1"
		"OnStartTouch" "Command,Command,say >>>Door is open<<<,20,0"
	}
	insert:
	{
		"OnTrigger" "1movingbrush,Open,,0,1"
		"OnTrigger" "2movingbrush,Open,,0,1"
		"OnTrigger" "Command,Command,say **Door opens in 20 seconds**,0,1"
		"OnTrigger" "1stage3door,Open,,20,1"
		"OnTrigger" "Command,Command,say **Door is open**,20,1"
	}
}
;-------------------------
; FOURTH DOOR: BUTTON OUTPUTS
;-------------------------
modify:
{
	match:
	{
		"model" "*15"
		"hammerid" "65871"
		"classname" "func_button"
	}
	delete:
	{
		"OnPressed" "Command,Command,say 'The door for the bossfight opens in 10 seconds,0,0"
		"OnPressed" "1stage4door,Open,,10,0"
		"OnPressed" "Command,Command,say '**THE BOSSFIGHT DOOR IS OPEN! STOP DEFENDING AND GO FINISH THE BOSS!**',10,0"
	}
	insert:
	{
		"OnPressed" "Command,Command,say **The door for the bossfight opens in 10 seconds**,0,1"
		"OnPressed" "1stage4door,Open,,10,1"
		"OnPressed" "Command,Command,say **THE BOSSFIGHT DOOR IS OPEN! STOP DEFENDING AND GO FINISH THE BOSS!**,10,1"
	}
}
;-------------------------
; BOSS LAVA PIT: CHANGE FILTERS
;-------------------------
modify:
{
	match:
	{
		"model" "*55"
		"hammerid" "65784"
		"classname" "trigger_hurt"
	}
	replace:
	{
		"filtername" "MapFilterCT"
	}
}
modify:
{
	match:
	{
		"model" "*39"
		"hammerid" "164975"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"filtername" "MapFilterT"
	}
}
filter:
{
	"hammerid" "164847"
	"classname" "filter_activator_team"
	"targetname" "bosshurt1filter"
}
filter:
{
	"hammerid" "164840"
	"classname" "filter_activator_team"
	"targetname" "bosstele1filter"
}
;-------------------------
; BOSS LAVA PIT: CHANGE DESTINATION
;-------------------------
modify:
{
	match:
	{
		"model" "*39"
		"hammerid" "164975"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"target" "bosstele1destination"
	}
}
filter:
{
	"hammerid" "172992"
	"classname" "info_teleport_destination"
	"targetname" "1bosslavatp"
}
;-------------------------
; BOSS: MAKE BRIDGE ONLY BREAK ON TRIGGER
;-------------------------
modify:
{
	match:
	{
		"model" "*20"
		"hammerid" "60714"
		"classname" "func_breakable"
	}
	replace:
	{
		"spawnflags" "1"
	}
}
;-------------------------
; BOSS: TRIGGER OUTPUTS
;-------------------------
modify:
{
	match:
	{
		"model" "*82"
		"hammerid" "226941"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "1stage1bridge,Break,,15,-1"
		"OnStartTouch" "Command,Command,say '***The bridge will break in 15 seconds,0,0"
		"OnStartTouch" "Command,Command,say '***The bridge is broken,15,15"
		"OnStartTouch" "jewpar1,Start,,25,-1"
		"OnStartTouch" "jewpar2,Start,,25,-1"
		"OnStartTouch" "jewpar1,Stop,,30,-1"
		"OnStartTouch" "jewpar2,Stop,,30,-1"
		"OnStartTouch" "eviljewappear,ShowSprite,,30,-1"
		"OnStartTouch" "jewintro,PlaySound,,30,-1"
		"OnStartTouch" "warning_hud,Command,r_screenoverlay off,22.5,-1"
		"OnStartTouch" "eviljew_warningsound,PlaySound,,20,-1"
		"OnStartTouch" "eviljew_warningsound,StopSound,,22.5,-1"
		"OnStartTouch" "thirdteleport,Enable,,20,-1"
		"OnStartTouch" "touhou,Kill,,15,-1"
		"OnStartTouch" "boss_hp_add,Enable,,37,1"
		"OnStartTouch" "Bird_template,ForceSpawn,,38,1"
		"OnStartTouch" "Guard_Boss_Model,FireUser1,,40,1"
		"OnStartTouch" "Guard_Boss_Model,ShowSprite,,40.1,-1"
		"OnStartTouch" "guard_boss_eviljew_hpbar,ShowSprite,,40,-1"
		"OnStartTouch" "eviljew_music1,PlaySound,,38,-1"
		"OnStartTouch" "eviljewappear,Kill,,35,-1"
		"OnStartTouch" "1stage4door,Close,,15,-1"
	}
	insert:
	{
		"OnTrigger" "Command,Command,say **The bridge will break in 15 seconds**,0,1"
		"OnTrigger" "1stage1bridge,Break,,15,1"
		"OnTrigger" "Command,Command,say **The bridge is broken**,15,1"
		"OnTrigger" "touhou,Kill,,15,1"
		"OnTrigger" "1stage4door,Close,,15,1"
		"OnTrigger" "thirdteleport,Enable,,20,1"
		"OnTrigger" "eviljew_warningsound,PlaySound,,20,1"
		"OnTrigger" "eviljew_warningsound,StopSound,,22.5,1"
		"OnTrigger" "warning_hud,Command,r_screenoverlay off,22.5,-1"
		"OnTrigger" "jewpar1,Start,,25,1"
		"OnTrigger" "jewpar2,Start,,25,1"
		"OnTrigger" "jewpar1,Stop,,30,1"
		"OnTrigger" "jewpar2,Stop,,30,1"
		"OnTrigger" "eviljewappear,ShowSprite,,30,1"
		"OnTrigger" "jewintro,PlaySound,,30,1"
		"OnTrigger" "eviljewappear,Kill,,35,1"
		"OnTrigger" "boss_hp_add,Enable,,37,1"
		"OnTrigger" "Bird_template,ForceSpawn,,38,1"
		"OnTrigger" "eviljew_music1,PlaySound,,38,1"
		"OnTrigger" "guard_boss_eviljew_hpbar,ShowSprite,,40,1"
		"OnTrigger" "Guard_Boss_Model,FireUser1,,40,1"
		"OnTrigger" "Guard_Boss_Model,ShowSprite,,40.1,1"
	}
}
;-------------------------
; BOSS: CHANGE PUSH FILTERS
;-------------------------
modify:
{
	match:
	{
		"model" "*17"
		"hammerid" "177127"
		"classname" "trigger_push"
	}
	replace:
	{
		"filtername" "MapFilterCT"
	}
}
filter:
{
	"hammerid" "177145"
	"classname" "filter_activator_team"
	"targetname" "1stage_bosspushfilter"
}
;-------------------------
; BOSS: REMOVE EXCESS ENTITIES (SIDE ROOM)
;-------------------------
filter:
{
	"hammerid" "135425"
	"classname" "env_laser"
}
filter:
{
	"hammerid" "173777"
	"classname" "func_door"
}
filter:
{
	"hammerid" "195902"
	"classname" "func_wall_toggle"
}
filter:
{
	"hammerid" "195945"
	"classname" "point_template"
}
filter:
{
	"hammerid" "195958"
	"classname" "env_entity_maker"
}
filter:
{
	"hammerid" "219986"
	"classname" "logic_timer"
}
filter:
{
	"hammerid" "220018"
	"classname" "point_template"
}
filter:
{
	"hammerid" "220020"
	"classname" "env_entity_maker"
}
filter:
{
	"hammerid" "220022"
	"classname" "func_breakable"
}
filter:
{
	"hammerid" "220030"
	"classname" "filter_activator_class"
}
filter:
{
	"hammerid" "220032"
	"classname" "filter_activator_team"
}
filter:
{
	"hammerid" "220036"
	"classname" "func_door_rotating"
}
filter:
{
	"hammerid" "220039"
	"classname" "func_door_rotating"
}
filter:
{
	"hammerid" "220042"
	"classname" "func_door_rotating"
}
filter:
{
	"hammerid" "220045"
	"classname" "filter_activator_name"
}
;-------------------------
; BOSS: REMOVE EXCESS ENTITIES (MAIN ROOM)
;-------------------------
filter:
{
	"hammerid" "133121"
	"classname" "logic_case"
}
filter:
{
	"hammerid" "134363"
	"classname" "env_sprite"
}
filter:
{
	"hammerid" "134389"
	"classname" "logic_timer"
}
filter:
{
	"hammerid" "135618"
	"classname" "func_tanktrain"
}
filter:
{
	"hammerid" "135624"
	"classname" "path_track"
}
filter:
{
	"hammerid" "173023"
	"classname" "logic_timer"
}
filter:
{
	"hammerid" "176640"
	"classname" "phys_keepupright"
}
filter:
{
	"hammerid" "176678"
	"classname" "filter_activator_class"
}
filter:
{
	"hammerid" "187096"
	"classname" "point_template"
}
filter:
{
	"hammerid" "187909"
	"classname" "point_template"
}
filter:
{
	"hammerid" "218044"
	"classname" "info_player_terrorist"
}
filter:
{
	"hammerid" "219965"
	"classname" "math_counter"
}
;-------------------------
; BOSS: INCREASE AND FIX HEALTH CALCULATION
;-------------------------
filter:
{
	"hammerid" "179683"
	"classname" "trigger_once"
	"targetname" "boss_addhp"
}
filter:
{
	"hammerid" "220056"
	"classname" "trigger_once"
	"targetname" "boss_addhp"
}
modify:
{
	match:
	{
		"hammerid" "219962"
		"classname" "trigger_once"
		"targetname" "boss_hp_add"
	}
	delete:
	{
		"OnStartTouch" "boss_Health,Add,5,0,-1"
	}
	replace:
	{
		"origin" "-384 -9148 -9985"
	}
	insert:
	{
		"OnStartTouch" "boss_health,Add,24,0,-1"
		"OnStartTouch" "boss_healthbackup,Add,24,0,-1"
	}
}
;-------------------------
; BOSS: CHANGE THE DOUBLE PHYSBOX INTO ONE
;-------------------------
filter:
{
	"hammerid" "219983"
	"classname" "func_physbox_multiplayer"
	"targetname" "Guard_Boss_Break"
}
modify:
{
	match:
	{
		"hammerid" "220015"
		"classname" "func_physbox_multiplayer"
		"targetname" "Guard_Boss_Physbox"
	}
	replace:
	{
		"damagefilter" "MapFilterCT"
	}
	insert:
	{
		"OnHealthChanged" "Boss_Health,Subtract,1,0,-1"
	}
}
;-------------------------
; BOSS: REPARENT NADE TRIGGER
;-------------------------
modify:
{
	match:
	{
		"hammerid" "220065"
		"classname" "trigger_multiple"
		"targetname" "boss_nade"
	}
	replace:
	{
		"parentname" "Guard_Boss_Physbox"
	}
}
;-------------------------
; BOSS: BIGGER SPRITE
;-------------------------
modify:
{
	match:
	{
		"hammerid" "176961"
		"classname" "env_sprite"
		"targetname" "eviljewappear"
	}
	replace:
	{
		"origin" "-334 -9172 -10208"
	}
	insert:
	{
		"scale" "0.6"
	}
}
modify:
{
	match:
	{
		"hammerid" "219977"
		"classname" "env_sprite"
		"targetname" "Guard_Boss_Model"
	}
	replace:
	{
		"origin" "-334 -9172 -10208"
		"scale" "0.6"
	}
}
;-------------------------
; SECOND ELEVATOR: BUTTON OUTPUTS
;-------------------------
modify:
{
	match:
	{
		"model" "*70"
		"hammerid" "175121"
		"classname" "func_button"
	}
	delete:
	{
		"OnPressed" "1stage_elevator,Open,,25,-1"
		"OnPressed" "Command,Command,say '***The elevator will go up in 25 seconds***',0,-1"
		"OnPressed" "Command,Command,say '***The Elevator started to go up!!!***',25,-1"
	}
	insert:
	{
		"OnPressed" "Command,Command,say **The elevator will go up in 25 seconds**,0,1"
		"OnPressed" "1stage_elevator,Open,,25,1"
		"OnPressed" "Command,Command,say **The Elevator started to go up!!!**,25,1"
	}
}
;-------------------------
; SECOND ELEVATOR: CLIMBABLE LADDER
;-------------------------
modify:
{
	match:
	{
		"model" "*30"
		"hammerid" "216831"
		"classname" "func_breakable"
	}
	replace:
	{
		"origin" "664.05 -12376 -9788"
	}
}
;-------------------------
; POST SECOND ELEVATOR: REMOVE ENABLE TELEPORT TRIGGERS. (MOVED TO ELEVATOR)
;-------------------------
filter:
{
	"model" "*22"
	"hammerid" "65982"
	"classname" "trigger_once"
}
filter:
{
	"model" "*77"
	"hammerid" "185779"
	"classname" "trigger_once"
}
;-------------------------
; POST SECOND ELEVATOR: MAKE ELEVATOR UNBLOCKABLE + ENABLE TELEPORT FROM ELEVATOR
;-------------------------
modify:
{
	match:
	{
		"model" "*16"
		"hammerid" "175078"
		"classname" "func_movelinear"
	}
	replace:
	{
		"blockdamage" "10000"
	}
	insert:
	{
		"OnFullyOpen" "1stage1gate,Break,,0,1"
		"OnFullyOpen" "1stage2gate,Break,,0,1"
		"OnFullyOpen" "1stage3gate,Break,,0,1"
		"OnFullyOpen" "1stage4gate,Break,,0,1"
										
		"OnFullyOpen" "Command,Command,say **THE ZOMBIES WILL GET TELEPORTED TO THE ELEVATOR IN 10 SECONDS!**,0,1"
		"OnFullyOpen" "1stage_ladderbreaks,Break,,10,1"
		"OnFullyOpen" "1stage_eviljewteleport,Enable,,10,1"
		"OnFullyOpen" "1stage_eviljewteleport2,Enable,,10,1"
	}
}
;-------------------------
; THIRD LAVA PIT: CHANGE FILTERS
;-------------------------
modify:
{
	match:
	{
		"model" "*26"
		"hammerid" "212226"
		"classname" "trigger_hurt"
	}
	replace:
	{
		"filtername" "MapFilterCT"
	}
}
modify:
{
	match:
	{
		"model" "*27"
		"hammerid" "212192"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"filtername" "MapFilterT"
	}
}
filter:
{
	"hammerid" "212240"
	"classname" "filter_activator_team"
	"targetname" "1stage_3lavahurtfilter"
}
filter:
{
	"hammerid" "212245"
	"classname" "filter_activator_team"
	"targetname" "1stage_3lavatpfilter"
}
;-------------------------
; SIXTH DOOR: BUTTON OUTPUTS
;-------------------------
modify:
{
	match:
	{
		"model" "*2"
		"hammerid" "66158"
		"classname" "func_button"
	}
	delete:
	{
		"OnPressed" "Command,Command,say **Door opens in 20 seconds**,0,0"
		"OnPressed" "1stage6door,Open,,20,0"
	}
	insert:
	{
		"OnPressed" "Command,Command,say **Door opens in 20 seconds**,0,1"
		"OnPressed" "1stage6door,Open,,20,1"
	}
}
;-------------------------
; FOURTH LAVA PIT: CHANGE FILTERS
;-------------------------
modify:
{
	match:
	{
		"model" "*24"
		"hammerid" "212363"
		"classname" "trigger_hurt"
	}
	replace:
	{
		"filtername" "MapFilterCT"
	}
}
modify:
{
	match:
	{
		"model" "*25"
		"hammerid" "212334"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"filtername" "MapFilterT"
	}
}
filter:
{
	"hammerid" "212384"
	"classname" "filter_activator_team"
	"targetname" "1stage_lastlavahurtfilter"
}
filter:
{
	"hammerid" "212377"
	"classname" "filter_activator_team"
	"targetname" "1stage_lastlavatpinfo"
}
;-------------------------
; FIRST TELEPORTER: TRIGGER OUTPUTS
;-------------------------
modify:
{
	match:
	{
		"model" "*29"
		"hammerid" "196825"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "Command,Command,say >>> The last teleport for the end of the map is going to activate in 20 seconds!<<<,0,-1"
		"OnStartTouch" "Command,Command,say >>>The teleport is activated! The zombies willl get automatically teleported in 15 seconds so fall back now!<<<,20,-1"
		"OnStartTouch" "1stage_lasteleport,Enable,,20,-1"
		"OnStartTouch" "tp_particle,Start,,20,-1"
		"OnStartTouch" "1stage_almostlastteleport,Enable,,35,-1"
	}
	insert:
	{
		"OnTrigger" "Command,Command,say **The last teleport for the end of the map is going to activate in 20 seconds!**,0,1"
		"OnTrigger" "tp_particle,Start,,20,1"
		"OnTrigger" "1stage_lasteleport,Enable,,20,1"
		"OnTrigger" "Command,Command,say **The teleport is activated! The zombies will get automatically teleported in 15 seconds so fall back now!**,20,1"
		"OnTrigger" "1stage_almostlastteleport,Enable,,35,1"
	}
}
;-------------------------
; ZOMBIE TELEPORT: FIX DESTINATION AND RANDOMIZER
;-------------------------
modify:
{
	match:
	{
		"hammerid" "213611"
		"classname" "trigger_teleport"
		"targetname" "1stage_almostlastteleport"
	}
	replace:
	{
		"target" "1stage_info3"
	}
}
modify:
{
	match:
	{
		"hammerid" "213673"
		"classname" "logic_case"
		"targetname" "1stage_lasttpcase"
	}
	delete:
	{
		"OnCase01" "1stage_almostlastteleport,AddOutput,target 1stage_1info,0,-1"
		"OnCase03" "1stage_almostlastteleport,AddOutput,target 1stage_3info,0,-1"
		"OnCase02" "1stage_almostlastteleport,AddOutput,target 1stage_2info,0,-1"
		"OnCase04" "1stage_almostlastteleport,AddOutput,target 1stage_4info,0,-1"
		"OnCase05" "1stage_almostlastteleport,AddOutput,target 1stage_5info,0,-1"
	}
	insert:
	{
		"OnCase01" "1stage_almostlastteleport,AddOutput,target 1stage_info1,0,-1"
		"OnCase03" "1stage_almostlastteleport,AddOutput,target 1stage_info2,0,-1"
		"OnCase02" "1stage_almostlastteleport,AddOutput,target 1stage_info3,0,-1"
		"OnCase04" "1stage_almostlastteleport,AddOutput,target 1stage_info4,0,-1"
		"OnCase05" "1stage_almostlastteleport,AddOutput,target 1stage_info5,0,-1"
	}
}
;-------------------------
; VALLEY OCEAN: FIX DESTINATION + CHANGE FILTERS
;-------------------------
modify:
{
	match:
	{
		"model" "*61"
		"hammerid" "214653"
		"classname" "trigger_hurt"
	}
	replace:
	{
		"filtername" "MapFilterCT"
	}
}
modify:
{
	match:
	{
		"model" "*62"
		"hammerid" "214621"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"filtername" "MapFilterT"
	}
	insert:
	{
		"target" "1stage_info3"
	}
}
filter:
{
	"hammerid" "214629"
	"classname" "filter_activator_team"
	"targetname" "1stage_valleyhurtfilter"
}
filter:
{
	"hammerid" "214636"
	"classname" "filter_activator_team"
	"targetname" "1stage_valleytpfilter"
}
;-------------------------
; VALLEY OCEAN: ADD TELEPORTS ON SKYBOX WALL (PREVENT ZOMBIES FROM GETTING KNIFED TO NUKE FREE SPOTS)
;-------------------------
add:
{
	"spawnflags" "1"
	"classname" "trigger_teleport"
	"targetname" "CloudTeleports"
	"origin" "-1472 5440 -320"
	"target" "1stage_info3"
	"OnUser1" "!self,AddOutput,mins -5440 -64 -1728,0,1"
	"OnUser1" "!self,AddOutput,maxs 5440 64 1728,0,1"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
}
add:
{
	"spawnflags" "1"
	"classname" "trigger_teleport"
	"targetname" "CloudTeleports"
	"origin" "-1472 -4672 -320"
	"target" "1stage_info3"
	"OnUser1" "!self,AddOutput,mins -5440 -64 -1728,0,1"
	"OnUser1" "!self,AddOutput,maxs 5440 64 1728,0,1"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
}
add:
{
	"spawnflags" "1"
	"classname" "trigger_teleport"
	"targetname" "CloudTeleports"
	"origin" "-6848 384 -320"
	"target" "1stage_info3"
	"OnUser1" "!self,AddOutput,mins -64 -5120 -1728,0,1"
	"OnUser1" "!self,AddOutput,maxs 64 5120 1728,0,1"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
}
add:
{
	"spawnflags" "1"
	"classname" "trigger_teleport"
	"targetname" "CloudTeleports"
	"origin" "3904 384 -320"
	"target" "1stage_info3"
	"OnUser1" "!self,AddOutput,mins -64 -5120 -1728,0,1"
	"OnUser1" "!self,AddOutput,maxs 64 5120 1728,0,1"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
}
modify:
{
	match:
	{
		"hammerid" "135816"
		"classname" "logic_auto"
	}
	insert:
	{
		"OnMapSpawn" "CloudTeleports,FireUser1,,0,-1"
	}
}
;-------------------------
; FIRST END TRIGGER: TRIGGER OUTPUTS
;-------------------------
modify:
{
	match:
	{
		"model" "*47"
		"hammerid" "189501"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "eviljewlastlasers_timer,Enable,,35,-1"
		"OnStartTouch" "last_jew,ShowSprite,,30,-1"
		"OnStartTouch" "eviljewlastlasers_timer,Disable,,58,-1"
		"OnStartTouch" "1stage_lastrocks,Break,,25,-1"
		"OnStartTouch" "Command,Command,say ''***THE ROCKS ARE GOING TO BREAK IN 25 SECONDS!!! FALL BACK FOR THE LAST PART!!!***',0,-1"
		"OnStartTouch" "Command,Command,say ''***THE ROCKS ARE DESTROYED!!! GET READY FOR THE FINAL LASER ATTACK FROM EVILJEW FOR WIN THE ROUND!!! GOOD LUCK***'',25,-1"
		"OnStartTouch" "eviljew_last_laugh,PlaySound,,30,-1"
		"OnStartTouch" "last_jew,ShowSprite,,30,-1"
		"OnStartTouch" "lastjew_explode,Start,,58,-1"
		"OnStartTouch" "lastjew_explode,Stop,,59.5,-1"
		"OnStartTouch" "lastjew_explodesound,PlaySound,,58,-1"
		"OnStartTouch" "lastjew_explodesound,StopSound,,60,-1"
		"OnStartTouch" "lastjew_laugh,PlaySound,,30,-1"
		"OnStartTouch" "last_jew,Kill,,58,-1"
		"OnStartTouch" "touhou,StopSound,,58,-1"
		"OnStartTouch" "1stage_nuke,Enable,,59,-1"
		"OnStartTouch" "1stage_lasttrigger,Enable,,58,-1"
	}
	insert:
	{
		"OnTrigger" "Command,Command,say **THE ROCKS ARE GOING TO BREAK IN 25 SECONDS!!! FALL BACK FOR THE LAST PART!!!**,0,1"
		"OnTrigger" "1stage_lastrocks,Break,,25,1"
		"OnTrigger" "Command,Command,say **THE ROCKS ARE DESTROYED!!! GET READY FOR THE FINAL LASER ATTACK FROM EVILJEW FOR WIN THE ROUND!!! GOOD LUCK**,25,1"
		"OnTrigger" "last_jew,ShowSprite,,30,1"
		"OnTrigger" "lastjew_laugh,PlaySound,,30,1"
		"OnTrigger" "eviljew_last_laugh,PlaySound,,30,1"
		"OnTrigger" "eviljewlastlasers_timer,Enable,,35,1"
		"OnTrigger" "eviljewlastlasers_timer,Disable,,58,1"
		"OnTrigger" "touhou,StopSound,,58,1"
		"OnTrigger" "last_jew,Kill,,58,1"
		"OnTrigger" "lastjew_explode,Start,,58,1"
		"OnTrigger" "lastjew_explodesound,PlaySound,,58,1"
		"OnTrigger" "1stage_lasttrigger,Enable,,58,1"
		"OnTrigger" "lastjew_explode,Stop,,59.5,1"
		"OnTrigger" "1stage_nuke,Enable,,59,1"
		"OnTrigger" "lastjew_explodesound,StopSound,,60,1"
	}
}
;-------------------------
; SECOND END TRIGGER: TRIGGER OUTPUTS
;-------------------------
modify:
{
	match:
	{
		"model" "*51"
		"hammerid" "217642"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "zeliljimmy_victorysound,PlaySound,,0,-1"
		"OnStartTouch" "Command,Command,say >>>CONGRALUTIONS! YOU WON THE FIRST STAGE! The map is not finished yet but there is gonna be an update soon!<<<,0,-1"
		"OnStartTouch" "1stage_nuke,Enable,,10,-1"
		"OnStartTouch" "1stage_lastgametext,Display,,8,-1"
		"OnStartTouch" "1stage_lastmusic,StopSound,,0,-1"
	}
	insert:
	{
		"OnTrigger" "zeliljimmy_victorysound,PlaySound,,0,1"
		"OnTrigger" "Command,Command,say **CONGRALUTIONS! YOU WON THE FIRST STAGE! The map is not finished yet but there is gonna be an update soon!**,0,1"
		"OnTrigger" "1stage_lastmusic,StopSound,,0,1"
		"OnTrigger" "1stage_lastgametext,Display,,8,1"
		"OnTrigger" "1stage_nuke,Enable,,10,1"
	}
}