;stripper by encap 

;; ze_moon_base_v1

;; (filter (now?) useless volume triggers) - not anymore

;filter:
;{
;	"targetname" "volume_0_A"
;}
;filter:
;{
;	"targetname" "volume_1_A"
;}
;filter:
;{
;	"targetname" "volume_0_B"
;}
;filter:
;{
;	"targetname" "volume_1_B"
;}
;filter:
;{
;	"targetname" "volume_0_C"
;}
;filter:
;{
;	"targetname" "volume_1_C"
;}
;filter:
;{
;	"targetname" "settings"
;}

modify:
{
	match:
	{
		"targetname" "volume_0_A"
		"origin" "-1344 -10240 48"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "command_1,Command,volume 0,0,-1"
	}
	insert:
	{
		"OnStartTouch" "command_1,Command,soundfade 100 90 [1 1],0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "volume_1_A"
		"origin" "-1344 -10240 40"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "command_1,Command,volume 1,0,-1"
	}
	insert:
	{
		"OnStartTouch" "command_1,Command,soundfade 50 1,0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "volume_0_B"
		"origin" "-768 -10816 48"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "command_2,Command,volume 0,0,-1"
	}
	insert:
	{
		"OnStartTouch" "command_2,Command,soundfade 100 90 [1 1],0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "volume_1_B"
		"origin" "-768 -10816 40"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "command_2,Command,volume 1,0,-1"
	}
	insert:
	{
		"OnStartTouch" "command_2,Command,soundfade 50 1,0,-1"
	}
}
modify:
{
	match:
	{
		"classname" "trigger_multiple"
		"OnStartTouch" "command_3,Command,volume 0,0,-1"
	}
	delete:
	{
		"OnStartTouch" "command_3,Command,volume 0,0,-1"
	}
	insert:
	{
		"OnStartTouch" "command_3,Command,soundfade 100 60 [1 1],0,-1"
	}
}
modify:
{
	match:
	{
		"classname" "trigger_multiple"
		"OnStartTouch" "command_3,Command,volume 1,0,-1"
	}
	delete:
	{
		"OnStartTouch" "command_3,Command,volume 1,0,-1"
	}
	insert:
	{
		"OnStartTouch" "command_3,Command,soundfade 50 1,0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "volume_C_0"
		"origin" "-2944 896 104"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "command_4,Command,volume 0,0,-1"
	}
	insert:
	{
		"OnStartTouch" "command_1,Command,soundfade 100 90 [1 1],0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "volume_C_1"
		"origin" "-2944 896 96"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "command_4,Command,volume 1,0,-1"
	}
	insert:
	{
		"OnStartTouch" "command_1,Command,soundfade 50 1,0,-1"
	}
}

add:
{
	"wait" "1"
	"targetname" "spawn_reset"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "-2448 -10248 56"
	"classname" "trigger_multiple"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -400 -424 -72,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 400 424 72,0.1,1"
	"OnStartTouch" "command_1,Command,soundfade 10 1,0,-1"
}
add:
{
	"wait" "1"
	"targetname" "spawn_reset"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "-1280 -11840 108"
	"classname" "trigger_multiple"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -352 -288 -108,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 352 288 108,0.1,1"
	"OnStartTouch" "command_1,Command,soundfade 10 1,0,-1"
}
add:
{
	"wait" "1"
	"targetname" "spawn_reset"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "348 -11136 108"
	"classname" "trigger_multiple"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -292 -352 -108,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 292 352 108,0.1,1"
	"OnStartTouch" "command_1,Command,soundfade 10 1,0,-1"
}

;; set gravity at round start

modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "1638"
	}
	delete:
	{
		"OnMapSpawn" "settings,Command,sv_gravity 600,0,-1"
	}
	insert:
	{
		"OnMapSpawn" "command_A,Command,sv_gravity 600,0,1"
	}
}

;; Add afk teleport

; Afk zone 1

add:
{
	"origin" "-768 -5888 -240"
	"targetname" "afk1_dest"
	"angles" "0 0 0"
	"classname" "info_teleport_destination"
}
add:
{
	"targetname" "afk1"
	"target" "afk1_dest"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "-1088 -9712 144"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -1760 -2416 -144,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 1760 2416 144,0.1,1"
	"OnStartTouch" "command_1,Command,soundfade 10 1,0,-1"
}

modify:
{
	match:
	{
		"classname" "func_button"
		"hammerid" "18107"
	}
	insert:
	{
		"OnPressed" "command_A,Command,say ***Afk teleport active***,32,1"
		"OnPressed" "afk1,Enable,,33,1"
		"OnPressed" "spawn_reset,Disable,,33,1"
	}
}

; Afk zone 2

add:
{
	"origin" "769 -319 -718"
	"targetname" "afk2_dest"
	"angles" "0 90 0"
	"classname" "info_teleport_destination"
}
add:
{
	"targetname" "afk2"
	"target" "afk2_dest"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "247 -4095.5 -432"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -1799 -3199.5 -560,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 1799 3199.5 560,0.1,1"
	"OnStartTouch" "command_3,Command,soundfade 10 1,0,-1"
}

modify:
{
	match:
	{
		"classname" "func_button"
		"hammerid" "38062"
	}
	insert:
	{
		"OnPressed" "command_C,Command,say ***Teleporting afk players***,47,1"
		"OnPressed" "afk2,Enable,,48,1"
	}
}

; Afk zone 3

add:
{
	"origin" "-2302 8001 144"
	"targetname" "afk3_dest"
	"angles" "0 90 0"
	"classname" "info_teleport_destination"
}
add:
{
	"targetname" "afk3"
	"target" "afk3_dest"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "-1872 3456.5 -49"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -2992 -4351.5 -719,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 2992 4351.5 719,0.1,1"
	"OnStartTouch" "command_3,Command,soundfade 10 1,0,-1"
}

modify:
{
	match:
	{
		"classname" "func_button"
		"hammerid" "185343"
	}
	insert:
	{
		"OnPressed" "consolesays,Command,say ***Teleporting afk players in 10s***,50,1"
		"OnPressed" "afk3,Enable,,60,1"
	}
}

modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "1638"
	}
	insert:
	{
		"OnMapSpawn" "afk1,FireUser1,,0,-1"
		"OnMapSpawn" "afk2,FireUser1,,0,-1"
		"OnMapSpawn" "afk3,FireUser1,,0,-1"
		"OnMapSpawn" "spawn_reset,FireUser1,,0,-1"
	}
}

;; blastdoors crush players

modify:
{
	match:
	{
		"targetname" "blastdoor_2_A"
		"classname" "func_door"
	}
	insert:
	{
		"dmg" "10000"
	}
}
modify:
{
	match:
	{
		"targetname" "blastdoor_2_B"
		"classname" "func_door"
	}
	insert:
	{
		"dmg" "10000"
	}
}

;; unstuck players after lunar vehicle crash

add:
{
	"origin" "-2155 6826 85"
	"targetname" "lunar_dest"
	"angles" "0 90 0"
	"classname" "info_teleport_destination"
}
add:
{
	"model" "*169"
	"targetname" "lunar_tp"
	"target" "lunar_dest"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "-2277 6821 103"
	"classname" "trigger_teleport"
}
add:
{
	"model" "*134"
	"targetname" "lunar_tp"
	"target" "lunar_dest"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "-2275 6829 -22"
	"classname" "trigger_teleport"
}

modify:
{
	match:
	{
		"targetname" "path_28"
		"classname" "path_track"
	}
	insert:
	{
		"OnPass" "lunar_tp,Enable,,1,1"
		"OnPass" "lunar_tp,Disable,,1.1,1"
	}
}


