;  __  __  ____  _____ _____ ________     __
; |  \/  |/ __ \|  __ \_   _|  ____\ \   / /
; | \  / | |  | | |  | || | | |__   \ \_/ /
; | |\/| | |  | | |  | || | |  __|   \   /
; | |  | | |__| | |__| || |_| |       | |
; |_|  |_|\____/|_____/_____|_|       |_|
;		Stripper by Malgo 12.06.2024
;STRIPPER CFG BY MALGO https://steamcommunity.com/profiles/76561197992553990/
;---------------------------------------------------------------
;---------------------------------------
;Nerf Some Defend Spots
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "area51_once_start"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnTrigger" "cmdCommandsay **We crossed the minefield! Hold this area for 15 seconds!**0-1"
		"OnTrigger" "Area51_Enter_Base_BreakFireUser115-1"
	}
	insert:
	{
		"OnTrigger" "cmdCommandsay **We crossed the minefield! Hold this area for 10 seconds!**0-1"
		"OnTrigger" "Area51_Enter_Base_BreakFireUser110-1"
	}
}
modify:
{
	match:
	{
		"targetname" "Area51_elevator2_tracktrain_button"
		"classname" "func_button"
	}
	delete:
	{
		"OnPressed" "area51_barricade_001_wallFireUser120-1"
	}
	insert:
	{
		"OnPressed" "area51_barricade_001_wallFireUser122-1"
	}
}

;---------------------------------------
;Fix Shark Boss Trigger Hurt
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "Boss_shark_attack_part_gun_hurt"
		"classname" "trigger_hurt"
	}
	replace:
	{
		"StartDisabled" "1"
	}
}

;---------------------------------------
;Fix Covid button
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "Corona_virus_button_hurt"
		"classname" "point_hurt"
	}
	replace:
	{
		"Damage" "80000"
	}
}

;---------------------------------------
;Boost Floid NPC Health
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "NPC_Hitbox"
		"classname" "func_physbox"
	}
	replace:
	{
		"health" "3550"
	}
}

;---------------------------------------
;Boost a little shark boss hp
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "Boss_shark_attack_multi"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "Boss_shark_Attack_HP1Add2150-1"
	}
	insert:
	{
		"OnStartTouch" "Boss_shark_Attack_HP1Add3000-1"
	}
}

;---------------------------------------
;NERF Stage 1 good ending truck HP
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "good_ending_ct_truck_hp_multi"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "Good_ending_zombie_track_001_counterAdd1000-1"
		"OnStartTouch" "Good_ending_zombie_track_002_counterAdd1000-1"
	}
	insert:
	{
		"OnStartTouch" "Good_ending_zombie_track_001_counterAdd750-1"
		"OnStartTouch" "Good_ending_zombie_track_002_counterAdd750-1"
	}
}

;---------------------------------------
;FIX Area51 broken teleport
;---------------------------------------
add:
{
	"model" "*157"
	"spawnflags" "1"
	"classname" "trigger_multiple"
	"targetname" "Area51_Teleport_afk_FIX"
	"origin" "-5036.5 5308 1072"
	"StartDisabled" "1"
	"wait" "1"
	"OnStartTouch" "!activatorAddOutputorigin -5040 7068 7520-1"
}

modify:
{
	match:
	{
		"targetname" "area51_gate_002_counter"
		"classname" "math_counter"
	}
	insert:
	{
		"OnHitMax" "Area51_Teleport_afk_FIXEnable8-1"
	}
}

;---------------------------------------
;Add more Spawn points for zm and ct items
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "Area51_Start_Relay"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "Random_CT_Items_Location_CaseAddOutputOnCase12 Map_Spawner:AddOutput:origin -4967 4323 1037:0.00:10.08-1"
		"OnTrigger" "Random_CT_Items_Location_CaseAddOutputOnCase13 Map_Spawner:AddOutput:origin -4967 4495 1037:0.00:10.08-1"
		"OnTrigger" "Random_ZM_Items_Location_CaseAddOutputOnCase07 Map_Spawner:AddOutput:origin -5142 5110 1037:0.00:10.07-1"
	}
}

;---------------------------------------
;Fix zombie speed on zm mode
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "Level_Case"
		"classname" "logic_case"
	}
	delete:
	{
		"OnCase03" "Map_Low_Gravity_StartFireUser17-1"
	}
	insert:
	{
		"OnCase03" "Map_Low_Gravity_StartFireUser19-1"
	}
}

