;--------------------------------------------------------------------
;STRIPPER CFG BY MOLTARD http://steamcommunity.com/id/0123456789ABC/
;--------------------------------------------------------------------
;GLOBAL: ZOMBIE SPAWNTIME REDUCED
;---------------------------------

modify:
{
	match:
	{
		"targetname" "Map_Start"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnSpawn" "Server,Command,zr_infect_spawntime_min 19.0,0,1"
		"OnSpawn" "Server,Command,zr_infect_spawntime_max 20.0,0,1"
	}
	insert:
	{
		"OnSpawn" "Server,Command,zr_infect_spawntime_min 14.0,0,1"
		"OnSpawn" "Server,Command,zr_infect_spawntime_max 15.0,0,1"

	}
}

;-------------------------------------
;MAPADMIN: Edit for the marathon mode
;-------------------------------------

modify:
{
	match:
	{
		"targetname" "AdminRoom_MarathonBranch"
		"classname" "logic_branch"
	}
	delete:
	{
		"OnFalse" "AdminRoom_MarathonButton,Color,0 255 0,0,-1"
		"OnFalse" "Map_Marathon_Branch,SetValue,1,0,-1"
		"OnFalse" "AdminRoom_MarathonText,FireUser2,,0,-1"
		"OnFalse" "Server,Command,say **An admin toggled ON the Marathon Mode**,0,-1"
		"OnFalse" "!self,SetValue,1,0,-1"
		"OnTrue" "AdminRoom_MarathonButton,Color,255 255 255,0,-1"
		"OnTrue" "Map_Marathon_Branch,SetValue,0,0,-1"
		"OnTrue" "AdminRoom_MarathonText,FireUser1,,0,-1"
		"OnTrue" "Server,Command,say **An admin toggled OFF the Marathon Mode**,0,-1"
		"OnTrue" "!self,SetValue,0,0,-1"
	}
	insert:
	{
		"OnFalse" "!self,FireUser1,,0,-1"
		"OnTrue" "!self,FireUser2,,0,-1"
		"OnUser1" "AdminRoom_MarathonButton,Color,0 255 0,0,-1"
		"OnUser1" "Map_Marathon_Branch,SetValue,1,0,-1"
		"OnUser1" "AdminRoom_MarathonText,FireUser2,,0,-1"
		"OnUser1" "Server,Command,say **An admin toggled ON the Marathon Mode**,0,-1"
		"OnUser1" "!self,SetValue,1,0,-1"
		"OnUser2" "AdminRoom_MarathonButton,Color,255 255 255,0,-1"
		"OnUser2" "Map_Marathon_Branch,SetValue,0,0,-1"
		"OnUser2" "AdminRoom_MarathonText,FireUser1,,0,-1"
		"OnUser2" "Server,Command,say **An admin toggled OFF the Marathon Mode**,0,-1"
		"OnUser2" "!self,SetValue,0,0,-1"
	}
}

;------------------------------------
;RICCA ROOM: Sound on the wrong path
;------------------------------------

modify:
{
	match:
	{
		"targetname" "ricca_ralsei_sound"
		"classname" "ambient_generic"
		;"message" "custom/ricca2554/dr_spellcast.mp3"
	}
	replace:
	{
		"message" "collabware_sfx/ricca2554/dr_spellcast.mp3"
	}
}
modify:
{
	match:
	{
		"targetname" "ricca_sound6"
		"classname" "ambient_generic"
		;"message" "custom/ricca2554/dr_the_dna_of_the_soul.mp3"
	}
	replace:
	{
		"message" "collabware_sfx/ricca2554/dr_the_dna_of_the_soul.mp3"
	}
}


;--------------------------------
;ROSS ROOM: Wrong message timing
;--------------------------------

modify:
{
	match:
	{
		"targetname" "ross_first_trigger"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnTrigger" "ross_door_break,Break,,25,0"
	}
	insert:
	{
		"OnTrigger" "ross_door_break,Break,,20,0"
	}
}

