;-------------------------------------------
;Stripper CFG by koen (STEAM_1:1:114921174)
;-------------------------------------------

;------------------------------------
;Remove unused teleport destinations
;------------------------------------
filter:
{
	"origin" "1888 -32 1120"
	"classname" "info_teleport_destination"
	"hammerid" "161904"
}
filter:
{
	"origin" "0 467.435 808"
	"targetname" "caomao_dest"
	"classname" "info_teleport_destination"
}

;------------------------------
;Remove vscript plugin warning
;------------------------------
modify:
{
	match:
	{
		"origin" "-336 640 816"
		"classname" "logic_auto"
	}
	delete:
	{
		"OnMapSpawn" "command,Command,say << THIS MAP REQUIRES VSCRIPT PLUGIN >>,5,-1"
	}
}

;------------------------------
;Fix random teleports at spawn
;------------------------------
filter:
{
	"targetname" "start_dest"
	"classname" "info_teleport_destination"
}
add:
{
	"origin" "-1408 1408 208"
	"targetname" "start_dest1"
	"angles" "0 315 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "1408 1408 208"
	"targetname" "start_dest2"
	"angles" "0 225 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "1408 -1408 208"
	"targetname" "start_dest3"
	"angles" "0 135 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "-1408 -1408 208"
	"targetname" "start_dest4"
	"angles" "0 45 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "0 0 256"
	"targetname" "start_teleport_case"
	"classname" "logic_case"
	"OnCase01" "start_dest1,Teleport,,0,-1"
	"OnCase02" "start_dest2,Teleport,,0,-1"
	"OnCase03" "start_dest3,Teleport,,0,-1"
	"OnCase04" "start_dest4,Teleport,,0,-1"
}
modify:
{
	match:
	{
		"targetname" "main_fall_tele"
		"origin" "0 0 32"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"classname" "trigger_multiple"
	}
	delete:
	{
		"target" "start_dest"
	}
	insert:
	{
		"OnStartTouch" "start_teleport_case,PickRandomShuffle,,0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "start_tele"
		"origin" "0 8 888"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"classname" "trigger_multiple"
	}
	delete:
	{
		"target" "start_dest"
	}
	insert:
	{
		"OnStartTouch" "start_teleport_case,PickRandomShuffle,,0,-1"
	}
}

;---------------------------------------------
;Fix stage square teleport destination angles
;---------------------------------------------
modify:
{
	match:
	{
		"origin" "5632 -5376 400"
		"targetname" "square_dest1"
		"classname" "info_teleport_destination"
	}
	replace:
	{
		"angles" "0 90 0"
	}
}
modify:
{
	match:
	{
		"origin" "5632 3968 544"
		"targetname" "square_dest2"
		"classname" "info_teleport_destination"
	}
	replace:
	{
		"angles" "0 90 0"
	}
}
modify:
{
	match:
	{
		"origin" "5632 6848 -512"
		"targetname" "square_dest6"
		"classname" "info_teleport_destination"
	}
	replace:
	{
		"angles" "0 90 0"
	}
}

;-----------------------------------------------------
;Fix random teleports at stage square elevator bottom
;-----------------------------------------------------
filter:
{
	"targetname" "square_dest4"
	"classname" "info_teleport_destination"
}
add:
{
	"origin" "5632 -512 -944"
	"targetname" "square_dest4a"
	"angles" "0 90 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "4208 -752 -944"
	"targetname" "square_dest4b"
	"angles" "0 90 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "7056 -272 -944"
	"targetname" "square_dest4c"
	"angles" "0 270 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "5632 -512 -1016"
	"targetname" "square_dest4_case"
	"classname" "logic_case"
	"OnCase01" "square_dest4a,Teleport,,0,-1"
	"OnCase02" "square_dest4b,Teleport,,0,-1"
	"OnCase03" "square_dest4c,Teleport,,0,-1"
}
modify:
{
	match:
	{
		"targetname" "square_afk_tele1"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"classname" "trigger_multiple"
	}
	delete:
	{
		"target" "square_dest4"
	}
	insert:
	{
		"OnStartTouch" "square_dest4_case,PickRandomShuffle,,0,-1"
	}
}

