; Removing old boss wall
filter:
{
	"classname" "func_wall_toggle"
	"hammerid" "559687"
}

;Set fetus hp to 250%
modify:
{
	match:
	{
		"classname" "logic_case"
		"hammerid" "253721"
	}
	delete:
	{
		"OnCase01" "npc_base_1RunScriptCodeSetHealth(4000,16000);0-1"
	}
	insert:
	{
		"OnCase01" "npc_base_1RunScriptCodeSetHealth(3000,12000);0-1"
	}
}

; fix diddle cannon stacking
modify:
{
	match:
	{
		"classname" "logic_relay"
		"targetname" "i_item_controller_1"
	}
	replace:
	{
		"classname" "logic_script"
		"vscripts" "ze_diddle/itemcontroller.nut"
	}
	delete:
	{
		"OnTrigger" "!selfFireUser101"
		"OnSpawn" "i_item_selfspawn_1FireUser101"
		"OnSpawn" "i_item_pistol_1FireUser101"
		"OnSpawn" "i_item_base_1FireUser101"
		"OnSpawn" "i_item_distancecheck_1FireUser101"
		"OnSpawn" "i_item_ammotextFireUser101"
	}
	insert:
	{
		"OnUser3" "!selfFireUser101"
		"OnUser1" "i_item_selfspawn_1FireUser101"
		"OnUser1" "i_item_base_1FireUser101"
		"OnUser1" "i_item_distancecheck_1FireUser101"
		"OnUser1" "i_item_ammotextFireUser101"
	}
}
modify:
{
	match:
	{
		"classname" "weapon_glock"
		"targetname" "i_item_pistol_1"
	}
	delete:
	{
		"OnPlayerPickup" "i_item_controller_1Trigger01"
		"OnUser1" "i_item_controller_1CallScriptFunctionSetPistol01"
		"OnPlayerPickup" "i_item_controller_1CallScriptFunctionPickUp0-1"
		"OnPlayerPickup" "i_item_controller_1CallScriptFunctionSyncWeaponAngles0.2-1"
	}
	insert:
	{
		"OnPlayerPickup" "i_item_controller_1FireUser301"
		"OnPlayerPickup" "i_item_base_1CallScriptFunctionPickUp0-1"
		"OnPlayerPickup" "i_item_controller_1CallScriptFunctionSyncWeaponAngles0.75-1"
		"OnPlayerPickup" "i_item_controller_1CallScriptFunctionPickUp0.5-1"
	}
}

; Trying to fix memory leak
modify:
{
	match:
	{
		"classname" "logic_relay"
		"targetname" "killstuff"
	}
	replace:
	{
		"vscripts" "ze_diddle/entitycleaner.nut"
	}
}