modify:
{
    match:
    {
        "targetname" "stage2_multipler"
        "classname" "trigger_multiple"
    }
    delete:
    {
        "OnStartTouch" "TemplarCounter1,Add,120,12,-1"
		"OnStartTouch" "TemplarCounter2,Add,120,12,-1"
		"OnStartTouch" "TemplarHitbox,SetDamageFilter,Humans,0.1,1"		
		"OnStartTouch" "TemplarHPBarToggle2,ShowSprite,,0,-1"		
    }
    insert:
    {
        "OnStartTouch" "TemplarCounter1,Add,75,0,-1"
		"OnStartTouch" "TemplarCounter2,Add,75,0,-1"
		"OnStartTouch" "TemplarHitbox,SetDamageFilter,Humans,10,1"	
		"OnStartTouch" "TemplarHPBarToggle2,ShowSprite,,9.5,-1"		
    }	
}

modify:
{
    match:
    {
        "origin" "2783 -3336.5 4264.25"
        "classname" "trigger_hurt"
    }
    insert:
    {
        "targetname" "templehurtafterboss"
    }
}

modify:
{
    match:
    {
        "targetname" "SwordCounter3"
        "classname" "math_counter"
    }
    insert:
    {
		"OnHitMin" "templehurtafterboss,Kill,,0,-1"
	}
}


modify:
{
	match:
	{
		"targetname" "stage2_winzms"
	}
	replace:
	{
		"origin" "1185.08 -3353.11 4341.3"
	}
}

modify:
{
	match:
	{
		"targetname" "stage2_buyzone"
		"classname" "func_buyzone"
	}
	replace:
	{
		"targetname" "   "
	}
}

modify:
{
	match:
	{
		"origin" "4570.06 -15776.3 -1970"
		"classname"	"logic_auto"
	}
	insert:
	{
		"OnMapSpawn" "console,Command,mp_buytime 145,0,-1"
	}
}

add:
{
    "model" "*5"
	"origin" "10034 -8688 -453"
	"rendermode" "10"	
	"classname" "func_brush"
    "targetname" "stage1_wallspawn"
	"Solidity" "2"
	"spawnflags" "2"
	"StartDisabled" "0"	
}

modify:
{
	match:
	}
		"targetname" "stage1_hold5"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "stage1_teleport1,Disable,,0,-1"
	}
	insert:
	{
		"OnStartTouch" "stage1_teleport1,Disable,,59,-1"
	}


modify:
{
    match:
    {
        "targetname" "bosslvl5_laser_trigger"
        "classname" "trigger_multiple"
    }
    delete:
    {
		"OnStartTouch" "SwordCounter1,Add,35,0,-1"
		"OnStartTouch" "SwordCounter2,Add,35,0,-1"	
    }
    insert:
    {
		"OnStartTouch" "SwordCounter1,Add,45,0,-1"
		"OnStartTouch" "SwordCounter2,Add,45,0,-1"	
    }	
}

;
;		STRIPPER BY ENCAP
;

;; prevent humans from delaying by spamming doors
 
modify:
{
	match:
	{
		"model" "models/props_c17/door01_left.mdl"
		"classname" "prop_door_rotating"
	}
	replace:
	{
		"spawnflags" "0"
	}
}

;; prevent players from falling under the map
 
add:
{
	"model" "*67"
	"origin" "7721.02 -8708.15 -4877.63"
	"classname" "func_brush"
	"spawnflags" "2"
	"solidity" "2"
}
{
	"model" "*67"
	"origin" "5579.02 -8177.15 -4993.13"
	"classname" "func_brush"
	"spawnflags" "2"
	"solidity" "2"
}
{
	"model" "*67"
	"origin" "9553.02 -8900.15 -4460.12"
	"classname" "func_brush"
	"spawnflags" "2"
	"solidity" "2"
}
{
	"model" "*64"
	"origin" "3728.77 4707.36 -4974.07"
	"classname" "func_brush"
	"spawnflags" "2"
	"solidity" "2"
}

;; stage 1 - fix afk teleport zones
 
filter:
{
	"hammerid" "135636"
}
 
add:
{
	"model" "*27"
	"targetname" "stage1_teleport2"
	"target" "teleport2"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "7206 -3230 -4851"
	"classname" "trigger_teleport"
}
add:
{
	"targetname" "stage1_teleport1"
	"target" "teleport1"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "12544.5 -5245.5 -4379.5"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -982.5 -788.5 -188.5,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 982.5 788.5 188.5,0.1,1"
}
 
modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "67184"
	}
	insert:
	{
		"OnMapSpawn" "stage1_teleport1,FireUser1,,0,-1"
	}
}
 
