// ze_best_korea_css2
// Stripper fixes done by iszaar and optimization by Zuff

// Logic Auto
modify:
{
    match:
    {
		"hammerid" "777474"
		"classname" "logic_auto"
    }
	delete:
	{
		"OnMapSpawn" "server,Command,zr_infect_spawntime_min 14,0,-1"
		"OnMapSpawn" "server,Command,zr_infect_spawntime_max 17,0,-1"
	}
	insert:
	{
		"OnMapSpawn" "s3_gachi_gape_wall,Enable,,5,1"
		"OnMapSpawn" "server,Command,say +++ Stripper version 06.01.2023 +++,1.5,1"
		"OnMapSpawn" "server,Command,zr_infect_spawntime_min 13,0,-1"
		"OnMapSpawn" "server,Command,zr_infect_spawntime_max 14,0,-1"
	}
}


;;;;;;;;;;;;;;;;;;;;;;;;;;
// UNLOZE BALANCING REMOVE IF FOR EVENTS!
// UNLOZE BALANCING REMOVE IF FOR EVENTS!
// UNLOZE BALANCING REMOVE IF FOR EVENTS!
// UNLOZE BALANCING REMOVE IF FOR EVENTS!
;;;;;;;;;;;;;;;;;;;;;;;;;;
modify:
{
    match:
    {
		"hammerid" "780789"
		"targetname" "MapManagerStage3"
    }
	insert:
	{
		"OnTrigger" "server,Command,sv_enablebunnyhopping 0,1,1"
		"OnTrigger" "server,Command,zr_infect_mzombie_ratio 10,0,1"

	}
}

modify:
{
    match:
    {
		"hammerid" "766356"
		"targetname" "MapManagerStage2"
    }
	delete:
	{
		"OnTrigger" "server,Command,sv_airaccelerate 12,0,-1"
	}
	insert:
	{
		"OnTrigger" "server,Command,sv_airaccelerate 10,0,-1"
	}
}

modify:
{
    match:
    {
		"targetname" "s3_ramranch_door"
		"hammerid" "508260"
    }
	insert:
	{
		"OnFullyOpen" "server,Command,sv_enablebunnyhopping 1,0,1"
	}
}

modify:
{
    match:
    {
		"targetname" "s3_postpringle_door"
		"hammerid" "560591"
    }
	insert:
	{
		"OnOpen" "server,Command,sv_enablebunnyhopping 0,1,1"
	}
}
;;;;;;;;;;;;;;;;;;;;;;;;;;



// skybox3 fix origin 11643.05 -13054.3 14416
// skybox2 fix skybox_s2 origin 10899.5 -12913.8 14188
// skybox 1 looked fine????
modify:
{
    match:
    {
		"hammerid" "937616"
		"targetname" "skybox_s2"
    }
	replace:
	{
		"origin" "10899.5 -12913.8 14188"
	}
}
modify:
{
    match:
    {
		"hammerid" "934045"
		"targetname" "skybox_s3"
    }
	replace:
	{
		"origin" "11643.05 -13054.3 14416"
	}
}

// BossHP Buff 

modify:
{
    match:
    {
		"hammerid" "809874"
		"targetname" "bosshp_Add"
    }
	delete:
    {
		"OnStartTouch" "babyboss_hp,AddHealth,1250,0,-1"
		"OnStartTouch" "babyboss_hp2,AddHealth,1250,0,-1"
	}
    insert:
    {
		"OnStartTouch" "babyboss_hp,AddHealth,3250,0,-1"
		"OnStartTouch" "babyboss_hp2,AddHealth,3250,0,-1"
	}
}

// Fixes

modify:
{
    match:
    {
		"classname" "trigger_multiple"
		"hammerid" "560283"
    }
	delete:
    {
		"OnStartTouch" "!activator,AddOutput,targetname pedo,0,-1"
		"OnStartTouch" "filter_ct_pedo,TestActivator,,0,-1"
		"OnStartTouch" "!self,Disable,,15,-1"
	}
    insert:
    {
		"OnStartTouch" "global_speedmod,ModifySpeed,0.05,0,-1"
		"OnStartTouch" "global_speedmod,ModifySpeed,1,15,-1"
	}
}

