;--------------------------------------------------------------------
;STRIPPER CFG BY MOLTARD http://steamcommunity.com/id/0123456789ABC/
;--------------------------------------------------------------------
;FIX NUKE GLITCH
;----------------

add:
{
	"model" "*66"
	"origin" "-2240 5760 496"
	"spawnflags" "1"
	"nodmgforce" "0"
	"damagemodel" "0"
	"damagetype" "64"
	"damagecap" "4000"
	"damage" "10000000"
	"StartDisabled" "1"
	"targetname" "nuke_hurt"
	"classname" "trigger_hurt"
}

add:
{
	"model" "*66"
	"origin" "-1728 5760 496"
	"spawnflags" "1"
	"nodmgforce" "0"
	"damagemodel" "0"
	"damagetype" "64"
	"damagecap" "4000"
	"damage" "10000000"
	"StartDisabled" "1"
	"targetname" "nuke_hurt"
	"classname" "trigger_hurt"
}

add:
{
	"model" "*66"
	"origin" "-320 4608 496"
	"spawnflags" "1"
	"nodmgforce" "0"
	"damagemodel" "0"
	"damagetype" "64"
	"damagecap" "4000"
	"damage" "10000000"
	"StartDisabled" "1"
	"targetname" "nuke_hurt"
	"classname" "trigger_hurt"
}

;---------------------
;FIX BUTTONS ON TRAIN
;---------------------

modify:
{
	match:
	{
		"model" "*58"
		"origin" "640 10738 472"
		"parentname" "train"
		"classname" "func_button"
	}
	replace:
	{
		"spawnflags" "2048"
	}
}

modify:
{
	match:
	{
		"model" "*57"
		"origin" "638.31 10172 472"
		"parentname" "train"
		"classname" "func_button"
	}
	replace:
	{
		"spawnflags" "2048"
	}
}


;; _

;; playerclip to prevent boosted zombies falling under the map

add:
{
	"targetname" "end_clip"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "0"
	"spawnflags" "2"
	"Solidity" "0"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "1328 4736 880"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -80 -6976 -80,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 80 6976 80,0.1,1"
}

modify:
{
	match:
	{
		"classname" "logic_auto"
	}
	insert:
	{
		"OnMapSpawn" "end_clip,FireUser1,,0,-1"
	}
}

;; fix nuke evading spot

add:
{
	"origin" "384 12128 495.5"
	"spawnflags" "1"
	"nodmgforce" "0"
	"damagemodel" "0"
	"damagetype" "64"
	"damagecap" "4000"
	"damage" "10000000"
	"StartDisabled" "1"
	"targetname" "nuke_hurt"
	"classname" "trigger_hurt"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -1024 -416 -463.5,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 1024 416 463.5,0.1,1"
}

modify:
{
	match:
	{
		"classname" "logic_auto"
	}
	insert:
	{
		"OnMapSpawn" "nuke_hurt,FireUser1,,0,-1"
	}
}

;; fence clip

add:
{
	"targetname" "fenceclip"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "0"
	"spawnflags" "2"
	"Solidity" "0"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "245 8769 742.01"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -2 -2711 -218,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 2 2711 218,0.1,1"
}
modify:
{
	match:
	{
		"origin" "-131.73 -1548.53 72"
		"classname" "logic_auto"
	}
	insert:
	{
		"OnMapSpawn" "fenceclip,FireUser1,,0,-1"
	}
}