;---------------------------------
; Makes stripper message
;---------------------------------
modify:
{
    match:
    {
        "targetname" "spawn_trigger"
    }
    insert:
    {
		"OnStartTouch" "console,Command,say < Stripper 1 loaded >,0,1"
    }
}
;---------------------------------
; Removes key maker from template
;---------------------------------
modify:
{
    match:
    {
        "targetname" "Plantera_phase_2_template"
    }
    delete:
    {
		"Template02" "temple_key_maker"
    }
}
;------------------------------------------
; Removes parent from the env_entity_maker
;------------------------------------------
filter:
{
	"origin" "9216 15080 -8112"
	"targetname" "temple_key_maker"
}
add:
{
	"origin" "9216 13344 -8080"
	"targetname" "temple_key_maker"
	"spawnflags" "0"
	"PostSpawnSpeed" "0"
	"PostSpawnInheritAngles" "0"
	"PostSpawnDirectionVariance" "0.15"
	"PostSpawnDirection" "0 0 0"
	"EntityTemplate" "Item_temple_key_template"
	"angles" "0 0 0"
	"classname" "env_entity_maker"
}
;--------------------------------------
; Makes a new targetname in template 3
;--------------------------------------
modify:
{
    match:
    {
        "targetname" "beehive_bridge_3_template"
    }
    delete:
    {
		"Template01" "bee_hive_bridge_1"
    }
    insert:
    {
		"Template01" "bee_hive_bridge_3"
    }
}
;--------------------
; Makes a new bridge
;--------------------
add:
{
	"model" "*81"
	"targetname" "bee_hive_bridge_3"
	"spawnobject" "0"
	"spawnflags" "0"
	"rendermode" "0"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"propdata" "0"
	"pressuredelay" "0"
	"physdamagescale" "1.0"
	"PerformanceMode" "0"
	"origin" "9216 6368 -6816"
	"nodamageforces" "0"
	"minhealthdmg" "0"
	"material" "8"
	"health" "0"
	"gibdir" "0 0 0"
	"explosion" "0"
	"ExplodeRadius" "0"
	"explodemagnitude" "0"
	"ExplodeDamage" "0"
	"disableshadows" "0"
	"disablereceiveshadows" "0"
	"classname" "func_breakable"
}