modify:
{
    match:
    {
		"targetname" "babyswarm_trigger"
		"classname" "trigger_multiple"
		"hammerid" "560053"
    }
    insert:
    {
		"OnStartTouch" "global_speedmod,ModfiySpeed,1,15,-1" ; FAIL SAFE IN REAL GAME IT BREAKS
	}
}


// move sprite
modify:
{
    match:
    {
		"hammerid" "893298"
		"targetname" "i_ikea_castlebox_trigger"
    }
	replace:
	{
		"origin" "-12863 960 64"
	}
}
modify:
{
    match:
    {
		"hammerid" "513847"
		"targetname" "i_ikea_castlebox_sprite"
    }
	replace:
	{
		"origin" "-12863 960 64"
	}
}

// i_nkbabysoldier_bomb_phys
// OnSpawn _nkbabysoldier_headsprite,SetParentAttachment,headtip,0,1
// parenting didnt work u also gootta set its shitty thingy
modify:
{
    match:
    {
		"hammerid" "892404"
		"targetname" "i_nkbabysoldier_bomb_phys"
    }
    insert:
    {
		"parentname" "i_nkbabysoldier_model"
	}
}

modify:
{
    match:
    {
		"classname" "logic_relay"
		"targetname" "i_nkbabysoldier_start"
    }
	insert:
	{
		"OnSpawn" "i_nkbabysoldier_bomb_phys,SetParentAttachment,headtip,0,1"
	}
}

modify: // anim fix same method as big baby kim
{
    match:
    {
		"targetname" "i_nksoldier_trigger_jump"
		"hammerid" "869040"
    }
	delete:
	{
		"OnTrigger" "i_nksoldier_model,SetAnimation,run,1,-1"
		"OnTrigger" "i_nksoldier_model,SetDefaultAnimation,run,1,-1"
	}
	insert:
	{
		"OnTrigger" "!self,FireUser2,run,1,-1"
		"OnUser2" "i_nksoldier_model,SetAnimation,run,0,-1"
		"OnUser2" "i_nksoldier_model,SetDefaultAnimation,run,0,-1"
	}
}

modify: // anim fix same method as big baby kim
{
    match:
    {
		"targetname" "i_nkbabysoldier_trigger_jump"
		"hammerid" "869040"
    }
	delete:
	{
		"OnTrigger" "i_nkbabysoldier_model,SetAnimation,crawl,1,-1"
		"OnTrigger" "i_nkbabysoldier_model,SetDefaultAnimation,crawl,1,-1"
	}
	insert:
	{
		"OnTrigger" "!self,FireUser2,run,1,-1"
		"OnUser2" "i_nkbabysoldier_model,SetAnimation,crawl,0,-1"
		"OnUser2" "i_nkbabysoldier_model,SetDefaultAnimation,crawl,0,-1"
	}
}


// s3_gachi_gape_wall,Kill,,5,1

modify:
{
    match:
    {
		"origin" "6049 11904 8800" // triger where kill thing
		"hammerid" "506312"
    }
	delete:
	{
		"OnStartTouch" "s3_gachi_gape_wall,Kill,,5,1"
	}
	insert:
	{
		"OnStartTouch" "s3_gachi_gape_wall,Disable,,5,1"
	}
}


// s3_finalgate
modify:
{
    match:
    {
		"targetname" "s3_finalgate"
		"hammerid" "473033"
    }
	insert:
	{
		"OnOpen" "s3_uppershortcutladder_2,Break,,6,1"
	}

}
modify:
{
    match:
    {
		"targetname" "s3_finalgate"
    }
	delete:
	{
		"OnStartTouch" "s3_uppershortcutladder_2,Break,,0,1"
	}

}

