
; Fix controllable elevators

modify:
{
	match:
	{
		"targetname" "elevator_1"
	}
	replace:
	{
		"spawnflags" "530"
	}
}

modify:
{
	match:
	{
		"targetname" "elevator_2"
	}
	replace:
	{
		"spawnflags" "530"
	}
}

modify:
{
	match:
	{
		"targetname" "Platform 1"
	}
	replace:
	{
		"spawnflags" "530"
	}
}

modify:
{
	match:
	{
		"targetname" "Platform 3"
	}
	replace:
	{
		"spawnflags" "530"
	}
}

; No AFK killer

filter:
{
	"targetname" "Afk killer"
}



;; _

;; increase nuke damage

modify:
{
	match:
	{
		"targetname" "Big explosion"
		"classname" "trigger_hurt"
	}
	replace:
	{
		"damage" "100000"
	}
}

;; prevent early debris movement

modify:
{
	match:
	{
		"health" "10000"
		"damagetoenablemotion" "9999"
		"classname" "func_physbox"
	}
	replace:
	{
		"damagetoenablemotion" "9850"
	}
}

;; energy ball antistuck

add:
{
	"origin" "9632 -4440 65"
	"UseRandomTime" "0"
	"targetname" "ball_timer"
	"StartDisabled" "0"
	"spawnflags" "0"
	"RefireTime" "10"
	"classname" "logic_timer"
	"OnTimer" "ball_antistuck,Enable,,0,-1"
	"OnTimer" "ball_antistuck,Disable,,0.5,-1"
}
add:
{
	"model" "*237"
	"wait" "1"
	"targetname" "ball_antistuck"
	"parentname" "Sphere Move"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "-1357 1408 -2195"
	"classname" "trigger_multiple"
	"OnStartTouch" "!activator,AddOutput,origin -1920 1411 -2248,0,-1"
}

;; spawn tele

add:
{
	"model" "*172"
	"origin" "-256 -256 -1904"
	"targetname" "spawn_tele"
	"target" "faller_tele"
	"StartDisabled" "1"
	"spawnflags" "1"
	"classname" "trigger_teleport"
}
modify:
{
	match:
	{
		"origin" "-416 496 -1864"
		"classname" "func_button"
		"hammerid" "2983"
	}
	delete:
	{
		"OnPressed" "Afk killer,Enable,,1,-1"
		"OnPressed" "Office Message,Command,say **--**AFK KILLER ENABLED!**--**,0,-1"
	}
}
modify:
{
	match:
	{
		"origin" "-904 432 -1864"
		"classname" "func_button"
		"hammerid" "2392"
	}
	insert:
	{
		"OnPressed" "spawn_tele,Enable,,30,1"
		"OnPressed" "Office Message,Command,say **--**AFK TELEPORT ENABLED!**--**,30,1"
	}
}

;; fall tele

add:
{
	"model" "*172"
	"wait" "1"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "-710 -2092 -2970"
	"classname" "trigger_multiple"
	"OnStartTouch" "!activator,AddOutput,origin -400 -2080 -2039,0,-1"
}

