;; _

;; possible crash fix?

modify:
{
	match:
	{
		"classname" "func_door"
	}
	replace:
	{
		"disablereceiveshadows" "1"
		"disableshadows" "1"
	}
}
modify:
{
	match:
	{
		"classname" "func_button"
	}
	replace:
	{
		"disablereceiveshadows" "1"
		"disableshadows" "1"
	}
}
modify:
{
	match:
	{
		"classname" "func_breakable"
	}
	replace:
	{
		"disablereceiveshadows" "1"
		"disableshadows" "1"
	}
}
modify:
{
	match:
	{
		"classname" "func_brush"
	}
	replace:
	{
		"disablereceiveshadows" "1"
		"disableshadows" "1"
	}
}
modify:
{
	match:
	{
		"classname" "func_tracktrain"
	}
	replace:
	{
		"disablereceiveshadows" "1"
		"disableshadows" "1"
	}
}
modify:
{
	match:
	{
		"classname" "func_illusionary"
	}
	replace:
	{
		"disablereceiveshadows" "1"
		"disableshadows" "1"
	}
}
modify:
{
	match:
	{
		"classname" "func_physbox_multiplayer"
	}
	replace:
	{
		"disablereceiveshadows" "1"
		"disableshadows" "1"
	}
}
modify:
{
	match:
	{
		"classname" "func_wall_toggle"
	}
	replace:
	{
		"disablereceiveshadows" "1"
		"disableshadows" "1"
	}
}
modify:
{
	match:
	{
		"classname" "func_tanktrain"
	}
	replace:
	{
		"disablereceiveshadows" "1"
		"disableshadows" "1"
	}
}
modify:
{
	match:
	{
		"classname" "func_rotating"
	}
	replace:
	{
		"disablereceiveshadows" "1"
		"disableshadows" "1"
	}
}
modify:
{
	match:
	{
		"classname" "func_movelinear"
	}
	replace:
	{
		"disablereceiveshadows" "1"
		"disableshadows" "1"
	}
}
modify:
{
	match:
	{
		"classname" "func_physbox"
	}
	replace:
	{
		"disablereceiveshadows" "1"
		"disableshadows" "1"
	}
}

;; fix gamemodes

; lowgrav

modify:
{
	match:
	{
		"targetname" "low grav"
		"classname" "trigger_multiple"
		"hammerid" "224416"
	}
	replace:
	{
		"wait" "-1"
		"OnStartTouch" "console,Command,sv_gravity 200,0,1"
	}
}

; modelscale

modify:
{
	match:
	{
		"targetname" "modelscale"
		"classname" "trigger_multiple"
		"hammerid" "205674"
	}
	delete:
	{
		"OnStartTouch" "physboxcar_breakable,SetHealth,100000000,0,-1"
		"OnStartTouch" "physboxcar_breakable,Color,255 0 0,0,-1"
	}
	insert:
	{
		"OnStartTouch" "physboxcar_breakable,SetHealth,100000000,0,1"
		"OnStartTouch" "physboxcar_breakable,Color,255 0 0,0,1"
	}
}

; zm