;-------------------------------------------------
;Fix random teleport at stage square elevator top
;-------------------------------------------------
filter:
{
	"targetname" "square_dest5"
	"classname" "info_teleport_destination"
}
add:
{
	"origin" "3968 -512 1040"
	"targetname" "square_dest5a"
	"angles" "0 0 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "7296 -512 1040"
	"targetname" "square_dest5b"
	"angles" "0 180 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "5632 1152 1056"
	"targetname" "square_dest5c"
	"angles" "0 270 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "5632 -512 1032"
	"targetname" "square_dest5_case"
	"classname" "logic_case"
	"OnCase01" "square_dest5a,Teleport,,0,-1"
	"OnCase02" "square_dest5b,Teleport,,0,-1"
	"OnCase03" "square_dest5c,Teleport,,0,-1"
}
modify:
{
	match:
	{
		"targetname" "square_afk_tele2"
		"origin" "5632 128 -152"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"classname" "trigger_multiple"
	}
	delete:
	{
		"target" "square_dest5"
	}
	insert:
	{
		"OnStartTouch" "square_dest5_case,PickRandomShuffle,,0,-1"
	}
}

;-----------------------------------------------------------
;Fix random teleport at stage square 2-way top-bottom split
;-----------------------------------------------------------
filter:
{
	"targetname" "square_dest3"
	"classname" "info_teleport_destination"
}
add:
{
	"origin" "13184 5120 400"
	"targetname" "square_dest3a"
	"angles" "0 90 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "11392 5120 400"
	"targetname" "square_dest3b"
	"angles" "0 90 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "11500 5120 392"
	"targetname" "square_dest3_case"
	"classname" "logic_case"
	"OnCase01" "square_dest3a,Teleport,,0,-1"
	"OnCase02" "square_dest3b,Teleport,,0,-1"
}
modify:
{
	match:
	{
		"targetname" "square_afk_tele5"
		"origin" "5632 8544 -448"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"classname" "trigger_multiple"
	}
	delete:
	{
		"target" "square_dest3"
	}
	insert:
	{
		"OnStartTouch" "square_dest3_case,PickRandomShuffle,,0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "square_tele2"
		"origin" "5632 10240 -1240"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"classname" "trigger_multiple"
	}
	delete:
	{
		"target" "square_dest3"
	}
	insert:
	{
		"OnStartTouch" "square_dest3_case,PickRandomShuffle,,0,-1"
	}
}

;-------------------------------------------------
;Fix random teleport at stage square last defense
;-------------------------------------------------
filter:
{
	"targetname" "square_dest7"
	"classname" "info_teleport_destination"
}
add:
{
	"origin" "11392 14208 224"
	"targetname" "square_dest7a"
	"angles" "0 0 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "13184 14208 224"
	"targetname" "square_dest7b"
	"angles" "0 180 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "12288 14208 200"
	"targetname" "square_dest7_case"
	"classname" "logic_case"
	"OnCase01" "square_dest7a,Teleport,,0,-1"
	"OnCase02" "square_dest7b,Teleport,,0,-1"
}
modify:
{
	match:
	{
		"targetname" "square_afk_tele6"
		"origin" "12288 5120 320"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"classname" "trigger_multiple"
	}
	delete:
	{
		"target" "square_dest7"
	}
	insert:
	{
		"OnStartTouch" "square_dest7_case,PickRandomShuffle,,0,-1"
	}
}

;---------------------------------------------
;Fix stage circle teleport destination angles
;---------------------------------------------
modify:
{
	match:
	{
		"origin" "-6144 4096 1120"
		"targetname" "circle_dest2"
		"classname" "info_teleport_destination"
	}
	replace:
	{
		"angles" "0 90 0"
	}
}
modify:
{
	match:
	{
		"origin" "-5792 9088 -815"
		"targetname" "circle_dest4"
		"classname" "info_teleport_destination"
	}
	replace:
	{
		"angles" "0 180 0"
	}
}
modify:
{
	match:
	{
		"origin" "-12544 8576 2640"
		"targetname" "circle_dest6"
		"classname" "info_teleport_destination"
	}
	replace:
	{
		"angles" "0 180 0"
	}
}
modify:
{
	match:
	{
		"origin" "-15744 9184 2480"
		"targetname" "circle_dest7"
		"classname" "info_teleport_destination"
	}
	replace:
	{
		"angles" "0 270 0"
	}
}

