; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
;	 _       ___   _____  _____  ___  ___  ___   _   _   _____  _____   ___   _   _ ______  _____  _   _  _____ 
;	| |     / _ \ /  ___||_   _| |  \/  | / _ \ | \ | | /  ___||_   _| / _ \ | \ | ||  _  \|_   _|| \ | ||  __ \
;	| |    / /_\ \\ `--.   | |   | .  . |/ /_\ \|  \| | \ `--.   | |  / /_\ \|  \| || | | |  | |  |  \| || |  \/
;	| |    |  _  | `--. \  | |   | |\/| ||  _  || . ` |  `--. \  | |  |  _  || . ` || | | |  | |  | . ` || | __ 
;	| |____| | | |/\__/ /  | |   | |  | || | | || |\  | /\__/ /  | |  | | | || |\  || |/ /  _| |_ | |\  || |_\ \
;	\_____/\_| |_/\____/   \_/   \_|  |_/\_| |_/\_| \_/ \____/   \_/  \_| |_/\_| \_/|___/   \___/ \_| \_/ \____/
; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
; - - - - - - - - - - - - - - - - - - - - - - - 
; 				Map version v6_1 (CS:S)
; Fixes by iszaar with help from jaek and koen
; Stole shit from berke's CSGO LMS Stripper 
; - - - - - - - - - - - - - - - - - - - - - - -
; - - - - - - - - - - - - - - - - - - - - - - - 
; - - STRIPPER TESTED ON UNLOZE & SUNRUST  - -
; - - - - - - - - - - - - - - - - - - - - - - - 
; logic auto (2 exists)
modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "7668823"
	}
	insert:
	{
		"OnNewGame" "console,Command,echo ++ Stripper loaded ++,0,-1"
	}
}

;stage3 this brush dont get disabled ong frfrfr
modify:
{
	match:
	{
		"targetname" "Stage_Start_Stage_3"
		"classname" "logic_relay"
		"hammerid" "7667305"
	}
	insert:
	{
		"OnTrigger" "stage_x_door,Disable,,0,-1"
	}
}

; add message on warmup to not confuse
modify:
{
	match:
	{
		"classname" "logic_relay"
		"targetname" "Stage_Start_Stage_Warmup"
	}
	insert:
	{
		"OnTrigger" "Global_GameText_Announcement,AddOutput,message STAGE 5 WILL BE THE FINAL STAGE NO CHECKPOINTS ONLY THE CHOSEN MAY SURVIVE,15,-1"
		"OnTrigger" "Global_GameText_Announcement,FireUser3,,15,-1"	
	}
}

; Set extreme stage on Normal completion regardless of how it turned out
modify:
{
	match:
	{
		"classname" "logic_relay"
		"targetname" "Stage_End_Stage_5"
	}
	insert:
	{
		"OnTrigger" "Mode_Extreme_Compare,Compare,0,1"
		"OnTrigger" "Global_GameText_Announcement,AddOutput,message ** EXTREME MODE UNLOCKED **,0,1"
		"OnTrigger" "Global_GameText_Announcement,FireUser4,0,1"
	}
}
; nerf antlion
modify:
{
	match:
	{
		"classname" "logic_relay"
		"targetname" "Zombie_Item_Antlion_Dig_Relay"
	}
	delete:
	{
		"OnTrigger" "Global_Speed,ModifySpeed,1.15,1.25,-1"
	}
	insert:
	{
		"OnTrigger" "Global_Speed,ModifySpeed,0.5,1.25,-1"
	}
}
; Fix "Antlion" item user being able to exploit on stage 5.
add:
{
	"classname" "trigger_multiple"
	"targetname" "stage_5_liftteleport1"
	"origin" "4592 -4600 10904"
	"spawnflags" "1"
	"model" "*649"
	"filtername" "team_filter_zombies"
	"wait" ".01"
	"OnStartTouch" "!activator,AddOutput,origin 4688 -2032 11184,,1"
}
; buff the tank y axis movement a bit since it can easily choke out mid ramp on stage 1 tunnel
modify:
{
	match:
	{
		"targetname" "v_y1"
		"classname" "phys_thruster"
		"force" "350"
	}
	replace:
	{
		"force" "425"
	}
}
; make this unblockable (players can get stuck but at least this wont be griefable)
modify:
{
	match:
	{
		"targetname" "stage_x_reward_vehicle_with_weapons"
		"classname" "func_tracktrain"
	}
	replace:
	{
		"spawnflags" "514"
	}
}
; move vortigaunt stage 1 to let you get past a lot easier with tank
modify:
{
	match:
	{
		"targetname" "Extreme_stage_1"
		"classname" "logic_relay"
		"hammerid" "7668954"
	}
	delete:
	{
		"OnTrigger" "Zombie_Item_Vortigaunt_Template,AddOutput,origin 7882.4 3258.23 -13672,0,-1"
	}
	insert:
	{
		"OnTrigger" "Zombie_Item_Vortigaunt_Template,AddOutput,origin 7882.4 3114.23 -13672,0,-1"
	}
}
; Stage 3 supress fix
modify:
{
	match:
	{
		"classname" "trigger_teleport"
		"targetname" "teleporter_main_trigger_positioner"
	}
	insert:
	{
		"OnStartTouch" "Global_Speed_suppress,ModifySpeed,1,0,-1"
	}
}

; Stage 3 Make zombies unable to survive and delay untill zms are slayed
modify:
{
	match:
	{
		"hammerid" "5643492"
		"targetname" "stage_nuke_inmuzer1"
	}
	insert:
	{
		"filtername" "team_filter_humans"
		"OnStartTouch" "stage_3_end_check,TestActivator,,0,-1"
	}
}

; Stage 4 Nuke breaking will now not cause map to be in limbo (avoid delay) hopefully
modify:
{
	match:
	{
		"classname" "func_button"
		"targetname" "stage_4_end_button_protection"
	}
	replace:
	{
		"spawnflags" "3073"
	}
	delete:
	{
		"OnDamaged" "stage_4_nuke_works,Disable,,0,-1"
		"OnDamaged" "Global_GameText_Announcement,AddOutput,message ** ZOMBIES BROKE THE NUKE PAD! IS NOT GONNA WORK! **,0,-1"
		"OnDamaged" "stage_4_end_nuke_malfunction,StartSpark,,0,-1"
		"OnDamaged" "Global_Message_Top_Right,Display,,0.05,-1"
		"OnDamaged" "Global_Message_Top_Right,AddOutput,holdtime 0,0,-1"
		"OnDamaged" "Global_Message_Top_Countdown,Kill,,0,-1"
		"OnDamaged" "Global_GameText_Announcement,FireUser3,,0,-1"
	}
	insert:
	{
		"OnUser1" "stage4_nuke_broke,Enable,,,1"
		"OnUser1" "stage_4_nuke_works,Disable,,0,-1"
		"OnUser1" "Global_GameText_Announcement,AddOutput,message ** ZOMBIES BROKE THE NUKE PAD! THIS IS NOT GONNA WORK! **,0,-1"
		"OnUser1" "stage_4_end_nuke_malfunction,StartSpark,,0,-1"
		"OnUser1" "Global_Message_Top_Right,Display,,0.05,-1"
		"OnUser1" "Global_Message_Top_Right,AddOutput,holdtime 0,0,-1"
		"OnUser1" "Global_Message_Top_Countdown,Kill,,0,-1"
		"OnUser1" "Global_GameText_Announcement,FireUser3,,0,-1"
	}
}
modify:
{
	match:
	{
		"classname" "path_track"
		"targetname" "stage_x_ultralistk_path_8"
	}
	insert:
	{
		"OnPass" "stage4_nuke_broke,Trigger,,0,1"
	}
}
add:
{
	"classname" "logic_relay"
	"spawnflags" "1"
	"StartDisabled" "1"
	"targetname" "stage4_nuke_broke"
	"OnTrigger" "stage_nuke_inmuzer1,Enable,,10,1"
	"OnTrigger" "stage_nuke_inmuzer,Enable,,10,1"
	"OnTrigger" "stage_nuke_inmuzer1,Disable,,10.03,1"
	"OnTrigger" "stage_nuke_inmuzer,Disable,,10.03,1"
	"OnTrigger" "Global_GameText_Announcement,AddOutput,message ** THE NUKE FAILED! **,2,1"
	"OnTrigger" "Global_GameText_Announcement,AddOutput,message ** THE ULTRALISK IS STILL ALIVE HOPE WE DONT HAVE TO MEET HIM AGAIN... **,8,1"
	"OnTrigger" "Global_GameText_Announcement,FireUser3,,3,1"
	"OnTrigger" "Global_GameText_Announcement,FireUser3,,9,1"
	"OnTrigger" "Fix_Issue,ForceSpawn,,10.5,1"
}

modify:
{
	match:
	{
		"classname" "trigger_once"
		"targetname" "stage_4_part_5_trigger"
	}
	replace:
	{
		"StartDisabled" "1"
	}
	insert:
	{
		"OnTrigger" "stage_4_end_button*,Unlock,,,1"
		"OnTrigger" "stage_4_end_button_protection,AddOutput,OnDamaged !self:FireUser1:::1,,1"
	}
}

modify:
{
	match:
	{
		"classname" "func_button"
		"targetname" "stage_4_end_button"
	}
	replace:
	{
		"spawnflags" "3073"
	}
}
modify:
{
	match:
	{
		"classname" "logic_case"
		"targetname" "stage_4_part_5_case_controller"
	}
	insert:
	{
		"OnCase03" "stage_4_part_5_trigger,Enable,,20,1"
	}
}
;make ultralisk come faster on event hes not killed
modify: 
{
    match:
    {
		"targetname" "stage5_things"
		"classname" "point_template"
    }
    delete:
    {
        "OnEntitySpawned" "stage_5_lower_ultralisk,Trigger,,160,-1"
    }
	insert:
	{
		"OnEntitySpawned" "stage_5_lower_ultralisk,Trigger,,110,-1"
	}
}

; Avoid delay on stage 5
modify:
{
	match:
	{
		"classname" "math_counter"
		"targetname" "stage_5_lower_counter_energy"
	}
	insert:
	{
		"OnHitMax" "stage5_antidelay,Trigger,,0,1"
	}
}
modify:
{
	match:
	{
		"classname" "filter_activator_team"
		"targetname" "stage_5_button_filter"
	}
	insert:
	{
		"OnPass" "stage5_antidelay,CancelPending,,0,1"
	}
}
add:
{
	"classname" "logic_relay"
	"spawnflags" "0"
	"StartDisabled" "0"
	"targetname" "stage5_antidelay"
	"OnTrigger" "Global_GameText_Announcement,FireUser3,,6,1"
	"OnTrigger" "Global_GameText_Announcement,AddOutput,message ** ACTIVATE THE ELEVATOR QUICKLY! (1/3) **,6,1"
	"OnTrigger" "Global_GameText_Announcement,FireUser3,,16,1"
	"OnTrigger" "Global_GameText_Announcement,AddOutput,message ** ACTIVATE THE ELEVATOR QUICKLY! (2/3) **,16,1"
	"OnTrigger" "Global_GameText_Announcement,FireUser3,,26,1"
	"OnTrigger" "Global_GameText_Announcement,AddOutput,message ** LAST WARNING! ACTIVATE THE ELEVATOR QUICKLY! (3/3) **,26,1"
	"OnTrigger" "Fix_Issue,ForceSpawn,,36,1"
}

; stage 5 lower delay on the buttons on top
modify:
{
	match:
	{
		"classname" "func_button"
		"targetname" "stage_5_end_button_blue"
	}
	replace:
	{
		"wait" "0.1"
	}
}
modify:
{
	match:
	{
		"classname" "func_button"
		"targetname" "stage_5_end_button_red"
	}
	replace:
	{
		"wait" "0.1"
	}
}

; Fix zms able to surf and stop stage 2 from being completed (chink trickery)

add:
{
	"targetname" "team_filter_stage2water_human"
	"Negated" "Allow entities that match criteria"
	"filterteam" "3"
	"classname" "filter_activator_team"
}

modify:
{
	match:
	{
		"targetname" "stage_2_hurt_water"
	}
	replace:
	{
		"filtername" "team_filter_stage2water_human"
	}
}
modify:
{
	match:
	{
		"targetname" "stage_2_end_trigger"
	}
	insert:
	{
		"OnStartTouch" "team_filter_stage2water_human,Kill,,0,1"
		"OnStartTouch" "stage_2_hurt_water,AddOutput,damage 5000,0,1"
		"OnStartTouch" "stage_2_hurt_water,AddOutput,damagecap 5000,0,1"
	}
}

; fix fat dogshit things
filter:
{
	"targetname" "stage_x_plane_supplies_movelinear"
}
add:
{
	"classname" "func_door"
	"disablereceiveshadows" "0"
	"disableshadows" "0"
	"dmg" "0"
	"forceclosed" "1"
	"health" "0"
	"ignoredebris" "0"
	"lip" "20000"
	"locked_sentence" "0"
	"loopmovesound" "0"
	"movedir" "0 90 0"
	"origin" "4676 7580 4128.93"
	"renderamt" "255"
	"rendercolor" "255 255 255"
	"renderfx" "0"
	"rendermode" "0"
	"spawnflags" "4100"
	"spawnpos" "0"
	"speed" "1000"
	"targetname" "stage_x_plane_supplies_movelinear"
	"unlocked_sentence" "0"
	"wait" "-1"
	"OnUser2" "!self,AddOutput,origin 4747 5159 15576,0,-1"
	"OnUser2" "!self,Open,,0.01,-1"
	"OnUser2" "stage_x_supplies_maker,ForceSpawn,,10,1"
	"OnUser2" "stage_x_supplies_maker,ForceSpawn,,10.5,1"
	"OnUser2" "stage_x_supplies_maker,ForceSpawn,,11,1"
	"OnUser2" "stage_x_plane_supplies,TurnOn,,0,-1"
	"OnFullyOpen" "!self,Kill,,0,-1"
}

;	 _____  _   _  _____  _____  _   ________  _____  _____  _   _  _____ 
;	/  __ \| | | ||  ___|/  __ \| | / /| ___ \|  _  ||_   _|| \ | ||_   _|
;	| /  \/| |_| || |__  | /  \/| |/ / | |_/ /| | | |  | |  |  \| |  | |  
;	| |    |  _  ||  __| | |    |    \ |  __/ | | | |  | |  | . ` |  | |  
;	| \__/\| | | || |___ | \__/\| |\  \| |    \ \_/ / _| |_ | |\  |  | |  
;	 \____/\_| |_/\____/  \____/\_| \_/\_|     \___/  \___/ \_| \_/  \_/  
; Remove and also change the checkpoint system (make it better)


