;; ze_random_map_v3_7

;; boat - increase nuke damage

modify:
{
	match:
	{
		"targetname" "/nuke_hurt.*/"
		"classname" "trigger_hurt"
	}
	replace:
	{
		"damage" "100000"
	}
}

;; boat - keep nuke enabled

modify:
{
	match:
	{
		"targetname" "end_sequence_reverse"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnTrigger" "nuke_hurt_reverse,Disable,,15,-1"
	}
}

modify:
{
	match:
	{
		"targetname" "end_sequence"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnTrigger" "nuke_hurt,Disable,,15,-1"
	}
}

;; boat - remove unnecessary trigger

filter:
{
	"targetname" "globa_trigger_hurt"
}

;; islande - fix trigger origin

modify:
{
	match:
	{
		"classname" "trigger_once"
		"hammerid" "400444"
	}
	replace:
	{
		"origin" "1977 -1137 651"
	}
}

;; islande - added prop to indicate a ladder

add:
{
	"origin" "2563 -1511 5626"
	"solid" "0"
	"model" "models/props/cs_militia/ladderrung.mdl"
	"angles" "8 90 0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "prop_dynamic"
}

;; islande - block shortcut

add:
{
	"model" "*186"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "0"
	"spawnflags" "2"
	"Solidity" "0"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "-6765 -895 5112"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
}

;; islande ending - increase nuke damage

modify:
{
	match:
	{
		"targetname" "hurt_fin"
		"classname" "trigger_hurt"
	}
	replace:
	{
		"damage" "100000"
	}
}

;; islande ending - increase crush damage, enable nuke to prevent delaying

modify:
{
	match:
	{
		"targetname" "ecras"
		"classname" "func_movelinear"
	}
	replace:
	{
		"blockdamage" "10000"
	}
	insert:
	{
		"OnFullyOpen" "hurt_fin,Enable,,5,1"
	}
}

;; islande ending - remove m4a1 on 'crushing ending', break cage

modify:
{
	match:
	{
		"targetname" "b1"
		"classname" "func_button"
	}
	insert:
	{
		"OnPressed" "cut_car,Kill,,0,1"
		"OnPressed" "cage_voiture,Break,,0,1"
	}
}

;; islande ending - nuke zombies if ct with a car dies, prevent delaying

add:
{
	"model" "*222"
	"wait" "0.1"
	"targetname" "car_detect_ct"
	"origin" "-56.5 2576 239"
	"parentname" "cut_car"
	"StartDisabled" "1"
	"spawnflags" "1"
	"filtername" "filtre_ct"
	"classname" "trigger_multiple"
	"OnEndTouchAll" "hurt_fin,Enable,,5,-1"
}

modify:
{
	match:
	{
		"targetname" "cut_car"
		"classname" "weapon_m4a1"
	}
	insert:
	{
		"OnPlayerPickup" "car_detect_ct,Enable,,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "b4"
		"classname" "func_button"
	}
	insert:
	{
		"OnPressed" "cage_voiture,Break,,25,1"
		"OnPressed" "hurt_fin,Enable,,65,1"
	}
}

;; islande ending - set zm hp and nuke respawned zm's

add:
{
	"model" "*222"
	"targetname" "attack_nuke"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "-111 3724 230"
	"filtername" "filtre_zm"
	"damage" "100000"
	"classname" "trigger_hurt"
}

modify:
{
	match:
	{
		"targetname" "speed_trigger"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "speed,ModifySpeed,0,0,-1"
	}
	insert:
	{
		"OnStartTouch" "!activator,SetHealth,500,0,-1"
		"OnTrigger" "speed,ModifySpeed,0,0,-1"
	}
}

modify:
{
	match:
	{
		"targetname" "b3"
		"classname" "func_button"
	}
	insert:
	{
		"OnPressed" "b2,Lock,,0,1"
		"OnPressed" "attack_nuke,Enable,,5,1"
	}
}

;; islande ending - trigger buttons only once

modify:
{
	match:
	{
		"targetname" "/b[1-4]/"
		"classname" "func_button"
	}
	replace:
	{
		"wait" "-1"
	}
}

;; boat - change heli trigger

filter:
{
	"hammerid" "18826"
}

modify:
{
	match:
	{
		"targetname" "elico_3"
		"classname" "path_track"
	}
	insert:
	{
		"OnPass" "elico,StartForward,,10,1"
		"OnPass" "command,Command,say ***HELICO STARTS IN 10 SEC***,0,1"
		"OnPass" "command,Command,say ***HELICO STARTS IN 5 SEC***,5,1"
	}
}

;; boat - delay spawn teleport

modify:
{
	match:
	{
		"classname" "trigger_once"
		"hammerid" "26231"
	}
	delete:
	{
		"OnStartTouch" "porte_tele_retard,Break,,2,1"
	}
	insert:
	{
		"OnStartTouch" "porte_tele_retard,Break,,20,1"
	}
}

;; boat - change heli path origin

modify:
{
	match:
	{
		"targetname" "elico_10"
		"classname" "path_track"
	}
	replace:
	{
		"origin" "7070 3128 -3429"
	}
}

;; boat - increase water damage

modify:
{
	match:
	{
		"classname" "trigger_hurt"
		"hammerid" "3991"
	}
	replace:
	{
		"damage" "5000"
	}
}

;; islande - fix trigger origin

modify:
{
	match:
	{
		"classname" "trigger_once"
		"hammerid" "258388"
	}
	replace:
	{
		"origin" "-3216.5 -2278 4691.5"
	}
}

;; 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"
	}
}
modify:
{
	match:
	{
		"classname" "prop_dynamic"
	}
	replace:
	{
		"disablereceiveshadows" "1"
		"disableshadows" "1"
	}
}
modify:
{
	match:
	{
		"classname" "prop_dynamic_override"
	}
	replace:
	{
		"disablereceiveshadows" "1"
		"disableshadows" "1"
	}
}

;; boat - fix boat origin

modify:
{
	match:
	{
		"targetname" "2_path0"
		"classname" "path_track"
	}
	replace:
	{
		"origin" "6414 -12238 -3923"
	}
}
modify:
{
	match:
	{
		"targetname" "2_path1"
		"classname" "path_track"
	}
	replace:
	{
		"origin" "6425 -12238 -3923"
	}
}

;; music volume

modify:
{
	match:
	{
		"message" "zm_ramdom/happymusic.wav"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#zm_ramdom/happymusic.wav"
	}
}
modify:
{
	match:
	{
		"message" "music/hl2_song14.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#music/hl2_song14.mp3"
	}
}
modify:
{
	match:
	{
		"message" "zm_ramdom/hl2_song20_submix0.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#zm_ramdom/hl2_song20_submix0.mp3"
	}
}
modify:
{
	match:
	{
		"message" "zm_ramdom/paranoid.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#zm_ramdom/paranoid.mp3"
	}
}
modify:
{
	match:
	{
		"message" "zm_ramdom/paranoid2.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#zm_ramdom/paranoid2.mp3"
	}
}
modify:
{
	match:
	{
		"message" "zm_ramdom/prayfordeath.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#zm_ramdom/prayfordeath.mp3"
	}
}
modify:
{
	match:
	{
		"message" "zm_ramdom/skinonourteeth l4d1.wav"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#zm_ramdom/skinonourteeth l4d1.wav"
	}
}
modify:
{
	match:
	{
		"message" "zm_ramdom/tamborescrysis.wav"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#zm_ramdom/tamborescrysis.wav"
	}
}
modify:
{
	match:
	{
		"message" "zm_ramdom/win.wav"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#zm_ramdom/win.wav"
	}
}