;-----------------------------------------------
;Fix stage triangle teleport destination angles
;-----------------------------------------------
modify:
{
	match:
	{
		"origin" "-5888 -9728 592"
		"targetname" "triangel_dest2"
		"classname" "info_teleport_destination"
	}
	replace:
	{
		"angles" "0 270 0"
	}
}
modify:
{
	match:
	{
		"origin" "-10752 -12032 257"
		"targetname" "triangle_dest2"
		"classname" "info_teleport_destination"
	}
	replace:
	{
		"angles" "0 90 0"
	}
}
modify:
{
	match:
	{
		"origin" "-128 -5120 3488"
		"targetname" "triangel_final_zm_dest"
		"classname" "info_teleport_destination"
	}
	replace:
	{
		"angles" "0 180 0"
	}
}

;---------------------------------------------------
;Fix random teleport at stage triangle before stair
;---------------------------------------------------
filter:
{
	"targetname" "triangel_dest4"
	"classname" "info_teleport_destination"
}
add:
{
	"origin" "-10752 -7680 272"
	"targetname" "triangel_dest4a"
	"angles" "0 90 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "-9728 -7680 272"
	"targetname" "triangel_dest4b"
	"angles" "0 90 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "-11776 -7680 272"
	"targetname" "triangel_dest4c"
	"angles" "0 90 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "-10752 -7680 264"
	"targetname" "triangel_dest4_case"
	"classname" "logic_case"
	"OnCase01" "triangel_dest4a,Teleport,,0,-1"
	"OnCase02" "triangel_dest4b,Teleport,,0,-1"
	"OnCase03" "triangel_dest4c,Teleport,,0,-1"
}
modify:
{
	match:
	{
		"targetname" "triangel_afk_tele3"
		"origin" "-10752 -10736 96"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"classname" "trigger_multiple"
	}
	delete:
	{
		"target" "triangel_dest4"
	}
	insert:
	{
		"OnStartTouch" "triangel_dest4_case,PickRandomShuffle,,0,-1"
	}
}

;-------------------------------------------------------------
;Fix random teleport at stage triangle before moving platform
;-------------------------------------------------------------
filter:
{
	"targetname" "triangel_dest5"
	"classname" "info_teleport_destination"
}
add:
{
	"origin" "448 -11648 -240"
	"targetname" "triangel_dest5a"
	"angles" "0 90 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "-1216 -11648 -240"
	"targetname" "triangel_dest5b"
	"angles" "0 90 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "448 -11648 -248"
	"targetname" "triangel_dest5_case"
	"classname" "logic_case"
	"OnCase01" "triangel_dest5a,Teleport,,0,-1"
	"OnCase02" "triangel_dest5b,Teleport,,0,-1"
}
modify:
{
	match:
	{
		"targetname" "triangel_afk_tele5"
		"origin" "-384 -12688 144"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"classname" "trigger_multiple"
	}
	delete:
	{
		"target" "triangel_dest5"
	}
	insert:
	{
		"OnStartTouch" "triangel_dest5_case,PickRandomShuffle,,0,-1"
	}
}

;------------------------------------------------------------
;Fix random teleport at stage triangle after moving platform
;------------------------------------------------------------
filter:
{
	"targetname" "triangel_dest6"
	"classname" "info_teleport_destination"
}
add:
{
	"origin" "896 -7840 32"
	"targetname" "triangel_dest6a"
	"angles" "0 90 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "-1664 -7840 32"
	"targetname" "triangel_dest6b"
	"angles" "0 90 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "-640 -8448 -224"
	"targetname" "triangel_dest6c"
	"angles" "0 90 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "-128 -8448 -224"
	"targetname" "triangel_dest6d"
	"angles" "0 90 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "896 -7840 8"
	"targetname" "triangel_dest6_case"
	"classname" "logic_case"
	"OnCase01" "triangel_dest6a,Teleport,,0,-1"
	"OnCase02" "triangel_dest6b,Teleport,,0,-1"
	"OnCase03" "triangel_dest6c,Teleport,,0,-1"
	"OnCase04" "triangel_dest6d,Teleport,,0,-1"
}
add:
{
	"model" "*312"
	"targetname" "triangle_fall_tele3"
	"StartDisabled" "1"
	"spawnflags" "4097"
	"origin" "-384 -9984 -688"
	"classname" "trigger_multiple"
	"OnStartTouch" "triangel_dest6_case,PickRandomShuffle,,0,-1"
}
modify:
{
	match:
	{
		"targetname" "triangel_move"
		"origin" "-384 -10880 -288"
		"classname" "func_movelinear"
	}
	delete:
	{
		"OnFullyOpen" "triangle_fall_tele2,AddOutput,target triangel_dest6,10,1"
	}
	insert:
	{
		"OnFullyOpen" "triangle_fall_tele2,Disable,,10,1"
		"OnFullyOpen" "triangle_fall_tele3,Enable,,10,1"
	}
}