// overlay fix???
// janky as fuck i swear to god i need to make this cleaner
// FIX THIS FOR NEXT RELEASE I SWEAR TO GOD
// Update I FIXED IT FUCK YEAH
modify:
{
    match:
    {
		"hammerid" "587567"
		"classname" "func_button"
		"origin" "511.5 -376 9820"
    }
	replace:
	{
		"classname" "game_zone_player"
	}
	insert:
	{
		"targetname" "OVERLAY_SHIT_pray"
		"OnPlayerOutZone" "overlay_frame,GetValue,0,-1"
		"OnUser1" "overlay_frame,SetValueNoFire,0,-1"
		"OnUser1" "overlay_reset,Disable,,0.5,1" // remove?
		"OnUser1" "OVERLAY_SHIT_pray,CountPlayersInZone,0.02,-1"
		"OnUser2" "OVERLAY_SHIT_pray,CountPlayersInZone,0,-1"
	}
	delete:
	{
		"OnPressed" "server,Command,say ***ADMIN ROOM - ALL BABIES***,0,-1"
	}
	
}
modify:
{
    match:
    {
		"hammerid" "777268"
		"targetname" "AutoInstance1-Level_Case"
    }
	delete:
	{
		"OnCase01" "overlay_frame,SetValue,1,0,-1"
		"OnCase02" "overlay_frame,SetValue,2,0,-1"
		"OnCase03" "overlay_frame,SetValue,3,0,-1"
	}
	insert:
	{
		"OnCase01" "overlay_frame,SetValue,1,1,-1"
		"OnCase01" "OVERLAY_SHIT_pray,FireUser1,,0,1"
		"OnCase01" "OVERLAY_SHIT_pray,FireUser1,,10.2,1"
		"OnCase01" "OVERLAY_SHIT_pray,FireUser2,,1.1,1"
		"OnCase02" "overlay_frame,SetValue,2,1,-1"
		"OnCase02" "OVERLAY_SHIT_pray,FireUser2,,1.1,1"
		"OnCase02" "OVERLAY_SHIT_pray,FireUser1,,0,1"
		"OnCase02" "OVERLAY_SHIT_pray,FireUser1,,10,1"
		"OnCase03" "overlay_frame,SetValue,3,1,-1"
		"OnCase03" "OVERLAY_SHIT_pray,FireUser1,,0,1"
		"OnCase03" "OVERLAY_SHIT_pray,FireUser1,,10,1"
		"OnCase03" "OVERLAY_SHIT_pray,FireUser2,,1.1,1"
	}
	
}


filter:
{
		"hammerid" "923006"
		"targetname" "overlay_reset"
}

modify:
{
    match:
    {
		"hammerid" "736061"
		"targetname" "s3_pringles_phys"
    }
	delete:
	{
		"OnUser2" "overlay_reset,Enable,,75,1"
		"OnUser2" "overlay_reset,Disable,,0,1"
	}
	insert:
	{
		"OnUser2" "OVERLAY_SHIT_pray,FireUser1,,75,1"
	}
	
}

//  DisableBoneFollowers fix for less annoying shit??
// i_nkbabysoldier_model (maybe this one wont work without its already pretty low perf so i aint touching it untill there are MAJOR lag issues)
// i_nksoldier_model
// babyboss_model
// babyrush_boss_model


modify:
{
    match:
    {
		"hammerid" "34804"
		"targetname" "i_nksoldier_model"
    }
	insert:
	{
		"DisableBoneFollowers" "1"
	}
	
}

modify:
{
    match:
    {
		"hammerid" "11105"
		"targetname" "babyboss_model"
    }
	insert:
	{
		"DisableBoneFollowers" "1"
	}
	
}

modify:
{
    match:
    {
		"hammerid" "150444"
		"targetname" "babyrush_boss_model"
    }
	insert:
	{
		"DisableBoneFollowers" "1"
	}
}

modify:
{
    match:
    {
		"hammerid" "6998"
		"targetname" "i_babysuicide_model"
    }
	insert:
	{
		"DisableBoneFollowers" "1"
	}
	
}


// boss fix
// it should now not fucking die & then respawn
modify:
{
    match:
    {
		"classname" "point_hurt"
		"hammerid" "894129"
		"targetname" "baby_hurt_point"
    }
	insert:
	{
		"OnUser2" "babyboss_model,SetDefaultAnimation,crawling,0.02,1"
		"OnUser2" "babyboss_hp2,SetDamageFilter,filter_ct,0,1"
		"OnUser2" "babyboss_phys,EnableMotion,,0,1"
		"OnUser2" "babyboss_model,SetAnimation,sit_gotocrawl,0,1"
		"OnUser2" "babyboss_kick,Enable,,0,1"
		"OnUser2" "baby_hurt_point,AddOutput,damage 90,0,1"
		"OnUser1" "babyboss_model,SetDefaultAnimation,sit_crybaby,0.02,1"
		"OnUser1" "babyboss_phys,DisableMotion,,0,1"
		"OnUser1" "babyboss_model,SetAnimation,hurt_sit,0,1"
		"OnUser1" "babyboss_s_4,PlaySound,,0,1"
		"OnUser1" "babyboss_kick,Disable,,0,1"
		"OnUser1" "!self,FireUser2,,12,1"
	}
}