;----------------------------------
; Replaces spawnflags on swordbeam
;----------------------------------
modify:
{
    match:
    {
        "targetname" "Terrablade_beam_move"
    }
    replace:
    {
		"spawnflags" "4620"
    }
}
;----------------------------------
; Fixes a trigger to kill models
;----------------------------------
modify:
{
    match:
    {
        "targetname" "jungle_biome_trigger_1"
    }
    delete:
    {
		"OnStartTouch" "forest_biome_wall_1,Kill,,21,1"
    }
    insert:
    {
		"OnStartTouch" "jungle_biome_wall_1,Kill,,21,1"
    }
}
;----------------------------------------
; Kills npc spawner at plantera phase 2
;----------------------------------------
modify:
{
    match:
    {
        "targetname" "box_hit_plantera_2"
    }
    insert:
    {
		"OnBreak" "plantera_phase_2_boss_attack_timer,Kill,,0,1"
		"OnBreak" "plantera_phase_2_boss_attack_case,Kill,,0,1"
		"OnBreak" "spike_balls_relay,Kill,,0,1"
    }
}
;----------------------------------------------
; Kills the trigger_push attack when boss dies
;----------------------------------------------
modify:
{
    match:
    {
        "targetname" "golem_hitbox"
    }
    insert:
    {
		"OnBreak" "golem_pull_attack,Kill,,0,1"
    }
}
;---------------------------------
; Moves the terrablade spawn area
;---------------------------------
modify:
{
    match:
    {
        "targetname" "Terrablade_maker"
    }
    replace:
    {
		"origin" "10942.2 -2408 204"
    }
}
;------------------------------------
; Moves trigger_hurt moved more back
;------------------------------------
modify:
{
    match:
    {
        "targetname" "Bee_Queen_boss_v2_hurt"
    }
    replace:
    {
		"origin" "9184 9886 -6211.52"
    }
}
;------------------------------------
; Moves trigger_hurt moved more back
;------------------------------------
filter:
{
	"targetname" "Bee_Queen_hitbox"
}
add:
{
	"model" "*91"
	"targetname" "Bee_Queen_hitbox"
	"spawnobject" "0"
	"rendermode" "0"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"propdata" "0"
	"pressuredelay" "0"
	"preferredcarryangles" "0 0 0"
	"PerformanceMode" "1"
	"parentname" "Bee_Queen_boss_model"
	"origin" "10300 7616 -6288"
	"notsolid" "0"
	"nodamageforces" "0"
	"material" "2"
	"spawnflags" "19456"
	"massScale" "0"
	"health" "900000000"
	"gibdir" "0 0 0"
	"forcetoenablemotion" "0"
	"explosion" "0"
	"ExplodeRadius" "0"
	"explodemagnitude" "0"
	"ExplodeDamage" "0"
	"disableshadows" "0"
	"disablereceiveshadows" "0"
	"Damagetype" "0"
	"damagetoenablemotion" "0"
	"damagefilter" "human_filter"
	"classname" "func_physbox_multiplayer"
	"OnBreak" "console,Command,say < Queen Bee vanished? >,0,1"
	"OnHealthChanged" "Bee_Queen_counter,Subtract,3,0,-1"
	"OnBreak" "beehive_bridge_2_template,ForceSpawn,,20,1"
	"OnBreak" "console,Command,say < Defend until the next bridge is here ! >,5,1"
	"OnBreak" "console,Command,say < DEFEND >,2,1"
	"OnBreak" "beehive_bridge_3_template,ForceSpawn,,0,1"
	"OnBreak" "console,Command,say < The bridge is here make your way out of the beehive! >,20,1"
	"OnBreak" "Bee_Queen_boss_model,Kill,,0,1"
	"OnBreak" "Bee_Queen_timer,Kill,,0,1"
	"OnBreak" "Bee_Queen_boss_ultimate_template,Kill,,0,1"
	"OnBreak" "Bee_Queen_case,Kill,,0,1"
	"OnBreak" "Bee_Queen_boss_rotating,Kill,,0,1"
	"OnBreak" "bee_hive_platforms,Kill,,0,1"
	"OnBreak" "Bee_Queen_v2_hp_add,Enable,,17,1"
	"OnBreak" "console,Command,say < Stay on the look out for the bee. As we know the Queen bee has an enraged form >,10,1"
	"OnBreak" "console,Command,say < Bees are dangerous >,17,1"
	"OnBreak" "jungle_underground_biome_music,PlaySound,,1,1"
	"OnBreak" "queen_bee_music,Volume,0,0,1"
	"OnBreak" "bee_attack_maker_6,Kill,,0,1"
	"OnBreak" "bee_attack_maker_7,Kill,,0,1"
	"OnBreak" "bee_attack_maker_8,Kill,,0,1"
	"OnBreak" "bee_attack_maker_9,Kill,,0,1"
	"OnBreak" "bee_attack_maker_10,Kill,,0,1"
	"OnBreak" "bee_attack_maker_1,Kill,,0,1"
	"OnBreak" "bee_attack_maker_2,Kill,,0,1"
	"OnBreak" "bee_attack_maker_3,Kill,,0,1"
	"OnBreak" "bee_attack_maker_4,Kill,,0,1"
	"OnBreak" "bee_attack_maker_5,Kill,,0,1"
	"OnBreak" "queen_bee_music,PlaySound,,22,1"
	"OnBreak" "console,Command,say < ITS BACK !? AND ENRAGED? SHOOT IT  QUICKLY >,22,1"
	"OnBreak" "Bee_Queen_boss_v2,ForceSpawn,,22,1"
	"OnBreak" "jungle_underground_biome_music,Volume,0,21,1"
	"OnBreak" "Bee_Queen_counter,Kill,,0,1"
}
;-------------------------------
; Add more hp to Queen Bee boss
;-------------------------------
modify:
{
    match:
    {
        "targetname" "Bee_Queen_hp_add"
    }
    delete:
    {
		"OnStartTouch" "Bee_Queen_counter,Add,1000,0,-1"
    }
    insert:
    {
		"OnStartTouch" "Bee_Queen_counter,Add,1500,0,-1"
    }
}
;---------------------------------
; Add more hp to plantera phase 1
;---------------------------------
modify:
{
    match:
    {
        "targetname" "plantera_phase_1_hp_give"
    }
    delete:
    {
		"OnStartTouch" "plantera_phase_1_counter,Add,500,0,-1"
    }
    insert:
    {
		"OnStartTouch" "plantera_phase_1_counter,Add,1200,0,-1"
    }
}
;---------------------------------
; Add more hp to golem phase 1
;---------------------------------
modify:
{
    match:
    {
        "targetname" "hp_add_golem"
    }
    delete:
    {
		"OnTrigger" "golem_counter,Add,1400,0,-1"
    }
    insert:
    {
		"OnStartTouch" "golem_counter,Add,1600,0,-1"
    }
}
;------------------------------------------------------------------
; Increases speed on guide path outside to match running animation
;------------------------------------------------------------------
modify:
{
    match:
    {
        "targetname" "guide_track_train"
    }
    replace:
    {
		"startspeed" "140"
    }
}
;--------------------------------------------
; Increases hold sections in the jungle area
;--------------------------------------------
modify:
{
    match:
    {
        "targetname" "jungle_biome_trigger_3"
    }
    delete:
    {
		"OnStartTouch" "jungle_biome_wall_3,Kill,,11,1"
		"OnStartTouch" "console,Command,say < Your almost at the end ! >,0,1"
		"OnStartTouch" "console,Command,say < Second passage is cleared >,11,1"
		"OnStartTouch" "console,Command,say < Defend for 10 seconds ! >,1,1"
    }
    insert:
    {
		"OnStartTouch" "jungle_biome_wall_3,Kill,,26,1"
		"OnStartTouch" "console,Command,say < Your almost at the end ! >,0,1"
		"OnStartTouch" "console,Command,say < Second passage is cleared >,26,1"
		"OnStartTouch" "console,Command,say < Defend for 5 more seconds ! >,21,1"
		"OnStartTouch" "console,Command,say < Defend for 25 seconds ! >,1,1"
    }
}