;--------------------------------------------
;Fix final stage teleport destination angles
;--------------------------------------------
modify:
{
	match:
	{
		"origin" "13568 -7040 -1320"
		"targetname" "sct_dest5"
		"classname" "info_teleport_destination"
	}
	replace:
	{
		"angles" "0 90 0"
	}
}
modify:
{
	match:
	{
		"origin" "13568 -4096 -1120"
		"targetname" "sct_dest6"
		"classname" "info_teleport_destination"
	}
	replace:
	{
		"angles" "0 90 0"
	}
}
modify:
{
	match:
	{
		"origin" "9528 -13592.2 -304"
		"targetname" "sct_final_dest"
		"classname" "info_teleport_destination"
	}
	replace:
	{
		"angles" "0 270 0"
	}
}

;---------------------------------------------
;Fix random teleport at final stage top layer
;---------------------------------------------
filter:
{
	"targetname" "sct_dest2_4"
	"classname" "info_teleport_destination"
}
add:
{
	"origin" "11776 -10368 256"
	"targetname" "sct_dest2_4a"
	"angles" "0 90 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "11776 -7040 256"
	"targetname" "sct_dest2_4b"
	"angles" "0 270 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "13440 -8704 256"
	"targetname" "sct_dest2_4c"
	"angles" "0 180 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "10112 -8704 256"
	"targetname" "sct_dest2_4d"
	"angles" "0 0 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "11744 -10368 232"
	"targetname" "sct_dest2_4_case"
	"classname" "logic_case"
	"OnCase01" "sct_dest2_4a,Teleport,,0,-1"
	"OnCase02" "sct_dest2_4b,Teleport,,0,-1"
	"OnCase03" "sct_dest2_4c,Teleport,,0,-1"
	"OnCase04" "sct_dest2_4d,Teleport,,0,-1"
}
modify:
{
	match:
	{
		"targetname" "sct_fall_telex"
		"origin" "11776 -8704 80"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"classname" "trigger_multiple"
	}
	delete:
	{
		"target" "sct_dest2_4"
	}
	insert:
	{
		"OnStartTouch" "sct_dest2_4_case,PickRandomShuffle,,0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "sct_fall_teley"
		"origin" "11776 -8704 -432"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"classname" "trigger_multiple"
	}
	delete:
	{
		"target" "sct_dest2_4"
	}
	insert:
	{
		"OnStartTouch" "sct_dest2_4_case,PickRandomShuffle,,0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "sct_afk_tele1"
		"origin" "6656 -8448 32"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"classname" "trigger_multiple"
	}
	delete:
	{
		"target" "sct_dest2_4"
	}
	insert:
	{
		"OnStartTouch" "sct_dest2_4_case,PickRandomShuffle,,0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "sct_tele4"
		"origin" "11776 -8704 176"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"classname" "trigger_multiple"
	}
	delete:
	{
		"target" "sct_dest2_4"
	}
	insert:
	{
		"OnStartTouch" "sct_dest2_4_case,PickRandomShuffle,,0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "sct_fall_tele2"
		"origin" "11776 -6608 -1488"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"classname" "trigger_multiple"
	}
	delete:
	{
		"target" "sct_dest2_4"
	}
	insert:
	{
		"OnStartTouch" "sct_dest2_4_case,PickRandomShuffle,,0,-1"
	}
}

;------------------------------------------------
;Fix random teleport at final stage middle layer
;------------------------------------------------
filter:
{
	"targetname" "sct_dest3"
	"classname" "info_teleport_destination"
}
add:
{
	"origin" "13440 -8704 -264"
	"targetname" "sct_dest3a"
	"angles" "0 180 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "10112 -8704 -264"
	"targetname" "sct_dest3b"
	"angles" "0 0 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "11776 -10368 -264"
	"targetname" "sct_dest3c"
	"angles" "0 90 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "11776 -7040 -264"
	"targetname" "sct_dest3d"
	"angles" "0 270 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "11744 -10368 -280"
	"targetname" "sct_dest3_case"
	"classname" "logic_case"
	"OnCase01" "sct_dest3a,Teleport,,0,-1"
	"OnCase02" "sct_dest3b,Teleport,,0,-1"
	"OnCase03" "sct_dest3c,Teleport,,0,-1"
	"OnCase04" "sct_dest3d,Teleport,,0,-1"
}
modify:
{
	match:
	{
		"targetname" "sct_afk_tele2"
		"origin" "11776 -8688 292"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"classname" "trigger_multiple"
	}
	delete:
	{
		"target" "sct_dest3"
	}
	insert:
	{
		"OnStartTouch" "sct_dest3_case,PickRandomShuffle,,0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "sct_teleback_zm"
		"origin" "11776 -8704 96"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"classname" "trigger_multiple"
	}
	delete:
	{
		"target" "sct_dest3"
	}
	insert:
	{
		"OnStartTouch" "sct_dest3_case,PickRandomShuffle,,0,-1"
	}
}