;-------------------------------------
;BANY BOSS: Kill triggers that detect
; the zombie virus when he is dead
;-------------------------------------

modify:
{
	match:
	{
		"targetname" "gsboss_trig_minion_dead"
		"classname" "trigger_multiple"
	}
	insert:
	{
		"OnNotTouching" "gsboss_zminion_trig_*,Kill,,0,1"
	}
}

;--------------------------------------
;BANY BOSS: Stronger zombie virus push
;--------------------------------------

modify:
{
	match:
	{
		"targetname" "gsboss_sideboost_minion"
		"classname" "trigger_push"
	}
	replace:
	{
		"speed" "800"
	}
}

;------------------------------
;BANY BOSS: Slower movelinears
;------------------------------

modify:
{
	match:
	{
		"targetname" "gsboss_zminion_trig_blue"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "gsboss_movel_blue,SetSpeed,51,0,-1"
	}
	insert:
	{
		"OnStartTouch" "gsboss_movel_blue,SetSpeed,25,0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "gsboss_zminion_trig_pink"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "gsboss_movel_pink,SetSpeed,51,0,-1"
	}
	insert:
	{
		"OnStartTouch" "gsboss_movel_pink,SetSpeed,25,0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "gsboss_zminion_trig_red"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "gsboss_movel_red,SetSpeed,51,0,-1"
	}
	insert:
	{
		"OnStartTouch" "gsboss_movel_red,SetSpeed,25,0,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "gsboss_zminion_trig_teal"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "gsboss_movel_teal,SetSpeed,51,0,-1"
	}
	insert:
	{
		"OnStartTouch" "gsboss_movel_teal,SetSpeed,25,0,-1"
	}
}

;---------------------------
;BANY BOSS: Server messages
;---------------------------

modify:
{
	match:
	{
		"targetname" "gsboss_trig_init"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnTrigger" "Server,Command,say ** OH NO! THAT IS THE CORONAVIRUS! **,0,1"
	}
	insert:
	{
		"OnTrigger" "Server,Command,say ** Boss Room by GS Bany **,0,1"
		"OnTrigger" "Server,Command,say ** OH NO! THAT IS THE CORONAVIRUS! **,1,1"
		"OnTrigger" "Server,Command,say >> ONE ZOMBIE NEEDS TO PICK THE MINION ITEM <<,2,1"
	}
}

;-----------------------------------------------
;BANY BOSS: Part 1 - Damage less color epilepsy
;-----------------------------------------------

add:
{
	"targetname" "gsboss_p1delta_color_relay"
	"spawnflags" "0"
	"origin" "0 0 0"
	"classname" "logic_relay"
	"OnTrigger" "gsboss_p1delta_prop,Color,0 255 0,0,-1"
	"OnTrigger" "gsboss_p1delta_prop,Color,255 255 255,0.1,-1"
	"OnTrigger" "!self,FireUser1,,0.2,-1"
}
modify:
{
	match:
	{
		"targetname" "gsboss_physb_p1corona"
		"classname" "func_physbox_multiplayer"
	}
	delete:
	{
		"OnHealthChanged" "gsboss_p1delta_prop,Color,0 255 0,0,-1"
		"OnHealthChanged" "gsboss_p1delta_prop,Color,255 255 255,0.1,-1"
	}
	insert:
	{
		"OnHealthChanged" "gsboss_p1delta_color_relay,Trigger,,0,-1"
	}
}

;-----------------------------------------------
;BANY BOSS: Part 2 - Damage less color epilepsy
;-----------------------------------------------

add:
{
	"targetname" "gsboss_p2omicron_color_relay"
	"spawnflags" "0"
	"origin" "0 0 0"
	"classname" "logic_relay"
	"OnTrigger" "gsboss_p1delta_prop,Color,255 0 0,0,-1"
	"OnTrigger" "gsboss_p1delta_prop,Color,255 255 255,0.1,-1"
	"OnTrigger" "!self,FireUser1,,0.2,-1"
}
modify:
{
	match:
	{
		"targetname" "gsboss_physb_p2corona"
		"classname" "func_physbox_multiplayer"
	}
	delete:
	{
		"OnHealthChanged" "gsboss_p2omicron_prop,Color,255 0 0,0,-1"
		"OnHealthChanged" "gsboss_p2omicron_prop,Color,255 255 255,0.1,-1"
	}
	insert:
	{
		"OnHealthChanged" "gsboss_p2omicron_color_relay,Trigger,,0,-1"
	}
}

