;--------------------------------------------------------------------
;STRIPPER CFG BY MOLTARD http://steamcommunity.com/id/0123456789ABC/
;--------------------------------------------------------------------
;FIX POTENTIAL CRASH SERVER
;---------------------------

add:
{
	"classname" "point_template"
	"targetname" "TemplateBerserk"
	"origin" "-9943 -2343 -178"
	"spawnflags" "2"
	"Template01" "berserk_weapon"
	"Template02" "berserk_button"
	"Template03" "berserk_fade"
	"Template04" "berserk"
	"Template05" "berserker_hurt"
	"Template06" "berserker_push"
	"Template07" "berserker_speed"
	"Template08" "speedberserk"
	"Template09" "berserker_owner"
	"Template10" "berserk_holder"
	"OnUser1" "!self,AddOutput,origin -3648 11776 392,0,1"
	"OnUser1" "!self,ForceSpawn,,0.03,1"
}

add:
{
	"classname" "point_template"
	"targetname" "TemplateSoulsphere1"
	"origin" "-9935 -5165 -178"
	"spawnflags" "2"
	"Template01" "soulsphere_gun"
	"Template02" "soulsphere_button1"
	"Template03" "soulsphere_button1_2"
	"Template04" "soulsphere_fade"
	"Template05" "soulspheres_sprite"
	"Template06" "soulsphere_hurt"
	"Template07" "soulsphere_push"
	"Template08" "soulsphere_gravity"
	"Template09" "soulsphere_owner1"
	"Template10" "soulsphere_owner1_2"
	"Template11" "soulsphere_holder"
	"OnUser1" "!self,AddOutput,origin 2976 2336 136,0,1"
	"OnUser1" "!self,ForceSpawn,,0.03,1"
}

add:
{
	"classname" "point_template"
	"targetname" "TemplateSoulsphere2"
	"origin" "-9935 -4141 -178"
	"spawnflags" "2"
	"Template01" "soulsphere_gun2"
	"Template02" "soulsphere_button2_1"
	"Template03" "soulsphere_button2_2"
	"Template04" "soulsphere_fade2"
	"Template05" "soulspheres_sprite2"
	"Template06" "soulsphere_hurt2"
	"Template07" "soulsphere_push2"
	"Template08" "soulsphere_gravity2"
	"Template09" "soulsphere_owner2_1"
	"Template10" "soulsphere_owner2_2"
	"Template11" "soulsphere2_holder"
	"OnUser1" "!self,AddOutput,origin -5232 4784 136,0,1"
	"OnUser1" "!self,ForceSpawn,,0.03,1"
}

add:
{
	"classname" "point_template"
	"targetname" "TemplateSoulsphere3"
	"origin" "-9935 -3117 -178"
	"spawnflags" "2"
	"Template01" "soulsphere_gun3"
	"Template02" "soulsphere_button3_1"
	"Template03" "soulsphere_button3_2"
	"Template04" "soulsphere_fade3"
	"Template05" "soulspheres_sprite3"
	"Template06" "soulsphere_hurt3"
	"Template07" "soulsphere_push3"
	"Template08" "soulsphere_gravity3"
	"Template09" "soulsphere_owner3_1"
	"Template10" "soulsphere_owner3_2"
	"Template11" "soulsphere3_holder"
	"OnUser1" "!self,AddOutput,origin -6928 9800 264,0,1"
	"OnUser1" "!self,ForceSpawn,,0.03,1"
}

add:
{
	"classname" "point_template"
	"targetname" "TemplateMegasphere"
	"origin" "-9935 -6317 -178"
	"spawnflags" "2"
	"Template01" "megasphere_gun"
	"Template02" "megasphere_button"
	"Template03" "megasphere_fade"
	"Template04" "megaspheresprite"
	"Template05" "megasphere_hurt"
	"Template06" "megasphere_push"
	"Template07" "megasphere_owner"
	"Template08" "megasphere_holder"
	"OnUser1" "!self,AddOutput,origin -912 3824 24,0,1"
	"OnUser1" "!self,ForceSpawn,,0.03,1"
}