;------------------------------------------------
;Fix random teleport at final stage bottom layer
;------------------------------------------------
filter:
{
	"targetname" "sct_dest4"
	"classname" "info_teleport_destination"
}
add:
{
	"origin" "11776 -4416 -1360"
	"targetname" "sct_dest4a"
	"angles" "0 270 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "11776 -8704 -1360"
	"targetname" "sct_dest4b"
	"angles" "0 90 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "11800 -8704 -1368"
	"targetname" "sct_dest4_case"
	"classname" "logic_case"
	"OnCase01" "sct_dest4a,Teleport,,0,-1"
	"OnCase02" "sct_dest4b,Teleport,,0,-1"
}
modify:
{
	match:
	{
		"targetname" "sct_afk_tele3"
		"origin" "11776 -8688 -212"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"classname" "trigger_multiple"
	}
	delete:
	{
		"target" "sct_dest4"
	}
	insert:
	{
		"OnStartTouch" "sct_dest4_case,PickRandomShuffle,,0,-1"
	}
}

;---------------------------------------------
;Fix teleport destination angles in boss room
;---------------------------------------------
modify:
{
	match:
	{
		"origin" "-2944 14464 -448"
		"targetname" "boss_skill09_dest1"
		"classname" "info_teleport_destination"
	}
	replace:
	{
		"angles" "0 270 0"
	}
}
modify:
{
	match:
	{
		"origin" "-1600 13120 -448"
		"targetname" "boss_skill09_dest2"
		"classname" "info_teleport_destination"
	}
	replace:
	{
		"angles" "0 180 0"
	}
}
modify:
{
	match:
	{
		"origin" "-2944 11776 -448"
		"targetname" "boss_skill09_dest3"
		"classname" "info_teleport_destination"
	}
	replace:
	{
		"angles" "0 90 0"
	}
}

;---------------------------------
;Fix random teleport at boss room
;---------------------------------
filter:
{
	"targetname" "boss_hmdest"
	"classname" "info_teleport_destination"
}
add:
{
	"origin" "-2432 13632 -504"
	"targetname" "boss_hmdest1"
	"angles" "0 225 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "-3456 13632 -504"
	"targetname" "boss_hmdest2"
	"angles" "0 315 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "-3456 12608 -504"
	"targetname" "boss_hmdest3"
	"angles" "0 45 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "-2432 12608 -504"
	"targetname" "boss_hmdest4"
	"angles" "0 135 0"
	"classname" "point_teleport"
	"target" "!activator"
}
add:
{
	"origin" "-3312 12920 -448"
	"targetname" "boss_hmdest_case"
	"classname" "logic_case"
	"OnCase01" "boss_hmdest1,Teleport,,0,-1"
	"OnCase02" "boss_hmdest2,Teleport,,0,-1"
	"OnCase03" "boss_hmdest3,Teleport,,0,-1"
	"OnCase04" "boss_hmdest4,Teleport,,0,-1"
}
modify:
{
	match:
	{
		"targetname" "boss_hmfall_tele"
		"origin" "-2944 13120 -736"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"classname" "trigger_multiple"
	}
	delete:
	{
		"target" "boss_hmdest"
	}
	insert:
	{
		"OnStartTouch" "boss_hmdest_case,PickRandomShuffle,,0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "sct_tele_boss"
		"origin" "13568 -384 -32"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"classname" "trigger_multiple"
	}
	delete:
	{
		"target" "boss_hmdest"
	}
	insert:
	{
		"OnStartTouch" "boss_hmdest_case,PickRandomShuffle,,0,-1"
	}
}

