; Comparing "ze_biohazard2_sewer_v4c.bsp" (1293 entities) with "ze_biohazard2_sewer_v4c_fix_3.bsp" (1290 entities)
; Removed 1273 identical entities.

;  __  __  ____  _____ _____ ________     __
; |  \/  |/ __ \|  __ \_   _|  ____\ \   / /
; | \  / | |  | | |  | || | | |__   \ \_/ /
; | |\/| | |  | | |  | || | |  __|   \   /
; | |  | | |__| | |__| || |_| |       | |
; |_|  |_|\____/|_____/_____|_|       |_|
modify:
{
	match:
	{
		"classname" "path_track"
		"targetname" "p_a15"
		"origin" "-3008 -7703 -958"
		"hammerid" "44872"
	}
	replace:
	{
		"speed" "150"
	}
}
modify:
{
	match:
	{
		"classname" "path_track"
		"targetname" "p_a17"
		"origin" "-3008 -7435 -1331"
		"hammerid" "44878"
	}
	replace:
	{
		"speed" "150"
	}
}
modify:
{
	match:
	{
		"classname" "path_track"
		"targetname" "p_a20"
		"origin" "-3008 -6634 -2413"
		"hammerid" "44887"
	}
	replace:
	{
		"speed" "150"
	}
}
modify:
{
	match:
	{
		"classname" "func_button"
		"targetname" "carte_b02"
		"origin" "-1452 -11802 -523.48"
		"model" "*53"
		"hammerid" "384575"
	}
	delete:
	{
		"OnPressed" "carte_02,TurnOn,,0,-1"
		"OnPressed" "mouv_02,Open,,1,-1"
		"OnPressed" "compare2,Compare,,0,1"
		"OnPressed" "compare4,Compare,,0,1"
	}
	insert:
	{
		"OnPressed" "branch1,test,,0,-1"
	}
}
modify:
{
	match:
	{
		"classname" "func_button"
		"targetname" "carte_b01"
		"origin" "-1452.5 -11785.5 -523.48"
		"model" "*54"
		"hammerid" "384587"
	}
	delete:
	{
		"OnPressed" "carte_01,TurnOn,,0,-1"
		"OnPressed" "mouv_01,Open,,1,-1"
		"OnPressed" "compare1,Compare,,0,1"
		"OnPressed" "compare5,Compare,,0,1"
	}
	insert:
	{
		"OnPressed" "branch2,Test,,0,-1"
	}
}
modify:
{
	match:
	{
		"classname" "func_button"
		"origin" "749 -11514 -543.5"
		"model" "*55"
		"hammerid" "384640"
	}
	delete:
	{
		"OnPressed" "carte_b01,Unlock,,0,-1"
	}
	insert:
	{
		"OnPressed" "branch2,toggle,,0,1"
	}
}
modify:
{
	match:
	{
		"classname" "func_button"
		"origin" "289 -12563 95.91"
		"model" "*56"
		"hammerid" "384718"
	}
	delete:
	{
		"OnPressed" "carte_b02,Unlock,,0,1"
	}
	insert:
	{
		"OnPressed" "branch1,toggle,,0,1"
	}
}
modify:
{
	match:
	{
		"classname" "logic_compare"
		"targetname" "compare3"
		"origin" "-1449 -11961 -484"
		"hammerid" "384777"
	}
	replace:
	{
		"classname" "math_counter"
		"targetname" "counter1"
	}
	delete:
	{
		"CompareValue" "1"
		"OnEqualTo" "explode,Trigger,,0,-1"
		"InitialValue" "2"
	}
	insert:
	{
		"min" "0"
		"max" "2"
		"startvalue" "0"
		"OnHitMax" "explode,Trigger,,0,-1"
		"StartDisabled" "0"
	}
}
modify:
{
	match:
	{
		"classname" "logic_compare"
		"targetname" "compare2"
		"origin" "-1449 -11929 -484"
		"hammerid" "384779"
	}
	replace:
	{
		"classname" "logic_branch"
		"InitialValue" "0"
		"targetname" "branch2"
	}
	delete:
	{
		"CompareValue" "1"
		"OnEqualTo" "compare3,SetValue,1,0,-1"
	}
	insert:
	{
		"OnTrue" "counter1,Add,1,0,1"
		"OnTrue" "mouv_01,Open,,1,1"
		"OnTrue" "carte_01,TurnOn,,0,1"
	}
}
modify:
{
	match:
	{
		"classname" "logic_compare"
		"targetname" "compare1"
		"origin" "-1449 -11945 -484"
		"hammerid" "384781"
	}
	replace:
	{
		"classname" "logic_branch"
		"InitialValue" "0"
		"targetname" "branch1"
	}
	delete:
	{
		"CompareValue" "1"
		"OnEqualTo" "compare3,Compare,,0,-1"
	}
	insert:
	{
		"OnTrue" "counter1,Add,1,0,1"
		"OnTrue" "mouv_02,Open,,0,1"
		"OnTrue" "carte_02,TurnOn,,0,1"
	}
}
modify:
{
	match:
	{
		"classname" "func_door_rotating"
		"targetname" "porte_03"
		"origin" "-884 -11664 -476"
		"model" "*57"
		"hammerid" "385215"
	}
	replace:
	{
		"forceclosed" "1"
		"dmg" "999999999"
	}
}
modify:
{
	match:
	{
		"classname" "func_door_rotating"
		"targetname" "porte_04"
		"origin" "-884 -11808 -476"
		"model" "*58"
		"hammerid" "385227"
	}
	replace:
	{
		"forceclosed" "1"
		"dmg" "999999999"
	}
}
modify:
{
	match:
	{
		"classname" "logic_relay"
		"targetname" "r_07"
		"origin" "61.8044 -12599 135.606"
		"hammerid" "387244"
	}
	delete:
	{
		"OnTrigger" "afk_t1,Enable,,10,-1"
		"OnTrigger" "afk_t1,Disable,,17,-1"
	}
	insert:
	{
		"OnTrigger" "afk_t1,Enable,,5,-1"
		"OnTrigger" "afk_t1,Disable,,18,-1"
		"OnTrigger" "anti_afk2,AddOutput,target desty,12,-1"
		"OnTrigger" "carte_b01,Unlock,,18,-1"
		"OnTrigger" "carte_b02,Unlock,,18,-1"
	}
}
modify:
{
	match:
	{
		"classname" "trigger_teleport"
		"targetname" "anti_afk2"
		"origin" "1468 -9014 156"
		"model" "*88"
		"hammerid" "483318"
	}
	replace:
	{
		"origin" "1468 -9000 156"
	}
}
modify:
{
	match:
	{
		"classname" "path_track"
		"targetname" "mon_04"
		"origin" "-1524 8264 56"
		"hammerid" "703636"
	}
	replace:
	{
		"speed" "150"
	}
}
modify:
{
	match:
	{
		"classname" "func_tanktrain"
		"targetname" "train"
		"origin" "-3008 -12040 -327"
		"model" "*138"
		"hammerid" "855157"
	}
	replace:
	{
		"startspeed" "320"
	}
}
modify:
{
	match:
	{
		"classname" "func_tanktrain"
		"targetname" "montcharge"
		"origin" "-1524 8264 296"
		"model" "*140"
		"hammerid" "865835"
	}
	replace:
	{
		"startspeed" "175"
	}
}
modify:
{
	match:
	{
		"classname"		"logic_auto"
		"hammerid"		"149359"
	}
	delete:
	{
		"OnMapSpawn"	"server_console,Command,mp_roundtime 9,0,-1"
	}
}
; Generated 17 modify blocks.