add:
{
	"classname" "point_template"
	"targetname" "TemplateBFG"
	"origin" "-10495 -7469 -178"
	"spawnflags" "2"
	"Template01" "bfg_weapon"
	"Template02" "bfg_button"
	"Template03" "bfg_beam"
	"Template04" "bfg_beam1"
	"Template05" "bfg_explosion"
	"Template06" "bfg_hurt"
	"Template07" "tank"
	"Template08" "bfg_start"
	"Template09" "bfg_start1"
	"Template10" "bfg_start2"
	"Template11" "bfg_end"
	"Template12" "bfg_owner"
	"Template13" "bfg_holder"
	"OnUser1" "!self,AddOutput,origin -912 3824 24,0,1"
	"OnUser1" "!self,ForceSpawn,,0.03,1"
}

modify:
{
	match:
	{
		"classname" "env_sprite"
		"origin" "-10454 -7470 -140"
		"targetname" "bfg_beam"
		"hammerid" "26836"
	}
	replace:
	{
		"spawnflags" "0"
	}
}

filter:
{
		"classname" "trigger_hurt"
		"targetname" "hurt_explosion"
}

modify:
{
	match:
	{
		"classname" "trigger_hurt"
		"origin" "-10454 -7470 -140"
		"targetname" "bfg_hurt"
		"hammerid" "26861"
	}
	replace:
	{
		"damagecap" "5000"
		"damage" "5000"
	}
}

modify:
{
	match:
	{
		"classname" "logic_case"
		"origin" "0 3504 192"
		"targetname" "randomweapons"
		"hammerid" "2397"
	}
	delete:
	{
		"OnCase01" "bfgteleport,Teleport,,0,1"
		"OnCase02" "megasphereteleport,Teleport,,0,1"
	}
	insert:
	{
		"OnCase01" "TemplateBFG,FireUser1,,3,1"
		"OnCase02" "TemplateMegasphere,FireUser1,,3,1"
	}
}

modify:
{
	match:
	{
		"classname" "trigger_once"
		"origin" "0 3824 128"
		"model" "*152"
		"hammerid" "2671"
	}
	delete:
	{
		"OnTrigger" "randomweapons,PickRandom,,5,1"
		"OnTrigger" "berserkerteleport,Teleport,,5,1"
		"OnTrigger" "soulsphereteleport3,Teleport,,5,1"
		"OnTrigger" "soulsphereteleport2,Teleport,,5,1"
		"OnTrigger" "soulsphereteleport1,Teleport,,5,1"
		"OnTrigger" "gravity_spawn,Kill,,7.5,1"
	}
	insert:
	{
		"OnTrigger" "randomweapons,PickRandom,,3,1"
		"OnTrigger" "TemplateBerserk,FireUser1,,3,1"
		"OnTrigger" "TemplateSoulsphere*,FireUser1,,3,1"
	}
}

;----------------
;OLD ITEM SYSTEM
;-----------------

filter:
{
	"classname" "point_teleport"
}

filter:
{
	"classname" "func_physbox_multiplayer"
	"origin" "-912 3824 32"
}

filter:
{
	"classname" "func_physbox_multiplayer"
	"origin" "2976 2336 144"
}

filter:
{
	"classname" "func_physbox_multiplayer"
	"origin" "-6928 9800 272"
}

filter:
{
	"classname" "func_physbox_multiplayer"
	"origin" "-3648 11776 400"
}

filter:
{
	"classname" "func_physbox_multiplayer"
	"origin" "-5232 4784 144"
}


;------------------------
;WORLDSPAWN LEVEL SYSTEM
;------------------------

modify:
{
	match:
	{
		"origin" "16 4144 160"
		"classname" "logic_auto"
		"hammerid" "2127"
	}
	delete:
	{
		"OnMapSpawn" "!activator,AddOutput,targetname myass,1,1"
		"OnMapSpawn" "randommusiclvl1,PickRandomShuffle,,1,-1"
		"OnMapSpawn" "Texto1,Display,,1,-1"
	}
	insert:
	{
		"OnMapSpawn" "worldspawn,FireUser1,,0,1"
		"OnMapSpawn" "Level_Counter,GetValue,,0.02,1"
		"OnMapSpawn" "player,AddOutput,targetname myass,1,1"
	}
}

