add:
{
	"origin" "-4166 530 125"
	"targetname" "TheCurrentLevelPlugin"
	"min" "1"
	"max" "4"
	"startvalue" "1"
	"classname" "math_counter"
}
modify:
{
	match:
	{
		"classname" "trigger_once"
		"hammerid" "1291"
	}
	insert:
	{
		"OnStartTouch" "TheCurrentLevelPlugin,SetValue,1,0,1"
	}
}
modify:
{
	match:
	{
		"classname" "trigger_once"
		"hammerid" "35584"
	}
	insert:
	{
		"OnStartTouch" "TheCurrentLevelPlugin,SetValue,2,0,1"
	}
}
modify:
{
	match:
	{
		"classname" "trigger_once"
		"hammerid" "130279"
	}
	insert:
	{
		"OnStartTouch" "TheCurrentLevelPlugin,SetValue,3,0,1"
	}
}
modify:
{
	match:
	{
		"classname" "trigger_once"
		"hammerid" "155145"
	}
	insert:
	{
		"OnStartTouch" "TheCurrentLevelPlugin,SetValue,4,0,1"
	}
}

;-----------
; MAP FIXES
;-----------


modify:
{
	match:
	{
		"hammerid" "4170"
	}
	delete:
	{
		"OnStartTouch" "!activator,AddOutput,basevelocity 0 0 680,0,-1"
	}
	insert:
	{
		"OnStartTouch" "!activator,AddOutput,basevelocity 0 0 350,0,-1"
	}
}

modify:
{
	match:
	{
		"hammerid" "9769"
	}
	delete:
	{
		"OnStartTouch" "!activator,AddOutput,basevelocity 0 0 680,0,-1"
	}
	insert:
	{
		"OnStartTouch" "!activator,AddOutput,basevelocity 0 0 350,0,-1"
	}
}

modify:
{
	match:
	{
		"hammerid" "9866"
	}
	delete:
	{
		"OnStartTouch" "!activator,AddOutput,basevelocity 0 0 680,0,-1"
	}
	insert:
	{
		"OnStartTouch" "!activator,AddOutput,basevelocity 0 0 350,0,-1"
	}
}

modify:
{
	match:
	{
		"hammerid" "9904"
	}
	delete:
	{
		"OnStartTouch" "!activator,AddOutput,basevelocity 0 0 680,0,-1"
	}
	insert:
	{
		"OnStartTouch" "!activator,AddOutput,basevelocity 0 0 350,0,-1"
	}
}

modify:
{
	match:
	{
		"hammerid" "10049"
	}
	delete:
	{
		"OnStartTouch" "!activator,AddOutput,basevelocity 0 0 680,0,-1"
	}
	insert:
	{
		"OnStartTouch" "!activator,AddOutput,basevelocity 0 0 350,0,-1"
	}
}

modify:
{
	match:
	{
		"hammerid" "22222"
	}
	delete:
	{
		"OnStartTouch" "!activator,AddOutput,basevelocity 0 0 680,0,-1"
	}
	insert:
	{
		"OnStartTouch" "!activator,AddOutput,basevelocity 0 0 350,0,-1"
	}
}

modify:
{
	match:
	{
		"hammerid" "217740"
	}
	delete:
	{
		"OnStartTouch" "!activator,AddOutput,basevelocity 0 0 680,0,-1"
	}
	insert:
	{
		"OnStartTouch" "!activator,AddOutput,basevelocity 0 0 350,0,-1"
	}
}

modify:
{
	match:
	{
		"hammerid" "217846"
	}
	delete:
	{
		"OnStartTouch" "!activator,AddOutput,basevelocity 0 0 680,0,-1"
	}
	insert:
	{
		"OnStartTouch" "!activator,AddOutput,basevelocity 0 0 350,0,-1"
	}
}

modify:
{
	match:
	{
		"hammerid" "217849"
	}
	delete:
	{
		"OnStartTouch" "!activator,AddOutput,basevelocity 0 0 680,0,-1"
	}
	insert:
	{
		"OnStartTouch" "!activator,AddOutput,basevelocity 0 0 350,0,-1"
	}
}