add:
{
	"targetname" "stage_5_end_check"
	"Negated" "Allow entities that match criteria"
	"filterteam" "3"
	"classname" "filter_activator_team"
	"OnPass" "Stage_End_Stage_5,Trigger,,0,1"
}

; remove the checkpoint
modify: 
{
	match:
	{
		"classname" "logic_relay"
		"targetname" "Stage_Start_Stage_5"
	}
	delete:
	{
		"OnTrigger" "Stage_End_Stage_5,Trigger,,240,1"
	}
}

 ; add it to the helicopter ending
modify:
{
	match:
	{
		"parentname" "stage_x_cargo_heli_track_train"
		"origin" "3392 -11040 -12576"
		"targetname" "stage_nuke_inmuzer"
	}
	insert:
	{
		"OnStartTouch" "stage_4_end_check,TestActivator,,0,-1"
		"OnStartTouch" "stage_5_end_check,TestActivator,,0,-1"
	}
}
; red button ending
modify: 
{
	match:
	{
		"classname" "filter_activator_team"
		"targetname" "stage_5_core_column_end_button_red"
	}
	insert:
	{
		"OnPass" "Stage_End_Stage_5,Trigger,,37,-1"
	}
}
; blue ending
modify: 
{
	match:
	{
		"filtername" "team_filter_humans"
		"classname" "trigger_once"
		"targetname" "stage_5_nuke_inmuzer1"
	}
	insert:
	{
		"OnStartTouch" "stage_5_end_check,TestActivator,,0,-1"
	}
}
; - - - - - - - - - - - - - - - - - - - -
; ULTIMATE STRIPPER FIX TO FIX THEM ALL!
; - - - - - - - - - - - - - - - - - - - -
; Add logic_relays for normal stages
modify: 
{
	match:
	{
		"classname" "logic_relay"
		"targetname" "Stage_Start_Stage_1"
	}
	delete:
	{
		"OnTrigger" "Stage_End_Stage_1,Trigger,,240,1"
		
	}
	insert:
	{
		"OnTrigger" "Stage_StartNormal_Stage_1,Trigger,,240,1"
	}
}

