;--------------------------------------------------------------------
;STRIPPER CFG BY MOLTARD http://steamcommunity.com/id/0123456789ABC/
;--------------------------------------------------------------------
;SPAWNPOINT DELETE
;------------------

filter:
{
	"origin" "15695 -14967.6 9695"
	"classname" "info_player_terrorist"
	"hammerid" "2324763"
}

;---------------------
;GENERAL: ADD CREDITS
;---------------------

modify:
{
	match:
	{
		"classname" "logic_auto"
	}
	insert:
	{
		"OnMapSpawn" "player,AddOutput,targetname Player_None,3,1"
		"OnMapSpawn" "Server,Command,say >> Thanks to Unloze and GFLClan.ru <<,4.5,1"
	}
}

;---------------------
;LEVEL2: BOSS ATTACKS
;---------------------

add:
{
	"origin" "-8278 8248 -1007"
	"targetname" "Skeleton_Boss_Attack"
	"spawnflags" "0"
	"classname" "logic_relay"
	"OnTrigger" "Template_SkeletonAttack,ForceSpawn,,4,1"
	"OnTrigger" "Template_SkeletonAttack,ForceSpawn,,16,1"
	"OnTrigger" "Template_SkeletonAttack,ForceSpawn,,28,1"
	"OnTrigger" "Template_SkeletonAttack,ForceSpawn,,40,1"
	"OnTrigger" "Template_SkeletonAttack,ForceSpawn,,52,1"
	"OnTrigger" "Template_SkeletonAttack,ForceSpawn,,64,1"
	"OnTrigger" "Template_SkeletonAttack,ForceSpawn,,76,1"
}

modify:
{
	match:
	{
		"targetname" "Skeleton_Boss_Relay"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "Skeleton_Boss_Attack,Trigger,,3,1"
	}
}

modify:
{
	match:
	{
		"targetname" "Skeleton_Boss_Branch"
		"classname" "logic_branch"
	}
	insert:
	{
		"OnTrue" "Skeleton_Boss_Attack,CancelPending,,1,1"
	}
}

modify:
{
	match:
	{
		"targetname" "BossEnds_Case"
		"classname" "logic_case"
	}
	insert:
	{
		"OnCase02" "Skeleton_Boss_Attack,CancelPending,,0,1"
		"OnCase02" "Skeleton_Boss_Attack,Kill,,0.03,1"
	}
}

;----------------------------
;LEVEL3: GHASTLY WRONG SPAWN
;----------------------------

modify:
{
	match:
	{
		"targetname" "ItemSpawner_Lvl3"
		"classname" "env_entity_maker"
	}
	delete:
	{
		"OnUser2" "!self,AddOutput,origin 15380 -15833 9131,0.03,1"
	}
	insert:
	{
		"OnUser2" "!self,AddOutput,origin 15380 -15833 9731,0.03,1"
	}
}

;-----------------------------
;LEVEL3: FIX SNORLAX ATTACK ?
;-----------------------------

add:
{
	"origin" "9396 -9311 9272"
	"targetname" "Snorlax_Boss_SpeedRelay"
	"spawnflags" "2"
	"StartDisabled" "1"
	"classname" "logic_relay"
	"OnTrigger" "Snorlax_Boss_SleepCounter,GetValue,,0,-1"
}
modify:
{
	match:
	{
		"targetname" "Template_SnorlaxBoss"
		"classname" "point_template"
	}
	delete:
	{
		"OnUser1" "Snorlax_Boss_Branch,SetValue,1,0.01,1"
	}
	insert:
	{
		"OnUser1" "Snorlax_Boss_SpeedRelay,Enable,,0.01,1"
	}
}
modify:
{
	match:
	{
		"targetname" "Snorlax_Boss_SleepTrig"
		"classname" "trigger_multiple"	
	}
	delete:
	{
		"OnStartTouch" "Snorlax_Boss_Branch,Test,,0,-1"
	}
	insert:
	{
		"OnStartTouch" "Snorlax_Boss_SpeedRelay,Trigger,,0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "BossEnds_Case"
		"classname" "logic_case"
	}
	delete:
	{
		"OnCase03" "Snorlax_Boss_Branch,Kill,,1,1"
	}
	insert:
	{
		"OnCase03" "Snorlax_Boss_SpeedRelay,Kill,,1,1"
	}
}


