;  __  __  ____  _____ _____ ________     __
; |  \/  |/ __ \|  __ \_   _|  ____\ \   / /
; | \  / | |  | | |  | || | | |__   \ \_/ /
; | |\/| | |  | | |  | || | |  __|   \   /
; | |  | | |__| | |__| || |_| |       | |
; |_|  |_|\____/|_____/_____|_|       |_|
;		Stripper by Małgo 11.05.2024
;STRIPPER CFG BY MAŁGO https://steamcommunity.com/profiles/76561197992553990/
;---------------------------------------------------------------
;---------------------------------------
;Fix buggy stage 2 boss movment
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "s3_boss_attack_relay"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "s3_boss_phys,DisableMotion,,0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "s3_boss_attack_track_3"
		"classname" "path_track"
	}
	insert:
	{
		"OnPass" "s3_boss_phys,EnableMotion,,0,-1"
	}
}
;---------------------------------------
;Balance Stage 2 boss HP
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "s3_boss_enter_multi"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "s3_boss_hp,Add,145,0,-1"
	}
	insert:
	{
		"OnStartTouch" "s3_boss_hp,Add,230,0,-1"
	}
}
;---------------------------------------
;Balance Stage 1 HP
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "s1_miniboss_enter_multi"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "s1_miniboss_brekable,AddHealth,450,0,-1"
	}
	insert:
	{
		"OnStartTouch" "s1_miniboss_brekable,AddHealth,769,0,-1"
	}
}
;---------------------------------------
;Boost Crow hole damage
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "crow_hurt_001"
		"classname" "trigger_hurt"
	}
	replace:
	{
		"damage" "100"
	}
}
;---------------------------------------
;Fix buggy spawn teleport at stage 1
;---------------------------------------
modify:
{
	match:
	{
		"classname" "trigger_once"
		"hammerid" "167861"
	}
	insert:
	{
		"OnTrigger" "Spawn_teleport,AddOutput,target stage2_spawn_001zm,16,-1"
	}
}
;---------------------------------------
;Fix broken mine model
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "mine_phys"
		"classname" "func_physbox"
	}
	insert:
	{
		"OnUser1" "!self,Break,,0,-1"
	}
}
;---------------------------------------
;Later underground base tp and faster triggers
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "stage3_once"
		"hammerid" "227715"
	}
	delete:
	{
		"OnTrigger" "stage3_teleport_001,Enable,,5,-1"
	}
	insert:
	{
		"OnTrigger" "stage3_teleport_001,Enable,,10,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "stage3_once"
		"hammerid" "228899"
	}
	delete:
	{
		"OnTrigger" "stage3_teleport_002,Enable,,0,-1"
	}
	insert:
	{
		"OnTrigger" "stage3_teleport_002,Enable,,10,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "stage3_once"
		"hammerid" "224999"
	}
	delete:
	{
		"OnTrigger" "cmd,Command,say **Hold here 15 seconds until the gates is open or use TNT!**,0,-1"
		"OnTrigger" "stage3_door_001,FireUser1,,15,-1"
	}
	insert:
	{
		"OnTrigger" "cmd,Command,say **Hold here 9 seconds until the gates is open or use TNT!**,0,-1"
		"OnTrigger" "stage3_door_001,FireUser1,,9,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "stage3_once"
		"hammerid" "248999"
	}
	delete:
	{
		"OnTrigger" "stage3_door_004,Open,,10,-1"
		"OnTrigger" "cmd,Command,say **Hold here 10 seconds!**,0,-1"
	}
	insert:
	{
		"OnTrigger" "stage3_door_004,Open,,15,-1"
		"OnTrigger" "cmd,Command,say **Hold here 15 seconds!**,0,-1"
	}
}
;---------------------------------------
;faster triggers in turbo tunnel
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "stage6_once"
		"hammerid" "441086"
	}
	delete:
	{
		"OnTrigger" "stage6_wall_001,Break,,15,-1"
		"OnTrigger" "cmd,Command,say **Hold here for 15 seconds!**,0,-1"
	}
	insert:
	{
		"OnTrigger" "stage6_wall_001,Break,,10,-1"
		"OnTrigger" "cmd,Command,say **Hold here for 10 seconds!**,0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "stage6_once"
		"hammerid" "427304"
	}
	delete:
	{
		"OnTrigger" "stage6_floor_001,Toggle,,15,-1"
		"OnTrigger" "cmd,Command,say **Hold here for 15 seconds!**,0,-1"
	}
	insert:
	{
		"OnTrigger" "stage6_floor_001,Toggle,,8,-1"
		"OnTrigger" "cmd,Command,say **Hold this area 8 secodns more!**,0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "stage6_once"
		"hammerid" "432734"
	}
	delete:
	{
		"OnTrigger" "stage6_wall_002,Break,,10,-1"
		"OnTrigger" "cmd,Command,say **Hold here 10 seconds more!**,0,-1"
	}
	insert:
	{
		"OnTrigger" "stage6_wall_002,Break,,7,-1"
		"OnTrigger" "cmd,Command,say **Hold here 7 seconds more!**,0,-1"
	}
}
;---------------------------------------
;Fix landmine nade push
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "mine_start_relay"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnSpawn" "mine_phys,DisableMotion,,5,1"
	}
	insert:
	{
		"OnSpawn" "mine_phys,DisableMotion,,0.5,1"
	}
}
;---------------------------------------
;Fix buggy turbo tunnel ramps
;---------------------------------------
add:
{
	"model" "*315"
	"wait" "0.1"
	"targetname" "turbo_up2_trigger2"
	"parentname" "turbo_up2_move"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "-9389 -10045 -5880"
	"filtername" "ct"
	"classname" "trigger_multiple"
	"OnStartTouch" "!activator,AddOutput,BaseVelocity 0 0 800,0,-1"
}
add:
{
	"model" "*17"
	"wait" "0.1"
	"targetname" "turbo_up3_trigger2"
	"parentname" "turbo_up3_move"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "-9394 -7909 -5882"
	"filtername" "ct"
	"classname" "trigger_multiple"
	"OnStartTouch" "!activator,AddOutput,BaseVelocity 0 0 800,0,-1"
}
;---------------------------------------
;Add checkpoint after underground base 
;---------------------------------------
add:
{
	"classname" "logic_relay"
	"targetname" "stage4_relay"
	"origin" "5249 3171 -4980"
	"spawnflags" "0"
	"StartDisabled" "0"
	"OnTrigger" "Spawn_teleport,AddOutput,Target stage4_spawn_001,0,-1"
	"OnTrigger" "stage3_teleport_004,Enable,,0,-1"
	"OnTrigger" "Game_text,AddOutput,message UNDERGROUND BASE,0,-1"
	"OnTrigger" "Game_text,AddOutput,color 226 222 222,0,-1"
	"OnTrigger" "Game_text,AddOutput,color2 168 168 168,0,-1"
	"OnTrigger" "Game_text,FireUser1,,11,-1"
	"OnTrigger" "music,Volume,0,10,-1"
	"OnTrigger" "music,AddOutput,message Music.Stage4_1,10.01,-1"
	"OnTrigger" "music,Volume,10,10.02,-1"
}

