;--------------------------------------------------------------------
;STRIPPER CFG BY MOLTARD http://steamcommunity.com/id/0123456789ABC/
;--------------------------------------------------------------------
;DELAY SHUTTLE TO BE MORE FAIR FOR ZM
;-------------------------------------

filter:
{
	"origin" "3808 -2588 544"
	"classname" "trigger_once"
	"hammerid" "1280741"
}

add:
{
	"model" "*299"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "3808 -2588 544"
	"classname" "trigger_once"
	"OnTrigger" "Shuttle_Relay_0,Trigger,,0,1"
}
add:
{
	"origin" "3808 -2588 544"
	"targetname" "Shuttle_Relay_0"
	"spawnflags" "0"
	"classname" "logic_relay"
	; Base outputs were '15 seconds message' delay 0 and the next outputs with delay 5
	; "OnTrigger" "1,Command,say >>>Lambda-shuttle departing in 15 seconds<<<,0,1"
	; "OnTrigger" "Shuttle_Relay_1,Trigger,,5,1"
	
	"OnTrigger" "1,Command,say >>>Lambda-shuttle departing in 20 seconds<<<,0,1"
	"OnTrigger" "Shuttle_Relay_1,Trigger,,10,1"
}

add:
{
	"origin" "3808 -2588 544"
	"targetname" "Shuttle_Relay_1"
	"spawnflags" "0"
	"classname" "logic_relay"
	"OnTrigger" "1,Command,say >>>!3!<<<,0,1"
	"OnTrigger" "1,Command,say >>>!2!<<<,1,1"
	"OnTrigger" "1,Command,say >>>!1!<<<,2,1"
	"OnTrigger" "1,Command,say >>>RAMP CLOSING<<<,3,1"
	"OnTrigger" "lambda_ramp,Close,,3,1"
	"OnTrigger" "lambda_train_02,StartForward,,10,1"
	"OnTrigger" "landing_pads,Open,,10,1"
	"OnTrigger" "saber_hurt,Disable,,10,1"
	"OnTrigger" "saber_hurt2,Disable,,10,1"
	"OnTrigger" "teleport_04,Enable,,10,1"
	"OnTrigger" "teleport_04,Disable,,11,1"
	"OnTrigger" "togglewall1,Toggle,,12,1"
	"OnTrigger" "lpr,Open,,13,1"
	"OnTrigger" "Shuttle_Relay_3,Trigger,,22,1"
	"OnTrigger" "dr_02,Open,,32,1"
	"OnTrigger" "dr_01,Open,,32,1"
	"OnTrigger" "1,Command,say >>>DEATH-STAR EXPLODING IN 5 SECONDS<<<,35,1"
	"OnTrigger" "fade,Fade,,38,1"
	"OnTrigger" "ambient_03,PlaySound,,39,1"
	"OnTrigger" "nuke_04,Enable,,40,1"
}

;---------------------
;INCREASE NUKE DAMAGE
;---------------------

modify:
{
	match:
	{
		"targetname" "nuke_04"
		"classname" "trigger_hurt"
		;"damage" "5000"
	}
	replace:
	{
		"damage" "500000"
	}
}



;; _

;; reward for delivering crates to the shuttle

add:
{
	"origin" "-640 1376 24"
	"targetname" "crate_blue_filter"
	"Negated" "Allow entities that match criteria"
	"filtername" "crate_blue"
	"classname" "filter_activator_name"
}
add:
{
	"origin" "-640 1376 30"
	"targetname" "crate_red_filter"
	"Negated" "Allow entities that match criteria"
	"filtername" "crate_red"
	"classname" "filter_activator_name"
}
add:
{
	"origin" "-640 1376 34"
	"targetname" "crate_points"
	"spawnflags" "0"
	"points" "200"
	"classname" "game_score"
}

add:
{
	"origin" "-440 1638 0"
	"startwidth" "15.0"
	"spritename" "sprites/bluelaser1.vmt"
	"rendermode" "5"
	"rendercolor" "200 200 255"
	"renderamt" "210"
	"parentname" "crate_blue"
	"lifetime" "10"
	"endwidth" "5.0"
	"classname" "env_spritetrail"
}
add:
{
	"origin" "-330 1430 0"
	"startwidth" "15.0"
	"spritename" "sprites/purplelaser1.vmt"
	"rendermode" "5"
	"rendercolor" "255 200 200"
	"renderamt" "210"
	"parentname" "crate_red"
	"lifetime" "10"
	"endwidth" "5.0"
	"classname" "env_spritetrail"
}

modify:
{
	match:
	{
		"origin" "-441.66 1638.34 0"
		"classname" "func_physbox"
		"hammerid" "775227"
	}
	insert:
	{
		"targetname" "crate_blue"
	}
	replace:
	{
		"rendercolor" "150 150 255"
		"disableshadows" "1"
		"disablereceiveshadows" "1"
	}
}
modify:
{
	match:
	{
		"origin" "-329.96 1430.05 0"
		"classname" "func_physbox"
		"hammerid" "781216"
	}
	insert:
	{
		"targetname" "crate_red"
	}
	replace:
	{
		"rendercolor" "255 150 150"
		"disableshadows" "1"
		"disablereceiveshadows" "1"
	}
}