;---------------------------------------
;TIMELOOP: ADD ZOMBIE TELEPORT AT CLOCK
;---------------------------------------

modify:
{
	match:
	{
		"targetname" "House_TeleTime"
		"classname" "trigger_teleport"
	}
	insert:
	{
		"filtername" "Map_Filter_CT"
	}
}

add:
{
	"model" "*398"
	"targetname" "House_TeleTimeZ"
	"target" "Time1_MainDest"
	"StartDisabled" "1"
	"spawnflags" "1"
	"filtername" "Map_Filter_Zombie"
	"origin" "9584 -3586 5249.5"
	"classname" "trigger_teleport"
}

modify:
{
	match:
	{
		"targetname" "Template_Time1"
		"classname" "point_template"
	}
	insert:
	{
		"OnEntitySpawned" "House_TeleTimeZ,Enable,,30,1"
	}
}

;-------------------------------------
;TIMELOOP: REDUCE CANNON BALLS DAMAGE
;-------------------------------------

modify:
{
	match:
	{
		"targetname" "TankAmmo_Hurt"
		"classname" "trigger_hurt"
		"damage" "250"
	}
	replace:
	{
		"damage" "200"
	}
}

;-----------------------------------
;TIMELOOP: DELAY GROUND MOVING DOWN
;-----------------------------------

modify:
{
	match:
	{
		"targetname" "Lvl7_Boss_Ground1"
		"classname" "func_movelinear"
	}
	delete:
	{
		"OnUser1" "!self,Open,,1.4,-1"
		"OnUser1" "Hitler_Boss_Shake1,StopShake,,2,-1"
	}
	insert:
	{
		"OnUser1" "!self,Open,,2.00,-1"
		"OnUser1" "Hitler_Boss_Shake1,StopShake,,2.60,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "Lvl7_Boss_Ground2"
		"classname" "func_movelinear"
	}
	delete:
	{
		"OnUser1" "!self,Open,,1.4,-1"
		"OnUser1" "Hitler_Boss_Shake2,StopShake,,2,-1"
	}
	insert:
	{
		"OnUser1" "!self,Open,,2.00,-1"
		"OnUser1" "Hitler_Boss_Shake2,StopShake,,2.60,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "Lvl7_Boss_Ground3"
		"classname" "func_movelinear"
	}
	delete:
	{
		"OnUser1" "!self,Open,,1.4,-1"
		"OnUser1" "Hitler_Boss_Shake3,StopShake,,2,-1"
	}
	insert:
	{
		"OnUser1" "!self,Open,,2.00,-1"
		"OnUser1" "Hitler_Boss_Shake3,StopShake,,2.60,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "Lvl7_Boss_Ground4"
		"classname" "func_movelinear"
	}
	delete:
	{
		"OnUser1" "!self,Open,,1.4,-1"
		"OnUser1" "Hitler_Boss_Shake4,StopShake,,2,-1"
	}
	insert:
	{
		"OnUser1" "!self,Open,,2.00,-1"
		"OnUser1" "Hitler_Boss_Shake4,StopShake,,2.60,-1"
	}
}

;-----------------------------
;TIMELOOP: LESS HP SATAN BOSS
;-----------------------------

modify:
{
	match:
	{
		"targetname" "Satan_Boss_HealthTr"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "Boss_Health,Add,80,0,-1"
		"OnStartTouch" "Boss_HealthInit,Add,80,0,-1"
	}
	insert:
	{
		"OnStartTouch" "Boss_Health,Add,60,0,-1"
		"OnStartTouch" "Boss_HealthInit,Add,60,0,-1"
	}
}

;------------------------------
;TIMELOOP: MORE HP SATAN LASER
;------------------------------

