; networking optimisation
modify:
{
	match:
	{
		"classname" "prop_dynamic"
	}
	insert:
	{
		"DisableBoneFollowers" "1"
	}
}

modify:
{
	match:
	{
		"classname" "prop_dynamic_override"
	}
	insert:
	{
		"DisableBoneFollowers" "1"
	}
}

; dynamic shadow crash fix
; go complete bat shit crazy on preventing crash
modify:
{
	match:
	{
		"classname" "prop_dynamic"
	}
	replace:
	{
		"disablereceiveshadows" "1"
	}
}

modify:
{
	match:
	{
		"classname" "func_movelinear"
	}
	replace:
	{
		"disablereceiveshadows" "1"
	}
}

modify:
{
	match:
	{
		"classname" "func_tracktrain"
	}
	replace:
	{
		"disablereceiveshadows" "1"
	}
}

modify:
{
	match:
	{
		"classname" "func_water_analog"
	}
	insert:
	{
		"disablereceiveshadows" "1"
	}
}

modify:
{
	match:
	{
		"classname" "func_breakable"
	}
	replace:
	{
		"disablereceiveshadows" "1"
	}
}

; particle breaks due to loose files
filter:
{
	"classname" "info_particle_system"
	"effect_name" "fire_large_01"
}
; oops
modify:
{
	match:
	{
		"targetname" "CaseLogic"
		"classname" "logic_case"
	}
	insert:
	{
		"Case05" "5"
		"OnCase05" "levelthing*,Kill,0,1"
		"OnCase01" "text_command,Command,zr_infect_mzombie_ratio 22,1"
		"OnCase02" "text_command,Command,zr_infect_mzombie_ratio 20,1"
		"OnCase03" "text_command,Command,zr_infect_mzombie_ratio 16,1"
		"OnCase04" "text_command,Command,zr_infect_mzombie_ratio 13,1"
		"OnCase05" "text_command,Command,zr_infect_mzombie_ratio 22,1"
	}
}
modify:
{
        match:
        {
		"targetname" "Level_Case"
                "classname" "logic_case"
        }
        insert:
        {
                "Case05" "5"
                "OnCase05" "levelthing*,Kill,0,1"
                "OnCase01" "text_command,Command,zr_infect_mzombie_ratio 22,1"
                "OnCase02" "text_command,Command,zr_infect_mzombie_ratio 20,1"
                "OnCase03" "text_command,Command,zr_infect_mzombie_ratio 16,1"
                "OnCase04" "text_command,Command,zr_infect_mzombie_ratio 13,1"
                "OnCase05" "text_command,Command,zr_infect_mzombie_ratio 22,1"
        }
}



;; _

;; fix zspawn/ztele

modify:
{
	match:
	{
		"origin" "3736 12248 1376"
		"targetname" "zspawn_12"
		"classname" "info_teleport_destination"
	}
	replace:
	{
		"origin" "3736 12248 1476"
	}
}
modify:
{
	match:
	{
		"origin" "3736 12328 1376"
		"targetname" "zspawn_13"
		"classname" "info_teleport_destination"
	}
	replace:
	{
		"origin" "3736 12328 1476"
	}
}
modify:
{
	match:
	{
		"origin" "3816 12328 1376"
		"targetname" "zspawn_18"
		"classname" "info_teleport_destination"
	}
	replace:
	{
		"origin" "3816 12328 1476"
	}
}
modify:
{
	match:
	{
		"origin" "3816 12248 1376"
		"targetname" "zspawn_10"
		"classname" "info_teleport_destination"
	}
	replace:
	{
		"origin" "3816 12248 1476"
	}
}
modify:
{
	match:
	{
		"origin" "3816 12168 1376"
		"targetname" "chetzabilprotp"
		"classname" "info_teleport_destination"
	}
	replace:
	{
		"origin" "3816 12168 1476"
	}
}

;; fix last afk/zm teleports

modify:
{
	match:
	{
		"targetname" "door_73"
		"origin" "3494.01 -4153 -512.5"
		"classname" "func_movelinear"
	}
	delete:
	{
		"OnFullyOpen" "global_tp,AddOutput,target zspawn20_1,2.5,-1"
	}
	insert:
	{
		"OnFullyOpen" "global_tp,AddOutput,target zspawn_20_1,2.5,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "door_75"
		"origin" "3251 -4477.99 -512.5"
		"classname" "func_movelinear"
	}
	insert:
	{
		"OnFullyOpen" "global_tp,AddOutput,target zmspawn14,15,1"
	}
}
modify:
{
	match:
	{
		"targetname" "door_81"
		"origin" "3537.99 -6476.98 -310"
		"classname" "func_movelinear"
	}
	insert:
	{
		"OnFullyClosed" "door_81,Open,,16.5,1"
	}
}