modify: 
{
	match:
	{
		"classname" "logic_relay"
		"targetname" "Stage_Start_Stage_2"
	}
	delete:
	{
		"OnTrigger" "Stage_End_Stage_2,Trigger,,240,1"
	}
	insert:
	{
		"OnTrigger" "Stage_StartNormal_Stage_2,Trigger,,240,1"
	}
}

modify: 
{
	match:
	{
		"classname" "logic_relay"
		"targetname" "Stage_Start_Stage_3"
	}
	delete:
	{
		"OnTrigger" "Stage_End_Stage_3,Trigger,,240,1"
	}
	insert:
	{
		"OnTrigger" "Stage_StartNormal_Stage_3,Trigger,,240,1"
	}
}

modify: 
{
	match:
	{
		"classname" "logic_relay"
		"targetname" "Stage_Start_Stage_4"
	}
	delete:
	{
		"OnTrigger" "Stage_End_Stage_4,Trigger,,240,1"
	}
	insert:
	{
		"OnTrigger" "Stage_StartNormal_Stage_4,Trigger,,240,1"
	}
}

add:
{
	"classname" "logic_relay"
	"spawnflags" "1"
	"StartDisabled" "0"
	"targetname" "Stage_StartNormal_Stage_1"
	"OnTrigger" "Stage_End_Stage_1,Trigger,,0,1"
}
add:
{
	"classname" "logic_relay"
	"spawnflags" "1"
	"StartDisabled" "0"
	"targetname" "Stage_StartNormal_Stage_2"
	"OnTrigger" "Stage_End_Stage_2,Trigger,,0,1"
}
add:
{
	"classname" "logic_relay"
	"spawnflags" "1"
	"StartDisabled" "0"
	"targetname" "Stage_StartNormal_Stage_3"
	"OnTrigger" "Stage_End_Stage_3,Trigger,,0,1"
}
add:
{
	"classname" "logic_relay"
	"spawnflags" "1"
	"StartDisabled" "0"
	"targetname" "Stage_StartNormal_Stage_4"
	"OnTrigger" "Stage_End_Stage_4,Trigger,,0,1"
}

; Extreme mode kill
modify: 
{
	match:
	{
		"classname" "logic_relay"
		"targetname" "Difficulty_Extreme"
	}
	insert:
	{
		"OnTrigger" "Stage_StartNormal_Stage_*,Kill,,0,1"
	}
}

; Stage 1
add:
{
	"classname" "filter_activator_team"
	"filterteam" "3"
	"Negated" "Allow entities that match criteria"
	"targetname" "stage_1_end_check"
	"OnPass" "Stage_End_Stage_1,Trigger,,0,1"
}

modify: 
{
	match:
	{
		"classname" "trigger_multiple"
		"parentname" "stage_x_helicopter_tracktrain"
		"targetname" "stage_human_detector"
	}
	insert:
	{
		"OnStartTouch" "stage_1_end_check,TestActivator,,0,-1"

	}
}

; Stage 2
add:
{
	"classname" "logic_relay"
	"spawnflags" "1"
	"StartDisabled" "0"
	"targetname" "stage_2_end_check_relay"
	"OnTrigger" "Stage_End_Stage_2,Trigger,,0,1"
}
add:
{
	"classname" "filter_activator_team"
	"filterteam" "3"
	"Negated" "Allow entities that match criteria"
	"targetname" "stage_2_end_check"
	"OnPass" "stage_2_end_check_relay,Trigger,,2,1"
}
add:
{
	"classname" "filter_activator_team"
	"filterteam" "2"
	"Negated" "Allow entities that match criteria"
	"targetname" "stage_2_end_check_zombie"
	"OnPass" "stage_2_end_check_relay,Disable,,0,1"
}
modify: 
{
	match:
	{
		"classname" "trigger_multiple"
		"origin" "5376 -13696 -7519.98"
		"targetname" "stage_nuke_inmuzer1"
	}
	insert:
	{
		"OnStartTouch" "stage_2_end_check,TestActivator,,0,-1"
		"OnStartTouch" "stage_2_end_check_zombie,TestActivator,,0,-1"
	}
}


; Stage 3

add:
{
	"classname" "filter_activator_team"
	"filterteam" "3"
	"Negated" "Allow entities that match criteria"
	"targetname" "stage_3_end_check"
	"OnPass" "Stage_End_Stage_3,Trigger,,0,1"
}


; Stage 4

add:
{
	"classname" "filter_activator_team"
	"filterteam" "3"
	"Negated" "Allow entities that match criteria"
	"targetname" "stage_4_end_check"
	"OnPass" "Stage_End_Stage_4,Trigger,,0,1"
}

modify: 
{
	match:
	{
		"origin" "4360 -9212 4860"
		"targetname" "stage_nuke_inmuzer1"
	}
	insert:
	{
		"OnStartTouch" "stage_4_end_check,TestActivator,,0,-1"
	}
}

; open doors to prevent ZMs being locked out on Solo ending
modify: 
{
    match:
    {
        "classname" "logic_relay"
        "targetname" "stage_5_core_destroyed"
    }
    insert:
    {
        "OnTrigger" "stage_5_top_door_*,Open,,0,1"
    }
}
;stage 5 fix ladders going down getting stuck
modify:
{
	match:
	{
		"targetname" "stage_x_lower_bridges_tracktrain*"
		"classname" "func_door"
	}
	replace:
	{
		"dmg" "25"
	}
}
; collision optimizations
modify:
{
	match:
	{
		"model" "models/rafuron/lms/lms_stage_2_bridge_destroyable_1.mdl"
		"solid" "6"
	}
	replace:
	{
		"solid" "0"
	}
}
modify:
{
	match:
	{
		"model" "models/rafuron/lms/lms_stage_2_bridge_destroyable_2.mdl"
		"solid" "6"
	}
	replace:
	{
		"solid" "0"
	}
}

modify:
{
	match:
	{
		"model" "models/rafuron/lms/lms_stage_2_bridge_destroyable_3.mdl"
		"solid" "6"
	}
	replace:
	{
		"solid" "0"
	}
}

modify:
{
	match:
	{
		"model" "models/rafuron/lms/lms_stage_2_bridge_destroyable_4.mdl"
		"solid" "6"
	}
	replace:
	{
		"solid" "0"
	}
}
; Fix stuck spots/s
; CALLED STAGE_(STAGE NAME)_STUFF TO GET KILLED ON OTHER STAGES (EDICT CLEANUP)
; Tank spot stage 1
add:
{
	"classname" "prop_dynamic"
	"targetname" "stage_1_stuff1"
	"origin" "2342 302 -13628"
	"angles" "0 90 0"
	"model" "models/props/de_prodigy/prodcratesa.mdl"
	"solid" "6"
}


; Fix stage 2 last vent entrance being breakable early.
modify:
{
	match:
	{
		"classname" "trigger_multiple"
		"targetname" "stage_2_teleport_2"
	}
	insert:
	{
		"OnStartTouch" "stage_2_escape_vent,SetHealth,100,5,1"
	}
}

modify:
{
	match:
	{
		"classname" "func_breakable"
		"targetname" "stage_2_escape_vent"
	}
	replace:
	{
		"health" "0"
	}
}
;fix this wrong tp
modify:
{
	match:
	{
		"classname" "trigger_teleport"
		"targetname" "stage_4_trigger_pad"
	}
	delete:
	{
		"landmark" "stages_teleport_destination"
	}
	insert:
	{
		"target" "stages_teleport_destination"
	}
}

;fix exploit
modify:
{
	match:
	{
		"classname" "trigger_multiple"
		"targetname" "NPC_Train_Driver_Area"
	}
	replace:
	{
		"startdisabled" "1"
	}
}
modify:
{
	match:
	{
		"classname" "path_track"
		"targetname" "Vehicle_Fake_Truck_Path_Track_8"
	}
	insert:
	{
		"OnPass" "NPC_Train_Driver_Area,Enable,,5,1"
	}
}