modify:
{
	match:
	{
		"targetname" "zm mode"
		"classname" "trigger_once"
		"hammerid" "296623"
	}
	delete:
	{
		"OnStartTouch" "console,Command,say **Survive 4 minutes!**,3,-1"
		"OnStartTouch" "console,Command,say **Survive 2 minutes!**,120,-1"
		"OnStartTouch" "console,Command,say **Survive the last minute!**,180,-1"
		"OnStartTouch" "console,Command,say **25 seconds left!**,215,-1"
		"OnStartTouch" "console,Command,say **10 SECONDS LEFT!!!**,230,-1"
		"OnStartTouch" "console,Command,say **GOOD JOB YOU SURVIVED 4 MINUTES**,240,-1"
		"OnStartTouch" "zm mode winner,Enable,,239.99,-1"
		"OnStartTouch" "zm mode gamescore,Enable,,240,-1"
		"OnStartTouch" "zm mode particle,Start,,0,-1"
		"OnStartTouch" "zm mode teleport,Enable,,0,-1"
	}
	insert:
	{
		"OnStartTouch" "console,Command,say **Survive 4 minutes!**,3,1"
		"OnStartTouch" "console,Command,say **Survive 3 minutes!**,60,1"
		"OnStartTouch" "console,Command,say **Survive 2 minutes!**,120,1"
		"OnStartTouch" "console,Command,say **Survive the last minute!**,180,1"
		"OnStartTouch" "console,Command,say **25 seconds left!**,215,1"
		"OnStartTouch" "console,Command,say **10 SECONDS LEFT!!!**,230,1"
		"OnStartTouch" "console,Command,say **GOOD JOB YOU SURVIVED 4 MINUTES**,240,1"
		"OnStartTouch" "zm mode winner,Enable,,239.99,1"
		"OnStartTouch" "zm mode gamescore,Enable,,240,1"
		"OnStartTouch" "zm mode particle,Start,,0,1"
		"OnStartTouch" "zm mode teleport,Enable,,0,1"
		"OnStartTouch" "zm_mode_dynamic,Enable,,0,1"
	}
}
modify:
{
	match:
	{
		"origin" "-13128 -5677 450.727"
		"targetname" "zm mode"
		"model" "models/props_lab/teleplatform.mdl"
		"classname" "prop_dynamic"
		"hammerid" "296690"
	}
	replace:
	{
		"targetname" "zm_mode_dynamic"
	}
}

; reverse