add:
{
	"classname" "math_counter"
	"origin" "104 2408 24"
	"targetname" "Level_Counter"
	"startvalue" "1"
	"StartDisabled" "0"
	"max" "3"
	"min" "1"
	"OnGetValue" "Level_Case,InValue,,0,1"
}
add:
{
	"classname" "logic_case"
	"targetname" "Level_Case"
	"origin" "104 2408 40"
	"Case01" "1"
	"Case02" "2"
	"Case03" "3"
	"OnDefault" "consola,Command,say >> There is an error in the level system <<,0,1"
	"OnCase01" "worldspawn,FireUser1,,0,1"
	"OnCase01" "worldspawn,AddOutput,OnUser1 Level_Counter:SetValue:1:0.00:1,0.02,1"
	"OnCase01" "sewer_doormain,Open,,1,1"
	"OnCase01" "bossdoormain,Close,,1,1"
	"OnCase01" "labdoormain,Close,,1,1"
	"OnCase01" "boss_skill,Disable,,1,1"
	"OnCase01" "lab_skill,Disable,,1,1"
	"OnCase01" "sewer_skill,Enable,,1,1"
	"OnCase01" "sewer_doormain,Kill,,5,1"
	"OnCase01" "randommusiclvl1,PickRandomShuffle,,0,1"
	"OnCase01" "Texto1,Display,,0,1"
	"OnCase02" "worldspawn,FireUser1,,0,1"
	"OnCase02" "worldspawn,AddOutput,OnUser1 Level_Counter:SetValue:2:0.00:1,0.02,1"
	"OnCase02" "labdoormain,Open,,1,1"
	"OnCase02" "sewer_doormain,Close,,1,1"
	"OnCase02" "sewer_skill,Disable,,1,1"
	"OnCase02" "lab_skill,Enable,,1,1"
	"OnCase02" "boss_skill,Disable,,1,1"
	"OnCase02" "bossdoormain,Close,,1,1"
	"OnCase02" "labdoormain,Kill,,5,1"
	"OnCase02" "randommusiclvl2,PickRandomShuffle,,0,1"
	"OnCase02" "randommusiclvl1,Kill,,0,1"
	"OnCase02" "Texto2,Display,,0,1"
	"OnCase02" "Texto1,Kill,,0,-1"
	"OnCase03" "worldspawn,FireUser1,,0,1"
	"OnCase03" "worldspawn,AddOutput,OnUser1 Level_Counter:SetValue:3:0.00:1,0.02,1"
	"OnCase03" "bossdoormain,Open,,1,1"
	"OnCase03" "labdoormain,Close,,1,1"
	"OnCase03" "sewer_doormain,Close,,1,1"
	"OnCase03" "boss_skill,Enable,,1,1"
	"OnCase03" "lab_skill,Disable,,1,1"
	"OnCase03" "sewer_skill,Disable,,1,1"
	"OnCase03" "bossdoormain,Kill,,5,1"
	"OnCase03" "randommusiclvl3,PickRandomShuffle,,0,1"
	"OnCase03" "randommusiclvl1,Kill,,0,1"
	"OnCase03" "Texto3,Display,,1,1"
	"OnCase03" "Texto1,Kill,,0,-1"
}

