;--------------------------------------------------------------------
;STRIPPER CFG BY MOLTARD http://steamcommunity.com/id/0123456789ABC/
;--------------------------------------------------------------------
;ROCKS DONT FALL
;----------------

filter:
{
	"targetname" "rock_drop_1_trigger"
	"classname" "trigger_once"
}
filter:
{
	"targetname" "rock_drop_2_trigger"
	"classname" "trigger_once"
}
filter:
{
	"targetname" "rock_drop_3_trigger"
	"classname" "trigger_once"
}
filter:
{
	"targetname" "rock_drop_timer_start"
	"classname" "trigger_once"
}

;-------
;AFK TP
;-------

modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "3850"
	}
	insert:
	{
		"OnMapSpawn" "AFK_TP_*,FireUser1,,1,1"
	}
}

; Afk tp 1

filter:
{
	"targetname" "camper_hurt"
	"classname" "trigger_hurt"
}
modify:
{
	match:
	{
		"targetname" "camper_hurt_trigger"
		"origin" "5776 224 192"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnTrigger" "camper_hurt,Enable,,0,1"
		"OnTrigger" "camper_hurt,Disable,,8,1"
	}
	insert:
	{
		"OnTrigger" "radio_message,Command,say *** TELEPORTING AFK PLAYERS IN 15 SECONDS ***,0,1"
		"OnTrigger" "AFK_TP_1,Enable,,15,1"
	}
}

add:
{
	"targetname" "AFK_Dest_1"
	"origin" "3264 224 40"
	"angles" "0 0 0"
	"classname" "info_teleport_destination"
}
add:
{
	"targetname" "AFK_TP_1"
	"origin" "-1280 512 512"
	"target" "AFK_Dest_1"
	"StartDisabled" "1"
	"spawnflags" "1"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -3840 -2560 -1024,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 3840 2560 1024,0.1,1"
}

; Afk Tp 2

modify:
{
	match:
	{
		"targetname" "lift_ladder_block_trigger"
		"origin" "9328 -2144 492"
		"classname" "trigger_once"
	}
	insert:
	{
		"OnTrigger" "radio_message,Command,say *** TELEPORTING AFK PLAYERS IN 10 SECONDS ***,0,1"
		"OnTrigger" "AFK_TP_2,Enable,,10,1"
	}
}
add:
{
	"targetname" "AFK_Dest_2"
	"origin" "9328 -2146 480"
	"angles" "0 270 0"
	"classname" "info_teleport_destination"
}
add:
{
	"targetname" "AFK_TP_2"
	"origin" "6400 640 512"
	"target" "AFK_Dest_2"
	"StartDisabled" "1"
	"spawnflags" "1"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -3840 -2560 -1024,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 3840 2560 1024,0.1,1"
}

; Afk Tp 3

modify:
{
	match:
	{
		"targetname" "train_doors_timer"
		"classname" "logic_timer"
	}
	insert:
	{
		"OnTimer" "radio_message,Command,say *** TELEPORTING AFK PLAYERS IN 15 SECONDS ***,15,1"
		"OnTimer" "AFK_TP_3,Enable,,30,1"
	}
}
add:
{
	"targetname" "AFK_TP_3"
	"origin" "9728 -4480 512"
	"target" "fall_des"
	"StartDisabled" "1"
	"spawnflags" "1"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -3840 -2560 -1024,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 3840 2560 1024,0.1,1"
}



;; _

;; prevent zombies from getting pushed by a train

add:
{
	"model" "*94"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "7128 -9375 85"
	"nodmgforce" "0"
	"damagetype" "0"
	"damagemodel" "0"
	"damagecap" "20"
	"damage" "100000"
	"classname" "trigger_hurt"
}

;; delay train planks

modify:
{
	match:
	{
		"targetname" "wood_break_2"
		"classname" "logic_timer"
	}
	delete:
	{
		"OnTimer" "train_wall_gate,Break,,1,1"
	}
	insert:
	{
		"OnTimer" "train_wall_gate,Break,,8,1"
	}
}