modify:
{
	match:
	{
		"hammerid" "217852"
	}
	delete:
	{
		"OnStartTouch" "!activator,AddOutput,basevelocity 0 0 680,0,-1"
	}
	insert:
	{
		"OnStartTouch" "!activator,AddOutput,basevelocity 0 0 350,0,-1"
	}
}

modify:
{
	match:
	{
		"hammerid" "217855"
	}
	delete:
	{
		"OnStartTouch" "!activator,AddOutput,basevelocity 0 0 680,0,-1"
	}
	insert:
	{
		"OnStartTouch" "!activator,AddOutput,basevelocity 0 0 350,0,-1"
	}
}

modify:
{
	match:
	{
		"hammerid" "218059"
	}
	delete:
	{
		"OnStartTouch" "!activator,AddOutput,basevelocity 0 0 680,0,-1"
	}
	insert:
	{
		"OnStartTouch" "!activator,AddOutput,basevelocity 0 0 350,0,-1"
	}
}

modify:
{
    match:
    {
        "targetname" "field of memories"
    }
    replace:
    {
        "message" "#koopa's road bgm/field of memories.mp3"
    }
}

modify:
{
    match:
    {
        "targetname" "hard_boss_bgm"
    }
    replace:
    {
        "message" "#koopa's road bgm/hard boss bgm.mp3"
    }
}

modify:
{
    match:
    {
        "targetname" "hard_boss_bgm2"
    }
    replace:
    {
        "message" "#koopa's road bgm/hard boss bgm2.mp3"
    }
}

modify:
{
    match:
    {
        "targetname" "zm_bgm"
    }
    replace:
    {
        "message" "#koopa's road bgm/zm_mode.mp3"
    }
}

modify:
{
    match:
    {
        "targetname" "finall boss"
    }
    replace:
    {
        "message" "#koopa's road bgm/final battle.mp3"
    }
}

modify:
{
    match:
    {
        "targetname" "garaxy plant"
    }
    replace:
    {
        "message" "#koopa's road bgm/garaxy plant.mp3"
    }
}

modify:
{
    match:
    {
        "targetname" "ricochet love"
    }
    replace:
    {
        "message" "#koopa's road bgm/ricochet love.mp3"
    }
}

modify:
{
    match:
    {
        "targetname" "the alternate route wii"
    }
    replace:
    {
        "message" "#koopa's road bgm/the alternate route wii.mp3"
    }
}

modify:
{
    match:
    {
        "targetname" "bowsers road remix"
    }
    replace:
    {
        "message" "#koopa's road bgm/the alternate route remix.mp3"
    }
}

;modify:
;{
;    match:
;    {
;	    "classname" "trigger_hurt"
;        "model" "*126"
;    }
;    replace:
;    {
;        "damage" "500"
;    }
;    insert:
;    {
;        "OnStartTouch" "!activator,AddOutput,origin 12562 252 1271,0,-1"
;    }
;}

modify:
{
	match:
	{
		"classname" "trigger_teleport"
		"model" "*100"
	}
	insert:
	{
		"targetname" "floor1tp"
	}
	replace:
	{
		"StartDisabled" "1"
	}
}

modify:
{
	match:
	{
		"classname" "trigger_teleport"
		"model" "*182"
	}
	insert:
	{
		"targetname" "floor1tp"
	}
	replace:
	{
		"StartDisabled" "1"
	}
}

modify:
{
	match:
	{
		"classname" "trigger_teleport"
		"model" "*183"
	}
	insert:
	{
		"targetname" "floor1tp"
	}
	replace:
	{
		"StartDisabled" "1"
	}
}

modify:
{
	match:
	{
		"targetname" "normal2"
	}
	insert:
	{
		"OnStartTouch" "floor1tp,Enable,,40,-1"
	}
}

modify:
{
	match:
	{
		"targetname" "hard2"
	}
	insert:
	{
		"OnStartTouch" "floor1tp,Enable,,50,-1"
	}
}

add:
{
	"classname" "trigger_push"
	"origin" "970.5 347.5 64.5"
	"angles" "0 0 0"
	"model" "*8"
	"targetname" "floor1push"
	"pushdir" "0 180 0"
	"spawnflags" "1"
	"speed" "150"
	"StartDisabled" "0"
	"alternateticksfix" "0"
	"filtername" "zombie only"
}

