;stripper by pasas1345
modify:
{
    match:
    {
        "targetname" "tofinal"
    }
    replace:
    {
        "origin" "11042 4200 -1480"
    }
}
add:
{
    "origin" "4768 2560 -895.5"
    "classname" "trigger_teleport"
    "model" "*170"
    "target" "stage2"
    "spawnflags" "1"
}
add:
{
    "model" "*34"
    "classname" "trigger_teleport"
    "spawnflags" "1"
    "target" "stage2de"
    "targetname" "autotel"
    "origin" "11232 -4096 -2400"
    "StartDisabled" "1"
}
;modify:
;{
;    match:
;    {
;        "targetname" "weapon_ult_bt"
;    }
;    delete:
;    {
;        "OnPressed" "weapon_ult_trigger*,ClearParent,,0,-1"
;    }
;}

;add:
;{
;    "model" "*183"
;	"classname" "trigger_teleport"
;	"targetname" "tele_fix"
;	"CheckDestIfClearForPlayer" "0"
;	"UseLandmarkAngles" "0"
;	"StartDisabled" "1"
;	"spawnflags" "1"
;	"target" "stage1de"
;	"origin" "15104 5444 92"
;}
;modify:
;{
;  match:
;  {
;    "classname" "trigger_once"
;	"targetname" "wallbreak1"
;  }
;  insert:
;  {
;    "OnStartTouch" "tele_fix,Enable,,45,-1"
;  }
;}

;Finished by Killik

;add:
;{
;	"model" "*26"
;	"targetname" "fix_glitch"
;	"target" "stage2de"
;	"StartDisabled" "1"
;	"spawnflags" "1"
;	"origin" "15170 -18 201"
;	"filtername" "filter_zombie"
;	"classname" "trigger_teleport"
;}
;add:
;{
;	"model" "*171"
;	"targetname" "fix_glitch2"
;	"target" "fix_glitch_tp"
;	"StartDisabled" "1"
;	"spawnflags" "1"
;	"origin" "746 -3812 519.9"
;	"filtername" "filter_zombie"
;	"classname" "trigger_teleport"
;}

;modify:
;{
;    match:
;	{
;	    "targetname" "bt3"
;       "classname" "func_button"
;	}
;	insert:
;	{
;        "OnPressed" "fix_glitch2,Disable,,10,-1"
;	}
;}
;modify:
;{
;    match:
;	{
;	    "targetname" "second_te"
;		"classname" "trigger_once"
;	}
;	insert:
;	{
;	    "OnStartTouch" "fix_glitch,Disable,,10,1"
;	}
;}
;modify:
;{
;    match:
;	{
;	    "classname" "trigger_once"
;       "hammerid" "5980"
;	}
;	insert:
;	{
;	    "OnStartTouch" "fix_glitch,Enable,,62,1"
;	}
;}

;modify:
;{
;    match:
;	{
;        "hammerid" "37045"
;		"classname" "trigger_once"
;	}
;	insert:
;	{
;        "OnStartTouch" "fix_glitch2,Enable,,0,1"
;	}
;}


;add:
;{
;	"origin" "757.996 8576 300"
;	"targetname" "fix_glitch_tp"
;	"angles" "0 0 0"
;	"classname" "info_teleport_destination"
;}

; this part by moltard, some weird tp bug that get people stuck into the playerclip
; dont know, dont care

add:
{
	"targetname" "fix_the_random_bug_i_dont_get_it"
	"StartDisabled" "0"
	"spawnflags" "1"
	; "origin" "738 -3805 590" originally 590z
	"origin" "738 -3805 582"
	"teleportoffset" "0 0 -150"
	"damagecap" "20"
	"damagemodel" "0"
	"damagetype" "0"
	"classname" "trigger_teleport_relative"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -25 -25 -25,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 25 25 25,0.1,1"
}

modify:
{
    match:
	{
	    "classname" "logic_auto"
	}
	insert:
	{
	    "OnMapSpawn" "fix_the_random_bug_i_dont_get_it,FireUser1,,1,1"
	}
}