;---------------------------------------
;Late Teleport AFK from lab part & Fix grammar error
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "area51_once"
		"classname" "trigger_once"
		"hammerid" "679258"
	}
	delete:
	{
		"OnTrigger" "Area51_Gate_006_LeftClose50-1"
		"OnTrigger" "Area51_Gate_006_rightClose50-1"
		"OnTrigger" "cmdCommandsay **Hold this area fro 30 seconds!**5-1"
	}
	insert:
	{
		"OnTrigger" "Area51_Gate_006_*Close65-1"
		"OnTrigger" "cmdCommandsay **Hold this area for 30 seconds!**5-1"
	}
}

;---------------------------------------
;Nerf Alien Door HP
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "alien_multi"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "alien_door_breakAddHealth6500-1"
	}
	insert:
	{
		"OnStartTouch" "alien_door_breakAddHealth4050-1"
	}
}

;---------------------------------------
;Add special screen message about objective at the end of good ending
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "Good_ending_zombie_track_main_move"
		"classname" "func_movelinear"
	}
	insert:
	{
		"OnUser1" "Global_GameText_ObjectiveAddOutputcolor 255 0 01.00-1"
		"OnUser1" "Global_GameText_ObjectiveAddOutputfadein 21.00-1"
		"OnUser1" "Global_GameText_ObjectiveAddOutputfadeout 31.00-1"
		"OnUser1" "Global_GameText_ObjectiveAddOutputholdtime 51.00-1"
		"OnUser1" "Global_GameText_ObjectiveAddOutputmessage OBJECTIVE UPDATE - DESTROY BOTH TRUCKS BEFORE WE LEAVE AREA51!1.00-1"
		"OnUser1" "Global_GameText_ObjectiveFireUser12.05-1"
		"OnUser1" "Global_GameText_ObjectiveDisplay7.00-1"
		"OnUser1" "Global_GameText_ObjectiveDisplay12.00-1"
	}
}

;---------------------------------------
;Change Global_GameText_Objective Channel
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "Global_GameText_Objective"
		"classname" "game_text"
	}
	replace:
	{
		"channel" "3"
	}
}

;---------------------------------------
;Fix broken zombie items after the shark boss (im too lazy to add buttons for every item :D humans need to handle it in boss fight :D)
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "Area51_Shark_Platform"
		"classname" "func_movelinear"
	}
	delete:
	{
		"OnFullyOpen" "ZM_Items_Enable/Disable_RelayFireUser20-1"
	}
}

;---------------------------------------
;Delete not needed yellow light sprite in generator room & bring back white light sprite before alien room
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "area51_gate_013"
		"classname" "func_movelinear"
	}
	delete:
	{
		"OnUser1" "Template_Yellow_triple_LightAddOutputorigin -14436 12638 -11191.2-1"
		"OnUser1" "Template_Yellow_triple_LightForceSpawn1.22-1"
	}
}

modify:
{
	match:
	{
		"targetname" "area51_gate_009_counter"
		"classname" "math_counter"
	}
	insert:
	{
		"OnHitMax" "Template_White_LightAddOutputorigin -10837 13006 -14730.26-1"
		"OnHitMax" "Template_White_LightForceSpawn0.27-1"
	}
}

;---------------------------------------
;Boost Medic Bag Item HP
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "Item_Medicbag_Trigger"
		"classname" "trigger_hurt"
	}
	delete:
	{
		"OnStartTouch" "!activatorAddOutputmax_health 1350-1"
	}
	insert:
	{
		"OnStartTouch" "!activatorAddOutputmax_health 1550-1"
	}
}

;---------------------------------------
;Add One More Item For Humans
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "Random_CT_Items_Spawn_Relay"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "Random_CT_Items_Spawn_CasePickRandom0.27-1"
		"OnTrigger" "Random_CT_Items_Location_CasePickRandom0.28-1"
		"OnTrigger" "Map_SpawnerForceSpawn0.30-1"
	}
}

;---------------------------------------
;Stripper version
;---------------------------------------
modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "942469"
	}
	delete:
	{
		"OnNewGame" "cmdCommandsay **Map Status: No Stripper!**01"
	}
	insert:
	{
		"OnNewGame" "cmdCommandsay **Map Status: Stripper #0.0.6 Enable!**0-1"
	}
}