modify:
{
	match:
	{
		"targetname" "reverse mode"
		"classname" "trigger_teleport"
		"hammerid" "362436"
	}
	delete:
	{
		"OnStartTouch" "reverse mode desti case,PickRandom,,0,-1"
		"OnStartTouch" "hello i3d button overworld,Kill,,0,-1"
		"OnStartTouch" "overworld water hurt,Disable,,0,-1"
		"OnStartTouch" "underworld water hurt,Disable,,0,-1"
		"OnStartTouch" "reverse overworld water teleport,Enable,,0,-1"
		"OnStartTouch" "reverse underworld water teleport,Enable,,0,-1"
		"OnStartTouch" "boat overworld,StartForward,,16,-1"
		"OnStartTouch" "boat underworld,StartForward,,3,-1"
		"OnStartTouch" "chopper,StartForward,,15,-1"
		"OnStartTouch" "chopper 2,StartForward,,15,-1"
		"OnStartTouch" "chopper  particle,Start,,15,-1"
		"OnStartTouch" "chopper 2 particle,Start,,15,-1"
		"OnStartTouch" "chopper 2 particle,Stop,,55,-1"
		"OnStartTouch" "chopper  particle,Stop,,55,-1"
		"OnStartTouch" "chopper 2,Kill,,55,-1"
		"OnStartTouch" "chopper,Kill,,55,-1"
		"OnStartTouch" "boat underworld,Kill,,55,-1"
		"OnStartTouch" "boat overworld,Kill,,55,-1"
		"OnStartTouch" "boat underworld model,Break,,55,-1"
		"OnStartTouch" "boat spawn 1 model,Kill,,55,-1"
		"OnStartTouch" "overworld zombie once,Disable,,0,-1"
		"OnStartTouch" "overworld human once,Disable,,0,-1"
		"OnStartTouch" "underworld human once,Disable,,0,-1"
		"OnStartTouch" "underworld zombie once,Disable,,0,-1"
		"OnStartTouch" "reverse overworld first zm teleport,Enable,,55,-1"
		"OnStartTouch" "reverse underworld first zm teleport,Enable,,55,-1"
		"OnStartTouch" "reverse mode brush,Toggle,,20,-1"
		"OnStartTouch" "nuke ambient,PlaySound,,300,-1"
		"OnStartTouch" "nuke fade,Fade,,300,-1"
		"OnStartTouch" "zm mode hurt,Enable,,300,-1"
		"OnStartTouch" "reverse mode end teleport,Enable,,295,-1"
		"OnStartTouch" "reverse mode end dustmote,TurnOn,,293,-1"
		"OnStartTouch" "breakable big wall,Break,,0,-1"
		"OnStartTouch" "reverse mode dynamic,Enable,,0,-1"
		"OnStartTouch" "reverse extra hold once,Enable,,0,-1"
		"OnStartTouch" "hello i3d button overworld,Kill,,0,-1"
		"OnStartTouch" "reverse mode filter giver,Enable,,0,-1"
		"OnStartTouch" "boat underworld,Kill,,0,-1"
		"OnStartTouch" "chopper 2,Kill,,0,-1"
	}
	insert:
	{
		"OnStartTouch" "reverse mode desti case,PickRandom,,0,1"
		"OnStartTouch" "hello i3d button overworld,Kill,,0,1"
		"OnStartTouch" "overworld water hurt,Disable,,0,1"
		"OnStartTouch" "underworld water hurt,Disable,,0,1"
		"OnStartTouch" "reverse overworld water teleport,Enable,,0,1"
		"OnStartTouch" "reverse underworld water teleport,Enable,,0,1"
		"OnStartTouch" "boat overworld,StartForward,,16,1"
		"OnStartTouch" "boat underworld,StartForward,,3,1"
		"OnStartTouch" "chopper,StartForward,,15,1"
		"OnStartTouch" "chopper 2,StartForward,,15,1"
		"OnStartTouch" "chopper  particle,Start,,15,1"
		"OnStartTouch" "chopper 2 particle,Start,,15,1"
		"OnStartTouch" "chopper 2 particle,Stop,,55,1"
		"OnStartTouch" "chopper  particle,Stop,,55,1"
		"OnStartTouch" "chopper 2,Kill,,55,1"
		"OnStartTouch" "chopper,Kill,,55,1"
		"OnStartTouch" "boat underworld,Kill,,55,1"
		"OnStartTouch" "boat overworld,Kill,,55,1"
		"OnStartTouch" "boat underworld model,Break,,55,1"
		"OnStartTouch" "boat spawn 1 model,Kill,,55,1"
		"OnStartTouch" "overworld zombie once,Disable,,0,1"
		"OnStartTouch" "overworld human once,Disable,,0,1"
		"OnStartTouch" "underworld human once,Disable,,0,1"
		"OnStartTouch" "underworld zombie once,Disable,,0,1"
		"OnStartTouch" "reverse overworld first zm teleport,Enable,,55,1"
		"OnStartTouch" "reverse underworld first zm teleport,Enable,,55,1"
		"OnStartTouch" "reverse mode brush,Toggle,,20,1"
		"OnStartTouch" "nuke ambient,PlaySound,,300,1"
		"OnStartTouch" "nuke fade,Fade,,300,1"
		"OnStartTouch" "zm mode hurt,Enable,,300,1"
		"OnStartTouch" "reverse mode end teleport,Enable,,295,1"
		"OnStartTouch" "reverse mode end dustmote,TurnOn,,293,1"
		"OnStartTouch" "breakable big wall,Break,,0,1"
		"OnStartTouch" "reverse extra hold once,Enable,,0,1"
		"OnStartTouch" "hello i3d button overworld,Kill,,0,1"
		"OnStartTouch" "reverse mode filter giver,Enable,,0,1"
		"OnStartTouch" "boat underworld,Kill,,0,1"
		"OnStartTouch" "chopper 2,Kill,,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "reverse template"
		"classname" "point_template"
		"hammerid" "381004"
	}
	replace:
	{
		"Template02" "reverse_mode_dynamic"
	}
}
modify:
{
	match:
	{
		"targetname" "reverse mode dynamic"
		"model" "models/props/cs_militia/crate_extrasmallmill.mdl"
		"classname" "prop_dynamic"
	}
	replace:
	{
		"targetname" "reverse_mode_dynamic"
		"StartDisabled" "0"
	}
}

; snow

modify:
{
	match:
	{
		"targetname" "snow mode"
		"classname" "trigger_once"
		"hammerid" "438841"
	}
	delete:
	{
		"OnStartTouch" "fog controller and fps whoring like a noob,TurnOn,,0,-1"
		"OnStartTouch" "snow mode fog,TurnOff,,1,-1"
		"OnStartTouch" "snow mode template 1,ForceSpawn,,2,-1"
	}
	insert:
	{
		"OnStartTouch" "fog controller and fps whoring like a noob,TurnOn,,0,1"
		"OnStartTouch" "snow mode fog,TurnOff,,1,1"
		"OnStartTouch" "snow mode template 1,ForceSpawn,,2,1"
	}
}

; chaos