modify:
{
	match:
	{
		"targetname" "Time2_AddHp"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "Boss_Health,Add,12,0,-1"
		"OnStartTouch" "Boss_HealthInit,Add,12,0,-1"
	}
	insert:
	{
		"OnStartTouch" "Boss_Health,Add,15,0,-1"
		"OnStartTouch" "Boss_HealthInit,Add,15,0,-1"
	}
}

;----------------------------------
;TIMELOOP: MORE TIME TO KILL SATAN
;----------------------------------

modify:
{
	match:
	{
		"targetname" "Satan_Laser_Start"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnTrigger" "Server,Command,say >> 30 SECONDS UNTIL SATAN DISAPPEAR INTO THE FUTURE ! <<,5,1"
		"OnTrigger" "Satan_Laser_Phys,Kill,,35,1"
		"OnTrigger" "Satan_Laser_RandomRot,Kill,,35,1"
		"OnTrigger" "Satan_Laser_Case,Kill,,35,1"
		"OnTrigger" "Satan_Laser_Timer,Disable,,35,1"
		"OnTrigger" "Satan_Laser_Timer,Kill,,35.1,1"
		"OnTrigger" "Satan_Laser_Rot,Stop,,35.1,1"
		"OnTrigger" "Satan_Laser_Sound,Kill,,35,1"	
		"OnTrigger" "Satan_Laser_Up,Kill,,35,1"
		"OnTrigger" "Satan_Laser_Down,Kill,,35,1"
		"OnTrigger" "Satan_Laser_Nade,Kill,,35,1"
		"OnTrigger" "Satan_Laser_HealthBar,HideSprite,,35,1"
		"OnTrigger" "Satan_Laser_HealthBar,Kill,,35.1,1"
		"OnTrigger" "Satan_Laser_Rot,AddOutput,maxspeed 600,35.2,1"
		"OnTrigger" "Satan_Laser_Rot,FireUser1,,35.3,1"	
		"OnTrigger" "Server,Command,say >> TOO LATE ! <<,37,1"
		"OnTrigger" "Satan_Laser_Body,AddOutput,renderfx 10,37.2,1"
		"OnTrigger" "Satan_Laser_Arm,AddOutput,renderfx 10,37.2,1"
		"OnTrigger" "Satan_Boss_FadeEscape,Fade,,40.5,1"
		"OnTrigger" "Server,Command,say >> WE WILL STOP SATAN NO MATTER WHAT !!! <<,41,1"
		"OnTrigger" "!self,FireUser1,,42,1"	
	}
	insert:
	{
		"OnTrigger" "Server,Command,say >> 40 SECONDS UNTIL SATAN DISAPPEAR INTO THE FUTURE ! <<,5,1"
		"OnTrigger" "Satan_Laser_Phys,Kill,,45,1"
		"OnTrigger" "Satan_Laser_RandomRot,Kill,,45,1"
		"OnTrigger" "Satan_Laser_Case,Kill,,45,1"
		"OnTrigger" "Satan_Laser_Timer,Disable,,45,1"
		"OnTrigger" "Satan_Laser_Timer,Kill,,45.1,1"
		"OnTrigger" "Satan_Laser_Rot,Stop,,45.1,1"
		"OnTrigger" "Satan_Laser_Sound,Kill,,45,1"
		"OnTrigger" "Satan_Laser_Up,Kill,,45,1"
		"OnTrigger" "Satan_Laser_Down,Kill,,45,1"
		"OnTrigger" "Satan_Laser_Nade,Kill,,45,1"
		"OnTrigger" "Satan_Laser_HealthBar,HideSprite,,45,1"
		"OnTrigger" "Satan_Laser_HealthBar,Kill,,45.1,1"
		"OnTrigger" "Satan_Laser_Rot,AddOutput,maxspeed 600,45.2,1"
		"OnTrigger" "Satan_Laser_Rot,FireUser1,,45.3,1"	
		"OnTrigger" "Server,Command,say >> TOO LATE ! <<,47,1"
		"OnTrigger" "Satan_Laser_Body,AddOutput,renderfx 10,47.2,1"
		"OnTrigger" "Satan_Laser_Arm,AddOutput,renderfx 10,47.2,1"
		"OnTrigger" "Satan_Boss_FadeEscape,Fade,,50.5,1"
		"OnTrigger" "Server,Command,say >> WE WILL STOP SATAN NO MATTER WHAT !!! <<,51,1"
		"OnTrigger" "!self,FireUser1,,52,1"			
	}
}


