add:
{
	"origin" "2816 -15200 161"
	"targetname" "TheCurrentLevelPlugin"
	"min" "1"
	"max" "5"
	"startvalue" "1"
	"classname" "math_counter"
}

modify:
{
	match:
	{
		"targetname" "lvl0"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "TheCurrentLevelPlugin,SetValue,1,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "lvl1"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "TheCurrentLevelPlugin,SetValue,2,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "lvl2"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "TheCurrentLevelPlugin,SetValue,3,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "lvl3"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "TheCurrentLevelPlugin,SetValue,4,0,1"
	}
}
modify:
{
	match:
	{
		"targetname" "lvl4"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "TheCurrentLevelPlugin,SetValue,5,0,1"
	}
}


;--------------------------------------------------------------------
;STRIPPER CFG BY MOLTARD http://steamcommunity.com/id/0123456789ABC/
;--------------------------------------------------------------------
;REMOVE BROKEN SPAWNPOINT
;-------------------------

filter:
{
	"origin" "-2816 -15072 161"
	"classname" "info_player_counterterrorist"
	"hammerid" "112382"
}
{
	"origin" "-2688 -15072 161"
	"classname" "info_player_terrorist"
	"hammerid" "112340"
}
{
	"origin" "-2816 -15200 161"
	"classname" "info_player_counterterrorist"
	"hammerid" "112378"
}
{
	"origin" "-2688 -15200 161"
	"classname" "info_player_terrorist"
	"hammerid" "112356"
}
{
	"origin" "2688 -15072 161"
	"classname" "info_player_counterterrorist"
	"hammerid" "111701"
}
{
	"origin" "2816 -15072 161"
	"classname" "info_player_terrorist"
	"hammerid" "111661"
}
{
	"origin" "2816 -15200 161"
	"classname" "info_player_terrorist"
	"hammerid" "111667"
}
{
	"origin" "2688 -15200 161"
	"classname" "info_player_counterterrorist"
	"hammerid" "111703"
}

;----------------
;FIX END BUTTONS
;----------------

modify:
{
    match:
    {
        "targetname" "final_button"
        "classname" "func_button"
    }
    delete:
    {
        "OnPressed" "boss_hurt_zm,Enable,,21,-1"
        "OnPressed" "server,Command,sm_mapvote,0,-1"
        "OnPressed" "end,EndGame,,22,1"
    }
    insert:
    {
        "OnPressed" "boss_hurt_zm,Enable,,3,-1"
    }
}


;; _

;; fix afk teleports

add:
{
	"targetname" "afk_2"
	"target" "afk_2_d"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "2800 -5751 273"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -944 -391 -65,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 944 391 65,0.1,1"
}
add:
{
	"targetname" "afk_3"
	"target" "afk_3_d"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "3628 -4591 510"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -967 -1550 -510,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 967 1550 510,0.1,1"
}

modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "478385"
	}
	insert:
	{
		"OnMapSpawn" "afk_2,FireUser1,,0,-1"
		"OnMapSpawn" "afk_3,FireUser1,,0,-1"
	}
}

modify:
{
	match:
	{
		"targetname" "afk_1"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"origin" "72 -12304 417.5"
	}
}

;; add playerclip in last room

add:
{
	"targetname" "lastroom_clip"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "0"
	"spawnflags" "2"
	"Solidity" "0"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "9627.5 -3456 740"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -483.5 -168 -8,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 483.5 168 8,0.1,1"
}

modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "478385"
	}
	insert:
	{
		"OnMapSpawn" "lastroom_clip,FireUser1,,0,-1"
	}
}

;; fix naruto skin

modify:
{
	match:
	{
		"targetname" "skin_2"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "!activator,AddOutput,modelindex 277,0,-1"
	}
	insert:
	{
		"OnStartTouch" "!activator,AddOutput,modelindex 499,0,-1"
		"OnStartTouch" "skin_2,Disable,,3,1"
	}
}

;; reset player gravity on spawn

add:
{
	"model" "*245"
	"wait" "0.01"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "2752 -15184 160"
	"classname" "trigger_multiple"
	"OnStartTouch" "!activator,AddOutput,gravity 1,0,-1"
}
add:
{
	"model" "*246"
	"wait" "0.01"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "-2752.5 -15184.5 160"
	"classname" "trigger_multiple"
	"OnStartTouch" "!activator,AddOutput,gravity 1,0,-1"
}

;; bikes give gravity/speed on first pickup only, nerf speed a little

modify:
{
	match:
	{
		"targetname" "/bike?/"
		"classname" "weapon_elite"
	}
	delete:
	{
		"OnPlayerPickup" "speed,ModifySpeed,1.15,0,-1"
		"OnPlayerPickup" "!activator,AddOutput,gravity 0.80,0,-1"
	}
	insert:
	{
		"OnPlayerPickup" "speed,ModifySpeed,1.1,0,1"
		"OnPlayerPickup" "!activator,AddOutput,gravity 0.80,0,1"
	}
}

;; start with normal difficulty

modify:
{
	match:
	{
		"targetname" "lvl0"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnTrigger" "0,Enable,,0,-1"
	}
	insert:
	{
		"OnTrigger" "1,Enable,,0,1"
	}
}

;; stage 3 - fix zombie spawn on last hold

modify:
{
	match:
	{
		"targetname" "final_trig_hard"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "afk_1,Disable,,0,-1"
	}
	insert:
	{
		"OnStartTouch" "afk_1,Disable,,24.5,1"
	}
}