modify:
{
    match:
    {
		"classname" "func_physbox"
		"hammerid" "150776"
		"targetname" "babyboss_hp"
    }
	delete:
	{
		"OnBreak" "babyboss_model,SetDefaultAnimation,crawling,12.02,1"
		"OnBreak" "baby_hurt_point,AddOutput,damage 90,12,1"
		"OnBreak" "babyboss_kick,Enable,,12,1"
		"OnBreak" "babyboss_model,SetAnimation,sit_gotocrawl,12,1"
		"OnBreak" "babyboss_phys,EnableMotion,,12,1"
		"OnBreak" "babyboss_model,SetDefaultAnimation,sit_crybaby,0.02,1"
		"OnBreak" "babyboss_kick,Disable,,0,1"
		"OnBreak" "babyboss_s_4,PlaySound,,0,1"
		"OnBreak" "babyboss_model,SetAnimation,hurt_sit,0,1"
		"OnBreak" "babyboss_phys,DisableMotion,,0,1"
		"OnBreak" "babyboss_hp2,SetDamageFilter,filter_ct,12,1"
	}
	insert:
	{
		"OnBreak" "baby_hurt_point,FireUser1,,0,1"
	}
}

modify:
{
    match:
    {
		"hammerid" "908551"
		"targetname" "babyboss_hp2"
    }
	insert:
	{
		"OnBreak" "baby_hurt_point,Kill,,0,1"
	}

}



// ending anti block

modify:
{
    match:
    {
		"hammerid" "420282"
		"targetname" "s3_space_elevator"
    }
	replace:
	{
		"dmg" "999"
	}
	
}

// absvelocity issue dont use 250 on z-axis
modify:	
{
    match:
    {
		"hammerid" "491148"
		"origin" "8673 11968 4483.5"
    }
	delete:
	{
		"OnStartTouch" "!activator,AddOutput,absvelocity 0 -260 250,0,-1"
	}
	insert:
	{
		"OnStartTouch" "!activator,AddOutput,absvelocity 0 -260 251,0,-1"
	}
	
}


// Stage 3 Skip Fix (ffs ambitious)
modify:
{
    match:
    {
		"hammerid" "466463"
		"origin" "10593 1792 2819.5"
    }
	replace:
	{
		"StartDisabled" "1"
    }
    insert:
    {
		"targetname" "booster_fix_1"
	}
}

modify:
{
    match:
    {
		"hammerid" "598866"
		"targetname" "s3_gate_lower"
    }
    insert:
    {
		"OnOpen" "booster_fix_1,Enable,,0,1"
	}
}



// fix stage 3 tp
add:
{
	"origin" "14025 3720 -1063"
	"targetname" "s3_randomizer"
	"classname" "logic_case"
	"OnCase01" "!activator,AddOutput,origin 13385 -1792 1924,0,-1"
	"OnCase02" "!activator,AddOutput,origin 10241 -2144 1796,0,-1"
	"OnCase03" "!activator,AddOutput,origin 11681 -544 3012,0,-1"
}

modify:
{
    match:
    {
		"hammerid" "468401"
		"origin" "11809 -1664 992"
    }
    delete:
    {
		"OnStartTouch" "!activator,RunScriptCode,self.SetVelocity(Vector(self.GetForwardVector().x*300,0,100"
		"UseLandmarkAngles" "1"
	}
	insert:
	{
		"targetname" "s3_randomizer_trigger" // failsafe for real rounds? Note: This did work im just keeping this incase for real rounds.
		"OnStartTouch" "s3_randomizer,PickRandom,,0.02,-1"
		"OnStartTouch" "!activator,AddOutput,absvelocity 0 0 0,0,-1"
	}
}


//Part 1 -> start 		-> i_builder_hold_button

//Part 2 -> ^			-> town_gate_pre + town_gate_under 		+ town_gate_preside

//Part 3 -> ^			-> town_gate_main + town_gate_shortcut

//Part 4 -> ^			-> town_prebaby_gate

//Part 5 -> ^			-> babyrush_gate_entrance + babyrush_gate_shortcut