;; stage 2 - fix boss/afk teleport zones
 
add:
{
	"model" "*53"
	"targetname" "stage2_bossteleport2"
	"target" "teleportboss"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "6925.5 5164.5 -4773.5"
	"classname" "trigger_teleport"
}
add:
{
	"targetname" "stage2_bossteleport"
	"target" "teleportboss"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "2052 10371 -4050"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -1174 -575 -366,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 1174 575 366,0.1,1"
}
add:
{
	"targetname" "stage2_bossteleport"
	"target" "teleportboss"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "3921 6660.5 -4737"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -973 -271.5 -320,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 973 271.5 320,0.1,1"
}
 
modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "67184"
	}
	insert:
	{
		"OnMapSpawn" "stage2_bossteleport,FireUser1,,0,-1"
	}
}
 
;; stage 2 - unstuck players at first boss arena
 
add:
{
	"model" "*49"
	"targetname" "stage2_pushprotect"
	"target" "teleportbossarea"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "5880 5304.7 -4919.5"
	"filtername" "filter_humanos"
	"classname" "trigger_teleport"
	"OnStartTouch" "!self,Kill,,0.5,-1"
}
 
;; stage 2 - fix shortcuts
 
add:
{
	"targetname" "castle_clip"
	"model" "*5"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "0"
	"spawnflags" "2"
	"Solidity" "0"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "3454 9480 -4596"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
}
 
modify:
{
	match:
	{
		"targetname" "stage2_walltoggleafterboss"
		"classname" "trigger_push"
	}
	replace:
	{
		"speed" "600"
		"origin" "6700.5 4798 -4733"
	}
}
 
;; stage 2 - prevent players from getting into Masyaf temple early
 
modify:
{
	match:
	{
		"targetname" "asd"
		"classname" "prop_dynamic"
		"hammerid" "1351862"
	}
	replace:
	{
		"solid" "0"
	}
}
 
;; stage 2 - players can't block Masyaf temple gate
 
modify:
{
	match:
	{
		"targetname" "doormas"
		"classname" "func_door"
	}
	replace:
	{
		"wait" "-1"
		"dmg" "1000"
	}
}
 
;; stage 2 - add last afk teleport zone
 
add:
{
	"targetname" "stage2_templeteleport"
	"target" "templeteleport"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "-4320 -445.5 4207.5"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -2557 -2156.5 -1344.5,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 2557 2156.5 1344.5,0.1,1"
}
add:
{
	"targetname" "stage2_templeteleport"
	"target" "templeteleport"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "-4037.5 -3557.5 4579.5"
	"classname" "trigger_teleport"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -1060.5 -952.5 -519.5,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 1060.5 952.5 519.5,0.1,1"
}
 
modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "67184"
	}
	insert:
	{
		"OnMapSpawn" "stage2_templeteleport,FireUser1,,0,-1"
	}
}
modify:
{
	match:
	{
		"origin" "-1576.5 -3435 3921"
		"classname" "func_button"
		"hammerid" "1096572"
	}
	insert:
	{
		"OnPressed" "stage2_templeteleport,Enable,,15,1"
	}
}
modify:
{
	match:
	{
		"targetname" "templeteleport"
		"classname" "info_teleport_destination"
	}
	replace:
	{
		"origin" "-2547 -3292 3867"
	}
}

;; music volume

modify:
{
	match:
	{
		"message" "assassinscreed/masyaf.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#assassinscreed/masyaf.mp3"
	}
}
modify:
{
	match:
	{
		"message" "assassinscreed/stage1_beginning.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#assassinscreed/stage1_beginning.mp3"
	}
}
modify:
{
	match:
	{
		"message" "assassinscreed/stage1_part2.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#assassinscreed/stage1_part2.mp3"
	}
}
modify:
{
	match:
	{
		"message" "assassinscreed/stage2_beginning.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#assassinscreed/stage2_beginning.mp3"
	}
}
modify:
{
	match:
	{
		"message" "assassinscreed/stage2_bossfight.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#assassinscreed/stage2_bossfight.mp3"
	}
}
modify:
{
	match:
	{
		"message" "assassinscreed/stage2_part2.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#assassinscreed/stage2_part2.mp3"
	}
}
modify:
{
	match:
	{
		"message" "assassinscreed/stage2final.mp3"
		"classname" "ambient_generic"
	}
	replace:
	{
		"message" "#assassinscreed/stage2final.mp3"
	}
}

;; fix leap of faith origin

modify:
{
	match:
	{
		"target" "faithtele"
		"origin" "-6443.94 1982.75 3135.95"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"origin" "-6443.94 1954.75 3135.95"
	}
}