;--------------------------------
;TIMELOOP: FIX ICE ATTACK GLITCH
;--------------------------------

add:
{
	"model" "*504"
	"targetname" "Attack_Ice_FixSpeed"
	"StartDisabled" "1"
	"spawnflags" "1"
	"parentname" "Attack_Ice_Model"
	"origin" "9749 1748 6216"
	"filtername" "Map_Filter_CT"
	"classname" "trigger_once"
	"OnStartTouch" "Map_SpeedMod,ModifySpeed,1,0,-1"
}

modify:
{
	match:
	{
		"targetname" "Attack_Ice_Template"
		"classname" "point_template"
	}
	insert:
	{
		"Template08" "Attack_Ice_FixSpeed"
	}
}

modify:
{
	match:
	{
		"targetname" "BossEnds_Case"
		"classname" "logic_case"
	}
	delete:
	{
		"OnCase05" "Attack_*,Kill,,0,1"
	}
	insert:
	{
		"OnCase05" "Attack_Ice_Hurt*,Disable,,0,1"
		"OnCase05" "Attack_Ice_FixSpeed*,Enable,,0.02,1"
		"OnCase05" "Attack_*,Kill,,0.50,1"
	}
}

modify:
{
	match:
	{
		"targetname" "Attack_Ice_Relay"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnSpawn" "Attack_Ice_Model,Kill,,10,1"
	}
	insert:
	{
		"OnSpawn" "Attack_Ice_Model,Disable,,10,1"
		"OnSpawn" "Attack_Ice_FixSpeed,Enable,,10.02,1"
		"OnSpawn" "Attack_Ice_FixSpeed,Kill,,11,1"
		"OnSpawn" "Attack_Ice_Model,Kill,,11,1"
	}
}

;----------------------------------
;TIMELOOP: CHANGE FALL DEST HOUSE
;----------------------------------

modify:
{
	match:
	{
		"targetname" "Template_Time1"
		"classname" "point_template"
	}
	insert:
	{
		"OnEntitySpawned" "House_FallTp,AddOutput,target Target_House,0.01,1"
	}
}

;---------------------------------
;TIMELOOP: KILL HITLER CLIP LATER
;---------------------------------

modify:
{
	match:
	{
		"targetname" "Level_Case"
		"classname" "logic_case"
	}
	delete:
	{
		"OnCase04" "Lvl7_ClipBoss,Kill,,3,1"
	}
}

modify:
{
	match:
	{
		"targetname" "Hitler_Boss_SatanMove"
		"classname" "func_movelinear"
	}
	insert:
	{
		"OnUser1" "Lvl7_ClipBoss,Kill,,0,1"
	}
}

;----------------------------------------------
;TIMELOOP: LASER ROOM PLAYER NOT STUCK ON CLIP
;----------------------------------------------

add:
{
	"model" "*541"
	"targetname" "Time2_SafeTp"
	"target" "Time2_MainDest"
	"StartDisabled" "1"
	"spawnflags" "1"
	"origin" "13440 6976 5824"
	"classname" "trigger_teleport"
}

modify:
{
	match:
	{
		"targetname" "Time2_Trigger"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "Time2_SafeClip,Toggle,,20,1"
	}
	insert:
	{
		"OnStartTouch" "Time2_SafeClip,Toggle,,22,1"
		"OnStartTouch" "Time2_SafeTp,Enable,,22.5,1"
		"OnStartTouch" "Time2_SafeTp,Kill,,23,1"
	}
}

;------------------------------------------
;TIMELOOP: 1000 POINTS IF GOOD ENDING ONLY
;------------------------------------------