; Adjustments to make it better
; viewcontrol to not use classname but rather a better method
modify:
{
	match:
	{
		"targetname" "stage_0_end_camera_disable"
	}
	delete:
	{
		"OnTrigger" "!activator,AddOutput,classname cam_disabled,0,-1"
	}
}

modify:
{
	match:
	{
		"targetname" "stage_3_camera_deactivator"
	}
	replace:
	{
		"origin" "-4584 1455 1928"
		"classname" "game_zone_player"
	}
	delete:
	{
		"OnTrigger" "!activator,AddOutput,classname cam_disabled,0,-1"
		"OnTrigger" "stage_cinematic_cam,Enable,,0,-1"
		"OnTrigger" "stage_cinematic_cam,Disable,,0.01,-1"
		"OnTrigger" "Global_Cinematic_Overlay,StopOverlays,,0.01,-1"
	}
	insert:
	{
		"OnPlayerOutZone" "stage_cinematic_cam,Disable,0,-1"
		"OnPlayerOutZone" "Global_Cinematic_Overlay,StopOverlays,,0,-1"
	}
}

modify:
{
	match:
	{
		"targetname" "stage_cinematic_cam"
		"classname" "point_viewcontrol"
	}
	delete:
	{
		"OnUser1" "cam_disabled,AddOutput,classname player,22,-1"
		"OnUser2" "cam_disabled,SetDamageFilter,filter_not_zombies,0,-1"
		"OnUser1" "cam_disabled,FireUser4,,0.03,-1"
		"OnUser1" "cam_disabled,AddOutput,OnUser4 stage_3_cinematic_cam:Enable::0:1,0.02,-1"
		"OnUser1" "cam_disabled,FireUser4,,0.01,-1"
		"OnUser1" "cam_disabled,SetDamageFilter,team_filter_humans,0,-1"
		"OnUser1" "cam_disabled,AddOutput,OnUser4 Global_Team_Set_No_Damage_Z:TestActivator::0:1,0,-1"
		"OnUser1" "stage_3_camera_deactivator,Enable,,20,-1"
		"OnUser1" "stage_3_camera_deactivator,Disable,,22,-1"
	}
	insert:
	{
		"OnUser1" "stage_3_camera_deactivator,CountPlayersInZone,,22,-1"
		"OnUser1" "specialFade,Fade,,21,1"
	}
}

add:
{
	"origin" "-4536 12878.7 -8550.7"
	"targetname" "specialFade"
	"spawnflags" "0"
	"rendercolor" "0 0 0"
	"renderamt" "255"
	"holdtime" "0.75"
	"duration" "0.5"
	"classname" "env_fade"
}
modify:
{
	match:
	{
		"targetname" "stage_3_button"
		"classname" "func_button"
	}
	insert:
	{
		"OnPressed" "specialFade,Fade,,5,1"
	}
}

; add lms s4 special fx thingy
modify:
{
	match:
	{
		"classname" "prop_dynamic"
		"hammerid" "5160173"
	}
	replace:
	{
		"renderamt" "0"
		"solid" "0"
		"renderfx" "14"
	}
	insert:
	{
		"OnUser1" "!self,AddOutput,renderamt 160,0.5,1"
		"OnUser1" "!self,AddOutput,renderamt 144,0.45,1"
		"OnUser1" "!self,AddOutput,renderamt 128,0.4,1"
		"OnUser1" "!self,AddOutput,renderamt 112,0.35,1"
		"OnUser1" "!self,AddOutput,renderamt 96,0.3,1"
		"OnUser1" "!self,AddOutput,renderamt 80,0.25,1"
		"OnUser1" "!self,AddOutput,renderamt 64,0.2,1"
		"OnUser1" "!self,AddOutput,renderamt 48,0.15,1"
		"OnUser1" "!self,AddOutput,renderamt 32,0.1,1"
		"OnUser1" "!self,AddOutput,renderamt 16,0.05,1"
		"OnUser1" "!self,AddOutput,renderamt 176,0.55,1"
		"OnUser1" "!self,AddOutput,renderamt 192,0.6,1"
		"OnUser1" "!self,AddOutput,renderamt 208,0.65,1"
		"OnUser1" "!self,AddOutput,renderamt 224,0.7,1"
		"OnUser1" "!self,AddOutput,renderamt 255,0.75,1"
		"targetname" "stage_4_vol_light_model"
		"rendermode" "2"
	}
}
modify:
{
	match:
	{
		"classname" "trigger_once"
		"hammerid" "5156493"
	}
	insert:
	{
		"OnStartTouch" "stage_4_vol_light_model,FireUser1,,5,1"
	}
}

; fix boosting
modify:
{
	match:
	{
		"targetname" "stage_5_core_hit_push"
		"classname" "trigger_teleport"
	}
	insert:
	{
		"OnStartTouch" "!activator,AddOutput,absvelocity 0 0 0,0,-1"
	}
}

; change rendermode
modify:
{
	match:
	{
		"targetname" "stage_5_pendulum_model"
	}
	replace:
	{
		"renderamt" "254"
	}	
	insert:
	{
		"rendermode" "2"
		"renderfx" "14"
	}
}


; STRUPPI FIX THIS FOR NEXT VERSION PLZ TY
; 2400hz (unavailable for source engine)
filter:
{
	"message" "rafuron/global/gong.mp3"
}

; Fix stage 2 skips in first room.
add:
{
	"classname" "func_brush"
	"model" "*65"
	"origin" "5158 879 -6818"
	"rendermode" "10"
}

add:
{
	"classname" "func_brush"
	"model" "*65"
	"origin" "4102 879 -6818"
	"rendermode" "10"
}

add:
{
	"classname" "func_brush"
	"model" "*69"
	"origin" "3893 1353 -6870"
	"rendermode" "10"
}

add:
{
	"classname" "func_brush"
	"model" "*69"
	"origin" "5173 1353 -6870"
	"rendermode" "10"
}

; delay the song a bit longer (we aint that fast)
modify:
{
	match:
	{
		"filtername" "team_filter_humans"
		"classname" "trigger_multiple"
		"hammerid" "5157360"
	}
	delete:
	{
		"OnStartTouch" "Music_Selector,InValue,stage_5_end_good_2,5,1"
	}
	insert:
	{
		"OnStartTouch" "Music_Selector,InValue,stage_5_end_good_2,9,1"
	}
}
; add a light glow to make it cooler
add: 
{
	"classname" "env_lightglow"
	"targetname" "stage_5_stuff1"
	"origin" "4609 -4610 12743"
	"HorizontalGlowSize" "210"
	"MaxDist" "7500"
	"MinDist" "100"
	"OuterMaxDist" "1200"
	"rendercolor" "130 192 255"
	"VerticalGlowSize" "120"
	"GlowProxySize" "16"
	"HDRColorScale" "0.5"
}
add: 
{
	"classname" "env_lightglow"
	"targetname" "stage_5_stuff1"
	"origin" "-8704 -979.863 -4848"
	"HorizontalGlowSize" "210"
	"MaxDist" "11000"
	"MinDist" "-1"
	"OuterMaxDist" "1200"
	"rendercolor" "130 192 255"
	"VerticalGlowSize" "180"
	"GlowProxySize" "16"
	"HDRColorScale" "1"
}
add: 
{
	"classname" "env_lightglow"
	"targetname" "stage_5_stuff1"
	"origin" "-8744 -13854 -14160"
	"HorizontalGlowSize" "210"
	"MaxDist" "27000"
	"MinDist" "0"
	"OuterMaxDist" "28000"
	"rendercolor" "255 255 255"
	"VerticalGlowSize" "180"
	"GlowProxySize" "2"
	"HDRColorScale" "0.5"
}

add: 
{
	"classname" "env_lightglow"
	"targetname" "stage_5_stuff1"
	"origin" "-8750 -12393 -13824"
	"HorizontalGlowSize" "210"
	"MaxDist" "27000"
	"MinDist" "7500"
	"OuterMaxDist" "28000"
	"rendercolor" "255 255 255"
	"VerticalGlowSize" "180"
	"GlowProxySize" "2"
	"HDRColorScale" "0.5"
}
add: 
{
	"classname" "env_lightglow"
	"targetname" "stage_3_stuff1"
	"origin" "2494 -10305 1520"
	"HorizontalGlowSize" "120"
	"MaxDist" "10000"
	"MinDist" "1500"
	"OuterMaxDist" "11000"
	"rendercolor" "255 255 255"
	"VerticalGlowSize" "60"
	"GlowProxySize" "2"
	"HDRColorScale" "0.5"
}