; I guess we're all gonna name our parts, it's ya boy xen here with some LASER BEAMS
; Add some beams to show teleport edges for the tryhard surfers
add:
{
	"origin" "9728 -1152 224"
	"TouchType" "0"
	"TextureScroll" "35"
	"texture" "sprites/laserbeam.spr"
	"targetname" "green_beam1"
	"StrikeTime" "1"
	"spawnflags" "1"
	"renderfx" "0"
	"rendercolor" "0 255 0"
	"renderamt" "255"
	"Radius" "256"
	"NoiseAmplitude" "0"
	"LightningStart" "green_beam1"
	"LightningEnd" "green_beam_target1"
	"life" "0"
	"HDRColorScale" "1.0"
	"framestart" "0"
	"framerate" "0"
	"decalname" "Bigshot"
	"damage" "0"
	"BoltWidth" "10"
	"classname" "env_beam"
}
add:
{
	"origin" "12800 -1152 224"
	"targetname" "green_beam_target1"
	"spawnflags" "0"
	"angles" "0 0 0"
	"classname" "info_target"
} 
add:
{
	"origin" "9728 -7168 -1022"
	"TouchType" "0"
	"TextureScroll" "35"
	"texture" "sprites/laserbeam.spr"
	"targetname" "green_beam2"
	"StrikeTime" "1"
	"spawnflags" "1"
	"renderfx" "0"
	"rendercolor" "0 255 0"
	"renderamt" "255"
	"Radius" "256"
	"NoiseAmplitude" "0"
	"LightningStart" "green_beam2"
	"LightningEnd" "green_beam_target2"
	"life" "0"
	"HDRColorScale" "1.0"
	"framestart" "0"
	"framerate" "0"
	"decalname" "Bigshot"
	"damage" "0"
	"BoltWidth" "10"
	"classname" "env_beam"
}
add:
{
	"origin" "12800 -7168 -1022"
	"targetname" "green_beam_target2"
	"spawnflags" "0"
	"angles" "0 0 0"
	"classname" "info_target"
}
add:
{
	"origin" "-3357 -3056 920 "
	"TouchType" "0"
	"TextureScroll" "35"
	"texture" "sprites/laserbeam.spr"
	"targetname" "green_beam3"
	"StrikeTime" "1"
	"spawnflags" "1"
	"renderfx" "0"
	"rendercolor" "0 255 0"
	"renderamt" "255"
	"Radius" "256"
	"NoiseAmplitude" "0"
	"LightningStart" "green_beam3"
	"LightningEnd" "green_beam_target3"
	"life" "0"
	"HDRColorScale" "1.0"
	"framestart" "0"
	"framerate" "0"
	"decalname" "Bigshot"
	"damage" "0"
	"BoltWidth" "10"
	"classname" "env_beam"
}
add:
{
	"origin" "-3357 -3056 -610"
	"targetname" "green_beam_target3"
	"spawnflags" "0"
	"angles" "0 0 0"
	"classname" "info_target"
}
modify:
{
	match:
	{
		"targetname" "stage5ct"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"filtername" "filter_zombie"
	}
}



;; _

;; fix ultimate weapon

modify:
{
	match:
	{
		"targetname" "weapon_ult_trigger2"
		"classname" "trigger_hurt"
	}
	replace:
	{
		"origin" "11304 -8576 700"
		"spawnflags" "1"
	}
}
modify:
{
	match:
	{
		"targetname" "weapon_ult_trigger1"
		"classname" "trigger_multiple"
	}
	replace:
	{
		"origin" "11304 -8576 700"
		"spawnflags" "1"
	}
	insert:
	{
		"OnStartTouch" "!activator,AddOutput,targetname weapon_ult_safe,0,1"
		"OnStartTouch" "speed,ModifySpeed,1,5.2,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "weapon_ult_bt"
		"classname" "func_button"
	}
	delete:
	{
		"OnPressed" "weapon_ult_trigger1,Enable,,0,-1"
	}
	insert:
	{
		"OnPressed" "weapon_ult_trigger1,Enable,,0.1,1"
		"OnPressed" "weapon_ult_safe,AddOutput,origin 704 -4320 -649,4.95,1"
		"OnPressed" "weapon_ult_safe,AddOutput,origin 14684 5605 110,5.15,1"
		"OnPressed" "weapon_ult_safe,AddOutput,targetname none,5.5,1"
	}
}

;; afk teleport rework

filter:
{
	"targetname" "tpzombiemd"
	"origin" "15100 5436 180"
	"classname" "trigger_teleport"
}

add:
{
	"model" "*183"
	"targetname" "spawn_tele"
	"target" "stage1cage"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "15104 5444 92"
	"classname" "trigger_teleport"
}
modify:
{
	match:
	{
		"targetname" "wallbreak1"
		"origin" "1305.5 5849 313"
		"classname" "trigger_once"
	}
	insert:
	{
		"OnStartTouch" "spawn_tele,Enable,,10,1"
		"OnStartTouch" "spawn_tele,AddOutput,target stage1de,45,1"
	}
}

modify:
{
	match:
	{
		"origin" "15181.1 -6 191"
		"classname" "trigger_once"
	}
	insert:
	{
		"OnStartTouch" "spawn_tele,AddOutput,target cage3/,60,1"
	}
}
modify:
{
	match:
	{
		"origin" "743 -3812.5 464.31"
		"classname" "trigger_once"
	}
	insert:
	{
		"OnStartTouch" "spawn_tele,AddOutput,target stage2de,40,1"
		"OnStartTouch" "spawn_tele,AddOutput,target stage5cage,60,1"
	}
}

modify:
{
	match:
	{
		"origin" "10085 4198 -1704"
		"classname" "trigger_once"
	}
	insert:
	{
		"OnStartTouch" "spawn_tele,AddOutput,target stage3de,30,1"
		"OnStartTouch" "spawn_tele,AddOutput,target zfinal,45,1"
	}
}

modify:
{
	match:
	{
		"targetname" "second_te"
		"origin" "14148.6 -1418.5 189"
		"classname" "trigger_once"
	}
	insert:
	{
		"OnStartTouch" "spawn_tele,AddOutput,target stage1de,12,1"
	}
}
modify:
{
	match:
	{
		"targetname" "fixbt1"
		"classname" "func_button"
	}
	insert:
	{
		"OnPressed" "spawn_tele,AddOutput,target zseeboss,35,1"
	}
}

;; playerclip

add:
{
	"model" "*43"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "0"
	"spawnflags" "2"
	"Solidity" "0"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "748 -3896 1264"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
}

;; fix telehop

modify:
{
	match:
	{
		"targetname" "t_death"
		"origin" "792 -3802 -32"
		"classname" "trigger_hurt"
	}
	insert:
	{
		"OnHurtPlayer" "!activator,AddOutput,absvelocity 0 0 0,3,-1"
	}
}