modify:
{
	match:
	{
		"targetname" "chaos mode"
		"classname" "trigger_once"
		"hammerid" "561037"
	}
	delete:
	{
		"OnStartTouch" "chaos mode timer,Enable,,0,-1"
		"OnStartTouch" "chaos mode brush,Toggle,,1,-1"
		"OnStartTouch" "chaos mode particle,Start,,1,-1"
		"OnStartTouch" "chaos mode skin trigger,Enable,,5,-1"
	}
	insert:
	{
		"OnStartTouch" "chaos mode timer,Enable,,0,1"
		"OnStartTouch" "chaos mode brush,Toggle,,1,1"
		"OnStartTouch" "chaos mode particle,Start,,1,1"
		"OnStartTouch" "chaos mode skin trigger,Enable,,5,1"
	}
}
modify:
{
	match:
	{
		"targetname" "chaos mode case color relay"
		"classname" "trigger_once"
		"hammerid" "584407"
	}
	replace:
	{
		"classname" "trigger_multiple"
	}
	insert:
	{
		"wait" "0.1"
	}
}
modify:
{
	match:
	{
		"targetname" "chaos mode case modelscale"
		"classname" "logic_relay"
		"hammerid" "571396"
	}
	delete:
	{
		"OnTrigger" "console,Command,say **small players for 10 seconds!**,0,1"
	}
	insert:
	{
		"OnTrigger" "console,Command,say **small players for 10 seconds!**,0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "chaos mode cases"
		"classname" "logic_case"
		"hammerid" "561109"
	}
	delete:
	{
		"OnCase06" "console,Command,say **Fast speed for 10 seconds**,0,-1"
		"OnCase03" "chaos mode case push CT,Enable,,0,-1"
		"OnCase03" "chaos mode case push CT,Disable,,10,-1"
		"OnCase02" "chaos mode case push ZM,Enable,,0,-1"
		"OnCase02" "chaos mode case push ZM,Disable,,10,-1"
	}
	insert:
	{
		"OnCase06" "console,Command,say **Fast speed for 10 seconds**,0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "chaos mode case speed"
		"classname" "trigger_multiple"
		"hammerid" "576377"
	}
	delete:
	{
		"OnStartTouch" "console,Command,say **Fast speed for 10 seconds**,0,-1"
	}
}

add:
{
	"model" "*132"
	"targetname" "chaos_mode_case_push_CT_90"
	"StartDisabled" "1"
	"speed" "400"
	"spawnflags" "1"
	"pushdir" "0 90 0"
	"origin" "-55 -3677.5 -1145"
	"filtername" "filter_CT"
	"alternateticksfix" "0"
	"classname" "trigger_push"
}
add:
{
	"model" "*132"
	"targetname" "chaos_mode_case_push_CT_180"
	"StartDisabled" "1"
	"speed" "400"
	"spawnflags" "1"
	"pushdir" "0 180 0"
	"origin" "-55 -3677.5 -1145"
	"filtername" "filter_CT"
	"alternateticksfix" "0"
	"classname" "trigger_push"
}
add:
{
	"model" "*132"
	"targetname" "chaos_mode_case_push_CT_270"
	"StartDisabled" "1"
	"speed" "400"
	"spawnflags" "1"
	"pushdir" "0 270 0"
	"origin" "-55 -3677.5 -1145"
	"filtername" "filter_CT"
	"alternateticksfix" "0"
	"classname" "trigger_push"
}
modify:
{
	match:
	{
		"targetname" "chaos mode case push CT"
		"classname" "trigger_push"
		"hammerid" "566165"
	}
	replace:
	{
		"targetname" "chaos_mode_case_push_CT_0"
	}
}
modify:
{
	match:
	{
		"targetname" "chaos mode case push case ct"
		"classname" "logic_case"
		"hammerid" "584331"
	}
	delete:
	{
		"OnCase01" "chaos mode case push CT,AddOutput,angles 0 90 0,0,-1"
		"OnCase02" "chaos mode case push CT,AddOutput,angles 0 270 0,0,-1"
		"OnCase03" "chaos mode case push CT,AddOutput,angles 0 180 0,0,-1"
		"OnCase04" "chaos mode case push CT,AddOutput,angles 0 0 0,0,-1"
	}
	insert:
	{
		"OnCase01" "chaos_mode_case_push_CT_0,Enable,,0,-1"
		"OnCase01" "chaos_mode_case_push_CT_0,Disable,,10,-1"
		"OnCase02" "chaos_mode_case_push_CT_90,Enable,,0,-1"
		"OnCase02" "chaos_mode_case_push_CT_90,Disable,,10,-1"
		"OnCase03" "chaos_mode_case_push_CT_180,Enable,,0,-1"
		"OnCase03" "chaos_mode_case_push_CT_180,Disable,,10,-1"
		"OnCase04" "chaos_mode_case_push_CT_270,Enable,,0,-1"
		"OnCase04" "chaos_mode_case_push_CT_270,Disable,,10,-1"
	}
}