modify:
{
	match:
	{
		"classname" "trigger_teleport"
		"model" "*110"
	}
	insert:
	{
		"targetname" "floor2tp"
	}
	replace:
	{
		"StartDisabled" "1"
	}
}

modify:
{
	match:
	{
		"classname" "trigger_teleport"
		"model" "*111"
	}
	insert:
	{
		"targetname" "floor2tp"
	}
	replace:
	{
		"StartDisabled" "1"
	}
}

modify:
{
	match:
	{
		"classname" "trigger_teleport"
		"model" "*99"
	}
	insert:
	{
		"targetname" "floor2tp"
	}
	replace:
	{
		"StartDisabled" "1"
	}
}

modify:
{
	match:
	{
		"classname" "trigger_teleport"
		"model" "*184"
	}
	insert:
	{
		"targetname" "floor2tp"
	}
	replace:
	{
		"StartDisabled" "1"
	}
}

modify:
{
	match:
	{
		"classname" "trigger_teleport"
		"model" "*185"
	}
	insert:
	{
		"targetname" "floor2tp"
	}
	replace:
	{
		"StartDisabled" "1"
	}
}

modify:
{
	match:
	{
		"classname" "trigger_teleport"
		"model" "*186"
	}
	insert:
	{
		"targetname" "floor2tp"
	}
	replace:
	{
		"StartDisabled" "1"
	}
}

add:
{
	"classname" "trigger_push"
	"origin" "-658.9 69 1101.5"
	"angles" "0 0 0"
	"model" "*43"
	"targetname" "floor2push"
	"pushdir" "0 0 0"
	"spawnflags" "1"
	"speed" "150"
	"StartDisabled" "0"
	"alternateticksfix" "0"
	"filtername" "zombie only"
}

modify:
{
	match:
	{
		"targetname" "3F_z_fall_tele"
	}
	replace:
	{
		"StartDisabled" "1"
	}
}

add:
{
	"classname" "trigger_push"
	"origin" "939.61 69 2258.5"
	"angles" "0 0 0"
	"model" "*65"
	"targetname" "floor2push"
	"pushdir" "0 180 0"
	"spawnflags" "1"
	"speed" "150"
	"StartDisabled" "0"
	"alternateticksfix" "0"
	"filtername" "zombie only"
}

;; ze_bowser_in_the_fire_sea_v1e

;; stage 4 - fix shortcuts

add:
{
	"model" "*424"
	"target" "ins_shortcut_pro_tdes2"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "-1082 -7281 1906"
	"classname" "trigger_teleport"
}
add:
{
	"model" "*361"
	"target" "ins_shortcut_pro_tdes1"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "-859 -6619.5 2361"
	"classname" "trigger_teleport"
}
add:
{
	"model" "*361"
	"target" "ins_shortcut_pro_tdes1"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "-1973 -6619.5 1984"
	"classname" "trigger_teleport"
}
add:
{
	"model" "*361"
	"target" "ins_shortcut_pro_tdes1"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "-3048.5 -6755.5 2350.5"
	"classname" "trigger_teleport"
}
add:
{
	"targetname" "clip1"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "0"
	"spawnflags" "2"
	"Solidity" "0"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "368 -7337 3106.5"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -2867 -448 -4.5,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 2867 448 4.5,0.1,1"
}

modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "36472"
	}
	insert:
	{
		"OnMapSpawn" "clip1,FireUser1,,0,-1"
	}
}
modify:
{
	match:
	{
		"origin" "-1921 -7932.5 2470.5"
		"classname" "trigger_teleport"
		"hammerid" "299733"
	}
	insert:
	{
		"target" "ins_shortcut_pro_tdes1"
		"spawnflags" "1"
	}
}

;; insane - fix afk teleport

modify:
{
	match:
	{
		"origin" "-4166 530 125"
		"classname" "trigger_once"
		"hammerid" "155145"
	}
	insert:
	{
		"OnStartTouch" "button_counter,AddOutput,OnHitMax floor1tp:Enable::51:1,0,1"
	}
}

