;; _

;; afk teleport rework

filter:
{
	"targetname" "darkforestbanisher"
	"target" "banishedfromarea1"
	"classname" "trigger_teleport"
}
{
	"targetname" "entrance_banisher"
	"target" "banishedfromarea2a"
	"classname" "trigger_teleport"
}
{
	"targetname" "lobby_banisher"
	"target" "banishedfromarea2b"
	"classname" "trigger_teleport"
}
{
	"targetname" "courtyard_banisher"
	"target" "banishedfromarea4"
	"classname" "trigger_teleport"
}

add:
{
	"targetname" "darkforestbanisher"
	"target" "banishedfromarea1"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "-1288 1615.5 3679.5"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -5111 -5871.5 -1759.5,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 5111 5871.5 1759.5,0.1,1"
}
add:
{
	"targetname" "darkforestbanisher"
	"target" "banishedfromarea1"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "-2377.5 -5552 3679.5"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -4037.5 -1295 -1759.5,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 4037.5 1295 1759.5,0.1,1"
}
add:
{
	"targetname" "entrance_banisher"
	"target" "banishedfromarea2a"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "-10946 13734.5 2468.5"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -1435 -1570.5 -484.5,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 1435 1570.5 484.5,0.1,1"
}
add:
{
	"targetname" "lobby_banisher"
	"target" "banishedfromarea2b"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "4741.5 -1588 -3503.5"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -2542.5 -2433 -1600.5,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 2542.5 2433 1600.5,0.1,1"
}
add:
{
	"targetname" "courtyard_banisher"
	"target" "banishedfromarea4"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "-10164 -913 4524.5"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -3505 -3964 -808.5,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 3505 3964 808.5,0.1,1"
}
modify:
{
    match:
	{
		"classname" "logic_auto"
	}
	insert:
	{
		"OnMapSpawn" "darkforestbanisher,FireUser1,,0,-1"
		"OnMapSpawn" "entrance_banisher,FireUser1,,0,-1"
		"OnMapSpawn" "lobby_banisher,FireUser1,,0,-1"
		"OnMapSpawn" "courtyard_banisher,FireUser1,,0,-1"
	}
}

add:
{
	"model" "*297"
	"targetname" "part2teleport_final"
	"target" "xyz"
	"origin" "2403 -6609 2680"
	"spawnflags" "1"
	"StartDisabled" "1"
	"classname" "trigger_teleport"
}
modify:
{
    match:
	{
		"model" "*95"
		"origin" "-10670 -1928 3916.82"
		"classname" "trigger_once"
	}
	replace:
	{
		"origin" "-10622 -1872 3916.82"
	}
}

;; additional tower teleport

add:
{
	"model" "*276"
	"targetname" "tower_zm_tele"
	"target" "zombieTelefortower"
	"filtername" "noeffectfromct"
	"origin" "-920 -968 -13848"
	"spawnflags" "1"
	"StartDisabled" "1"
	"classname" "trigger_teleport"
}
modify:
{
    match:
	{
		"origin" "-880 980 -8720"
		"classname" "trigger_once"
	}
	insert:
	{
		"OnStartTouch" "tower_zm_tele,Enable,,5,1"
	}
}

add:
{
	"model" "*276"
	"targetname" "tower_zm_push"
	"origin" "-910 541 -13848"
	"spawnflags" "1"
	"StartDisabled" "1"
	"alternateticksfix" "0"
	"speed" "800"
	"pushdir" "0 -90 0"
	"classname" "trigger_push"
}
modify:
{
    match:
	{
		"model" "*70"
		"origin" "-908 74 -12380"
		"classname" "trigger_once"
	}
	insert:
	{
		"OnStartTouch" "tower_zm_push,Enable,,3,1"
	}
}

;; fix push triggers

filter:
{
	"model" "*125"
	"origin" "2304 -6912 2500"
	"classname" "trigger_push"
}
{
	"model" "*126"
	"origin" "2320 -6288 2500"
	"classname" "trigger_push"
}

modify:
{
    match:
	{
		"model" "*94"
		"origin" "-12524 2728 3952.01"
		"classname" "trigger_push"
	}
	replace:
	{
		"speed" "350"
	}
}
modify:
{
    match:
	{
		"model" "*99"
		"origin" "1768 -6622 2420"
		"classname" "trigger_push"
	}
	replace:
	{
		"speed" "300"
	}
	insert:
	{
		"OnStartTouch" "!self,Disable,,10,1"
	}
}

;; fix nuke

add:
{
	"model" "*102"
	"targetname" "THENuke"
	"origin" "8093 -6597 2512"
	"spawnflags" "1"
	"nodmgforce" "0"
	"damagemodel" "0"
	"damagetype" "0"
	"damagecap" "20"
	"damage" "100000"
	"StartDisabled" "1"
	"classname" "trigger_hurt"
}
add:
{
	"model" "*299"
	"targetname" "THENuke"
	"origin" "-12341.5 -7888 -6376"
	"spawnflags" "1"
	"nodmgforce" "0"
	"damagemodel" "0"
	"damagetype" "0"
	"damagecap" "20"
	"damage" "100000"
	"StartDisabled" "1"
	"classname" "trigger_hurt"
}

modify:
{
	match:
	{
		"targetname" "THENuke"
		"classname" "trigger_hurt"
	}
	replace:
	{
		"damage" "100000"
	}
}
modify:
{
    match:
	{
		"model" "*297"
		"origin" "4928 -6608 2680"
		"classname" "trigger_hurt"
	}
	replace:
	{
		"origin" "4928 -6608 2552"
	}
}