;-------------------------------------------------
;BANY BOSS: Disable Spawn TP when level is beaten
;-------------------------------------------------

modify:
{
	match:
	{
		"targetname" "gsboss_p2_relay_corona_defeat"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "Spawn_Tele_CT,Disable,,8,1"
		"OnTrigger" "Spawn_Tele_T,Disable,,8,1"
	}
}

;------------------------------
;BANY ROOM: Arrow wrong timing
;------------------------------

modify:
{
	match:
	{
		"targetname" "gsb_case_p2zmspawn"
		"classname" "logic_case"
	}
	delete:
	{
		"OnCase01" "gsb_p2_arrow_bot2,Alpha,255,49,1"
		"OnCase02" "gsb_p2_arrow_top2,Alpha,255,49,1"
		"OnCase03" "gsb_p2_arrow_bot1,Alpha,255,49,1"
		"OnCase04" "gsb_p2_arrow_top1,Alpha,255,49,1"
	}
}

; The arrows get killed by the other cases.
; So only one exist when the output of 'init' are executed
modify:
{
	match:
	{
		"targetname" "gsb_init"
		"classname" "trigger_once"
	}
	insert:
	{
		"OnTrigger" "gsb_p2_arrow_bot2,Alpha,255,40,1"
		"OnTrigger" "gsb_p2_arrow_top2,Alpha,255,40,1"
		"OnTrigger" "gsb_p2_arrow_bot1,Alpha,255,40,1"
		"OnTrigger" "gsb_p2_arrow_top1,Alpha,255,40,1"
	}
}

;-----------------------------------------
;BANY ROOM: Temporary blocks against bhop
;-----------------------------------------

add:
{
	"model" "*129"
	"volume" "0"
	"targetname" "gsb_p2_blockbhop"
	"spawnflags" "0"
	"solidbsp" "0"
	"rendermode" "3"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "0"
	"origin" "-8352 -3308.5 2128"
	"maxspeed" "0"
	"fanfriction" "0"
	"dmg" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"angles" "0 0 0"
	"classname" "func_rotating"
}
add:
{
	"model" "*129"
	"volume" "0"
	"targetname" "gsb_p2_blockbhop"
	"spawnflags" "0"
	"solidbsp" "0"
	"rendermode" "3"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "0"
	"origin" "-8256 -3308.5 2128"
	"maxspeed" "0"
	"fanfriction" "0"
	"dmg" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"angles" "0 0 0"
	"classname" "func_rotating"
}
add:
{
	"model" "*129"
	"volume" "0"
	"targetname" "gsb_p2_blockbhop"
	"spawnflags" "0"
	"solidbsp" "0"
	"rendermode" "3"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "0"
	"origin" "-8544 -4895.5 2128"
	"maxspeed" "0"
	"fanfriction" "0"
	"dmg" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"angles" "0 0 0"
	"classname" "func_rotating"
}
add:
{
	"model" "*129"
	"volume" "0"
	"targetname" "gsb_p2_blockbhop"
	"spawnflags" "0"
	"solidbsp" "0"
	"rendermode" "3"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "0"
	"origin" "-8640 -4895.5 2128"
	"maxspeed" "0"
	"fanfriction" "0"
	"dmg" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"angles" "0 0 0"
	"classname" "func_rotating"
}

;------------------------------------
;BANY BOSS: Change game text channel
;------------------------------------

modify:
{
	match:
	{
		"targetname" "gsboss_itemminion_text"
		"classname" "game_text"
	}
	replace:
	{
		"channel" "4"
	}
}
modify:
{
	match:
	{
		"targetname" "gsboss_p2_shadowesper_credits"
		"classname" "game_text"
	}
	replace:
	{
		"channel" "4"
	}
}