;--------------------------------------
; Reworks the freeze item to be static
;--------------------------------------
add:
{
	"origin" "15632 -9456 2272"
	"Template02" "Item_freeze_particle_use"
	"Template01" "Item_freeze_trigger"
	"targetname" "freeze_trigger_spawn_template"
	"spawnflags" "2"
	"classname" "point_template"
}
add:
{
	"origin" "15616 -9456 2272"
	"targetname" "freeze_trigger_spawn_maker"
	"spawnflags" "0"
	"parentname" "Item_freeze_weapon"
	"PostSpawnDirectionVariance" "0.15"
	"PostSpawnDirection" "0 0 0"
	"EntityTemplate" "freeze_trigger_spawn_template"
	"angles" "0 0 0"
	"classname" "env_entity_maker"
}
modify:
{
    match:
    {
        "targetname" "Item_freeze_particle_use"
    }
    delete:
    {
		"parentname" "Item_freeze_weapon"
    }
    replace:
    {
		"origin" "15631.9 -9456 2286"
		"start_active" "1"
    }
}
modify:
{
    match:
    {
        "targetname" "item_freeze_relay_use"
    }
    delete:
    {
		"OnTrigger" "Item_freeze_particle_use,Start,,0.01,-1"
		"OnTrigger" "Item_freeze_particle_use,Stop,,9,-1"
		"OnTrigger" "Item_freeze_trigger,Enable,,0.01,-1"
		"OnTrigger" "Item_freeze_trigger,Disable,,9,-1"
    }
    insert:
    {
		"OnTrigger" "Item_freeze_trigger,Kill,,9,-1"
		"OnTrigger" "Item_freeze_particle_use,Kill,,9,-1"
		"OnTrigger" "freeze_trigger_spawn_maker,ForceSpawn,,0,-1"
    }
}
modify:
{
    match:
    {
        "targetname" "Item_freeze_template"
    }
    delete:
    {
		"Template07" "Item_freeze_particle_use"
		"Template06" "Item_freeze_trigger"
    }
    insert:
    {
		"Template06" "freeze_trigger_spawn_maker"
    }
}
modify:
{
    match:
    {
        "targetname" "Item_freeze_trigger"
    }
    replace:
    {
		"StartDisabled" "0"
    }
    delete:
    {
		"parentname" "Item_freeze_weapon"
    }
}