modify:
{
	match:
	{
		"classname" "func_button"
		"targetname" "difficultybutton_1"
		"origin" "164 2224 64"
		"hammerid" "2144"
	}
	delete:
	{
		"OnPressed" "sewer_enable,Disable,,0,1"
		"OnPressed" "lab_enable,Enable,,0,1"
		"OnPressed" "boss_enable,Enable,,0,1"
	}
	insert:
	{
		"OnPressed" "worldspawn,FireUser1,,0,1"
		"OnPressed" "worldspawn,AddOutput,OnUser1 Level_Counter:SetValue:1:0.00:1,0.02,1"
	}
}
modify:
{
	match:
	{
		"classname" "func_button"
		"targetname" "difficultybutton_2"
		"origin" "0 2224 64"
		"hammerid" "2140"
	}
	delete:
	{
		"OnPressed" "lab_enable,Disable,,0,1"
		"OnPressed" "boss_enable,Enable,,0,1"
		"OnPressed" "sewer_enable,Enable,,0,1"
	}
	insert:
	{
		"OnPressed" "worldspawn,FireUser1,,0,1"
		"OnPressed" "worldspawn,AddOutput,OnUser1 Level_Counter:SetValue:2:0.00:1,0.02,1"
	}
}
modify:
{
	match:
	{
		"classname" "func_button"
		"targetname" "difficultybutton_3"
		"origin" "-164 2224 64"
		"hammerid" "2152"
	}
	delete:
	{
		"OnPressed" "lab_enable,Enable,,0,1"
		"OnPressed" "boss_enable,Disable,,0,1"
		"OnPressed" "sewer_enable,Enable,,0,1"
	}
	insert:
	{
		"OnPressed" "worldspawn,FireUser1,,0,1"
		"OnPressed" "worldspawn,AddOutput,OnUser1 Level_Counter:SetValue:3:0.00:1,0.02,1"
	}
}

modify:
{
	match:
	{
		"classname" "logic_relay"
		"origin" "10150.6 12902 -274"
		"targetname" "cambiolvl1"
	}
	delete:
	{
		"OnTrigger" "boss_enable,Enable,,0,1"
		"OnTrigger" "sewer_enable,Disable,,0,1"
	}
	insert:
	{
		"OnTrigger" "worldspawn,FireUser1,,0,1"
		"OnTrigger" "Lvl1_FailTrigger,Kill,,0,1"
		"OnTrigger" "worldspawn,AddOutput,OnUser1 Level_Counter:SetValue:2:0.00:1,0.02,1"
	}
}
modify:
{
	match:
	{
		"classname" "logic_relay"
		"origin" "-2142 -15546 114"
		"targetname" "cambiolvl2"
	}
	delete:
	{
		"OnTrigger" "lab_enable,Enable,,0,1"
		"OnTrigger" "boss_enable,Disable,,0,1"
	}
	insert:
	{
		"OnTrigger" "worldspawn,FireUser1,,0,1"
		"OnTrigger" "Lvl2_FailTrigger,Kill,,0,1"
		"OnTrigger" "worldspawn,AddOutput,OnUser1 Level_Counter:SetValue:3:0.00:1,0.02,1"
	}
}
modify:
{
	match:
	{
		"classname" "logic_relay"
		"origin" "5442 -11366 114"
		"targetname" "cambiolvl3"
	}
	delete:
	{
		"OnTrigger" "boss_enable,Enable,,0,1"
		"OnTrigger" "sewer_enable,Disable,,0,1"
	}
	insert:
	{
		"OnTrigger" "worldspawn,FireUser1,,0,1"
		"OnTrigger" "Lvl3_FailTrigger,Kill,,0,1"
		"OnTrigger" "worldspawn,AddOutput,OnUser1 Level_Counter:SetValue:1:0.00:1,0.02,1"
	}
}

modify:
{
	match:
	{
		"classname" "trigger_once"
		"model" "*348"
		"origin" "10324 12916 -246"
		"hammerid" "12390"
	}
	insert:
	{
		"targetname" "Lvl1_FailTrigger"
	}
}
modify:
{
	match:
	{
		"classname" "trigger_once"
		"model" "*349"
		"origin" "-2052 -15412 144"
		"hammerid" "12455"
	}
	insert:
	{
		"targetname" "Lvl2_FailTrigger"
	}
}
modify:
{
	match:
	{
		"classname" "trigger_once"
		"model" "*350"
		"origin" "5440 -11414 64"
		"hammerid" "12500"
	}
	insert:
	{
		"targetname" "Lvl3_FailTrigger"
	}
}

;-----------------
;OLD LEVEL SYSTEM
;-----------------