;------------------------------------
;BANY ROOM: Change game text channel
;------------------------------------

modify:
{
	match:
	{
		"targetname" "gsb_p1_forcefield_text"
		"classname" "game_text"
	}
	replace:
	{
		"channel" "4"
	}
}


;-------------------------------------
;BERKE ROOM: Change game text channel
;-------------------------------------

modify:
{
	match:
	{
		"targetname" "berke1text1"
		"classname" "game_text"
	}
	replace:
	{
		"channel" "4"
	}
}

;-----------------------------------
;MOG ROOM: Change game text channel
;-----------------------------------

modify:
{
	match:
	{
		"targetname" "supersuit_text"
		"classname" "game_text"
	}
	replace:
	{
		"channel" "5"
	}
}

;---------------------------------------
;4ECHO ROOM: Anti block of the rotating
;---------------------------------------

add:
{
	"targetname" "4e_L_antiblocker_1"
	"teleportoffset" "0 0 176"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "-2560 8704 -7040"
	"classname" "trigger_teleport_relative"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -144 -144 -16,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 144 144 16,0.1,1"
}
add:
{
	"targetname" "4e_L_antiblocker_2"
	"teleportoffset" "0 0 176"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "-2560 8704 -6400"
	"classname" "trigger_teleport_relative"
	"OnUser1" "!self,AddOutput,solid 2,0,1"
	"OnUser1" "!self,AddOutput,mins -144 -144 -16,0.1,1"
	"OnUser1" "!self,AddOutput,maxs 144 144 16,0.1,1"
}
modify:
{
	match:
	{
		"targetname" "4e_init"
		"classname" "trigger_once"
	}
	insert:
	{
		"OnTrigger" "4e_L_antiblocker_1,FireUser1,,0,1"
		"OnTrigger" "4e_L_antiblocker_2,FireUser1,,0,1"
	}
}

;----------------------------------------
;SPAWN: Start the first level selection 
; by calling the counter
; Allow more easily to start with a boss
; with admin forceinput
;----------------------------------------

modify:
{
	match:
	{
		"targetname" "Spawn_TriggerNew"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnTrigger" "Spawn_RelayNextRoom,Trigger,,35,1"
	}
	insert:
	{
		"OnTrigger" "Spawn_CountRooms,GetValue,,35,1"
	}
}

;-----------------------------------
;MOG BOSS: Safe kill of path tracks
;-----------------------------------

modify:
{
	match:
	{
		"targetname" "boss_avatarofevil_bparticle_relay"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnSpawn" "boss_avatarofevil_bparticle_particle,Kill,,15,1"
		"OnSpawn" "boss_avatarofevil_bparticle_explosion_maker,Kill,,15,1"
		"OnSpawn" "boss_avatarofevil_bparticle_tracktrain,Kill,,15.03,1"
		"OnSpawn" "boss_avatarofevil_bparticle_dummytrain,Kill,,15.03,1"
		"OnSpawn" "boss_avatarofevil_bparticle_path0,Kill,,15.06,1"
		"OnSpawn" "boss_avatarofevil_bparticle_path1,Kill,,15.06,1"
		"OnSpawn" "boss_avatarofevil_bparticle_path2,Kill,,15.06,1"
	}
}

;---------------------------------------------------------
;ZOMBIE PANIC: Change destination of secret teleport-back
;---------------------------------------------------------

modify:
{
	match:
	{
		"targetname" "zombiepanic_secret_tpback"
		"classname" "trigger_teleport"
	}
	replace:
	{
		"target" "zombiepanic_cheerleader3_teleport"
	}
}

;----------------------------------
;BANY BOSS: Force CT health to 100
;----------------------------------

modify:
{
	match:
	{
		"targetname" "gsboss_trig_minion_ctadd"
		"classname" "trigger_multiple"
	}
	insert:
	{
		"filtername" "Filter_CT"
		"OnStartTouch" "!activator,AddOutput,health 100,0,-1"
	}
}