;  ______ _____ _   _______ ______ _____
; |  ____|_   _| | |__   __|  ____|  __ \
; | |__    | | | |    | |  | |__  | |__) |
; |  __|   | | | |    | |  |  __| |  _  /
; | |     _| |_| |____| |  | |____| | \ \
; |_|    |_____|______|_|  |______|_|  \_\
filter:
{
	"classname" "logic_compare"
	"targetname" "compare4"
	"origin" "-1449 -11824 -484"
	"hammerid" "384789"
}
filter:
{
	"classname" "logic_compare"
	"targetname" "compare6"
	"origin" "-1449 -11856 -484"
	"hammerid" "384791"
}
filter:
{
	"classname" "logic_compare"
	"targetname" "compare5"
	"origin" "-1449 -11840 -484"
	"hammerid" "384793"
}
; Generated 3 filter blocks.

;           _____  _____
;     /\   |  __ \|  __ \
;    /  \  | |  | | |  | |
;   / /\ \ | |  | | |  | |
;  / ____ \| |__| | |__| |
; /_/    \_\_____/|_____/
; Generated 0 add blocks.

; File generated on Thu, 14 Jan 2016 13:53:56 +0000 in 0.34923315048217773 seconds.


;FIX TRAM AND ELEVATOR CLIENT CRASH

