#base robot_standard.pop
#base robot_giant.pop
#base robot_gatebot.pop

//Lostvalley - Undead Rising
//

//Tank Path LostValley
//path_tank_alt
//path_tank_1

//Spawn
//spawnbot_scattered0
//spawnbot_left0
//spawnbot_mid_slow0
//spawnbot_boss0
//spawnbot_mid0
//spawnbot_right0
//spawnbot_sniper_tower
//spawnbot_main1
//spawnbot_main_slow1

//spawnbot_flank_2
//spawnbot_flank_1

//
// Starting Currency: 1500
//
// +----------+----------+----------+
// | Wave     | Currency | A+       |
// +----------+----------+----------+
// | Wave 1   | 850      | 950      |
// | Wave 2   | 1000     | 1100     |
// | Wave 3   | 0        | 100      |
// | Wave 4   | 0        | 100      |
// | Wave 5   | 0        | 100      |
// +----------+----------+----------+
// | Total    | 1850     | 2350     |
// +----------+----------+----------+
//

WaveSchedule
{
    StartingCurrency 1500
    CanBotsAttackWhileInSpawnRoom no
    RespawnWaveTime 4
    Advanced 1
    EventPopfile Halloween

    WaveStartCountdown              5
    ForceHoliday          	        2	
    ZombiesNoWave666		        1
    SendBotsToSpectatorImmediately  1
    BotHumansHaveRobotVoice 0
					 							 					 
	DisableSound "music.mvm_start_last_wave"					 
	DisableSound "music.mvm_start_mid_wave"						 
	DisableSound "music.mvm_start_tank_wave"					 
	DisableSound "music.mvm_start_wave"				 			 
	DisableSound "Announcer.MVM_First_Wave_Start"				 
	DisableSound "Announcer.MVM_Wave_Start"						 
	DisableSound "Announcer.MVM_Wave_End"						 
	DisableSound "Announcer.MVM_Wave_Lose"						 
	DisableSound "Announcer.MVM_Final_Wave_Start"				 	
	DisableSound "Announcer.MVM_Final_Wave_End"					 
	DisableSound "Announcer.MVM_Robots_Planted"					 
	DisableSound "Announcer.MVM_All_Dead"						 
	DisableSound "Announcer.MVM_Bomb_Alert_Entered"				 
	DisableSound "Announcer.MVM_Bomb_Alert_Near_Hatch"			 
	DisableSound "Announcer.MVM_Bomb_Alert_Deploying"			  
	DisableSound "Announcer.MVM_General_Wave_Start"				 
	DisableSound "Announcer.MVM_Game_Over_Loss"	
    DisableSound "Announcer.MVM_Get_To_Upgrade"	

    PrecacheModel                               "models\weapons\c_models\slayajar.mdl"
    
    OverrideSounds  
	{
		"MVM.GiantHeavyExplodes"				"npc\env_headcrabcanister\explosion.wav"
		"MVM.GiantCommonExplodes"				"npc\env_headcrabcanister\explosion.wav"
        "MVM.BombWarning"                       "ambient\alarms\doomsday_lift_alarm.wav"

        "music.mvm_end_last_wave"               "ui\halloween_boss_defeated.wav"
        "music.mvm_end_mid_wave"                "ui\halloween_boss_defeated.wav"
        "music.mvm_end_wave"                    "ui\halloween_boss_defeated.wav"
        "music.mvm_end_tank_wave"               "ui\halloween_boss_defeated.wav"
        "music.mvm_lost_wave"                   "ui\halloween_boss_escape.wav"
	}			 	

    CustomWeapon   //Allows you to use an alias for items with custom attributes
	{
		Name                        "Holy Water"
		OriginalItemName            "Jarate"
		"custom item model"         "models\weapons\c_models\slayajar.mdl"
        "special item description"  "A Holy Water can throw to any zombies or skeletons"
	}

    ForceItem   // Force items to classes even if the item is not intended for the class
	{
        Sniper
        {
            Item    "Holy Water"
        }
	}

    PlayerAttributes
    {
        "voice pitch scale"         "0.8"
    }

    Mission
    {
        Where spawnbot_scattered0
        Where   spawnbot_main1
        Objective DestroySentries // Engineer,Sniper,Spy,DestroySentries
        BeginAtWave 1
        RunForThisManyWaves 6
        DesiredCount 1
        SuppressSentryBusterModel	1
        InitialCooldown 45
        CooldownTime 45
    
        TFBot
        { Template T_TFBot_Force_SentryBuster_Calcium }
    }


    Templates 
    {
        T_TFBot_Force_SentryBuster_Calcium
        {
            Name                "Skeleton Buster"
            ClassIcon           sentry_buster
            Class               Sniper
            Health              2500
            Skill               Expert
            WeaponRestrictions  MeleeOnly
            Attributes          MiniBoss
            Attributes          IgnoreEnemies
            Attributes          DisableDodge
            Item                "Upgradeable TF_WEAPON_CLUB"
            Item                "The Crocodile Smile"
            Skin                1
            ItemModel
			{
				ItemName	    "The Crocodile Smile"
				Model		    "models/workshop/player/items/demo/tw_sentrybuster/tw_sentrybuster.mdl"
			}
            CustomWeaponModel
            {
                Slot    2
                Model "models\empty.mdl"
            }
            CharacterAttributes
			{
				"airblast vulnerability multiplier" 0.5
				"cannot be backstabbed" 1
				"damage force reduction" 0.5
				"move speed bonus" 2
				"override footstep sound set" 7
			}
            UseCustomModel "models/bots/skeleton_sniper/skeleton_sniper.mdl"
        }
        T_TFBot_Force_Skeleton_Bowman
        {
            Name                    "Bow-Ton"
            Class                   Sniper
            Skill                   Hard
            ClassIcon               sniper_bow
            Tag                     bot_giant
            WeaponRestrictions      PrimaryOnly
            Item                    "The Huntsman"
            UseCustomModel "models/bots/skeleton_sniper/skeleton_sniper.mdl"
            DeathSound      "misc/halloween/skeleton_break.wav"
        }
        T_TFBot_Force_Giant_Bowman
        {
            Name                    "Giant Bowman"
            Health                  3000
            Class                   Sniper
            Skill                   Hard
            ClassIcon               sniper_bow
            Tag                     bot_giant
            Attributes              MiniBoss
            WeaponRestrictions      PrimaryOnly
            Item		            "The Fruit Shoot"
			Item		            "Merc's Pride Scarf"
            Item                    "The Huntsman"
			MaxVisionRange			1500
            ItemAttributes
            {
                ItemName            "The Huntsman"
                "damage bonus"      1.2
            }
            CharacterAttributes
			{
				"move speed bonus" 0.5
				"damage force reduction" 0.5
				"airblast vulnerability multiplier" 0.5
				"override footstep sound set" 4
			}
        }
        T_TFBot_Force_Giant_Soldier_DoubleRocket
		{
			Class Soldier
			Name "Giant Double Rocket Soldier"
			ClassIcon soldier_burstfire
			Skill Expert
			Health 3800
			WeaponRestrictions PrimaryOnly
			Attributes MiniBoss
			Attributes HoldFireUntilFullReload
			Item "The Head Hedge"
			Item "harvest_rocketlauncher_autumn"
			ItemAttributes
			{
				ItemName "harvest_rocketlauncher_autumn"
				"faster reload rate"				1.1
				"fire rate bonus"					0.1
				"clip size penalty"					0.5
				"attach particle effect"    		703
				"projectile spread angle penalty"	4
				"killstreak idleeffect"     		3
			}
			CharacterAttributes
			{
				"move speed bonus"					0.5
				"damage force reduction"			0.4
				"airblast vulnerability multiplier"	0.4
				"override footstep sound set"		3
			}
		}
        T_TFGateBot_Force_Pyro
        {
            Class Pyro
			EventChangeAttributes
			{
				Default
				{
					Skill Easy
					Item "MvM GateBot Light Pyro"
					Attributes IgnoreFlag
					BehaviorModifiers Push
					Tag bot_gatebot
					Tag nav_prefer_gate1_flank
				}
				RevertGateBotsBehavior
				{
					Skill Easy
					Item "MvM GateBot Light Pyro"
					ItemAttributes
					{
						ItemName "MvM GateBot Light Pyro"
						"item style override" 1
					}
				}
			}
        }
        T_TFBot_Force_Giant_Skeleton
        {
            Name                    "Giant Skeleton"
            Health                  3000
            Class                   Sniper
            Skill                   Hard
            ClassIcon               sniper_bow
            Tag                     bot_giant
            Attributes              MiniBoss
            WeaponRestrictions      PrimaryOnly
            Item                    "The Huntsman"
			MaxVisionRange			1500
            
            ItemAttributes
            {
                ItemName            "The Huntsman"
                "damage bonus"      1.25
            }
            UseCustomModel "models/bots/skeleton_sniper/skeleton_sniper.mdl"
            DeathSound      "misc/halloween/skeleton_break.wav"
            CharacterAttributes
			{
				"move speed bonus" 0.5
				"damage force reduction" 0.5
				"airblast vulnerability multiplier" 0.5
				"override footstep sound set" 4
			}
        }
        T_TFBot_Force_Giant_Skeleton_Melee
        {
            Name                    "Giant Skeleton"
            Health                  3000
            Class                   Sniper
            Skill                   Hard
            ClassIcon 	            dead_lite
            Tag                     bot_giant
            Attributes              MiniBoss
            WeaponRestrictions      MeleeOnly
            Attributes              AlwaysFireWeapon
            SpawnTemplate   "skeleton_giant_laugh"
            DeathSound      "misc/halloween/skeleton_break.wav"
                FireInput
                    {
                        Target      "skelly_ghaha_relay"
                        Action      Trigger
                        Delay       0
                        Cooldown    5
                        Health      99999
                    }
            ItemAttributes
            {
                ItemName    "tf_weapon_club"
                "custom kill icon" "spellbook_skeleton"
                "is invisible" 1
            }
            UseCustomModel "models/bots/skeleton_sniper/skeleton_sniper.mdl"
            DeathSound  "misc/halloween/skeleton_break.wav"
            CharacterAttributes
			{
				"move speed bonus" 0.5
				"damage force reduction" 0.5
				"airblast vulnerability multiplier" 0.5
				"override footstep sound set" 4
			}
        }
        T_TFBot_Force_Skeleton_Melee
        {
            Name    "Skeleton"
            Class   Sniper
            Skill   Hard
            ClassIcon 	dead_lite
            UseCustomModel  "models/bots/skeleton_sniper/skeleton_sniper.mdl"
            DeathSound  "misc/halloween/skeleton_break.wav"
            Skin 1
            SpawnTemplate "Skeleton"
            ItemAttributes
            {
                ItemName    "tf_weapon_club"
                "custom kill icon" "spellbook_skeleton"
                "is invisible" 1
            }
            FireInput
            {
                Target      "skelly_haha_relay"
                Action      Trigger
                Delay       2
                Cooldown    5
                Health      200
            }

            CharacterAttributes
            {
                "voice pitch scale" 0
            }
        }
        T_TFBot_Force_Skeleton_Firemelee
        {
            Name    "Fire Skeleton"
            Class   Sniper
            Skill   Hard
            Health  200
            WeaponRestrictions  MeleeOnly
            ClassIcon 	dead_lite
            UseCustomModel  "models/bots/skeleton_sniper/skeleton_sniper.mdl"
            DeathSound  "misc/halloween/skeleton_break.wav"
            Skin 1
            Item    "Shooter's Tin Topi"
            Item "The Killing Gloves of Boxing"
            SpawnTemplate "Skeleton"
            ItemAttributes
            {
                ItemName    "The Killing Gloves of Boxing"
                "custom kill icon" "spellbook_skeleton"
                "is invisible" 1
                "set damagetype ignite"	1
                "attach particle effect"    1
            }
            ItemAttributes
            {
                ItemName    "Shooter's Tin Topi"
                "is invisible" 1
                "attach particle effect"    1
            }
            FireInput
            {
                Target      "skelly_haha_relay"
                Action      Trigger
                Delay       2
                Cooldown    5
                Health      200
            }
            CharacterAttributes
            {
                "voice pitch scale" 0
            }
        }
        T_TFGateBot_Force_Skeleton
        {
            Name    "Skeleton"
            Class   Sniper
            Skill   Hard
            Health  200
            WeaponRestrictions  MeleeOnly
            ClassIcon 			dead_ylw_lite
            UseCustomModel  "models/bots/skeleton_sniper/skeleton_sniper.mdl"
            DeathSound  "misc/halloween/skeleton_break.wav"
            
            SpawnTemplate "Skeleton"
        
            EventChangeAttributes
            {
                Default
                {
                    Skill Normal
                    MaxVisionRange -1
                    WeaponRestrictions  MeleeOnly
                    Attributes IgnoreFlag
                    BehaviorModifiers Push
                    Attributes DisableDodge
                    Tag nav_prefer_gate1_flank
                    Tag bot_gatebot
                    Skin 3
                    ItemAttributes
                    {
                        ItemName    "tf_weapon_club"
                        "custom kill icon" "spellbook_skeleton"
                        "is invisible" 1
                    }
                    CharacterAttributes
                    {
                        "voice pitch scale" 0
                    }
                }
                RevertGateBotsBehavior
                {
                    Skill Normal
                    MaxVisionRange -1
                    WeaponRestrictions  MeleeOnly
                    Skin 1
                    ItemAttributes
                    {
                        ItemName    "tf_weapon_club"
                        "custom kill icon" "spellbook_skeleton"
                        "is invisible" 1
                    }
                    CharacterAttributes
                    {
                        "voice pitch scale" 0
                    }
                }
            }
        }
        T_TFBot_Force_Giant_Demoman_RapidFire
        {
            Name 				"Giant Rapid Fire Demoman"
			Class 				Demoman
			ClassIcon 			demo_spammer_giant
			Skill 				Expert
			Health 				3300
			WeaponRestrictions 	PrimaryOnly
			Attributes 			MiniBoss
			Item 				"Upgradeable TF_WEAPON_GRENADELAUNCHER"
            Item                "Hair of the Dog"
            Item                "Scottish Snarl"
            Item                "Pickled Paws"
            Item                "The Highland Hound"
			ItemAttributes
			{
				ItemName "Upgradeable TF_WEAPON_GRENADELAUNCHER"
				"fire rate bonus"		0.75
				"faster reload rate"	-0.8
			}
			CharacterAttributes
			{
				"move speed bonus"						0.5
				"damage force reduction"				0.5
				"airblast vulnerability multiplier" 	0.5
				"override footstep sound set"			4
			}
        }
        T_TFGateBot_Force_Shorstop_Scout
        {
            Name "Shortstop Scout"
			Class Scout
			Skill Easy
			Health 650
			Scale 1.4
			ClassIcon scout_shortstop
			Item "The Shortstop"
			
        
            EventChangeAttributes
            {
                Default
                {
                    Skill Normal
                    MaxVisionRange -1
                    WeaponRestrictions PrimaryOnly
                    Attributes IgnoreFlag
                    Attributes  DisableDodge
                    BehaviorModifiers Push
                    Tag nav_prefer_gate1_flank
                    Tag bot_gatebot
                    Item "MvM GateBot Light Scout"
                    CharacterAttributes
                    {
                        "head scale" 0.7
                        "move speed bonus" 1.25
                         "voice pitch scale" 0.2
                    }
                }
                RevertGateBotsBehavior
                {
                    Skill Normal
                    MaxVisionRange -1
                    WeaponRestrictions PrimaryOnly
                    Item "MvM GateBot Light Scout"
                    ItemAttributes
                    { 
                        ItemName "MvM GateBot Light Scout" "item style override" 1 
                    }
                    CharacterAttributes
                    {
                        "head scale" 0.7
                        "move speed bonus" 1.25
                        "voice pitch scale" 0.2
                    }
                }
            }
        }
        T_TFGateBot_Force_Giant_Demoman
		{
			Name "Giant Rapid Fire Demoman"
			Class Demoman
			Health 3300
			ClassIcon 			demo_spammer_giant
			EventChangeAttributes
			{
				Default
				{
					Skill   Expert
					Item    "MvM GateBot Light Demoman"
					Attributes HoldFireUntilFullReload
					Attributes IgnoreFlag
					Attributes MiniBoss
					BehaviorModifiers Push
					WeaponRestrictions PrimaryOnly
                    Attributes  DisableDodge
					Tag bot_gatebot
					Tag bot_giant
					Tag nav_prefer_gate1_flank
					ItemAttributes
                    {
                        ItemName "Upgradeable TF_WEAPON_GRENADELAUNCHER"
                        "fire rate bonus"		0.75
                        "faster reload rate"	-0.8
                    }
					CharacterAttributes
					{
						"airblast vulnerability multiplier" 0.4
						"damage force reduction" 0.4
						"move speed bonus" 0.5
						"override footstep sound set" 4
						"Projectile speed increased" 1.1
					}
				}
				RevertGateBotsBehavior
				{
					Skill Expert
                    Item    "Hair of the Dog"
                    Item    "Scottish Snarl"
                    Item    "Pickled Paws"
					Attributes HoldFireUntilFullReload
					Attributes MiniBoss
					WeaponRestrictions PrimaryOnly
					Tag bot_giant
					ItemAttributes
					{
						ItemName "MvM GateBot Light Demoman"
						"item style override" 1
					}
					ItemAttributes
                    {
                        ItemName "Upgradeable TF_WEAPON_GRENADELAUNCHER"
                        "fire rate bonus"		0.75
                        "faster reload rate"	-0.8
                    }
					CharacterAttributes
					{
						"airblast vulnerability multiplier" 0.4
						"damage force reduction" 0.4
						"move speed bonus" 0.5
						"override footstep sound set" 4
						"Projectile speed increased" 1.1
					}
				}
			}
		}
    }

    PointTemplates
    {

        tonealley
        {   
            NoFixup 1
            ambient_generic
			{
				"targetname"            "tonealley"
				"health"                "10"
				"message"               "ambient\atmosphere\tone_alley.wav"
				"pitch"                 "90"
				"spawnflags"            "49"
			}
            ambient_generic
			{
				"targetname"            "tonealley"
				"health"                "10"
				"message"               "ambient\atmosphere\tone_alley.wav"
				"pitch"                 "90"
				"spawnflags"            "49"
			}
        }

        tonealley_trigger
        {
            NoFixup 1
            logic_timer
            {
                "targetname"            "tonealley_ambient"
                "UseRandomTime"         "1"
                "LowerRandomBound"      "35"
                "UpperRandomBound"      "35"
                "spawnflags"            "0"

                "OnTimer"               "tonealley,PlaySound,,0,-1"
                "OnTimer"               "tonealley,PlaySound,,0,-1"
            }
        }

        

        hallowsound
        {
            
            ambient_generic
			{
				"targetname"            "zombie_moan"
				"health"                "10"
				"message"               "ambient/creatures/town_moan1.wav"
				"pitch"                 "100"
				"spawnflags"            "49"
			}
            ambient_generic
			{
				"targetname"            "zombie_moan"
				"health"                "10"
				"message"               "ambient/creatures/town_moan1.wav"
				"pitch"                 "100"
				"spawnflags"            "49"
			}
            
            ambient_generic
			{
				"targetname"            "zombie_call"
				"health"                "10"
				"message"               "ambient/creatures/town_zombie_call1.wav"
				"pitch"                 "100"
				"spawnflags"            "49"
			}
            ambient_generic
			{
				"targetname"            "zombie_call2"
				"health"                "10"
				"message"               "ambient/creatures/town_zombie_call1.wav"
				"pitch"                 "90"
				"spawnflags"            "49"
			}
            ambient_generic
			{
				"targetname"            "zombie_call3"
				"health"                "10"
				"message"               "ambient/creatures/town_zombie_call1.wav"
				"pitch"                 "80"
				"spawnflags"            "49"
			}
            ambient_generic
			{
				"targetname"            "zombie_call4"
				"health"                "10"
				"message"               "ambient/creatures/town_zombie_call1.wav"
				"pitch"                 "70"
				"spawnflags"            "49"
			}
             ambient_generic
			{
				"targetname"            "zombie_call"
				"health"                "10"
				"message"               "ambient/creatures/town_zombie_call1.wav"
				"pitch"                 "100"
				"spawnflags"            "49"
			}
            ambient_generic
			{
				"targetname"            "zombie_call2"
				"health"                "10"
				"message"               "ambient/creatures/town_zombie_call1.wav"
				"pitch"                 "90"
				"spawnflags"            "49"
			}
            ambient_generic
			{
				"targetname"            "zombie_call3"
				"health"                "10"
				"message"               "ambient/creatures/town_zombie_call1.wav"
				"pitch"                 "80"
				"spawnflags"            "49"
			}
            ambient_generic
			{
				"targetname"            "zombie_call4"
				"health"                "10"
				"message"               "ambient/creatures/town_zombie_call1.wav"
				"pitch"                 "70"
				"spawnflags"            "49"
			}
            logic_case
            {
                "targetname"            "zombiecall"

                "OnCase01"              "zombie_call,PlaySound,,0,-1"
                "OnCase01"              "zombie_moan,PlaySound,,6,-1"
                
                "OnCase02"              "zombie_call2,PlaySound,,0,-1"
                "OnCase02"              "zombie_moan,PlaySound,,6,-1"

                "OnCase03"              "zombie_call3,PlaySound,,0,-1"
                "OnCase03"              "zombie_moan,PlaySound,,6,-1"

                "OnCase04"              "zombie_call4,PlaySound,,0,-1"
                "OnCase04"              "zombie_moan,PlaySound,,6,-1"
            }
            logic_timer
            {
                "targetname"            "zombiecall_ambient"
                "UseRandomTime"         "1"
                "LowerRandomBound"      "25"
                "UpperRandomBound"      "35"
                "spawnflags"            "0"

                "OnTimer"               "zombiecall,PickRandom,,0,-1"
            }
            logic_auto
            {
                "spawnflags"            "1"

                "OnMapSpawn"            "zombiecall_ambient,Trigger,,0,-1"
                "OnMapSpawn"            "tonealley_ambient,Trigger,,5,-1"
            }
        }

        skeleton_giant_laugh
        {
            NoFixup 1
            logic_relay
            {
                "targetname"            "skelly_ghaha_relay"

                "OnTrigger"             "skelly_laugh,PickRandom,,0,-1"
            }
            NoFixup 1
            logic_case
            {
                "targetname"            "skelly_laugh"

                "OnCase01"              "skelly_glaugh01,PlaySound,,0,-1"
                "OnCase02"              "skelly_glaugh02,PlaySound,,0,-1"
                "OnCase03"              "skelly_glaugh03,PlaySound,,0,-1"
            }
            NoFixup 1
            ambient_generic
            {
                "origin"                "0 0 0"
                "health"                "10"
                "message"               "\misc\halloween\skeletons\skelly_giant_01.wav"
                "pitch"                 "100"
                "pitchstart"            "100"
                "preset"                "0"
                "radius"                "2000"
                "spawnflags"            "48"
                "targetname"            "skelly_glaugh01"
                "volume"                "10"
            }
            NoFixup 1
            ambient_generic
            {
                "origin"                "0 0 0"
                "health"                "10"
                "message"               "\misc\halloween\skeletons\skelly_giant_01.wav"
                "pitch"                 "100"
                "pitchstart"            "100"
                "preset"                "0"
                "radius"                "2000"
                "spawnflags"            "48"
                "targetname"            "skelly_glaugh01"
                "volume"                "10"
            }
            NoFixup 1
            ambient_generic
            {
                "origin"                "0 0 0"
                "health"                "10"
                "message"               "\misc\halloween\skeletons\skelly_giant_02.wav"
                "pitch"                 "100"
                "pitchstart"            "100"
                "preset"                "0"
                "radius"                "2000"
                "spawnflags"            "48"
                "targetname"            "skelly_glaugh02"
                "volume"                "10"
            }
            NoFixup 1
            ambient_generic
            {
                "origin"                "0 0 0"
                "health"                "10"
                "message"               "\misc\halloween\skeletons\skelly_giant_02.wav"
                "pitch"                 "100"
                "pitchstart"            "100"
                "preset"                "0"
                "radius"                "2000"
                "spawnflags"            "48"
                "targetname"            "skelly_glaugh02"
                "volume"                "10"
            }
            NoFixup 1
            ambient_generic
            {
                "origin"                "0 0 0"
                "health"                "10"
                "message"               "\misc\halloween\skeletons\skelly_giant_03.wav"
                "pitch"                 "100"
                "pitchstart"            "100"
                "preset"                "0"
                "radius"                "2000"
                "spawnflags"            "48"
                "targetname"            "skelly_glaugh03"
                 "volume"               "10"
            }
            NoFixup 1
            ambient_generic
            {
                "origin"                "0 0 0"
                "health"                "10"
                "message"               "\misc\halloween\skeletons\skelly_giant_03.wav"
                "pitch"                 "100"
                "pitchstart"            "100"
                "preset"                "0"
                "radius"                "2000"
                "spawnflags"            "48"
                "targetname"            "skelly_glaugh03"
                 "volume"               "10"
            }
        }

        skeleton
        {
            NoFixup 1
            logic_relay
            {
                "targetname"            "skelly_haha_relay"

                "OnTrigger"             "skelly_laugh,PickRandom,,0,-1"
            }
            logic_case
            {
                "targetname"            "skelly_laugh"

                "OnCase01"              "skelly_laugh01,PlaySound,,0,-1"
                "OnCase02"              "skelly_laugh02,PlaySound,,0,-1"
                "OnCase03"              "skelly_laugh03,PlaySound,,0,-1"
                "OnCase03"              "skelly_laugh04,PlaySound,,0,-1"
                "OnCase03"              "skelly_laugh05,PlaySound,,0,-1"
            }
            ambient_generic
            {
                "origin"                "0 0 0"
                "health"                "10"
                "message"               "\misc\halloween\skeletons\skelly_medium_01.wav"
                "pitch"                 "100"
                "pitchstart"            "100"
                "preset"                "0"
                "radius"                "2000"
                "spawnflags"            "48"
                "targetname"            "skelly_laugh01"
                "volume"                "10"
            }
            ambient_generic
            {
                "origin"                "0 0 0"
                "health"                "10"
                "message"               "\misc\halloween\skeletons\skelly_medium_02.wav"
                "pitch"                 "100"
                "pitchstart"            "100"
                "preset"                "0"
                "radius"                "2000"
                "spawnflags"            "48"
                "targetname"            "skelly_laugh02"
                "volume"                "10"
            }
            ambient_generic
            {
                "origin"                "0 0 0"
                "health"                "10"
                "message"               "\misc\halloween\skeletons\skelly_medium_03.wav"
                "pitch"                 "100"
                "pitchstart"            "100"
                "preset"                "0"
                "radius"                "2000"
                "spawnflags"            "48"
                "targetname"            "skelly_laugh03"
                 "volume"               "10"
            }
            ambient_generic
            {
                "origin"                "0 0 0"
                "health"                "10"
                "message"               "\misc\halloween\skeletons\skelly_medium_04.wav"
                "pitch"                 "100"
                "pitchstart"            "100"
                "preset"                "0"
                "radius"                "2000"
                "spawnflags"            "48"
                "targetname"            "skelly_laugh04"
                 "volume"               "10"
            }
            ambient_generic
            {
                "origin"                "0 0 0"
                "health"                "10"
                "message"               "\misc\halloween\skeletons\skelly_medium_05.wav"
                "pitch"                 "100"
                "pitchstart"            "100"
                "preset"                "0"
                "radius"                "2000"
                "spawnflags"            "48"
                "targetname"            "skelly_laugh05"
                 "volume"               "10"
            }
        }

        GhostTank
        {
            OnSpawnOutput
            {
                Target  "!activator"
                Action  "color"
                Param   "0 0 255" 
            }
            OnSpawnOutput
            {
				Target  "!activator"
				Action  "alpha"
				Param   "100"
            }
            OnSpawnOutput
            {
				Target  "!activator"
				Action  "addoutput"
				Param   "rendermode 5"
            }
			prop_dynamic
            {
                "model" 		"models/player/items/all_class/all_domination_b_scout.mdl"
				"origin" 		"-45 0 135"
				"modelscale"	"6"
            }
        }

    }

    Mission // For Wave #
    {
        Where spawnbot_left0
        Objective Sniper 
        BeginAtWave 1
        RunForThisManyWaves 2
        DesiredCount 2
    
        InitialCooldown 45
        CooldownTime 45
    
        TFBot
        { Template T_TFBot_Sniper }
    }

    SpawnTemplate   "hallowsound"
    SpawnTemplate   "tonealley_trigger"
    SpawnTemplate   "tonealley"

    Wave
    {
        StartWaveOutput
        {
            Target wave_start_relay_classic
            Action Trigger
        }
        DoneOutput
        {
            Target wave_finished_relay
            Action Trigger
        }

        WaveSpawn
        {
            Name    1a
            Where   spawnbot_scattered0
            Where   spawnbot_main1
            TotalCount  10
            MaxActive   10
            SpawnCount  1
            WaitBeforeStarting 5
            WaitBetweenSpawns 1
        
            TotalCurrency 50
        
            TFBot
            { 
                Template    T_TFGateBot_Scout_Normal
                CharacterAttributes
                {
                    "voice pitch scale" 0.2
                }
            }
        }
        WaveSpawn
        {
            Name    1b
            Where   spawnbot_mid0
            Where   spawnbot_main1
            TotalCount 4
            MaxActive 1
            SpawnCount 1
            WaitBeforeStarting 20
            WaitBetweenSpawns 20
        
            TotalCurrency 200
        
            TFBot
            { 
                Template        T_TFBot_Force_Giant_Skeleton
                Skin 1
                SpawnTemplate   "skeleton_giant_laugh"
                DeathSound      "misc/halloween/skeleton_break.wav"
                FireInput
                    {
                        Target      "skelly_ghaha_relay"
                        Action      Trigger
                        Delay       0
                        Cooldown    5
                        Health      99999
                    }
                CharacterAttributes
                {
                    "voice pitch scale" 0
                }
            }
        }
        WaveSpawn
        {
            Name    1c
            WaitForAllSpawned   1a
            Where   spawnbot_mid0
            Where   spawnbot_main1
            TotalCount  20
            MaxActive   6
            SpawnCount  3
            WaitBeforeStarting 5
            WaitBetweenSpawns 8
        
            TotalCurrency 50
        
            TFBot
            { 
                Class   Scout
                Skill   Easy
                CharacterAttributes
                {
                    "voice pitch scale" 0.2
                }
            }
        }
        WaveSpawn
        {
            Name            1c
            WaitForAllDead   1a
            Where   spawnbot_mid0
            Where   spawnbot_main1
            TotalCount  30
            MaxActive   6
            SpawnCount  3
            WaitBeforeStarting 0
            WaitBetweenSpawns 4
        
            TotalCurrency 50
        
            TFBot
            { 
                Template    T_TFGateBot_Scout_Melee
                CharacterAttributes
                {
                    "voice pitch scale" 0.2
                }
            }
        }
        WaveSpawn
        {
            Name                1s_limited
            WaitForAllDead      1a
            Where   spawnbot_scattered0
            Where   spawnbot_right0
            Where   spawnbot_main1
            TotalCount  12
            MaxActive   2
            SpawnCount  1
            WaitBeforeStarting 5
            WaitBetweenSpawns 6
        
            TotalCurrency 50
            RandomChoice
            {
                TFBot
                { 
                    Template    T_TFBot_Pyro
                    Skill       Easy
                    CharacterAttributes
                    {
                        "voice pitch scale" 0.2
                    }
                }
                TFBot
                { 
                    Template    T_TFBot_Pyro
                    Skill       Easy
                    CharacterAttributes
                    {
                        "voice pitch scale" 0.2
                    }
                }
                TFBot
                { 
                    Template    T_TFGateBot_Force_Pyro
                    Skill       Easy
                    CharacterAttributes
                    {
                        "voice pitch scale" 0.2
                    }
                }
                TFBot
                { 
                    Template    T_TFGateBot_Force_Pyro
                    Skill       Easy
                    CharacterAttributes
                    {
                        "voice pitch scale" 0.2
                    }
                }
                TFBot
                { 
                    Template    T_TFGateBot_Pyro_AlwaysFireWeapon
                    CharacterAttributes
                    {
                        "voice pitch scale" 0.2
                    }
                }
                TFBot
                { 
                    Template    T_TFBot_Pyro
                    Attributes  AlwaysFireWeapon
                    CharacterAttributes
                    {
                        "voice pitch scale" 0.2
                    }
                }
            }
        }
        WaveSpawn
        {
            Name            1d
            WaitForAllDead   1c
            Where   spawnbot_right0
            Where   spawnbot_main1
            TotalCount  15
            MaxActive   10
            SpawnCount  5
            WaitBeforeStarting 0
            WaitBetweenSpawns 10
        
            TotalCurrency 50
        
            TFBot
            { 
                Class   Heavy
                Skill   Easy
                WeaponRestrictions  SecondaryOnly
                ClassIcon   heavy_shotgun
                CharacterAttributes
                {
                    "voice pitch scale" 0.2
                }
            }
        }
        WaveSpawn
        {
            Name                1e
            WaitForAllDead      1d
            Where   spawnbot_scattered0
            Where   spawnbot_main1
            TotalCount  15
            MaxActive   15
            SpawnCount  1
            WaitBeforeStarting 3
            WaitBetweenSpawns 2
        
            TotalCurrency 150
            RandomChoice
            {
                TFBot
                { 
                    Template    T_TFBot_Pyro
                    Attributes  AlwaysFireWeapon
                    CharacterAttributes
                    {
                        "voice pitch scale" 0.2
                    }
                }
                TFBot
                { 
                    Template    T_TFBot_Pyro
                    Skill       Easy
                    CharacterAttributes
                    {
                        "voice pitch scale" 0.2
                    }
                }
            }
        }
        WaveSpawn
        {
            Name            1e
            WaitForAllDead   1d
            Where   spawnbot_mid0
            Where   spawnbot_main1
            TotalCount  12
            MaxActive   12
            SpawnCount  6
            WaitBeforeStarting 0
            WaitBetweenSpawns 20
        
            TotalCurrency 300
            Squad
            {
                TFBot
                { 
                    Template    T_TFBot_Giant_Soldier
                    Item                    "MONOCULUS!"
                    RocketCustomModel       "models/props_halloween/eyeball_projectile.mdl"
                    RocketCustomParticle    "flare_glow"
                    CharacterAttributes
                    {
                        "voice pitch scale" 0.2
                    }
                }
                TFBot
                { 
                    Class   Heavy
                    Skill   Easy
                    WeaponRestrictions  SecondaryOnly
                    ClassIcon   heavy_shotgun
                    CharacterAttributes
                    {
                        "voice pitch scale" 0.2
                    }
                }
                TFBot
                { 
                    Class   Heavy
                    Skill   Easy
                    WeaponRestrictions  SecondaryOnly
                    ClassIcon   heavy_shotgun
                    CharacterAttributes
                    {
                        "voice pitch scale" 0.2
                    }
                }
                TFBot
                { 
                    Class   Heavy
                    Skill   Easy
                    WeaponRestrictions  SecondaryOnly
                    ClassIcon   heavy_shotgun
                    CharacterAttributes
                    {
                        "voice pitch scale" 0.2
                    }
                }
                TFBot
                { 
                    Class   Heavy
                    Skill   Easy
                    WeaponRestrictions  SecondaryOnly
                    ClassIcon   heavy_shotgun
                    CharacterAttributes
                    {
                        "voice pitch scale" 0.2
                    }
                }
                TFBot
                { 
                    Class   Heavy
                    Skill   Easy
                    WeaponRestrictions  SecondaryOnly
                    ClassIcon   heavy_shotgun
                    CharacterAttributes
                    {
                        "voice pitch scale" 0.2
                    }
                }
            }
        }
        
    }

    //Wave 2: $1000
    //01 Ghost Tank
    //02 Giant Skeleton Melee + 04 Big Heal Medic
    //04 Giant Pyro + 01 Big Heal Medic
    //60 Skeletons
    //27 Werewolf Demo
    //33 Soldier
    //Support
    //02 Scout
    //02 Sniper

    Wave
    {
        StartWaveOutput
        {
            Target wave_start_relay_classic
            Action Trigger
        }
        DoneOutput
        {
            Target wave_finished_relay
            Action Trigger
        }
        WaveSpawn
        {
            Name    2a
            TotalCount 1
            MaxActive 1
            SpawnCount 1
        
            TotalCurrency 200
            FirstSpawnWarningSound  "ui\halloween_boss_summoned.wav"
            Tank
            {
                Name "tankboss"
                StartingPathTrackNode "path_tank_alt"
                Health 25000
                Speed 75
                Skin 0
                Model "models/bots/boss_bot/boss_tank_color.mdl" 
				SpawnTemplate GhostTank
                OnKilledOutput
				{
					Target	boss_dead_relay
					Action	Trigger
				}
                OnBombDroppedOutput
                {
                    Target boss_deploy_relay
                    Action Trigger
                }
            }
        }
        WaveSpawn
        {
            Name    2b
            Where   spawnbot_left0
            Where   spawnbot_main1
            TotalCount 24
            MaxActive 12
            SpawnCount 6
            WaitBeforeStarting 10
            WaitBetweenSpawns 5
        
            TotalCurrency 100
            TFBot
            { 
                Template    T_TFGateBot_Force_Skeleton
            }
        }
        WaveSpawn
        {
            Name    2c
            WaitForAllSpawned  2b
            Where   spawnbot_right0
            Where   spawnbot_main1
            TotalCount 28
            MaxActive 8
            SpawnCount 4
            WaitBeforeStarting 10
            WaitBetweenSpawns 5
        
            TotalCurrency 100
            TFBot
            { 
                Template    T_TFGateBot_Force_Skeleton
            }
        }
        WaveSpawn
        {
            Name    2c
            WaitForAllSpawned   2a
            Where   spawnbot_mid0
            Where   spawnbot_main1
            TotalCount  12
            MaxActive   8
            SpawnCount  4
            WaitBeforeStarting  40
            WaitBetweenSpawns   20
        
            TotalCurrency 200
            Squad
            {
                TFBot
                { 
                    Template    T_TFBot_Force_Giant_Skeleton_Melee
                }
                TFBot
                { 
                    Template    T_TFBot_Medic_QuickFix
                    CharacterAttributes
                    {
                        "voice pitch scale" 0.2
                    }
                }
                TFBot
                { 
                    Template    T_TFBot_Medic_QuickFix
                    CharacterAttributes
                    {
                        "voice pitch scale" 0.2
                    }
                }
                TFBot
                { 
                    Template    T_TFBot_Medic_QuickFix
                    CharacterAttributes
                    {
                        "voice pitch scale" 0.2
                    }
                }
            }
        }
        WaveSpawn
        {
            Name    2d
            WaitForAllDead  2b
            Where   spawnbot_mid0
            Where   spawnbot_main1
            TotalCount 15
            MaxActive 6
            SpawnCount 3
            WaitBeforeStarting 0
            WaitBetweenSpawns 5
        
            TotalCurrency 50
            TFBot
            { 
                Class   Demoman
                Skill   Easy
                Item    "Hair of the Dog"
                Item    "Scottish Snarl"
                Item    "Pickled Paws"
                Item    "The Highland Hound"
                Name    "Werewolf Demo"
                CharacterAttributes
                {
                    "voice pitch scale" 0.2
                }
            }
        }
        WaveSpawn
        {
            Name    2e
            WaitForAllDead  2c
            Where   spawnbot_mid0
            Where   spawnbot_main1
            TotalCount 8
            MaxActive 4
            SpawnCount 2
            WaitBeforeStarting 0
            WaitBetweenSpawns 15
        
            TotalCurrency 150
            Squad
            {
                TFBot
                { 
                    Template    T_TFBot_Giant_Pyro
                    Skill       Easy 
                    Attributes  AlwaysFireWeapon
                    CharacterAttributes
                    {
                        "voice pitch scale" 0.2
                    }
                }
                TFBot
                { 
                    Template    T_TFBot_Medic_BigHeal
                    CharacterAttributes
                    {
                        "voice pitch scale" 0.2
                    }
                }
            }
        }
        WaveSpawn
        {
            Name    2e
            WaitForAllDead  2c
            Where   spawnbot_scattered0
            Where   spawnbot_main1
            TotalCount 28
            MaxActive 8
            SpawnCount 4
            WaitBeforeStarting 5
            WaitBetweenSpawns 7
        
            TotalCurrency 100
            TFBot
            { 
                Class   Soldier
                Skill   Easy
                RocketCustomModel       "models/props_halloween/eyeball_projectile.mdl"
                RocketCustomParticle    "flare_glow"
                CharacterAttributes
                {
                    "voice pitch scale" 0.2
                }
            }
        }
        WaveSpawn
        {
            Name    2e
            WaitForAllDead  2c
            Where   spawnbot_scattered0
            Where   spawnbot_main1
            TotalCount 50
            MaxActive 4
            SpawnCount 2
            WaitBeforeStarting 20
            WaitBetweenSpawns 10
            Support 1
            TotalCurrency 100
            TFBot
            { 
                Class   Scout
                Skill   Easy
                CharacterAttributes
                {
                    "voice pitch scale" 0.2
                }
            }
        }
    }

    //Wave 3: $1100
    //03 Giant Werewolf Demo // 02 Giant Gatebot
    //03 Giant Shotgun Heavy
    //40 Bonk Scout // 20 Bomb // 20 Gatebot
    //27 Pyro Flare // Bomb
    //09 Shortstop Scout // Gatebot
    //45 Fire Skeleton // Bomb
    //Support
    //02 Shotgun Heavy
    //04 Bowman Skeleton
    //02 Spy

    Wave
    {
        StartWaveOutput
        {
            Target wave_start_relay_classic
            Action Trigger
        }
        DoneOutput
        {
            Target wave_finished_relay
            Action Trigger
        }
        WaveSpawn
        {
            Name    3a
            Where   spawnbot_mid0
            Where   spawnbot_right0
            TotalCount 20
            MaxActive 10
            SpawnCount 10
            WaitBeforeStarting 0
            WaitBetweenSpawns 10
        
            TotalCurrency 0
        
            TFBot
            { 
                Template    T_TFBot_Scout_Bonk
            }
        }
        WaveSpawn
        {
            Name 3b
            Where spawnbot_mid0
            Where   spawnbot_main1
            TotalCount 2
            MaxActive 2
            SpawnCount 1
            WaitBeforeStarting 15
            WaitBetweenSpawns 25
        
            TotalCurrency 0

            TFBot
            { 
                Template    T_TFGateBot_Force_Giant_Demoman
                Name        "Giant Werewolf Demo"
                CharacterAttributes
                {
                    "voice pitch scale" 0.2
                }
            }
        }
        WaveSpawn
        {
            Name 3c
            WaitForAllDead  3a
            Where spawnbot_mid0
            Where   spawnbot_main1
            TotalCount 20
            MaxActive 6
            SpawnCount 3
            WaitBeforeStarting 5
            WaitBetweenSpawns 6
        
            TotalCurrency 0
        
            TFBot
            { 
                Template    T_TFGateBot_Scout_FAN
                CharacterAttributes
                {
                    "voice pitch scale" 0.2
                }
            }
        }
        WaveSpawn
        {
            Name 3c
            WaitForAllSpawned   3b
            Where spawnbot_left0
            Where   spawnbot_main1
            TotalCount 1
            MaxActive 1
            SpawnCount  1
            WaitBeforeStarting 30
            WaitBetweenSpawns 0
        
            TotalCurrency 0
        
            TFBot
            { 
                Template    T_TFBot_Force_Giant_Demoman_RapidFire
                Name        "Giant Werewolf Demo"
                CharacterAttributes
                {
                    "voice pitch scale" 0.2
                }
            }
        }
        WaveSpawn
        {
            Name 3c
            WaitForAllDead  3a
            Where spawnbot_scattered0
            Where   spawnbot_main1
            TotalCount 24
            MaxActive 8
            SpawnCount 4
            WaitBeforeStarting 0
            WaitBetweenSpawns 7
        
            TotalCurrency 0
        
            TFBot
            { 
                Template    T_TFBot_Pyro_Flaregun
                CharacterAttributes
                {
                    "voice pitch scale" 0.2
                }
            }
        }
        WaveSpawn
        {
            Name 3d
            WaitForAllDead  3a
            Where spawnbot_scattered0
            Where   spawnbot_main1
            TotalCount 7
            MaxActive 1
            SpawnCount 1
            WaitBeforeStarting 10
            WaitBetweenSpawns 20
        
            TotalCurrency 0
        
            TFBot
            { 
                Template    T_TFGateBot_Force_Shorstop_Scout
                CharacterAttributes
                {
                    "voice pitch scale" 0.2
                }
            }
        }
        WaveSpawn
        {
            Name 3e
            WaitForAllDead  3c
            Where spawnbot_scattered0
            Where   spawnbot_main1
            TotalCount 45
            MaxActive 10
            SpawnCount 5
            WaitBeforeStarting 3
            WaitBetweenSpawns 7
        
            TotalCurrency 0
        
            TFBot
            { 
                Template    T_TFBot_Force_Skeleton_Firemelee
                CharacterAttributes
                {
                    "voice pitch scale" 0.2
                }
            }
        }
        WaveSpawn
        {
            Name 3e
            WaitForAllDead  3c
            Where spawnbot_scattered0
            Where   spawnbot_main1
            TotalCount 3
            MaxActive 2
            SpawnCount 1
            WaitBeforeStarting 20
            WaitBetweenSpawns 25
        
            TotalCurrency 0
        
            TFBot
            { 
                Template    T_TFBot_Giant_Heavyweapons_Shotgun
                ClassIcon   heavy_shotgun_giant
                CharacterAttributes
                {
                    "voice pitch scale" 0.2
                }
            }
        }
        WaveSpawn
        {
            Name 3s
            WaitForAllDead  3a
            Where spawnbot_scattered0
            Where   spawnbot_main1
            TotalCount 1
            MaxActive 1
            SpawnCount 1
            WaitBeforeStarting 10
            WaitBetweenSpawns 10
            Support 1
            TotalCurrency 0
        
            TFBot
            { 
                Template    T_TFBot_Heavyweapons_Shotgun
                Name        "Shotgun Heavy"
                CharacterAttributes
                {
                    "voice pitch scale" 0.2
                }
            }
        }
        WaveSpawn
        {
            Name 3s
            WaitForAllDead  3c
            Where spawnbot_scattered0
            Where   spawnbot_main1
            TotalCount 50
            MaxActive 4
            SpawnCount 4
            WaitBeforeStarting 10
            WaitBetweenSpawns 15
            Support 1
            TotalCurrency 0
        
            TFBot
            { 
                Template    T_TFBot_Force_Skeleton_Bowman
                CharacterAttributes
                {
                    "voice pitch scale" 0.2
                }
            }
        }
    }

    //Wave 4: $900
    //04 Giant Dragon Pyro
    //04 Giant Soldier Spammer
    //02 Tank
    //69 Werewolf
    //12 Soldier + 12 Quick Fix Medic
    //12 Gauntlet Heavy
    //24 Pyro
    //24 Heavy
    //Support
    //02 Sniper

    Wave
    {
        StartWaveOutput
        {
            Target wave_start_relay_classic
            Action Trigger
        }
        DoneOutput
        {
            Target wave_finished_relay
            Action Trigger
        }
    }
    Wave
    {
        StartWaveOutput
        {
            Target wave_start_relay_classic
            Action Trigger
        }
        DoneOutput
        {
            Target wave_finished_relay
            Action Trigger
        }
    }
}