filter:
{
	"classname" "trigger_once"
	"origin" "1231 1400 80"
}
filter:
{
	"classname" "trigger_once"
	"origin" "1391 1400 80"
}
filter:
{
	"classname" "trigger_once"
	"origin" "1551 1400 80"
}
filter:
{
	"classname" "func_brush"
	"targetname" "sewer_enable"
}
filter:
{
	"classname" "func_brush"
	"targetname" "lab_enable"
}
filter:
{
	"classname" "func_brush"
	"targetname" "boss_enable"
}

filter:
{
	"classname" "func_physbox"
	"targetname" "sewer_phys"
}
filter:
{
	"classname" "func_physbox"
	"targetname" "lab_phys"
}
filter:
{
	"classname" "func_physbox"
	"targetname" "boss_phys"
}

;--------------------
;FUNC_TRACKTRAIN FIX
;--------------------

modify:
{
	match:
	{
		"classname" "func_tanktrain"
		"targetname" "boss_move"
		"origin" "5440 -12352 -128"
		"model" "*206"
		"hammerid" "2932"
	}
	replace:
	{
		"spawnflags" "530"
	}
}

;------------
;BOSS HP FIX
;------------

filter:
{
	"targetname" "playercount1"
}

modify:
{
	match:
	{
		"targetname" "teleporthumanstoboss"
	}
	insert:
	{
	; was 400 before the change
		"OnStartTouch" "BossHeadfinal,AddHealth,300,0,-1"
		"OnStartTouch" "Bossheadbegin,AddHealth,300,0,-1"
		"OnStartTouch" "Bossheadfirst,AddHealth,300,0,-1"
		"OnStartTouch" "Bossheadsecond,AddHealth,300,0,-1"
	}
}

modify:
{
	match:
	{
		"classname" "func_physbox_multiplayer"
		"health" "3500"
	}
	replace:
	{
		"health" "500" ; was 1500 before
	}
}

;---------------------
;ADD SPRITES TO ITEMS
;---------------------

add:
{
	"classname" "env_sprite"
	"disablereceiveshadows" "0"
	"disableX360" "0"
	"fademaxdist" "0"
	"fademindist" "-1"
	"fadescale" "1"
	"framerate" "10.0"
	"GlowProxySize" "2.0"
	"HDRColorScale" "1.0"
	"maxcpulevel" "0"
	"maxgpulevel" "0"
	"mincpulevel" "0"
	"mingpulevel" "0"
	"model" "doomtextures/berserk.vmt"
	"parentname" "berserk_weapon"
	"renderamt" "255"
	"rendercolor" "255 255 255"
	"renderfx" "0"
	"rendermode" "2"
	"scale" ".125"
	"spawnflags" "0"
	"targetname" "berserk_holder"
	"origin" "-9942 -2318 -180"
}

add:
{
	"classname" "env_sprite"
	"disablereceiveshadows" "0"
	"disableX360" "0"
	"fademaxdist" "0"
	"fademindist" "-1"
	"fadescale" "1"
	"framerate" "10.0"
	"GlowProxySize" "2.0"
	"HDRColorScale" "1.0"
	"maxcpulevel" "0"
	"maxgpulevel" "0"
	"mincpulevel" "0"
	"mingpulevel" "0"
	"model" "DoomTextures/soulsphere.vmt"
	"parentname" "soulsphere_gun3"
	"renderamt" "255"
	"rendercolor" "255 255 255"
	"renderfx" "0"
	"rendermode" "2"
	"scale" ".125"
	"spawnflags" "0"
	"targetname" "soulsphere3_holder"
	"origin" "-9910 -3118 -180"
}

add:
{
	"classname" "env_sprite"
	"disablereceiveshadows" "0"
	"disableX360" "0"
	"fademaxdist" "0"
	"fademindist" "-1"
	"fadescale" "1"
	"framerate" "10.0"
	"GlowProxySize" "2.0"
	"HDRColorScale" "1.0"
	"maxcpulevel" "0"
	"maxgpulevel" "0"
	"mincpulevel" "0"
	"mingpulevel" "0"
	"model" "DoomTextures/soulsphere.vmt"
	"parentname" "soulsphere_gun2"
	"renderamt" "255"
	"rendercolor" "255 255 255"
	"renderfx" "0"
	"rendermode" "2"
	"scale" ".125"
	"spawnflags" "0"
	"targetname" "soulsphere2_holder"
	"origin" "-9910 -4142 -180"
}

