;
;
;        Change for ZM Invis item so it's not too op, gives opacity now, change the middle renderamt value (0-255) if still not good enough 
;
;
modify:
{
    match:
    {
        "classname" "trigger_multiple"
        "targetname" "zinv_aoe"
    }
    delete:
    {
        "OnStartTouch" "!activator,AddOutput,rendermode 6,0,-1"
    }
    insert:
    {
        "OnStartTouch" "!activator,AddOutput,rendermode 2,0,-1"
        "OnStartTouch" "!activator,AddOutput,renderamt 80,0,-1"
        "OnStartTouch" "!activator,AddOutput,renderamt 255,9.55,-1"
    }
}
;
;
;        Fix megaman being able to die on spawn
;
;
add:
{
    "targetname" "GiveRockmanImmunity"
    "StartDisabled" "0"
    "spawnflags" "1"
    "origin" "1792 5120 -10112"
    "wait" "1"
    "classname" "trigger_multiple"
    "OnUser1" "!self,AddOutput,solid 2,0,1"
    "OnUser1" "!self,AddOutput,mins -64 -64 -64,0.1,1"
    "OnUser1" "!self,AddOutput,maxs 64 64 64,0.1,1"
    "OnStartTouch" "Megaman_HitBox,SetDamageFilter,Immunity,0,1"
}
add:
{
    "targetname" "RemoveRockmanImmunity"
    "StartDisabled" "0"
    "spawnflags" "1"
    "origin" "-13696 1408 2370"
    "wait" "1"
    "classname" "trigger_multiple"
    "OnUser1" "!self,AddOutput,solid 2,0,1"
    "OnUser1" "!self,AddOutput,mins -64 -64 -64,0.1,1"
    "OnUser1" "!self,AddOutput,maxs 64 64 64,0.1,1"
    "OnStartTouch" "Megaman_HitBox,SetDamageFilter,Zombies,0,1"
}
modify:
{
    match:
    {
        "hammerid" "286006"
        "classname" "logic_auto"
    }
    insert:
    {
        "OnMapSpawn" "GiveRockmanImmunity,FireUser1,,0,-1"
        "OnMapSpawn" "RemoveRockmanImmunity,FireUser1,,0,-1"
    }
}