;-------------------------------------------------------------
;BANY BOSS: Fix flags of hitbox to make it non solid to nades
;-------------------------------------------------------------

modify:
{
	match:
	{
		"targetname" "gsboss_physb_p2corona"
		"classname" "func_physbox_multiplayer"
	}
	replace:
	{
		"spawnflags" "60416"
	}
}
modify:
{
	match:
	{
		"targetname" "gsboss_physb_p1corona"
		"classname" "func_physbox_multiplayer"
	}
	replace:
	{
		"spawnflags" "60416"
	}
}

;------------------------------------
;BANY BOSS: Raise Minion Item button
;------------------------------------

modify:
{
	match:
	{
		"targetname" "gsboss_itemminion_button"
		"classname" "func_button"
		; "origin" "12274 -10828 5916"
	}
	replace:
	{
		"origin" "12274 -10828 5948"
	}
}


;-----------------------------------------------------
;ZOMBIE PANIC: Filter the damage from the secret item
;-----------------------------------------------------

modify:
{
	match:
	{
		"targetname" "Laser_Hurt"
		"classname" "trigger_hurt"
		; "filtername" "filter_zm"
	}
	replace:
	{
		"filtername" "Filter_T"
	}
}
modify:
{
	match:
	{
		"targetname" "amulet_Hurt"
		"classname" "trigger_hurt"
		; "filtername" "filter_zm"
	}
	replace:
	{
		"filtername" "Filter_T"
	}
}

;---------------------------------------------------------------------------
;MOG BOSS: Replace the platform teleport attack to only tp few zombies (10)
;---------------------------------------------------------------------------

filter:
{
	"targetname" "boss_avatarofevil_zombie1_platform_dest"
	"classname" "info_teleport_destination"
}
add:
{
	"origin" "10816 8192 1224"
	"targetname" "boss_avatarofevil_zombie1_platform_dest"
	"target" "!activator"
	"spawnflags" "0"
	"angles" "0 0 0"
	"classname" "point_teleport"
}

filter:
{
	"model" "*619"
	"targetname" "boss_avatarofevil_zombie1_platform_teleport"
	"target" "boss_avatarofevil_zombie1_platform_dest"
	"origin" "12288 8192 2192"
	"classname" "trigger_teleport"
	"hammerid" "2731795"
}
add:
{
	"model" "*619"
	"wait" "1"
	"targetname" "boss_avatarofevil_zombie1_platform_teleport"
	"StartDisabled" "1"
	"spawnflags" "1"
	"filtername" "Filter_T"
	"origin" "12288 8192 2192"
	"classname" "trigger_multiple"
	"OnUser1" "boss_avatarofevil_zombie1_platform_dest,Teleport,,0,-1"
	"OnUser2" "!self,AddOutput,OnStartTouch !self:FireUser1::0:10,0,1"
}
modify:
{
	match:
	{
		"targetname" "boss_avatarofevil_zombie1_platform_door"
		"classname" "func_door"
	}
	delete:
	{
		"OnFullyClosed" "boss_avatarofevil_zombie1_platform_momrot_main1,Open,,1,-1"
		"OnFullyClosed" "!self,Open,,14,-1"
		"OnFullyOpen" "boss_avatarofevil_zombie1_platform_angle,FireUser1,,1,-1"
		"OnFullyClosed" "boss_avatarofevil_zombie1_platform_teleport,Enable,,1,-1"
		"OnOpen" "boss_avatarofevil_zombie1_platform_teleport,Kill,,0,-1"
	}
	insert:
	{
		"OnFullyClosed" "boss_avatarofevil_zombie1_platform_teleport,FireUser2,,0,1"
		"OnFullyClosed" "boss_avatarofevil_zombie1_platform_teleport,Enable,,1,1"
		"OnFullyClosed" "boss_avatarofevil_zombie1_platform_momrot_main1,Open,,1,1"
		"OnFullyClosed" "!self,Open,,14,1"
		"OnFullyClosed" "boss_avatarofevil_zombie1_platform_teleport,Kill,,14,1"
		"OnFullyClosed" "boss_avatarofevil_zombie1_platform_dest,Kill,,14,1"
		"OnFullyOpen" "boss_avatarofevil_zombie1_platform_angle,KillHierarchy,,0.20,1"
	}
}