modify:
{
	match:
	{
		"classname" "func_tanktrain"
	}
	replace:
	{
		"disableshadows" "1"
		"disablereceiveshadows" "1"
	}
}

modify:
{
	match:
	{
		"classname" "point_spotlight"
	}
	replace:
	{
		"disablereceiveshadows" "1"
	}
}

modify:
{
	match:
	{
		"classname" "prop_dynamic"
		"model" "models/props/de_prodigy/fanhousing.mdl"
	}
	replace:
	{
		"disableshadows" "1"
		"disablereceiveshadows" "1"
		"DisableBoneFollowers" "1"
	}
}

modify:
{
	match:
	{
		"classname" "prop_dynamic"
		"model" "models/props_trainstation/train001.mdl"
	}
	replace:
	{
		"disableshadows" "1"
		"disablereceiveshadows" "1"
		"DisableBoneFollowers" "1"
	}
}

modify:
{
	match:
	{
		"classname" "prop_dynamic"
		"model" "models/props/de_nuke/emergency_lighta.mdl"
	}
	replace:
	{
		"disableshadows" "1"
		"disablereceiveshadows" "1"
		"DisableBoneFollowers" "1"
	}
}

modify:
{
	match:
	{
		"targetname" "tr_01"
	}
	replace:
	{
		"disableshadows" "1"
		"disablereceiveshadows" "1"
	}
}

modify:
{
	match:
	{
		"targetname" "tr_02"
	}
	replace:
	{
		"disableshadows" "1"
		"disablereceiveshadows" "1"
	}
}

modify:
{
	match:
	{
		"targetname" "tr_03"
	}
	replace:
	{
		"disableshadows" "1"
		"disablereceiveshadows" "1"
	}
}

modify:
{
	match:
	{
		"targetname" "tr_04"
	}
	replace:
	{
		"disableshadows" "1"
		"disablereceiveshadows" "1"
	}
}

modify:
{
	match:
	{
		"targetname" "tr_01b"
	}
	replace:
	{
		"disableshadows" "1"
		"disablereceiveshadows" "1"
	}
}

modify:
{
	match:
	{
		"targetname" "tr_02b"
	}
	replace:
	{
		"disableshadows" "1"
		"disablereceiveshadows" "1"
	}
}

modify:
{
	match:
	{
		"targetname" "tr_03b"
	}
	replace:
	{
		"disableshadows" "1"
		"disablereceiveshadows" "1"
	}
}

modify:
{
	match:
	{
		"targetname" "tr_04b"
	}
	replace:
	{
		"disableshadows" "1"
		"disablereceiveshadows" "1"
	}
}

modify:
{
	match:
	{
		"targetname" "ro_1"
	}
	replace:
	{
		"disableshadows" "1"
		"disablereceiveshadows" "1"
	}
}