add:
{
	"classname" "env_sprite"
	"disablereceiveshadows" "0"
	"disableX360" "0"
	"fademaxdist" "0"
	"fademindist" "-1"
	"fadescale" "1"
	"framerate" "10.0"
	"GlowProxySize" "2.0"
	"HDRColorScale" "1.0"
	"maxcpulevel" "0"
	"maxgpulevel" "0"
	"mincpulevel" "0"
	"mingpulevel" "0"
	"model" "DoomTextures/soulsphere.vmt"
	"parentname" "soulsphere_gun"
	"renderamt" "255"
	"rendercolor" "255 255 255"
	"renderfx" "0"
	"rendermode" "2"
	"scale" ".125"
	"spawnflags" "0"
	"targetname" "soulsphere_holder"
	"origin" "-9910 -5166 -180"
}

add:
{
	"classname" "env_sprite"
	"disablereceiveshadows" "0"
	"disableX360" "0"
	"fademaxdist" "0"
	"fademindist" "-1"
	"fadescale" "1"
	"framerate" "10.0"
	"GlowProxySize" "2.0"
	"HDRColorScale" "1.0"
	"maxcpulevel" "0"
	"maxgpulevel" "0"
	"mincpulevel" "0"
	"mingpulevel" "0"
	"model" "doomtextures/megasphere.vmt"
	"parentname" "megasphere_gun"
	"renderamt" "255"
	"rendercolor" "255 255 255"
	"renderfx" "0"
	"rendermode" "2"
	"scale" ".125"
	"spawnflags" "0"
	"targetname" "megasphere_holder"
	"origin" "-9910 -6318 -180"
}

add:
{
	"classname" "env_sprite"
	"disablereceiveshadows" "0"
	"disableX360" "0"
	"fademaxdist" "0"
	"fademindist" "-1"
	"fadescale" "1"
	"framerate" "10.0"
	"GlowProxySize" "2.0"
	"HDRColorScale" "1.0"
	"maxcpulevel" "0"
	"maxgpulevel" "0"
	"mincpulevel" "0"
	"mingpulevel" "0"
	"model" "doomtextures/fireball.vmt"
	"parentname" "bfg_weapon"
	"renderamt" "255"
	"rendercolor" "255 255 255"
	"renderfx" "0"
	"rendermode" "2"
	"scale" "0.5"
	"spawnflags" "0"
	"targetname" "bfg_holder"
	"origin" "-10470 -7470 -180"
}

modify:
{
	match:
	{
		"targetname" "berserk_weapon"
	}
	insert:
	{
		"OnPlayerPickup" "berserk_holder,ShowSprite,,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "soulsphere_gun3"
	}
	insert:
	{
		"OnPlayerPickup" "soulsphere3_holder,ShowSprite,,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "soulsphere_gun2"
	}
	insert:
	{
		"OnPlayerPickup" "soulsphere2_holder,ShowSprite,,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "soulsphere_gun"
	}
	insert:
	{
		"OnPlayerPickup" "soulsphere_holder,ShowSprite,,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "megasphere_gun"
	}
	insert:
	{
		"OnPlayerPickup" "megasphere_holder,ShowSprite,,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "bfg_weapon"
	}
	insert:
	{
		"OnPlayerPickup" "bfg_holder,ShowSprite,,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "berserker_owner"
	}
	insert:
	{
		"OnPass" "berserk_holder,HideSprite,,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "soulsphere_owner3_2"
	}
	insert:
	{
		"OnPass" "soulsphere3_holder,HideSprite,,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "soulsphere_owner2_2"
	}
	insert:
	{
		"OnPass" "soulsphere2_holder,HideSprite,,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "soulsphere_owner1_2"
	}
	insert:
	{
		"OnPass" "soulsphere_holder,HideSprite,,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "megasphere_owner"
	}
	insert:
	{
		"OnPass" "megasphere_holder,HideSprite,,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "bfg_owner"
	}
	insert:
	{
		"OnPass" "bfg_holder,HideSprite,,0,1"
	}
}