;-----------------------------------------------------------
;MOG BOSS: Change when the platform teleport attack appears
;-----------------------------------------------------------

modify:
{
	match:
	{
		"targetname" "boss_avatarofevil_return_2"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnTrigger" "boss_avatarofevil_zombieplatform_momrot,FireUser1,,2,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "boss_avatarofevil_attack_1"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "boss_avatarofevil_zombieplatform_momrot,FireUser1,,3,-1"
	}
}
modify:
{
	match:
	{
		"targetname" "boss_avatarofevil_attack_2"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "boss_avatarofevil_zombieplatform_momrot,FireUser1,,3,-1"
	}
}

;------------------------------
;BANY BOSS: Increase Boss 2 HP
;------------------------------

modify:
{
	match:
	{
		"targetname" "gsboss_p2_trigaddhealth_corona"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "gsboss_physb_p2corona,AddHealth,1500,0,-1"
	}
	insert:
	{
		"OnStartTouch" "gsboss_physb_p2corona,AddHealth,2200,0,-1"
	}
}

;---------------------------------------------------------------
;GLOBAL: Increase the cooldown when rooms are played (3 rounds)
;---------------------------------------------------------------

modify:
{
	match:
	{
		"targetname" "/Map_Room_Counter_.*/"
		"classname" "math_counter"
		; "max" "2"
	}
	replace:
	{
		"max" "4"
	}
}

modify:
{
	match:
	{
		"targetname" "Level_SelectCase"
		"classname" "logic_case"
	}
	delete:
	{
		"OnCase01" "Map_Room_Counter_Vanya,SetValue,2,0,1"
		"OnCase02" "Map_Room_Counter_Ceeanide,SetValue,2,0,1"
		"OnCase03" "Map_Room_Counter_Berke,SetValue,2,0,1"
		"OnCase04" "Map_Room_Counter_Fereloz,SetValue,2,0,1"
		"OnCase05" "Map_Room_Counter_Pasas,SetValue,2,0,1"
		"OnCase06" "Map_Room_Counter_GSBany,SetValue,2,0,1"
		"OnCase07" "Map_Room_Counter_Warped,SetValue,2,0,1"
		"OnCase08" "Map_Room_Counter_Ross,SetValue,2,0,1"
		"OnCase09" "Map_Room_Counter_Mog,SetValue,2,0,1"
		"OnCase10" "Map_Room_Counter_joueurnul,SetValue,2,0,1"
		"OnCase11" "Map_Room_Counter_Nostar,SetValue,2,0,1"
		"OnCase12" "Map_Room_Counter_Ricca,SetValue,2,0,1"
		"OnCase13" "Map_Room_Counter_4Echo,SetValue,2,0,1"
		"OnCase14" "Map_Room_Counter_Shino,SetValue,2,0,1"
	}
	insert:
	{
		; The counters will cap the value to their max value
		"OnCase01" "Map_Room_Counter_Vanya,Add,10,0,1"
		"OnCase02" "Map_Room_Counter_Ceeanide,Add,10,0,1"
		"OnCase03" "Map_Room_Counter_Berke,Add,10,0,1"
		"OnCase04" "Map_Room_Counter_Fereloz,Add,10,0,1"
		"OnCase05" "Map_Room_Counter_Pasas,Add,10,0,1"
		"OnCase06" "Map_Room_Counter_GSBany,Add,10,0,1"
		"OnCase07" "Map_Room_Counter_Warped,Add,10,0,1"
		"OnCase08" "Map_Room_Counter_Ross,Add,10,0,1"
		"OnCase09" "Map_Room_Counter_Mog,Add,10,0,1"
		"OnCase10" "Map_Room_Counter_joueurnul,Add,10,0,1"
		"OnCase11" "Map_Room_Counter_Nostar,Add,10,0,1"
		"OnCase12" "Map_Room_Counter_Ricca,Add,10,0,1"
		"OnCase13" "Map_Room_Counter_4Echo,Add,10,0,1"
		"OnCase14" "Map_Room_Counter_Shino,Add,10,0,1"
	}
}