modify:
{
	match:
	{
		"targetname" "ro_2"
	}
	replace:
	{
		"disableshadows" "1"
		"disablereceiveshadows" "1"
	}
}

modify:
{
	match:
	{
		"targetname" "ro_3"
	}
	replace:
	{
		"disableshadows" "1"
		"disablereceiveshadows" "1"
	}
}

modify:
{
	match:
	{
		"targetname" "ro_4"
	}
	replace:
	{
		"disableshadows" "1"
		"disablereceiveshadows" "1"
	}
}

;INFINITE AMMO ON TRAIN ELEVATOR

add:
{
	"classname" "game_player_equip"
	"targetname" "startequip"
	"spawnflags" "0"
	"weapon_p90" "1"
	"item_assaultsuit" "1"
	"weapon_hegrenade" "1"
	"weapon_knife" "1"
	"weapon_elite" "1"
}

add:
{
	"classname" "game_player_equip"
	"targetname" "ammo"
	"spawnflags" "1"
	"ammo_50AE" "1"
}

add:
{
	"model" "*136"
	"classname" "trigger_multiple"
	"origin" "-1472 8256.5 435.14"
	"targetname" "ammotrigger"
	"parentname" "montcharge"
	"spawnflags" "1"
	"StartDisabled" "0"
	"wait" "0"
	"filtername" "ct_filter"
	"OnStartTouch" "!self,FireUser1,,0,1"
	"OnStartTouch" "ammo,use,,0,-1"
	"OnUser1" "!self,Toggle,,0,-1"
	"OnUser1" "!self,FireUser1,,0.5,-1"
}

;Increase nuke damage
modify:
{
	match:
	{
		"classname"	"trigger_hurt"
		"targetname"	"end"
	}
	replace:
	{
		"damage"	"100000"
	}
}

;Stripper by encap
 
;; spawn teleport rework
 
modify:
{
	match:
	{
		"targetname" "relay_3"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnTrigger" "anti_afk1,Enable,,0,-1"
	}
	insert:
	{
		"OnTrigger" "anti_afk1,Enable,,20,-1"
	}
}
 
modify:
{
	match:
	{
		"origin" "-964.5 -45 180"
		"classname" "trigger_teleport"
		"hammerid" "376456"
	}
	delete:
	{
		"filtername" "ct_filter"
	}
}
 
; prevent late players that get infected at elevator from dropping to humans
 
modify:
{
	match:
	{
		"targetname" "relay_4"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "anti_zm3,Kill,,4,-1"
	}
}
 
add:
{
	"origin" "504 -9608 36"
	"targetname" "anti_zm3_tele"
	"angles" "0 180 0"
	"classname" "info_teleport_destination"
}
add:
{
	"model" "*78"
	"targetname" "anti_zm3"
	"target" "anti_zm3_tele"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "292 -9547 -85"
	"filtername" "zombie_filter"
	"classname" "trigger_teleport"
}
add:
{
	"model" "*79"
	"targetname" "anti_zm3"
	"target" "anti_zm3_tele"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "291 -9548 -85"
	"filtername" "zombie_filter"
	"classname" "trigger_teleport"
}
;; prevent zombies from opening last door
 
modify:
{
	match:
	{
		"classname" "func_button"
		"hammerid" "193008"
	}
	insert:
	{
		"targetname" "last_button"
	}
	replace:
	{
		"spawnflags" "3073"
	}
}
 
modify:
{
	match:
	{
		"targetname" "relay_6"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "last_button,Unlock,,1,-1"
	}
}

;; unlock button on tram stop

modify:
{
	match:
	{
		"origin" "-2990 6451 -656.82"
		"classname" "func_button"
		"hammerid" "469563"
	}
	insert:
	{
		"targetname" "tram_after"
	}
	replace:
	{
		"spawnflags" "3073"
	}
}
modify:
{
	match:
	{
		"targetname" "p_a64"
		"classname" "path_track"
	}
	insert:
	{
		"OnPass" "tram_after,Unlock,,1,1"
	}
}

