;------------------
;INSTANT KILL NUKE
;------------------

modify:
{
	match:
	{
		"targetname" "hurt_2"
		"classname" "trigger_hurt"
	}
	replace:
	{
		"damagecap" "999999"
		"damage" "999999"
	}
}

modify:
{
	match:
	{
		"targetname" "hurt_1"
		"classname" "trigger_hurt"
	}
	replace:
	{
		"damagecap" "999999"
		"damage" "999999"
	}
}


;; _
 
;; prevent knifed at spawn zombies getting outside playable area
 
add:
{
	"targetname" "clip1"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "0"
	"spawnflags" "2"
	"Solidity" "0"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "-1568 1920 1184"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -2208 -2688 -32.5,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 2208 2688 32,0.1,1"
}
 
modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "920"
	}
	insert:
	{
		"OnMapSpawn" "clip1,FireUser1,,0,-1"
		"OnMapSpawn" "clip2,FireUser1,,0,-1"
	}
}
 
;; bridge breaks only on trigger
 
modify:
{
	match:
	{
		"targetname" "pont_b"
		"classname" "func_breakable"
	}
	replace:
	{
		"spawnflags" "1"
	}
}
 
;; block shortcuts to the end
 
add:
{
	"targetname" "clip2"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "0"
	"spawnflags" "2"
	"Solidity" "0"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "-1854 -10374.5 -3874.5"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -18 -125.5 -133.5,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 18 125.5 133.5,0.1,1"
}
add:
{
	"targetname" "clip2"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "0"
	"spawnflags" "2"
	"Solidity" "0"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "-1854 -6182 -3771"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -18 -321 -278,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 18 321 278,0.1,1"
}

;; spawn afk teleport

add:
{
	"model" "*71"
	"origin" "-1227.5 6494 601"
	"targetname" "afk1"
	"target" "tele_1"
	"StartDisabled" "1"
	"spawnflags" "1"
	"classname" "trigger_teleport"
}
modify:
{
	match:
	{
		"origin" "-7359 -8162 -4827"
		"classname" "trigger_once"
		"hammerid" "551"
	}
	insert:
	{
		"OnStartTouch" "commande_serveur,Command,say ***TELEPORTER DES JOUEURS AFK EN 10 SEC***,10,1"
		"OnStartTouch" "afk1,Enable,,20,1"
	}
}

;; music volume

modify:
{
	match:
	{
		"message" "ambient/zr/skinonourteeth.wav"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#ambient/zr/skinonourteeth.wav"
	}
}

;; fix heli path

modify:
{
	match:
	{
		"targetname" "heli_3"
		"classname" "path_track"
	}
	replace:
	{
		"origin" "-5497 -8124 -3466"
	}
}