;------------------------
;Stripper Cfg By Saddong
;------------------------
;---------------------------------------
;Immunity Fix
;---------------------------------------
modify:
{
	match:
	{
			"targetname" "Spawn_Humans_Teleport"
	}
	delete:
	{
		"OnStartTouch" "!activator,SetDamageFilter,NoFallDamage,0.3,1"
		"OnEndTouch" "!activator,SetDamageFilter,NoFallDamage,0.3,1"
	}
	insert:
	{
		"OnStartTouch" "!activator,SetDamageFilter,NoFallDamage,0.3,-1"
		"OnEndTouch" "!activator,SetDamageFilter,NoFallDamage,0.3,-1"
	}
}
modify:
{
	match:
	{
			"targetname" "Spawn_Zombies_Teleport_2"
	}
	delete:
	{
		"OnStartTouch" "!activator,SetDamageFilter,NoFallDamage,0.3,1"
	}
	insert:
	{
		"OnStartTouch" "!activator,SetDamageFilter,NoFallDamage,0.3,-1"
	}
}
;---------------------------------------
;Megaman Speed nerf
;---------------------------------------
modify:
{
	match:
	{
			"targetname" "Megaman_Stripper"
	}
	delete:
	{
		"OnStartTouch" "Map_SpeedMod,ModifySpeed,1.1,0,1"
	}
	insert:
	{
		"OnStartTouch" "Map_SpeedMod,ModifySpeed,1.05,0,1"
	}
}
;---------------------------------------
;Breakable Traps
;---------------------------------------
add:
{
	"model" "*140"
	"classname" "func_physbox_multiplayer"
	"targetname" "Missle_HitBox"
	"spawnobject" "0"
	"spawnflags" "16384"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"propdata" "0"
	"pressuredelay" "0"
	"preferredcarryangles" "0 0 0"
	"PerformanceMode" "0"
	"notsolid" "0"
	"nodamageforces" "0"
	"material" "1"
	"massScale" "0"
	"health" "300"
	"gibdir" "0 0 0"
	"disableshadows" "0"
	"disablereceiveshadows" "0"
	"Damagetype" "0"
	"damagetoenablemotion" "0"
	"origin" "2785 4446.5 -13658.5"
}
add:
{
	"model" "*26"
	"origin" "2712 5400 -13468.1"
	"classname" "func_physbox_multiplayer"
	"targetname" "KnightCage_HitBox"
	"spawnobject" "0"
	"spawnflags" "16384"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"propdata" "0"
	"pressuredelay" "0"
	"preferredcarryangles" "0 0 0"
	"PerformanceMode" "0"
	"notsolid" "0"
	"nodamageforces" "0"
	"material" "2"
	"massScale" "0"
	"health" "300"
	"gibdir" "0 0 0"
	"forcetoenablemotion" "0"
	"explosion" "0"
	"ExplodeRadius" "0"
	"explodemagnitude" "0"
	"ExplodeDamage" "0"
	"disableshadows" "0"
	"disablereceiveshadows" "0"
	"Damagetype" "0"
	"damagetoenablemotion" "0"
	"origin" "2712 5400 -13456"
}
modify:
{
    match:
    {
        "targetname" "Missle_Template"
    }
    insert:
    {
        "Template09" "Missle_HitBox"
    }
}
modify:
{
    match:
    {
        "targetname" "Missle_HitBox"
    }
    insert:
    {
		"OnBreak" "Missle_Door,Kill,,0,1"
		"OnBreak" "Missle_Hurt,Kill,,0,1"
		"OnBreak" "Missle_Particle,Kill,,0,1"
		"OnBreak" "Missle_Sprite,Kill,,0,1"
		"OnBreak" "Missle_Trap,Break,,0,1"
		"OnBreak" "Missle_Explode_Effect,Kill,,0,1"
		"OnBreak" "Missle_Lazy_Hurt_fix,Kill,,0,1"
		"OnBreak" "Missle_Sound,Kill,,0,1"
    }
}
modify:
{
    match:
    {
        "targetname" "KnightCage_Template"
    }
    insert:
    {
        "Template06" "KnightCage_HitBox"
    }
}
modify:
{
    match:
    {
        "targetname" "KnightCage_HitBox"
    }
    insert:
    {
		"OnBreak" "KnightCage_Door,Kill,,0,1"
		"OnBreak" "KnightCage_Model,Kill,,0,1"
		"OnBreak" "KnightCage_Particle,Kill,,0,1"
		"OnBreak" "KnightCage_Sound,Kill,,0,1"
		"OnBreak" "KnightCage_Trigger,Kill,,0,1"
    }
}
;---------------------------------------
;Broken Tp Fix
;---------------------------------------
modify:
{
	match:
	{
			"targetname" "Event_Stage_Case"
	}
	insert:
	{
		"OnUser2" "Spawn_Zombies_Teleport,AddOutput,target Tele_Des_01,20,1"
	}
}
;---------------------------------------
;Misc
;---------------------------------------
modify:
{
	match:
	{
			"targetname" "LifeSystem_Counter"
	}
	delete:
	{
		"OnHitMax" "Map_Command,Command,say >>>1 Lifes Remaining<<<,5.3,-1"
	}
}

;Extend roundtime
modify:
{
	match:
	{
		"classname"		"logic_auto"
	}
	delete:
	{
		"OnMultiNewMap"	"Map_Command,Command,mp_roundtime 15,0,1"
	}
	insert:
	{
		"OnMultiNewMap"	"Map_Command,Command,mp_roundtime 25,0,1"
	}
}
;---------------------------------------
;Stuck In Elevator Fix
;---------------------------------------
;add:
;{
;	"classname" "trigger_multiple"
;        "filtername" "Humans"
;       "targetname" "riccafix_tele"
;       "wait" "0.1"
;	"origin" "15616 13824 6528"
;	"spawnflags" "1"
;	"StartDisabled" "1"
;       "model" "*202"
;        "OnStartTouch" "!activator,AddOutput,origin 14848 13824 6752,0.00,-1"
;}
;
;modify:
;{
;	match:
;	{
;		"targetname" "Knight_Elavater_3"
;	}
;	
;	insert:
;	{
;	"OnFullyOpen" "riccafix_tele,Enable,,3.00,1"	
;	}
;	
;}


;; _

;; fix castle elevator

modify:
{
	match:
	{
		"targetname" "Knight_Tele_Libary"
		"classname" "trigger_teleport"
	}
	delete:
	{
		"OnStartTouch" "Knight_Elavater_2,Kill,,0,1"
		"OnStartTouch" "Knight_Elavater_3,Open,,0.1,1"
	}
	insert:
	{
		"OnStartTouch" "Knight_Elavater_2,Kill,,1,1"
		"OnStartTouch" "Knight_Elavater_3,Open,,1.5,1"
	}
}