modify:
{
	match:
	{
		"targetname" "Level_Case"
		"classname" "logic_case"
	}
	insert:
	{
		"OnCase05" "template_stage3,ForceSpawn,,0,1"
		"OnCase05" "template_stage4,ForceSpawn,,0,1"
		"OnCase05" "Spawn_button,AddOutput,OnBreak stage4_relay:Trigger::0.00:-1,0,1"
		"OnCase05" "stage2_*,Kill,,0,1"
		"OnCase05" "stage1_*,Kill,,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "stage5_once"
		"hammerid" "422096"
	}
	insert:
	{
		"OnTrigger" "Level_Counter,SetValueNoFire,5,0,1"
	}
}
;---------------------------------------
;Balance NPC HP
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "NPC_Hitbox"
		"classname" "func_physbox"
	}
	replace:
	{
		"health" "2150"
	}
}
;---------------------------------------
;Later Sever first tp
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "stage4_once"
		"hammerid" "284145"
	}
	delete:
	{
		"OnTrigger" "stage4_teleport_001,Enable,,20,-1"
	}
	insert:
	{
		"OnTrigger" "stage4_teleport_001,Enable,,24,-1"
	}
}
;---------------------------------------
;Faster Sever last trigger
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "stage4_once"
		"hammerid" "357732"
	}
	delete:
	{
		"OnTrigger" "cmd,Command,say **Hold here for 30 seconds!**,0,-1"
		"OnTrigger" "template_stage5,ForceSpawn,,30,-1"
		"OnTrigger" "stage4_wall_008,Break,,30,-1"
	}
	insert:
	{
		"OnTrigger" "cmd,Command,say **Hold here for 25 seconds!**,0,-1"
		"OnTrigger" "template_stage5,ForceSpawn,,25,-1"
		"OnTrigger" "stage4_wall_008,Break,,25,-1"
	}
}
;---------------------------------------
;PEDRO PEDRO PEDRO
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "stage4_button_001"
		"hammerid" "357364"
	}
	insert:
	{
		"OnPressed" "cmd,Command,say **PEDRO PEDRO PEDRO**,0,1"
	}
}
;---------------------------------------
;Balance NPC Damage
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "NPC_attack_hurt"
		"classname" "trigger_hurt"
	}
	replace:
	{
		"damage" "50"
	}
}
;---------------------------------------
;Disable BHOP after underground base boss
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "s3_boss_HP"
		"classname" "math_counter"
	}
	insert:
	{
		"OnHitMin" "cmd,Command,sv_enablebunnyhopping 0,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "stage4_once"
		"hammerid" "284205"
	}
	insert:
	{
		"OnTrigger" "cmd,Command,sv_enablebunnyhopping 1,0,1"
	}
}