add:
{
	"targetname" "stage_5_stuff1"
	"spawnflags" "1"
	"scale" "40"
	"rendermode" "7"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "140"
	"origin" "-8736 -13856 -13776"
	"model" "sprites/glow.vmt"
	"mindxlevel" "0"
	"maxdxlevel" "0"
	"HDRColorScale" "1.0"
	"GlowProxySize" "10.0"
	"framerate" "10.0"
	"disablereceiveshadows" "0"
	"classname" "env_sprite"
}
add:
{
	"targetname" "stage_5_stuff1"
	"spawnflags" "1"
	"scale" "40"
	"rendermode" "7"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "140"
	"origin" "-8744 -13854 -14160"
	"model" "sprites/glow.vmt"
	"mindxlevel" "0"
	"maxdxlevel" "0"
	"HDRColorScale" "1.0"
	"GlowProxySize" "10.0"
	"framerate" "10.0"
	"disablereceiveshadows" "0"
	"classname" "env_sprite"
}

add:
{
	"targetname" "stage_5_stuff1"
	"spawnflags" "1"
	"scale" "40"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "140"
	"origin" "-8704 -979.863 -5248"
	"model" "sprites/halo.vmt"
	"rendermode" "7"
	"mindxlevel" "0"
	"maxdxlevel" "0"
	"HDRColorScale" "1.0"
	"GlowProxySize" "10.0"
	"framerate" "10.0"
	"disablereceiveshadows" "0"
	"classname" "env_sprite"
}

;add a sun
add:
{
	"origin" "-3000 13152 -8552"
	"use_angles" "1"
	"targetname" "Sun"
	"size" "24"
	"rendercolor" "251 244 221"
	"pitch" "-40"
	"overlaysize" "-1"
	"overlaymaterial" "sun/overlay.vmt"
	"overlaycolor" "0 0 0"
	"material" "sprites/light_glow02_add_noz"
	"HDRColorScale" "0.5"
	"glowDistanceScale" "0.09"
	"angles" "0 120 0"
	"classname" "env_sun"
}

; tonemap shit
add:
{
	"classname" "env_tonemap_controller"
	"targetname" "CUSTOM_TONEMAP"
	"spawnflags" "1"
}

modify:
{
	match:
	{
		"hammerid" "7668823"
		"classname" "logic_auto"
	}
	insert:
	{
		"OnMapSpawn" "CUSTOM_TONEMAP,SetAutoExposureMax,1.1,0,-1"
		"OnMapSpawn" "CUSTOM_TONEMAP,SetAutoExposureMin,0.4,0,-1"
		"OnMapSpawn" "CUSTOM_TONEMAP,SetBloomScale,0.5,0,-1"
	}
}
add:
{
	"targetname" "SpriteTemplate1"
	"origin" "4190 1239 -7422"
	"spawnflags" "1"
	"scale" "2"
	"rendermode" "9"
	"renderfx" "14"
	"rendercolor" "216 205 180"
	"renderamt" "200"
	"model" "sprites/glow_test02.vmt"
	"mindxlevel" "0"
	"maxdxlevel" "0"
	"HDRColorScale" ".5"
	"GlowProxySize" "10"
	"framerate" "10.0"
	"disablereceiveshadows" "0"
	"classname" "env_sprite"
}

add:
{
	"origin" "4190 1239 -7422"
	"Template01" "SpriteTemplate1"
	"targetname" "TemplateSystem1"
	"spawnflags" "0"
	"classname" "point_template"
}

modify:
{
	match:
	{
		"targetname" "Stage_Start_Stage_2"
	}
	insert:
	{
		"OnTrigger" "TemplateSystem1,AddOutput,origin 4894 1092 -6834,0,-1"
		"OnTrigger" "TemplateSystem1,ForceSpawn,,0.1,-1"
		"OnTrigger" "TemplateSystem1,AddOutput,origin 4126 1092 -6834,1,-1"
		"OnTrigger" "TemplateSystem1,ForceSpawn,,1.1,-1"
		"OnTrigger" "TemplateSystem1,AddOutput,origin 7686 4356 -7058,2,-1"
		"OnTrigger" "TemplateSystem1,ForceSpawn,,2.1,-1"
		"OnTrigger" "TemplateSystem1,AddOutput,origin 6406 4356 -7058,3,-1"
		"OnTrigger" "TemplateSystem1,ForceSpawn,,3.1,-1"
		"OnTrigger" "TemplateSystem1,AddOutput,origin 5126 4356 -7058,4,-1"
		"OnTrigger" "TemplateSystem1,ForceSpawn,,4.1,-1"
		"OnTrigger" "TemplateSystem1,AddOutput,origin 3846 4356 -7058,5,-1"
		"OnTrigger" "TemplateSystem1,ForceSpawn,,5.1,-1"
		"OnTrigger" "TemplateSystem1,AddOutput,origin 2566 4356 -7058,6,-1"
		"OnTrigger" "TemplateSystem1,ForceSpawn,,6.1,-1"
		"OnTrigger" "TemplateSystem1,AddOutput,origin 1286 4356 -7058,7,-1"
		"OnTrigger" "TemplateSystem1,ForceSpawn,,7.1,-1"
		"OnTrigger" "TemplateSystem1,AddOutput,origin 6 4356 -7058,8,-1"
		"OnTrigger" "TemplateSystem1,ForceSpawn,,8.1,-1"
		"OnTrigger" "TemplateSystem1,AddOutput,origin -1274 4356 -7058,9,-1"
		"OnTrigger" "TemplateSystem1,ForceSpawn,,9.1,-1"
	}
}

modify:
{
	match:
	{
		"targetname" "Stage_Start_Stage_4"
	}
	insert:
	{
		"OnTrigger" "TemplateSystem1,AddOutput,origin -9130 -8716 3959,0,-1"
		"OnTrigger" "TemplateSystem1,ForceSpawn,,0.1,-1"
		"OnTrigger" "TemplateSystem1,AddOutput,origin -9818 -8716 3959,1,-1"
		"OnTrigger" "TemplateSystem1,ForceSpawn,,1.1,-1"
		"OnTrigger" "TemplateSystem1,AddOutput,origin -8586 -8700 3959,2,-1"
		"OnTrigger" "TemplateSystem1,ForceSpawn,,2.1,-1"
		"OnTrigger" "TemplateSystem1,AddOutput,origin -8058 -8700 3959,3,-1"
		"OnTrigger" "TemplateSystem1,ForceSpawn,,3.1,-1"
		"OnTrigger" "TemplateSystem1,AddOutput,origin -7514 -8700 3959,4,-1"
		"OnTrigger" "TemplateSystem1,ForceSpawn,,4.1,-1"
		"OnTrigger" "TemplateSystem1,AddOutput,origin -7514 -11132 3959,5,-1"
		"OnTrigger" "TemplateSystem1,ForceSpawn,,5.1,-1"
		"OnTrigger" "TemplateSystem1,AddOutput,origin -8058 -11132 3959,6,-1"
		"OnTrigger" "TemplateSystem1,ForceSpawn,,6.1,-1"
		"OnTrigger" "TemplateSystem1,AddOutput,origin -8586 -11132 3959,7,-1"
		"OnTrigger" "TemplateSystem1,ForceSpawn,,7.1,-1"
		"OnTrigger" "TemplateSystem1,AddOutput,origin -9130 -11148 3959,8,-1"
		"OnTrigger" "TemplateSystem1,ForceSpawn,,8.1,-1"
		"OnTrigger" "TemplateSystem1,AddOutput,origin -9818 -11148 3959,9,-1"
		"OnTrigger" "TemplateSystem1,ForceSpawn,,9.1,-1"
	}
}

; wasted edict with a viewcontrol (never gets used plz remove struppi for next version)
filter:
{
	"hammerid" "5157823"
}
; remove to avoid having problems for laggy players
filter:
{
	"targetname" "Stages_Start_Fade"
	"hammerid" "7667319"
}
; make this open for dramatic effect stage 3 boss escape
modify:
{
	match:
	{
		"targetname" "stage_3_boos_end_door"
	}
	replace:
	{
		"spawnpos" "0"
	}
}