add:
{
	"model" "*131"
	"targetname" "chaos_mode_case_push_ZM_90"
	"StartDisabled" "1"
	"speed" "400"
	"spawnflags" "1"
	"pushdir" "0 90 0"
	"origin" "-55 -3677.5 -1145"
	"filtername" "filter_T"
	"alternateticksfix" "0"
	"classname" "trigger_push"
}
add:
{
	"model" "*131"
	"targetname" "chaos_mode_case_push_ZM_180"
	"StartDisabled" "1"
	"speed" "400"
	"spawnflags" "1"
	"pushdir" "0 180 0"
	"origin" "-55 -3677.5 -1145"
	"filtername" "filter_T"
	"alternateticksfix" "0"
	"classname" "trigger_push"
}
add:
{
	"model" "*131"
	"targetname" "chaos_mode_case_push_ZM_270"
	"StartDisabled" "1"
	"speed" "400"
	"spawnflags" "1"
	"pushdir" "0 270 0"
	"origin" "-55 -3677.5 -1145"
	"filtername" "filter_T"
	"alternateticksfix" "0"
	"classname" "trigger_push"
}
modify:
{
	match:
	{
		"targetname" "chaos mode case push ZM"
		"classname" "trigger_push"
		"hammerid" "566096"
	}
	replace:
	{
		"targetname" "chaos_mode_case_push_ZM_0"
	}
}
modify:
{
	match:
	{
		"targetname" "chaos mode case push case"
		"classname" "logic_case"
		"hammerid" "584255"
	}
	delete:
	{
		"OnCase01" "chaos mode case push ZM,AddOutput,angles 0 90 0,0,-1"
		"OnCase02" "chaos mode case push ZM,AddOutput,angles 0 270 0,0,-1"
		"OnCase03" "chaos mode case push ZM,AddOutput,angles 0 180 0,0,-1"
		"OnCase04" "chaos mode case push ZM,AddOutput,angles 0 0 0,0,-1"
	}
	insert:
	{
		"OnCase01" "chaos_mode_case_push_ZM_0,Enable,,0,-1"
		"OnCase01" "chaos_mode_case_push_ZM_0,Disable,,10,-1"
		"OnCase02" "chaos_mode_case_push_ZM_90,Enable,,0,-1"
		"OnCase02" "chaos_mode_case_push_ZM_90,Disable,,10,-1"
		"OnCase03" "chaos_mode_case_push_ZM_180,Enable,,0,-1"
		"OnCase03" "chaos_mode_case_push_ZM_180,Disable,,10,-1"
		"OnCase04" "chaos_mode_case_push_ZM_270,Enable,,0,-1"
		"OnCase04" "chaos_mode_case_push_ZM_270,Disable,,10,-1"
	}
}

; static

modify:
{
	match:
	{
		"targetname" "static mode"
		"classname" "trigger_once"
		"hammerid" "644726"
	}
	delete:
	{
		"OnStartTouch" "static mode brush,Toggle,,0,-1"
		"OnStartTouch" "static mode template,ForceSpawn,,0,-1"
		"OnStartTouch" "brigde value,AddHealth,100000,0,-1"
		"OnStartTouch" "static mode breakable case color,PickRandom,,0,-1"
	}
	insert:
	{
		"OnStartTouch" "static mode brush,Toggle,,0,1"
		"OnStartTouch" "static mode template,ForceSpawn,,0,1"
		"OnStartTouch" "brigde value,AddHealth,100000,0,1"
		"OnStartTouch" "static mode breakable case color,PickRandom,,0,1"
	}
}


