add:
{
	"origin" "-1276 -1984 868"
	"targetname" "TheCurrentLevelPlugin"
	"min" "1"
	"max" "4"
	"startvalue" "1"
	"classname" "math_counter"
}

modify:
{
	match:
	{
		"classname" "trigger_once"
		"hammerid" "67458"
	}
	insert:
	{
		"OnStartTouch" "TheCurrentLevelPlugin,SetValue,1,0,1"
	}
}
modify:
{
	match:
	{
		"classname" "trigger_once"
		"hammerid" "67476"
	}
	insert:
	{
		"OnStartTouch" "TheCurrentLevelPlugin,SetValue,2,0,1"
	}
}
modify:
{
	match:
	{
		"classname" "trigger_once"
		"hammerid" "67482"
	}
	insert:
	{
		"OnStartTouch" "TheCurrentLevelPlugin,SetValue,3,0,1"
	}
}
modify:
{
	match:
	{
		"classname" "trigger_once"
		"hammerid" "70742"
	}
	insert:
	{
		"OnStartTouch" "TheCurrentLevelPlugin,SetValue,4,0,1"
	}
}



; fix some early trigger bug on spawn (with bhop)
; the 4 triggers added below are not really needed, one could do the job
; but eh, it is what it is. I trust the stripper creator

;; was broken - fixed it, but disabled for a differen approach

;add:
;{
;	"model" "*122"
;	"targetname" "tel_trig_1"
;	"target" "tel_4"
;	"StartDisabled" "1"
;	"spawnflags" "1"
;	"origin" "112 -177 580"
;	"filtername" "ct_fil"
;	"classname" "trigger_teleport"
;}
;add:
;{
;	"model" "*122"
;	"targetname" "tel_trig_2"
;	"target" "tel_4"
;	"StartDisabled" "1"
;	"spawnflags" "1"
;	"origin" "112 -177 582"
;	"filtername" "ct_fil"
;	"classname" "trigger_teleport"
;}
;add:
;{
;	"model" "*122"
;	"targetname" "tel_trig_3"
;	"target" "tel_4"
;	"StartDisabled" "1"
;	"spawnflags" "1"
;	"origin" "112 -177 584"
;	"filtername" "ct_fil"
;	"classname" "trigger_teleport"
;}
;add:
;{
;	"model" "*122"
;	"targetname" "tel_trig_4"
;	"target" "tel_4"
;	"StartDisabled" "1"
;	"spawnflags" "1"
;	"origin" "112 -177 586"
;	"filtername" "ct_fil"
;	"classname" "trigger_teleport"
;}
;modify:
;{
;	match:
;	{
;		"targetname" "level_1_easy"
;	}
;	insert:
;	{
;		"OnStartTouch" "tel_trig_3,Enable,,0,1"
;		"OnStartTouch" "tel_trig_3,Disable,,15,1"
;	}
;}
;modify:
;{
;	match:
;	{
;		"targetname" "level_1_normal"
;	}
;	insert:
;	{
;		"OnStartTouch" "tel_trig_2,Enable,,0,1"
;		"OnStartTouch" "tel_trig_2,Disable,,20,1"
;	}
;}
;modify:
;{
;	match:
;	{
;		"targetname" "level_1_hard"
;	}
;	insert:
;	{
;		"OnStartTouch" "tel_trig_1,Enable,,0,1"
;		"OnStartTouch" "tel_trig_1,Disable,,20,1"
;	}
;}
;modify:
;{
;	match:
;	{
;		"targetname" "level_1_extreme"
;	}
;	insert:
;	{
;		"OnStartTouch" "tel_trig_4,Enable,,0,1"
;		"OnStartTouch" "tel_trig_4,Disable,,30,1"
;	}
;}



;; _

;; fix shortcut (keep shortcut, but no early trigger)

modify:
{
	match:
	{
		"targetname" "level_8_go4"
		"classname" "func_door"
	}
	insert:
	{
		"OnFullyOpen" "level_8_train,StartForward,,4,1"
	}
}
modify:
{
	match:
	{
		"origin" "1152 -8312 2472"
		"classname" "func_tanktrain"
	}
	replace:
	{
		"speed" "0"
	}
	insert:
	{
		"targetname" "level_8_train"
	}
}

;; start with normal difficulty

modify:
{
	match:
	{
		"targetname" "difficulty_easy"
		"classname" "func_brush"
	}
	replace:
	{
		"StartDisabled" "0"
	}
}
modify:
{
	match:
	{
		"targetname" "difficulty_normal"
		"classname" "func_brush"
	}
	replace:
	{
		"StartDisabled" "1"
	}
}

;; keep shortcut but delay the trigger

modify:
{
	match:
	{
		"origin" "-1664 -1984 848"
		"classname" "trigger_once"
		"hammerid" "67458"
	}
	delete:
	{
		"OnTrigger" "level_2_easy,Enable,,0,-1"
	}
	insert:
	{
		"OnTrigger" "level_1_go,AddOutput,OnFullyClosed level_2_easy:Enable::10:1,0,1"
	}
}
modify:
{
	match:
	{
		"origin" "-1532 -1984 848"
		"classname" "trigger_once"
		"hammerid" "67476"
	}
	delete:
	{
		"OnTrigger" "level_2_normal,Enable,,0,-1"
	}
	insert:
	{
		"OnTrigger" "level_1_go,AddOutput,OnFullyClosed level_2_normal:Enable::10:1,0,1"
	}
}
modify:
{
	match:
	{
		"origin" "-1404 -1984 848"
		"classname" "trigger_once"
		"hammerid" "67482"
	}
	delete:
	{
		"OnTrigger" "level_2_hard,Enable,,0,-1"
	}
	insert:
	{
		"OnTrigger" "level_1_go,AddOutput,OnFullyClosed level_2_hard:Enable::10:1,0,1"
	}
}
modify:
{
	match:
	{
		"origin" "-1276 -1984 848"
		"classname" "trigger_once"
		"hammerid" "70742"
	}
	delete:
	{
		"OnTrigger" "level_2_extreme,Enable,,0,-1"
	}
	insert:
	{
		"OnTrigger" "level_1_go,AddOutput,OnFullyClosed level_2_extreme:Enable::10:1,0,1"
	}
}

;; music volume

modify:
{
	match:
	{
		"message" "music/music_1.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#music/music_1.mp3"
	}
}
modify:
{
	match:
	{
		"message" "music/music_2.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#music/music_2.mp3"
	}
}
modify:
{
	match:
	{
		"message" "music/music_3.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#music/music_3.mp3"
	}
}
modify:
{
	match:
	{
		"message" "music/music_start1.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#music/music_start1.mp3"
	}
}