modify:
{
	match:
	{
		"targetname" "Satan_Laser_EndMessages"
		"classname" "logic_branch"
	}
	insert:
	{
		"OnFalse" "Map_Points100,FireUser1,,0,1"
		"OnTrue" "Map_Points100,FireUser2,,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "Shr1_Win"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "Map_Points100,FireUser2,,0,1"
	}
}

;---------------------------------------
;TIMELOOP: MAKE PLAYERS BLACK AND WHITE
;---------------------------------------

add:
{
	"origin" "9704 520 4136"
	"UseRandomTime" "0"
	"targetname" "Lvl7_BlackWhiteColor"
	"StartDisabled" "1"
	"spawnflags" "0"
	"RefireTime" "5"
	"classname" "logic_timer"
	"OnTimer" "player,Color,128 128 128,0,-1"
	"OnUser1" "!self,Disable,,0,-1"
	"OnUser1" "player,Color,255 255 255,0,-1"
}


modify:
{
	match:
	{
		"targetname" "Time1_Tp1"
		"classname" "trigger_teleport"
	}
	insert:
	{
		"OnStartTouch" "Lvl7_BlackWhiteColor,Enable,,0,1"
		"OnStartTouch" "Lvl7_BlackWhiteColor,FireTimer,,0.03,1"
	}
}
modify:
{
	match:
	{
		"targetname" "Lvl7_TimeMachine_Tele"
		"classname" "trigger_teleport"
	}
	insert:
	{
		"OnStartTouch" "Lvl7_BlackWhiteColor,FireUser1,,0,1"
	}
}

;-----------------------------------------
;TIMELOOP: TELEPORT TO POWER ROOM ZM ONLY
;-----------------------------------------

modify:
{
	match:
	{
		"targetname" "Satan_Boss_TeleHell"
		"classname" "trigger_teleport"
	}
	insert:
	{
		"filtername" "Map_Filter_Zombie"
	}
}

;--------------------------------------
;TIMELOOP: ADD CLIP BEFORE HITLER BOSS
;--------------------------------------

add:
{
	"model" "*337"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "0"
	"spawnflags" "2"
	"Solidity" "2"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "176.5 8131 -6480"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
}
add:
{
	"model" "*607"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "0"
	"spawnflags" "2"
	"Solidity" "2"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "422.25 8322.06 -6536.34"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
	"angles" "152 0 0"
}
add:
{
	"model" "*607"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "0"
	"spawnflags" "2"
	"Solidity" "2"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "422.25 7932.01 -6536.34"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
	"angles" "152 0 0"
}
add:
{
	"model" "*607"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "0"
	"spawnflags" "2"
	"Solidity" "2"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "691.25 8322.01 -6670.34"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
	"angles" "152 0 0"
}
add:
{
	"model" "*607"
	"vrad_brush_cast_shadows" "0"
	"StartDisabled" "0"
	"spawnflags" "2"
	"Solidity" "2"
	"solidbsp" "0"
	"rendermode" "10"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "255"
	"origin" "691.25 7932.01 -6670.34"
	"invert_exclusion" "0"
	"InputFilter" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"classname" "func_brush"
	"angles" "152 0 0"
}

;-----------------------------------
;SHROOM1: TELEPORT ADMIN ROOM STUFF
;-----------------------------------

modify:
{
	match:
	{
		"targetname" "Shr1_TpAdminRoom"
		"classname" "trigger_once"
	}
	insert:
	{
		"OnStartTouch" "Shr1_TpAdminRoomParticle,Kill,,0,1"
	}
}

modify:
{
	match:
	{
		"targetname" "Level_Case"
		"classname" "logic_case"
	}
	delete:
	{
		"OnCase09" "Shr1_TpAdminRoomParticle,Start,,5,1"
		"OnCase09" "Shr1_TpAdminRoom,Enable,,5,1"
	}
	insert:
	{
		"OnCase09" "Shr1_TpAdminRoomParticle,Start,,8,1"
		"OnCase09" "Shr1_TpAdminRoom,Enable,,8,1"
	}	
}