;; _

;; mog - fix zm shortcut opening early

modify:
{
	match:
	{
		"targetname" "zombiepanic_cheerleader1_trigger"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnTrigger" "zombiepanic_zombie_shortcut_3,Break,,1,-1"
		"OnTrigger" "zombiepanic_zombie_shortcut,Break,,7,-1"
		"OnTrigger" "zombiepanic_zombie_shortcut2,Break,,14,-1"
		"OnTrigger" "zombiepanic_zombie_shortcut1,Break,,4,-1"
	}
}

modify:
{
	match:
	{
		"targetname" "zombiepanic_hold_3"
		"classname" "func_breakable"
	}
	insert:
	{
		"OnBreak" "zombiepanic_zombie_shortcut_3,Break,,11,-1"
		"OnBreak" "zombiepanic_zombie_shortcut,Break,,17,-1"
		"OnBreak" "zombiepanic_zombie_shortcut2,Break,,24,-1"
		"OnBreak" "zombiepanic_zombie_shortcut1,Break,,14,-1"
	}
}

;; wave - fix zombies getting permaslowed by wave

modify:
{
	match:
	{
		"targetname" "WaterWave_PushBack"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnEndTouch" "SpeedMod,ModifySpeed,1,0,-1"
	}
	insert:
	{
		"OnEndTouch" "SpeedMod,ModifySpeed,1,0.1,-1"
	}
}

;; wave - fix lifeguard

modify:
{
	match:
	{
		"targetname" "ww_welcome"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnTrigger" "ww_math_humancounter,GetValue,,0.5,-1"
	}
	insert:
	{
		"OnTrigger" "ww_math_humancounter,GetValue,,5.5,-1"
	}
}

;; wave - fix first trigger

add:
{
	"model" "*403"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "-13728 -13472.5 -247"
	"classname" "trigger_once"
	"OnTrigger" "ww_trigger_progress_1_plate,Break,,0,1"
}

modify:
{
	match:
	{
		"targetname" "ww_trigger_progress_1_plate"
		"classname" "func_breakable"
	}
	replace:
	{
		"spawnflags" "1025"
	}
}

