;; _

;; ice skating

add:
{
	"model" "*25"
	"StartDisabled" "0"
	"targetname" "ice_hurt"
	"spawnflags" "1"
	"origin" "96 -4625 -367.5"
	"nodmgforce" "0"
	"damagetype" "0"
	"damagemodel" "0"
	"damagecap" "20000"
	"damage" "20000"
	"classname" "trigger_hurt"
	"OnUser3" "!self,AddOutput,origin 96 -4625 -359.5,0,1"
}

add:
{
	"model" "*25"
	"StartDisabled" "1"
	"targetname" "ice_push"
	"speed" "600"
	"spawnflags" "1"
	"pushdir" "-90 0 0"
	"origin" "96 -1008 -360"
	"angles" "0 0 0"
	"alternateticksfix" "0"
	"classname" "trigger_push"
}
add:
{
	"model" "*25"
	"StartDisabled" "1"
	"targetname" "ice_push"
	"speed" "600"
	"spawnflags" "1"
	"pushdir" "-90 0 0"
	"origin" "96 -4625 -360"
	"angles" "0 0 0"
	"alternateticksfix" "0"
	"classname" "trigger_push"
}
add:
{
	"model" "*25"
	"targetname" "ice_ramp"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "1"
	"spawnflags" "2"
	"Solidity" "0"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "96 -917 -816"
	"angles" "0 0 15"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
}
add:
{
	"classname" "prop_dynamic"
	"targetname" "ice_corner"
	"StartDisabled" "1"
	"origin" "-2655 -1340 -271"
	"angles" "0 20 0"
	"model" "models/props_lab/blastdoor001c.mdl"
	"disablereceiveshadows" "1"
	"disableshadows" "1"
	"solid" "6"
	"rendermode" "10"
}
add:
{
	"origin" "-2494 -2371 -222.349"
	"targetname" "filter_nodamage"
	"Negated" "1"
	"filterclass" "player"
	"classname" "filter_activator_class"
}
add:
{
	"targetname" "nodamage_trigger"
	"wait" "1"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "96 80 248"
	"classname" "trigger_multiple"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -2944 -2960 -504,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 2944 2960 504,0.1,1"
	"OnStartTouch" "!activator,SetDamageFilter,filter_nodamage,0,-1"
}
add:
{
	"targetname" "LakeTeleport"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "96 80 248"
	"classname" "trigger_once"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -2944 -2960 -504,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 2944 2960 504,0.1,1"
	"OnStartTouch" "LakeCase,PickRandomShuffle,,0,-1"
}
add:
{
	"origin" "1312 -4992 2568"
	"targetname" "LakeCase"
	"classname" "logic_case"
	"OnCase01" "!activator,AddOutput,origin 2368 896 -193,0,-1"
	"OnCase02" "!activator,AddOutput,origin 1472 896 -193,0,-1"
	"OnCase03" "!activator,AddOutput,origin 704 896 -193,0,-1"
	"OnCase04" "!activator,AddOutput,origin -919 896 -193,0,-1"
	"OnCase05" "!activator,AddOutput,origin -1815 896 -193,0,-1"
	"OnCase06" "!activator,AddOutput,origin -2583 896 -193,0,-1"
}
add:
{
	"origin" "2276 -756 -200"
	"targetname" "ice_relay"
	"StartDisabled" "0"
	"spawnflags" "1"
	"classname" "logic_relay"
	"OnTrigger" "command,Command,sv_airaccelerate 50,0,1"
	"OnTrigger" "command,Command,say ++ Ice skating season is open! ++,1,1"
	"OnTrigger" "command,Command,say ++ Take a break and join others on a frozen lake. ++,5,1"
	"OnTrigger" "command,Command,say ++ To start skating - don't move for 1-2 sec. and then use A and D keys. ++,10,1"
	"OnTrigger" "LakeTeleport,Enable,,1,1"
	"OnTrigger" "nodamage_trigger,Enable,,0,1"
	"OnTrigger" "island_nuke,Disable,,0,1"
	"OnTrigger" "ice_hurt,Disable,,0,1"
	"OnTrigger" "ice_push,Enable,,0,1"
	"OnTrigger" "ice_ramp,Enable,,0,1"
	"OnTrigger" "ice_corner,Enable,,0,1"
	"OnTrigger" "secretboat,Kill,,0,1"
;	"OnTrigger" "secretpath_5,AddOutput,OnPass secretboat:Kill::10:1,0,1"
	"OnTrigger" "ice_hurt,FireUser3,,0,1"
}

modify:
{
	match:
	{
		"origin" "96 -1008 -367.5"
		"classname" "trigger_hurt"
		"hammerid" "4682"
	}
	insert:
	{
		"targetname" "ice_hurt"
		"OnUser3" "!self,AddOutput,origin 96 -1008 -359.5,0,1"
	}
}
modify:
{
	match:
	{
		"origin" "2212 -1891 -58"
		"classname" "prop_door_rotating"
		"hammerid" "348440"
	}
	replace:
	{
		"spawnflags" "34816"
		"forceclosed" "1"
		"returndelay" "-1"
		"opendir" "2"
	}
	insert:
	{
		"targetname" "island_door"
	}
}
modify:
{
	match:
	{
		"targetname" "path1_5"
		"classname" "path_track"
	}
	replace:
	{
		"origin" "2176 -1050 -239"
	}
	insert:
	{
		"OnPass" "island_door,Unlock,,0,1"
		"OnPass" "island_door,Open,,0.5,1"
		"OnPass" "nuke_trigger,Enable,,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "path2_5"
		"classname" "path_track"
	}
	replace:
	{
		"origin" "1856 -1050 -239"
	}
}
modify:
{
	match:
	{
		"origin" "2188 -1921 -100.5"
		"classname" "trigger_once"
		"hammerid" "389524"
	}
	replace:
	{
		"StartDisabled" "1"
	}
	insert:
	{
		"targetname" "nuke_trigger"
		"OnTrigger" "ice_push,Disable,,11,1"
		"OnTrigger" "ice_hurt,Enable,,10,1"
		"OnTrigger" "ice_ramp,Disable,,10,1"
		"OnTrigger" "ice_corner,Kill,,10,1"
		"OnTrigger" "command,Command,sv_airaccelerate 10,10,1"
		"OnTrigger" "nodamage_trigger,AddOutput,OnEndTouch !activator:SetDamageFilter::1:-1,14.5,1"
		"OnTrigger" "nodamage_trigger,Disable,,15,1"
	}
}
modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "4886"
	}
	insert:
	{
		"OnMapSpawn" "command,Command,sv_airaccelerate 10,0,-1"
		"OnMapSpawn" "ice_ramp,Disable,,0,-1"
		"OnMapSpawn" "nodamage_trigger,FireUser1,,0,-1"
		"OnMapSpawn" "LakeTeleport,FireUser1,,0,-1"
	}
}

;; increase ice damage

modify:
{
	match:
	{
		"origin" "96 -1008 -367.5"
		"classname" "trigger_hurt"
		"hammerid" "4682"
	}
	replace:
	{
		"damage" "100000"
	}
}