;--------------------------------------------------
;CEEANIDE: Make end area push stronger for Zombies
;--------------------------------------------------

add:
{
	"model" "*446"
	"targetname" "WaterWave_PushSmall"
	"StartDisabled" "0"
	"speed" "100"
	"spawnflags" "1"
	"pushdir" "0 0 0"
	"parentname" "WaterWave_Water"
	"origin" "-14112 5312 3360"
	"filtername" "Filter_T"
	"alternateticksfix" "0"
	"classname" "trigger_push"
}
add:
{
	"model" "*446"
	"targetname" "WaterWave_PushSmall"
	"StartDisabled" "0"
	"speed" "100"
	"spawnflags" "1"
	"pushdir" "0 0 0"
	"parentname" "WaterWave_Water"
	"origin" "-14112 5120 3360"
	"filtername" "Filter_T"
	"alternateticksfix" "0"
	"classname" "trigger_push"
}


;----------------------------------------------------
;CEEANIDE: Make it more clear where to go at the end
;----------------------------------------------------

add:
{
	"model" "*130"
	"volume" "0"
	"targetname" "ww_arrow_end"
	"spawnflags" "64"
	"solidbsp" "0"
	"rendermode" "3"
	"renderfx" "0"
	"rendercolor" "255 255 255"
	"renderamt" "0"
	"origin" "-13392 5599.5 3568"
	"maxspeed" "0"
	"fanfriction" "0"
	"dmg" "0"
	"disableshadows" "1"
	"disablereceiveshadows" "1"
	"angles" "0 0 0"
	"classname" "func_rotating"
}
modify:
{
	match:
	{
		"targetname" "Level_SelectCase"
		"classname" "logic_case"
	}
	delete:
	{
		"OnUser1" "ww_escapeClip,Kill,,0,1"
		"OnUser1" "Server,Command,say >>>MAKE YOUR ESCAPE - SURF THE WAVE<<<,0,1"
		; Also making this only once
		"OnPressed" "ww_zm_barrier,Disable,,35,-1"
	}
	insert:
	{
		"OnUser1" "ww_escapeClip,Togle,,0,1"
		"OnUser1" "ww_arrow_end,AddOutput,angles 45 0 0,0,1"
		"OnUser1" "ww_arrow_end,Alpha,255,0.02,1"
		"OnUser1" "Server,Command,say >>>MAKE YOUR ESCAPE - SURF THE WAVE<<<,0,1"
		"OnUser1" "Server,Command,say >>>JUMP ON THE RAMP WHEN THE WAVE IS COMING<<<,1,1"
		"OnPressed" "ww_zm_barrier,Disable,,35,1"
	}
}

;------------------------------------
;GENERAL: Reset player name on death
;------------------------------------

add:
{
	"model" "*436"
	"targetname" "game_playerdie"
	"origin" "-6428 130 -1208"
	"StartDisabled" "0"
	"spawnflags" "0"
	"InputFilter" "14"
	"classname" "trigger_brush"
	"OnUse" "!activator,AddOutput,targetname default,0,-1"
	; In case the set origin doesnt work
	"OnUser1" "!self,AddOutput,origin -6428 130 -1208,0,1"
}

;------------------------------------------------
;GENERAL: Disable the trigger that reset players
;------------------------------------------------

modify:
{
	match:
	{
		"targetname" "Spawn_TriggerNew"
		"classname" "trigger_multiple"
	}
	insert:
	{
		"OnTrigger" "!self,Disable,,50,1"
		"OnTrigger" "game_playerdie,FireUser1,,10,1"
	}
}