;------------------------------------
;Fix random teleports for rtv stages
;------------------------------------
add:
{
	"model" "*346"
	"targetname" "rtv_tele"
	"StartDisabled" "1"
	"spawnflags" "4097"
	"origin" "0 0 376"
	"filtername" "human"
	"classname" "trigger_multiple"
	"OnStartTouch" "boss_hmdest_case,PickRandomShuffle,,0,-1"
	"OnStartTouch" "!activator,AddOutput,health 100,0,-1"
}
modify:
{
	match:
	{
		"origin" "-416 624 816"
		"targetname" "square_relay"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "start_trigger,AddOutput,OnStartTouch main_tele:Enable::25:1,0,1"
	}
}
modify:
{
	match:
	{
		"origin" "-400 624 816"
		"targetname" "circle_relay"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "start_trigger,AddOutput,OnStartTouch main_tele:Enable::25:1,0,1"
	}
}
modify:
{
	match:
	{
		"origin" "-384 624 816"
		"targetname" "triangel_relay"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "start_trigger,AddOutput,OnStartTouch main_tele:Enable::25:1,0,1"
	}
}
modify:
{
	match:
	{
		"origin" "-368 624 816"
		"targetname" "sct_relay"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "start_trigger,AddOutput,OnStartTouch main_tele:Enable::25:1,0,1"
	}
}
modify:
{
	match:
	{
		"origin" "-352 624 816"
		"targetname" "rtv_relay"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnTrigger" "main_tele,AddOutput,target boss_hmdest,0,1"
	}
	insert:
	{
		"OnTrigger" "start_trigger,AddOutput,OnStartTouch rtv_tele:Enable::25:1,0,1"
	}
}
modify:
{
	match:
	{
		"origin" "-320 624 816"
		"targetname" "rtv2_relay"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnTrigger" "main_tele,AddOutput,target boss_hmdest,0,1"
	}
	insert:
	{
		"OnTrigger" "start_trigger,AddOutput,OnStartTouch rtv_tele:Enable::25:1,0,1"
	}
}
modify:
{
	match:
	{
		"origin" "-304 624 816"
		"targetname" "rtv3_relay"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnTrigger" "main_tele,AddOutput,target boss_hmdest,0,1"
	}
	insert:
	{
		"OnTrigger" "start_trigger,AddOutput,OnStartTouch rtv_tele:Enable::25:1,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "start_trigger"
		"origin" "0 0 224"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "main_tele,Enable,,25,1"
	}
}

;--------------------------------------
;Fix music volume not being adjustable
;--------------------------------------
modify:
{
	match:
	{
		"origin" "2224 14304 -40"
		"targetname" "rtv3_sound"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#ze_geometric/rtv3_sound.mp3"
	}
}
modify:
{
	match:
	{
		"origin" "2208 14304 -40"
		"targetname" "rtv2_sound"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#ze_geometric/rtv2_sound.mp3"
	}
}
modify:
{
	match:
	{
		"origin" "2224 14320 -40"
		"targetname" "rtv_sound"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#ze_geometric/rtv_sound.mp3"
	}
}
modify:
{
	match:
	{
		"origin" "2224 14336 -40"
		"targetname" "sct_final_sound"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#ze_geometric/sct_final.mp3"
	}
}
modify:
{
	match:
	{
		"origin" "2208 14336 -40"
		"targetname" "boss_sound"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#ze_geometric/boss_sound1.mp3"
	}
}
modify:
{
	match:
	{
		"origin" "-368 592 816"
		"targetname" "triangel_sound2"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#ze_geometric/triangel_second.mp3"
	}
}
modify:
{
	match:
	{
		"origin" "-352 592 816"
		"targetname" "triangel_sound_final"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#ze_geometric/triangel_final.mp3"
	}
}
modify:
{
	match:
	{
		"origin" "-384 592 816"
		"targetname" "sct_start_sound"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#ze_geometric/sct_start.mp3"
	}
}
modify:
{
	match:
	{
		"origin" "-448 592 816"
		"targetname" "square_sound1"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#ze_geometric/square_start.mp3"
	}
}
modify:
{
	match:
	{
		"origin" "-432 592 816"
		"targetname" "square_sound2"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#ze_geometric/square_final.mp3"
	}
}
modify:
{
	match:
	{
		"origin" "-416 592 816"
		"targetname" "circle_sound1"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#ze_geometric/circle_start.mp3"
	}
}
modify:
{
	match:
	{
		"origin" "-400 592 816"
		"targetname" "circle_sound2"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#ze_geometric/circle_final.mp3"
	}
}