add:
{
	"origin" "3457 -2896 376"
	"targetname" "crate_counter"
	"StartDisabled" "0"
	"startvalue" "0"
	"min" "0"
	"max" "2"
	"classname" "math_counter"
	"OnHitMax" "blue_relay,Kill,,0,1"
	"OnHitMax" "red_relay,Kill,,0,1"
	"OnHitMax" "1,Command,say >>>When surrounded by war one must eventually choose a side.<<<,3,1"
	"OnHitMax" "shuttle_points,AddOutput,OnStartTouch crate_points:ApplyScore::1:1,0,1"
	"OnHitMax" "shuttle_points,Enable,,4,1"
}
add:
{
	"origin" "3457 -2896 386"
	"targetname" "blue_relay"
	"StartDisabled" "1"
	"spawnflags" "0"
	"classname" "logic_relay"
	"OnTrigger" "lambda_train_02,AddOutput,rendercolor 150 150 255,0,1"
	"OnTrigger" "lambda_ramp,AddOutput,rendercolor 150 150 255,0,1"
	"OnTrigger" "landing_pads,AddOutput,rendercolor 150 150 255,0,1"
	"OnTrigger" "lpr,AddOutput,rendercolor 150 150 255,0,1"
	"OnTrigger" "dr_*,AddOutput,rendercolor 150 150 255,0,1"
	"OnTrigger" "shuttle_points,AddOutput,OnStartTouch blue_text:Display::0:-1,0.5,1"
	"OnTrigger" "shuttle_points,Enable,,1,1"
}
add:
{
	"origin" "3457 -2896 396"
	"targetname" "red_relay"
	"StartDisabled" "1"
	"spawnflags" "0"
	"classname" "logic_relay"
	"OnTrigger" "lambda_train_02,AddOutput,rendercolor 255 200 200,0,1"
	"OnTrigger" "lambda_ramp,AddOutput,rendercolor 255 200 200,0,1"
	"OnTrigger" "landing_pads,AddOutput,rendercolor 255 200 200,0,1"
	"OnTrigger" "lpr,AddOutput,rendercolor 255 200 200,0,1"
	"OnTrigger" "dr_*,AddOutput,rendercolor 255 200 200,0,1"
	"OnTrigger" "shuttle_points,AddOutput,OnStartTouch red_text:Display::0:-1,0.5,1"
	"OnTrigger" "shuttle_points,Enable,,1,1"
}
add:
{
	"StartDisabled" "1"
	"spawnflags" "8"
	"targetname" "crate_blue_check"
	"parentname" "lambda_train_02"
	"origin" "3816 -2515.5 547"
	"filtername" "crate_blue_filter"
	"classname" "trigger_once"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -119 -396.5 -53,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 119 396.5 53,0.1,1"
	"OnStartTouch" "crate_counter,Add,1,0.1,1"
	"OnStartTouch" "blue_relay,Enable,,0,1"
}
add:
{
	"StartDisabled" "1"
	"spawnflags" "8"
	"targetname" "crate_red_check"
	"parentname" "lambda_train_02"
	"origin" "3816 -2515.5 547"
	"filtername" "crate_red_filter"
	"classname" "trigger_once"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -119 -396.5 -53,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 119 396.5 53,0.1,1"
	"OnStartTouch" "crate_counter,Add,1,0.1,1"
	"OnStartTouch" "red_relay,Enable,,0,1"
}
add:
{
	"StartDisabled" "1"
	"spawnflags" "1"
	"targetname" "shuttle_points"
	"parentname" "lambda_train_02"
	"origin" "3816 -2515.5 547"
	"filtername" "ct_filter"
	"classname" "trigger_once"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -119 -396.5 -53,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 119 396.5 53,0.1,1"
	"OnStartTouch" "crate_points,ApplyScore,,0.1,-1"
}
add:
{
	"origin" "3457 -2896 596"
	"y" "0.4"
	"x" "-1"
	"targetname" "blue_text"
	"spawnflags" "0"
	"message" "For my ally is the Force and a powerful ally it is."
	"holdtime" "15"
	"fxtime" "0.05"
	"fadeout" "0.5"
	"fadein" "0.1"
	"effect" "2"
	"color2" "0 0 0"
	"color" "0 0 255"
	"channel" "1"
	"classname" "game_text"
}
add:
{
	"origin" "3457 -2896 696"
	"y" "0.4"
	"x" "-1"
	"targetname" "red_text"
	"spawnflags" "0"
	"message" "It was said that you would destroy the Sith not join them!"
	"holdtime" "15"
	"fxtime" "0.05"
	"fadeout" "0.5"
	"fadein" "0.1"
	"effect" "2"
	"color2" "0 0 0"
	"color" "255 0 0"
	"channel" "4"
	"classname" "game_text"
}

modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "1265444"
	}
	insert:
	{
		"OnMapSpawn" "crate_blue_check,FireUser1,,0.1,1"
		"OnMapSpawn" "crate_red_check,FireUser1,,0.1,1"
		"OnMapSpawn" "shuttle_points,FireUser1,,0.1,1"
	}
}
modify:
{
	match:
	{
		"targetname" "path_track_06"
		"classname" "path_track"
	}
	insert:
	{
		"OnPass" "crate_blue_check,Enable,,1,1"
		"OnPass" "crate_red_check,Enable,,1,1"
		"OnPass" "crate_blue_check,Kill,,1.5,1"
		"OnPass" "crate_red_check,Kill,,1.5,1"
		"OnPass" "blue_relay,Trigger,,3,1"
		"OnPass" "red_relay,Trigger,,3,1"
	}
}

;; music volume

modify:
{
	match:
	{
		"message" "ambient/starwarsdarthmaul.wav"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#ambient/starwarsdarthmaul.wav"
	}
}

;; apply gravity on afk tele

modify:
{
	match:
	{
		"targetname" "nuke_03"
		"classname" "trigger_teleport"
	}
	insert:
	{
		"OnStartTouch" "!activator,AddOutput,gravity 0.70,0,-1"
	}
}