modify:
{
	match:
	{
		"targetname" "stage_x_end_vehicle_escape_track_1"
	}
	insert:
	{
		"OnPass" "stage_3_boos_end_door,Open,,0,1"
		"OnPass" "stage_3_boos_end_door,Open,,0,1"
	}
}
; Reduce volume of "Mech" minigun sound.
modify:
{
	match:
	{
		"classname" "ambient_generic"
		"targetname" "Human_Item_Mech_Sound_Minigun"
	}
	replace:
	{
		"health" "3"
	}
}
; make this consitent
modify:
{
	match:
	{
		"targetname" "Weapon_Turbo_Device_UI"
		"classname" "func_button"
	}
	delete:
	{
		"OnPressed" "Weapon_Turbo_Device_Trigger,Kill,,3.25,-1"
		"OnPressed" "Weapon_Turbo_Device_Trigger,Enable,,3,-1"
		"OnPressed" "Weapon_Turbo_Device_Model,Kill,,3,-1"
		"OnPressed" "Global_Fade_White_From,Fade,,3,-1"
		"OnPressed" "Global_Sound_Portal,PlaySound,,0,-1"
		"OnPressed" "checkpoint_fade,Fade,,0,-1"
		"OnPressed" "Global_Big_Shake,StartShake,,0,-1"
		"OnPressed" "!self,Deactivate,,0,-1"
	}
	insert:
	{
		"OnPressed" "!self,FireUser1,,0,-1"
		"OnUser1" "Weapon_Turbo_Device_Trigger,Kill,,3.25,-1"
		"OnUser1" "Weapon_Turbo_Device_Trigger,Enable,,3,-1"
		"OnUser1" "Weapon_Turbo_Device_Model,Kill,,3,-1"
		"OnUser1" "Global_Fade_White_From,Fade,,3,-1"
		"OnUser1" "Global_Sound_Portal,PlaySound,,0,-1"
		"OnUser1" "checkpoint_fade,Fade,,0,-1"
		"OnUser1" "Global_Big_Shake,StartShake,,0,-1"
		"OnUser1" "!self,Lock,,0,-1"
	}
}
; Song lyrics ex4&ex5 done by koen (https://github.com/notkoen)
; ex3 done by iszaar (stole it from jaeks mako song cfg)
modify:
{
	match:
	{
		"targetname" "Music_Selector_Ex"
		"classname" "logic_case"
	}
	insert:
	{
		"OnCase11" "stage_10_start_relay,Trigger,,0.2,1"
		"OnCase11" "stage_10_top_1_relay,Enable,,0.2,1"
	}
}

modify:
{
	match:
	{
		"targetname" "stage_5_button_filter"
		"classname" "filter_activator_team"
	}
	insert:
	{
		"OnPass" "stage_10_start_relay,CancelPending,,6.20,1"
		"OnPass" "stage_10_top_1_relay,Trigger,,11.1,1"
		"OnPass" "ex5_music_text,AddOutput,message  ,6.00,1"
		"OnPass" "ex5_music_text,Display,,6.10,1"
		"OnPass" "ex5_music_text2,AddOutput,message  ,6.00,1"
		"OnPass" "ex5_music_text2,Display,,6.10,1"
		"OnPass" "stage_10_start_relay,kill,,7.10,1"
	}
}

modify:
{
	match:
	{
		"targetname" "stage_5_top_relay_core_working"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "ex5_music_text,AddOutput,message  ,1.00,1"
		"OnTrigger" "ex5_music_text,Display,,1.10,1"
		"OnTrigger" "stage_10_top_1_relay,CancelPending,,7.00,-1"
		"OnTrigger" "stage_10_top_1_relay,kill,,7.10,-1"
	}
}

modify:
{
	match:
	{
		"targetname" "stage_5_core_destroyed"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "ex5_music_text,AddOutput,message  ,1.00,1"
		"OnTrigger" "ex5_music_text,Display,,1.10,1"
		"OnTrigger" "stage_10_top_1_relay,CancelPending,,7.00,-1"
		"OnTrigger" "stage_10_top_1_relay,kill,,7.10,-1"
	}
}

;extreme 3/4 lyrics
modify:
{
	match:
	{
		"targetname" "Music_Selector_Ex"
	}
	insert:
	{
		"OnCase07" "music_master_ambient_ex3_relay,Enable,,0.1,1"
		"OnCase07" "music_master_ambient_ex3_relay,Trigger,,0.2,1"
		"OnCase10" "music_master_ambient_ex4_relay,Enable,,0.1,1"
		"OnCase10" "music_master_ambient_ex4_relay,Trigger,,0.2,1"
	}
}
add:
{
	"classname" "game_text"
	"origin" "-5701.34 -723.98 -15159.97"
	"y" "0.8"
	"x" "-1"
	"targetname" "ex5_music_text"
	"spawnflags" "1"
	"message" ""
	"holdtime" "6"
	"fxtime" "1.5"
	"fadeout" "1"
	"fadein" "0.3"
	"effect" "0"
	"color2" "255 255 255"
	"color" "255 255 255"
	"channel" "4"
}
add:
{
	"origin" "-5701.34 -723.98 -15159.98"
	"targetname" "stage_10_start_relay"
	"StartDisabled" "0"
	"spawnflags" "0"
	"classname" "logic_relay"
	"OnTrigger" "ex5_music_text,AddOutput,message Madeon - Finale (Netsky Remix),20.00,1"
	"OnTrigger" "ex5_music_text,Display,,20.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Your last chance,23.00,1"
	"OnTrigger" "ex5_music_text,Display,,23.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Last Summer,26.00,1"
	"OnTrigger" "ex5_music_text,Display,,26.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Your last dance,29.00,1"
	"OnTrigger" "ex5_music_text,Display,,29.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message To beat to your own drummer,31.00,1"
	"OnTrigger" "ex5_music_text,Display,,31.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Go out fighting,35.00,1"
	"OnTrigger" "ex5_music_text,Display,,35.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Go out young,37.00,1"
	"OnTrigger" "ex5_music_text,Display,,37.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message A flash of lightning,40.00,1"
	"OnTrigger" "ex5_music_text,Display,,40.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Eclipse the sun,43.00,1"
	"OnTrigger" "ex5_music_text,Display,,43.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Your last chance,45.00,1"
	"OnTrigger" "ex5_music_text,Display,,45.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Last Summer,49.00,1"
	"OnTrigger" "ex5_music_text,Display,,49.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Your last dance,51.00,1"
	"OnTrigger" "ex5_music_text,Display,,51.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message To beat to your own drummer,54.00,1"
	"OnTrigger" "ex5_music_text,Display,,54.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Go out fighting,57.00,1"
	"OnTrigger" "ex5_music_text,Display,,57.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Go out young,60.00,1"
	"OnTrigger" "ex5_music_text,Display,,60.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message A flash of lightning,62.00,1"
	"OnTrigger" "ex5_music_text,Display,,62.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Eclipse the sun,65.00,1"
	"OnTrigger" "ex5_music_text,Display,,65.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,holdtime 40,66,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Brace yourself brace yourself,67.00,1"
	"OnTrigger" "ex5_music_text,Display,,67.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Brace yourself for the grand finale,87.00,1"
	"OnTrigger" "ex5_music_text,Display,,87.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Whoa oh~~~,91.00,1"
	"OnTrigger" "ex5_music_text,Display,,91.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Brace yourself for the grand finale,131.00,1"
	"OnTrigger" "ex5_music_text,Display,,131.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Your last chance,156.00,1"
	"OnTrigger" "ex5_music_text,Display,,156.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Last Summer,159.00,1"
	"OnTrigger" "ex5_music_text,Display,,159.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Your last dance,162.00,1"
	"OnTrigger" "ex5_music_text,Display,,162.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message To beat to your own drummer,164.00,1"
	"OnTrigger" "ex5_music_text,Display,,164.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Go out fighting,168.00,1"
	"OnTrigger" "ex5_music_text,Display,,168.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Go out young,171.00,1"
	"OnTrigger" "ex5_music_text,Display,,171.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message A flash of lightning,173.00,1"
	"OnTrigger" "ex5_music_text,Display,,173.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Eclipse the sun,176.00,1"
	"OnTrigger" "ex5_music_text,Display,,176.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Brace yourself brace yourself,178.00,1"
	"OnTrigger" "ex5_music_text,Display,,178.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Brace yourself for the grand finale,198.00,1"
	"OnTrigger" "ex5_music_text,Display,,198.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Whoa oh~~~,202.00,1"
	"OnTrigger" "ex5_music_text,Display,,202.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Brace yourself for the grand finale,242.00,1"
	"OnTrigger" "ex5_music_text,Display,,242.10,1"
}
add:
{
	"origin" "-5701.34 -723.98 -15159.98"
	"targetname" "stage_10_top_1_relay"
	"StartDisabled" "1"
	"spawnflags" "0"
	"classname" "logic_relay"
	"OnTrigger" "ex5_music_text,AddOutput,message Pendulum - Witchcraft Vs Watercolour,0.00,1"
	"OnTrigger" "ex5_music_text,Display,,0.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,color 255 0 0,0.20,1"
	"OnTrigger" "ex5_music_text,AddOutput,holdtime 5,0.2,1"
	"OnTrigger" "ex5_music_text,AddOutput,message It's in your eyes a color fade-out,6.00,1"
	"OnTrigger" "ex5_music_text,Display,,6.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Looks like a new transition,12.00,1"
	"OnTrigger" "ex5_music_text,Display,,12.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Is starting up and shaking your ground,17.00,1"
	"OnTrigger" "ex5_music_text,Display,,17.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Turning your head to see a new day calling,22.00,1"
	"OnTrigger" "ex5_music_text,Display,,22.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Does it feel like a head to lean on,29.50,1"
	"OnTrigger" "ex5_music_text,Display,,29.60,1"
	"OnTrigger" "ex5_music_text,AddOutput,message A snapshot from where you were born,35.00,1"
	"OnTrigger" "ex5_music_text,Display,,35.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message I'm looking for your hand in the rough,40.00,1"
	"OnTrigger" "ex5_music_text,Display,,40.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message You're caught in the wire,44.00,1"
	"OnTrigger" "ex5_music_text,Display,,44.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Well I'll lift you out,47.00,1"
	"OnTrigger" "ex5_music_text,Display,,47.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message When I'm falling down,51.00,1"
	"OnTrigger" "ex5_music_text,Display,,51.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Will you pick me up again,56.00,1"
	"OnTrigger" "ex5_music_text,Display,,56.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message When I'm too far gone,62.00,1"
	"OnTrigger" "ex5_music_text,Display,,62.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Dead in the eyes of my friends,67.00,1"
	"OnTrigger" "ex5_music_text,Display,,67.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Will you take me out of here,73.00,1"
	"OnTrigger" "ex5_music_text,Display,,73.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message When I'm staring down the barrel,75.00,1"
	"OnTrigger" "ex5_music_text,Display,,75.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message When I'm blinded by the lights,78.00,1"
	"OnTrigger" "ex5_music_text,Display,,78.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message When I cannot see your face,81.00,1"
	"OnTrigger" "ex5_music_text,Display,,81.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Take me out of here,84.00,1"
	"OnTrigger" "ex5_music_text,Display,,84.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Take me out of here,87.00,1"
	"OnTrigger" "ex5_music_text,Display,,87.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Take me out of here,90.00,1"
	"OnTrigger" "ex5_music_text,Display,,90.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Take me out of here,93.00,1"
	"OnTrigger" "ex5_music_text,Display,,93.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Leaning on the action,94.00,1"
	"OnTrigger" "ex5_music_text,Display,,94.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Caught in a cellphone's rays,97.00,1"
	"OnTrigger" "ex5_music_text,Display,,97.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Bleeding on the sofa,99.00,1"
	"OnTrigger" "ex5_music_text,Display,,99.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Staring at the wayside,102.00,1"
	"OnTrigger" "ex5_music_text,Display,,102.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message He's coming and she knows it,104.00,1"
	"OnTrigger" "ex5_music_text,Display,,104.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Even if she knows why,108.00,1"
	"OnTrigger" "ex5_music_text,Display,,108.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Footsteps in the hallway,110.00,1"
	"OnTrigger" "ex5_music_text,Display,,110.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Girl you haven't got time,113.00,1"
	"OnTrigger" "ex5_music_text,Display,,113.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message All I believe,115.00,1"
	"OnTrigger" "ex5_music_text,Display,,115.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message And all I've known,118.00,1"
	"OnTrigger" "ex5_music_text,Display,,118.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Are being taken from me,120.00,1"
	"OnTrigger" "ex5_music_text,Display,,120.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Can't get home,124.00,1"
	"OnTrigger" "ex5_music_text,Display,,124.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Led to a world,126.00,1"
	"OnTrigger" "ex5_music_text,Display,,126.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Where worlds collide,129.00,1"
	"OnTrigger" "ex5_music_text,Display,,129.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Let the fear collapse bring no surprise,132.00,1"
	"OnTrigger" "ex5_music_text,Display,,132.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Take me out of here,137.00,1"
	"OnTrigger" "ex5_music_text,Display,,137.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Feed the fire break your vision,159.00,1"
	"OnTrigger" "ex5_music_text,Display,,159.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Throw your fists up come on with me,162.00,1"
	"OnTrigger" "ex5_music_text,Display,,162.10,1"
}
add:
{
	"origin" "-5701.34 -723.98 -15159.98"
	"targetname" "music_master_ambient_ex4_relay"
	"StartDisabled" "1"
	"spawnflags" "0"
	"classname" "logic_relay"	
	"OnTrigger" "ex5_music_text,AddOutput,message Linkin Park - The Catalyst (Pendulum Remix),0.00,1"
	"OnTrigger" "ex5_music_text,Display,,0.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,color 255 255 255,0.20,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Like memories in cold decay,2.50,1"
	"OnTrigger" "ex5_music_text,Display,,2.60,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Transmissions echoing away,5.00,1"
	"OnTrigger" "ex5_music_text,Display,,5.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Far from the world of you and I,7.50,1"
	"OnTrigger" "ex5_music_text,Display,,7.60,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Where oceans bleed into the sky,11.00,1"
	"OnTrigger" "ex5_music_text,Display,,11.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message God save us everyone,41.00,1"
	"OnTrigger" "ex5_music_text,Display,,41.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Will we burn inside the fires of a thousand suns,43.00,1"
	"OnTrigger" "ex5_music_text,Display,,43.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message For the sins of our hands,46.00,1"
	"OnTrigger" "ex5_music_text,Display,,46.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message The sins of our tongue,47.00,1"
	"OnTrigger" "ex5_music_text,Display,,47.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message The sins of our fathers,48.00,1"
	"OnTrigger" "ex5_music_text,Display,,48.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message The sins of our young,49.00,1"
	"OnTrigger" "ex5_music_text,Display,,49.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message No,51.00,1"
	"OnTrigger" "ex5_music_text,Display,,51.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message God save us everyone,52.00,1"
	"OnTrigger" "ex5_music_text,Display,,52.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Will we burn inside the fires of a thousand suns,54.00,1"
	"OnTrigger" "ex5_music_text,Display,,54.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message For the sins of our hands,57.00,1"
	"OnTrigger" "ex5_music_text,Display,,57.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message The sins of our tongue,58.00,1"
	"OnTrigger" "ex5_music_text,Display,,58.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message The sins of our fathers,59.00,1"
	"OnTrigger" "ex5_music_text,Display,,59.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message The sins of our young,61.00,1"
	"OnTrigger" "ex5_music_text,Display,,61.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message No,63.00,1"
	"OnTrigger" "ex5_music_text,Display,,63.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message And when I close my eyes tonight,64.00,1"
	"OnTrigger" "ex5_music_text,Display,,64.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message To symphonies of blinding light,66.00,1"
	"OnTrigger" "ex5_music_text,Display,,66.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Like memories in cold decay,74.50,1"
	"OnTrigger" "ex5_music_text,Display,,74.60,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Transmissions echoing away,77.00,1"
	"OnTrigger" "ex5_music_text,Display,,77.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Far from the world of you and I,80.00,1"
	"OnTrigger" "ex5_music_text,Display,,80.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Where oceans bleed into the sky,83.00,1"
	"OnTrigger" "ex5_music_text,Display,,83.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Like memories in cold decay,107.00,1"
	"OnTrigger" "ex5_music_text,Display,,107.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Transmissions echoing away,110.00,1"
	"OnTrigger" "ex5_music_text,Display,,110.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Far from the world of you and I,113.00,1"
	"OnTrigger" "ex5_music_text,Display,,113.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Where oceans bleed into the sky,116.00,1"
	"OnTrigger" "ex5_music_text,Display,,116.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,holdtime 60,118,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Lift me up! Let me go!,130.50,1"
	"OnTrigger" "ex5_music_text,Display,,130.60,1"
}

add:
{
	"origin" "-5701.34 -723.98 -15159.98"
	"targetname" "music_master_ambient_ex3_relay"
	"StartDisabled" "1"
	"spawnflags" "0"
	"classname" "logic_relay"
	"OnTrigger" "ex5_music_text,AddOutput,color 255 55 0,0,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Pendulum feat. In Flames - Self vs Self,0.00,1"
	"OnTrigger" "ex5_music_text,Display,,0.10,1"
	"OnTrigger" "ex5_music_text,AddOutput,message If I struggle a lifetime,2.66,1"
	"OnTrigger" "ex5_music_text,Display,,66,1"
	"OnTrigger" "ex5_music_text,AddOutput,message What would my body be?,69,1"
	"OnTrigger" "ex5_music_text,Display,,69.1,1"
	"OnTrigger" "ex5_music_text,AddOutput,message An empty shell,72,1"
	"OnTrigger" "ex5_music_text,Display,,72.1,1"
	"OnTrigger" "ex5_music_text,AddOutput,message On which a demon fed,74,1"
	"OnTrigger" "ex5_music_text,Display,,74.5,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Could be a heavy burden,77,1"
	"OnTrigger" "ex5_music_text,Display,,77.1,1"
	"OnTrigger" "ex5_music_text,AddOutput,message To stay true to your words,79,1"
	"OnTrigger" "ex5_music_text,Display,,79.5,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Speak up,83,1"
	"OnTrigger" "ex5_music_text,Display,,83.5,1"
	"OnTrigger" "ex5_music_text,AddOutput,message I wanna silence everything,85,1"
	"OnTrigger" "ex5_music_text,Display,,85.1,1"
	"OnTrigger" "ex5_music_text,AddOutput,message If i got no plan,89,1"
	"OnTrigger" "ex5_music_text,Display,,89.1,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Doesn't mean that i get what i want for free,94,1"
	"OnTrigger" "ex5_music_text,Display,,94.5,1"
	"OnTrigger" "ex5_music_text,AddOutput,message If i got no meaning,100,1"
	"OnTrigger" "ex5_music_text,Display,,100.1,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Would you force me to a place where i make sense,105,1"
	"OnTrigger" "ex5_music_text,Display,,105.1,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Cause nothing lasts forever...!,110,1"
	"OnTrigger" "ex5_music_text,Display,,110.1,1"

	"OnTrigger" "ex5_music_text,AddOutput,color 255 0 0,115,1"
	"OnTrigger" "ex5_music_text,AddOutput,message How do I get home?,115,1"
	"OnTrigger" "ex5_music_text,Display,,115.1,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Everything revolves around me,118,1"
	"OnTrigger" "ex5_music_text,Display,,118.1,1"
	"OnTrigger" "ex5_music_text,AddOutput,message If I can't find myself?,120,1"
	"OnTrigger" "ex5_music_text,Display,,120.5,1"
	"OnTrigger" "ex5_music_text,AddOutput,message If so Its so completely fake,123,1"
	"OnTrigger" "ex5_music_text,Display,,123.5,1"
	"OnTrigger" "ex5_music_text,AddOutput,message How do I get home?,126,1"
	"OnTrigger" "ex5_music_text,Display,,126.5,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Everything revolves around me,129,1"
	"OnTrigger" "ex5_music_text,Display,,129.1,1"
	"OnTrigger" "ex5_music_text,AddOutput,message If even you can't help?,131,1"
	"OnTrigger" "ex5_music_text,Display,,131.1,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Dark nights on my soul,136,1"
	"OnTrigger" "ex5_music_text,Display,,136.1,1"

	"OnTrigger" "ex5_music_text,AddOutput,color 255 55 0,160,1"
	"OnTrigger" "ex5_music_text,AddOutput,message I deny failure,161,1"
	"OnTrigger" "ex5_music_text,Display,,161.5,1"
	"OnTrigger" "ex5_music_text,AddOutput,message I ignite,163,1"
	"OnTrigger" "ex5_music_text,Display,,163.1,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Woe is on my misery,165,1"
	"OnTrigger" "ex5_music_text,Display,,165.1,1"
	"OnTrigger" "ex5_music_text,AddOutput,message She wins all their eyes,168,1"
	"OnTrigger" "ex5_music_text,Display,,168.1,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Realise what defies our fate,170,1"
	"OnTrigger" "ex5_music_text,Display,,170.5,1"
	"OnTrigger" "ex5_music_text,AddOutput,message This is not me this is me,173,1"
	"OnTrigger" "ex5_music_text,Display,,173.1,1"
	"OnTrigger" "ex5_music_text,AddOutput,message So if I struggle a lifetime,176,1"
	"OnTrigger" "ex5_music_text,Display,,176.5,1"
	"OnTrigger" "ex5_music_text,AddOutput,message What good would that do?,179,1"
	"OnTrigger" "ex5_music_text,Display,,179.1,1"

	"OnTrigger" "ex5_music_text,AddOutput,color 255 0 0,182,1"
	"OnTrigger" "ex5_music_text,AddOutput,message If I got a plan,182,1"
	"OnTrigger" "ex5_music_text,Display,,182.1,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Doesn't have to stop the feeling inside,188,1"
	"OnTrigger" "ex5_music_text,Display,,188.1,1"
	"OnTrigger" "ex5_music_text,AddOutput,message If I do make sense,193,1"
	"OnTrigger" "ex5_music_text,Display,,193.1,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Would you drag me down?,199,1"
	"OnTrigger" "ex5_music_text,Display,,199.1,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Cause nothing lasts forever...!,203,1"
	"OnTrigger" "ex5_music_text,Display,,203.5,1"

	"OnTrigger" "ex5_music_text,AddOutput,color 255 0 0,0,231,1"
	"OnTrigger" "ex5_music_text,AddOutput,message How do I get home?,231,1"
	"OnTrigger" "ex5_music_text,Display,,231.1,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Everything revolves around me,234,1"
	"OnTrigger" "ex5_music_text,Display,,234.1,1"
	"OnTrigger" "ex5_music_text,AddOutput,message If I can't find myself?,236,1"
	"OnTrigger" "ex5_music_text,Display,,236.5,1"
	"OnTrigger" "ex5_music_text,AddOutput,message If so Its so completely fake,240,1"
	"OnTrigger" "ex5_music_text,Display,,240.1,1"
	"OnTrigger" "ex5_music_text,AddOutput,message How do I get home?,242,1"
	"OnTrigger" "ex5_music_text,Display,,242.1,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Everything revolves around me,245,1"
	"OnTrigger" "ex5_music_text,Display,,245.1,1"
	"OnTrigger" "ex5_music_text,AddOutput,message If even you can't help?,247,1"
	"OnTrigger" "ex5_music_text,Display,,247.1,1"
	"OnTrigger" "ex5_music_text,AddOutput,message Dark nights on my soul,251,1"
	"OnTrigger" "ex5_music_text,Display,,251.5,1"
}


; dynamic shadow crash fix
; go complete bat shit crazy on preventing crash
modify:
{
	match:
	{
		"classname" "prop_dynamic"
	}
	replace:
	{
		"disablereceiveshadows" "1"
	}
}

modify:
{
	match:
	{
		"classname" "func_movelinear"
	}
	replace:
	{
		"disablereceiveshadows" "1"
	}
}

modify:
{
	match:
	{
		"classname" "func_tracktrain"
	}
	replace:
	{
		"disablereceiveshadows" "1"
	}
}

modify:
{
	match:
	{
		"classname" "func_water_analog"
	}
	insert:
	{
		"disablereceiveshadows" "1"
	}
}

modify:
{
	match:
	{
		"classname" "func_breakable"
	}
	replace:
	{
		"disablereceiveshadows" "1"
	}
}