//Part 6 -> ^			-> End

;-------------------------
filter:
{
	"targetname" "SpawnManagerStage2"
	"hammerid" "766361"
}
modify:
{
	match:
	{
		"targetname" "MapManagerStage2"
		"hammerid" "766356"
	}
	delete:
	{
		"OnTrigger" "SpawnManagerStage2,Trigger,,0,-1"
	}
	insert:
	{
		"OnTrigger" "SpawnManagerS2P1,Trigger,,0,-1"
	}
}
;-------------------------
modify:
{
	match:
	{
		"targetname" "i_builder_hold_button"
		"classname" "func_button"
		"hammerid" "144183"
	}
	insert:
	{
		"OnPressed" "SpawnManagerS2P2,Trigger,,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "SpawnManagerS2P2"
		"hammerid" "766382"
	}
	delete:
	{
		; Part 3
		"OnTrigger" "s_nksoldier,AddOutput,origin -9584 -2676 256,0.6,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 242 0,0.6,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,0.7,-1"
		"OnTrigger" "s_nksoldier,AddOutput,origin -10014 -3235 64,0.8,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 296 0,0.8,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,0.9,-1"
	}
	insert:
	{
		; From Part 7
		"OnTrigger" "s_mine,AddOutput,origin -6938 -4512 512,0,-1"
		"OnTrigger" "s_mine,AddOutput,angles 0 359 0,0,-1"
		"OnTrigger" "s_mine,ForceSpawn,,0.1,-1"
		"OnTrigger" "s_mine,AddOutput,origin -8320 -4712 256,0.2,-1"
		"OnTrigger" "s_mine,AddOutput,angles 0 90 0,0.2,-1"
		"OnTrigger" "s_mine,ForceSpawn,,0.3,-1"
		"OnTrigger" "s_mine,AddOutput,origin -8320 -4583 256,0.4,-1"
		"OnTrigger" "s_mine,AddOutput,angles 0 89 0,0.4,-1"
		"OnTrigger" "s_mine,ForceSpawn,,0.5,-1"
		"OnTrigger" "s_mine,AddOutput,origin -8320 -4456 256,0.6,-1"
		"OnTrigger" "s_mine,AddOutput,angles 0 89 0,0.6,-1"
		"OnTrigger" "s_mine,ForceSpawn,,0.7,-1"
		; From Part 8
		"OnTrigger" "s_mine,AddOutput,origin -8320 -4327 256,0.8,-1"
		"OnTrigger" "s_mine,AddOutput,angles 0 89 0,0.8,-1"
		"OnTrigger" "s_mine,ForceSpawn,,0.9,-1"
		"OnTrigger" "s_mine,AddOutput,origin -8320 -4200 256,1,-1"
		"OnTrigger" "s_mine,AddOutput,angles 0 89 0,1,-1"
		"OnTrigger" "s_mine,ForceSpawn,,1.1,-1"
		"OnTrigger" "s_mine,AddOutput,origin -8320 -4096 256,1.2,-1"
		"OnTrigger" "s_mine,AddOutput,angles 0 89 0,1.2,-1"
		"OnTrigger" "s_mine,ForceSpawn,,1.3,-1"
	}
}
;-------------------------
modify:
{
	match:
	{
		"classname" "trigger_multiple"
		"hammerid" "146452"
	}
	insert:
	{
		"OnStartTouch" "SpawnManagerS2P3,Trigger,,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "SpawnManagerS2P3"
		"hammerid" "766384"
	}
	delete:
	{
		; Part 4
		"OnTrigger" "s_nksoldier,AddOutput,origin -8633 -2232 256,0,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 46 0,0,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,0.1,-1"
		"OnTrigger" "s_nksoldier,AddOutput,origin -11520 780 64,0.2,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 311 0,0.2,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,0.3,-1"
		"OnTrigger" "s_nksoldier,AddOutput,origin -12605 4168 64,0.4,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 270 0,0.4,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,0.5,-1"
		; Part 5
		"OnTrigger" "s_nksoldier,AddOutput,origin -12048 6911 64,0.6,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 292 0,0.6,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,0.7,-1"
		; Part 6
		"OnTrigger" "s_nksoldier,AddOutput,origin -10105 1994 64,0.8,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 87 0,0.8,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,0.9,-1"
	}
	insert:
	{
		; From Part 2
		"OnTrigger" "s_nksoldier,AddOutput,origin -9584 -2676 256,0,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 242 0,0,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,0.1,-1"
		"OnTrigger" "s_nksoldier,AddOutput,origin -10014 -3235 64,0.2,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 296 0,0.2,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,0.3,-1"
	}
}
;-------------------------
modify:
{
	match:
	{
		"classname" "trigger_multiple"
		"hammerid" "146470"
	}
	insert:
	{
		"OnStartTouch" "SpawnManagerS2P4,Trigger,,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "SpawnManagerS2P4"
		"hammerid" "766386"
	}
	delete:
	{
		; Part 6
		"OnTrigger" "s_nksoldier,AddOutput,origin -9897 2334 64,0,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 95 0,0,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,0.1,-1"
		"OnTrigger" "s_nksoldier,AddOutput,origin -10093 2756 64,0.2,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 -82 0,0.2,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,0.3,-1"
		"OnTrigger" "s_nksoldier,AddOutput,origin -12782 9767 320,0.4,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 322 0,0.4,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,0.5,-1"
		; Part 4
		"OnTrigger" "s_nksoldier,AddOutput,origin -13717 -1353 60,0.6,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 40 0,0.6,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,0.7,-1"
		"OnTrigger" "s_nksoldier,AddOutput,origin -14624 -1957 192,0.8,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 320 0,0.8,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,0.9,-1"
	}
	insert:
	{
		; From Part 3
		"OnTrigger" "s_nksoldier,AddOutput,origin -8633 -2232 256,0,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 46 0,0,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,0.1,-1"
		"OnTrigger" "s_nksoldier,AddOutput,origin -11520 780 64,0.2,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 311 0,0.2,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,0.3,-1"
		"OnTrigger" "s_nksoldier,AddOutput,origin -12605 4168 64,0.4,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 270 0,0.4,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,0.5,-1"
		; From Part 4
		"OnTrigger" "s_nksoldier,AddOutput,origin -13717 -1353 60,0.6,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 40 0,0.6,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,0.7,-1"
		"OnTrigger" "s_nksoldier,AddOutput,origin -14624 -1957 192,0.8,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 320 0,0.8,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,0.9,-1"
		; From Part 5
		"OnTrigger" "s_nksoldier,AddOutput,origin -12076 -1918 320,1,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 237 0,1,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,1.1,-1"
		"OnTrigger" "s_nksoldier,AddOutput,origin -14935 -141 -447,1.2,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 180 0,1.2,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,1.3,-1"
		"OnTrigger" "s_nksoldier,AddOutput,origin -14939 -524 -447,1.4,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 179 0,1.4,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,1.5,-1"

		; From Part 5
		"OnTrigger" "s_babysuicide,AddOutput,origin -12556 480 40,0,-1"
		"OnTrigger" "s_babysuicide,AddOutput,angles 0 89 0,0,-1"
		"OnTrigger" "s_babysuicide,ForceSpawn,,0.1,-1"
		"OnTrigger" "s_babysuicide,AddOutput,origin -12386 480 40,0.2,-1"
		"OnTrigger" "s_babysuicide,AddOutput,angles 0 90 0,0.2,-1"
		"OnTrigger" "s_babysuicide,ForceSpawn,,0.3,-1"
		; From Part 6
		"OnTrigger" "s_babysuicide,AddOutput,origin -12183 478 40,0.4,-1"
		"OnTrigger" "s_babysuicide,AddOutput,angles 0 90 0,0.4,-1"
		"OnTrigger" "s_babysuicide,ForceSpawn,,0.5,-1"
		"OnTrigger" "s_babysuicide,AddOutput,origin -11942 558 40,0.6,-1"
		"OnTrigger" "s_babysuicide,AddOutput,angles 0 136 0,0.6,-1"
		"OnTrigger" "s_babysuicide,ForceSpawn,,0.7,-1"
		"OnTrigger" "s_babysuicide,AddOutput,origin -11805 696 40,0.8,-1"
		"OnTrigger" "s_babysuicide,AddOutput,angles 0 134 0,0.8,-1"
		"OnTrigger" "s_babysuicide,ForceSpawn,,0.9,-1"
		"OnTrigger" "s_babysuicide,AddOutput,origin -11745 1008 40,1,-1"
		"OnTrigger" "s_babysuicide,AddOutput,angles 0 179 0,1,-1"
		"OnTrigger" "s_babysuicide,ForceSpawn,,1.1,-1"
		"OnTrigger" "s_babysuicide,AddOutput,origin -11747 1303 40,1.2,-1"
		"OnTrigger" "s_babysuicide,AddOutput,angles 0 179 0,1.2,-1"
		"OnTrigger" "s_babysuicide,ForceSpawn,,1.3,-1"
		; From Part 7
		"OnTrigger" "s_babysuicide,AddOutput,origin -11747 1585 40,1.4,-1"
		"OnTrigger" "s_babysuicide,AddOutput,angles 0 179 0,1.4,-1"
		"OnTrigger" "s_babysuicide,ForceSpawn,,1.5,-1"

		; From Part 8
		"OnTrigger" "s_mine,AddOutput,origin -11568 1762 270,0,-1"
		"OnTrigger" "s_mine,AddOutput,angles 0 -142 0,0,-1"
		"OnTrigger" "s_mine,ForceSpawn,,0.1,-1"
		"OnTrigger" "s_mine,AddOutput,origin -11568 1729 270,0.2,-1"
		"OnTrigger" "s_mine,AddOutput,angles 0 -142 0,0.2,-1"
		"OnTrigger" "s_mine,ForceSpawn,,0.3,-1"
		; From Part 9
		"OnTrigger" "s_mine,AddOutput,origin -11568 1798 270,0.4,-1"
		"OnTrigger" "s_mine,AddOutput,angles 0 -142 0,0.4,-1"
		"OnTrigger" "s_mine,ForceSpawn,,0.5,-1"
		"OnTrigger" "s_mine,AddOutput,origin -11568 1846 270,0.6,-1"
		"OnTrigger" "s_mine,AddOutput,angles 0 -142 0,0.6,-1"
		"OnTrigger" "s_mine,ForceSpawn,,0.7,-1"
		"OnTrigger" "s_mine,AddOutput,origin -11568 1788 270,0.8,-1"
		"OnTrigger" "s_mine,AddOutput,angles 0 -142 0,0.8,-1"
		"OnTrigger" "s_mine,ForceSpawn,,0.9,-1"
		"OnTrigger" "s_mine,AddOutput,origin -11568 1708 270,1,-1"
		"OnTrigger" "s_mine,AddOutput,angles 0 -142 0,1,-1"
		"OnTrigger" "s_mine,ForceSpawn,,1.1,-1"
		"OnTrigger" "s_mine,AddOutput,origin -11568 1664 270,1.2,-1"
		"OnTrigger" "s_mine,AddOutput,angles 0 -142 0,1.2,-1"
		"OnTrigger" "s_mine,ForceSpawn,,1.3,-1"
		; From Part 10
		"OnTrigger" "s_mine,AddOutput,origin -11568 1753 270,1.4,-1"
		"OnTrigger" "s_mine,AddOutput,angles 0 -142 0,1.4,-1"
		"OnTrigger" "s_mine,ForceSpawn,,1.5,-1"
		"OnTrigger" "s_mine,AddOutput,origin -11568 1819 270,1.6,-1"
		"OnTrigger" "s_mine,AddOutput,angles 0 -142 0,1.6,-1"
		"OnTrigger" "s_mine,ForceSpawn,,1.7,-1"
		"OnTrigger" "s_mine,AddOutput,origin -11568 1844 270,1.8,-1"
		"OnTrigger" "s_mine,AddOutput,angles 0 -142 0,1.8,-1"
		"OnTrigger" "s_mine,ForceSpawn,,1.9,-1"

		; From Part 10
		"OnTrigger" "s_nkbabysoldier,AddOutput,origin -8768 -1326 256,0,-1"
		"OnTrigger" "s_nkbabysoldier,AddOutput,angles 0 270 0,0,-1"
		"OnTrigger" "s_nkbabysoldier,ForceSpawn,,0.1,-1"
	}
}
;-------------------------
modify:
{
	match:
	{
		"classname" "trigger_multiple"
		"hammerid" "142245"
	}
	insert:
	{
		"OnStartTouch" "SpawnManagerS2P5,Trigger,,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "SpawnManagerS2P5"
		"hammerid" "766388"
	}
	delete:
	{
		; Part 4
		"OnTrigger" "s_nksoldier,AddOutput,origin -12076 -1918 320,0,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 237 0,0,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,0.1,-1"
		"OnTrigger" "s_nksoldier,AddOutput,origin -14935 -141 -447,0.2,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 180 0,0.2,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,0.3,-1"
		"OnTrigger" "s_nksoldier,AddOutput,origin -14939 -524 -447,0.4,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 179 0,0.4,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,0.5,-1"
		; Part 4
		"OnTrigger" "s_babysuicide,AddOutput,origin -12556 480 40,0.6,-1"
		"OnTrigger" "s_babysuicide,AddOutput,angles 0 89 0,0.6,-1"
		"OnTrigger" "s_babysuicide,ForceSpawn,,0.7,-1"
		"OnTrigger" "s_babysuicide,AddOutput,origin -12386 480 40,0.8,-1"
		"OnTrigger" "s_babysuicide,AddOutput,angles 0 90 0,0.8,-1"
		"OnTrigger" "s_babysuicide,ForceSpawn,,0.9,-1"
	}
	insert:
	{
		; From Part 3
		"OnTrigger" "s_nksoldier,AddOutput,origin -12048 6911 64,0,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 292 0,0,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,0.1,-1"
	}
}
;-------------------------
modify:
{
	match:
	{
		"classname" "trigger_multiple"
		"hammerid" "122459"
	}
	insert:
	{
		"OnStartTouch" "SpawnManagerS2P6,Trigger,,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "SpawnManagerS2P6"
		"hammerid" "766397"
	}
	delete:
	{
		; Part 4
		"OnTrigger" "s_babysuicide,AddOutput,origin -12183 478 40,0,-1"
		"OnTrigger" "s_babysuicide,AddOutput,angles 0 90 0,0,-1"
		"OnTrigger" "s_babysuicide,ForceSpawn,,0.1,-1"
		"OnTrigger" "s_babysuicide,AddOutput,origin -11942 558 40,0.2,-1"
		"OnTrigger" "s_babysuicide,AddOutput,angles 0 136 0,0.2,-1"
		"OnTrigger" "s_babysuicide,ForceSpawn,,0.3,-1"
		"OnTrigger" "s_babysuicide,AddOutput,origin -11805 696 40,0.4,-1"
		"OnTrigger" "s_babysuicide,AddOutput,angles 0 134 0,0.4,-1"
		"OnTrigger" "s_babysuicide,ForceSpawn,,0.5,-1"
		"OnTrigger" "s_babysuicide,AddOutput,origin -11745 1008 40,0.6,-1"
		"OnTrigger" "s_babysuicide,AddOutput,angles 0 179 0,0.6,-1"
		"OnTrigger" "s_babysuicide,ForceSpawn,,0.7,-1"
		"OnTrigger" "s_babysuicide,AddOutput,origin -11747 1303 40,0.8,-1"
		"OnTrigger" "s_babysuicide,AddOutput,angles 0 179 0,0.8,-1"
		"OnTrigger" "s_babysuicide,ForceSpawn,,0.9,-1"
	}
	insert:
	{
		; From Part 3
		"OnTrigger" "s_nksoldier,AddOutput,origin -10105 1994 64,0,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 87 0,0,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,0.1,-1"
		; From Part 4
		"OnTrigger" "s_nksoldier,AddOutput,origin -9897 2334 64,0.2,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 95 0,0.2,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,0.3,-1"
		"OnTrigger" "s_nksoldier,AddOutput,origin -10093 2756 64,0.4,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 -82 0,0.4,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,0.5,-1"
		"OnTrigger" "s_nksoldier,AddOutput,origin -12782 9767 320,0.6,-1"
		"OnTrigger" "s_nksoldier,AddOutput,angles 0 322 0,0.6,-1"
		"OnTrigger" "s_nksoldier,ForceSpawn,,0.7,-1"
	}
}
;-------------------------
filter:
{
	"targetname" "SpawnManagerS2P7"
	"hammerid" "766399"
}
filter:
{
	"targetname" "SpawnManagerS2P8"
	"hammerid" "766401"
}
filter:
{
	"targetname" "SpawnManagerS2P9"
	"hammerid" "766403"
}
filter:
{
	"targetname" "SpawnManagerS2P10"
	"hammerid" "766405"
}