//Meant for mvm_berserker using rafmod for Halloween MvM event.
//Yakibomb was here
//Sign date: 11/21/21

WaveSchedule
{	
	Templates
	{
		monster_bighead_mannvich
		{
			SpawnTemplate "stats_base"
			SpawnTemplate "stats_bighead"
			
			ClassIcon enemy
			
			Name "Unsatisfied Sandvich"
			Class Heavyweapons
			Skill Easy
			Health 360
			Scale 1.01
			
			UseMeleeThreatPrioritization 1
			Attributes DisableDodge
			Attributes Aggressive
			StripItemSlot 0
			StripItemSlot 1
			UseHumanModel 2
			SuppressTimedFetchFlag 1
			NoIdleSound 1
			
			WeaponRestrictions MeleeOnly
			Item "Mannvich"
			UseCustomModel "models/berserker_monsters/bighead_legs/heavy_legs.mdl"
			
			ItemAttributes
			{
				ItemName "Mannvich"
				"custom item model" "models/berserker_monsters/bighead_mannvich/hwn2020_mannvich.mdl"
			}
			ItemAttributes
			{
				ItemName TF_WEAPON_FISTS
				"custom hit sound" "sandwicheat09_single.wav"
				"custom kill icon" "ham_shank"
			}
			CharacterAttributes
			{
				"damage penalty" 0.16
				"override footstep sound set" 9
				"voice pitch scale" 0.8
				"SET BONUS: Special dsp" 30
			}
		//	AddCond   //Adds conditions to bots
		//	{
		//		Name "TF_COND_REPROGRAMMED"
		//		Delay 0 
		//		Duration 99
		//		IfHealthBelow 400
		//	}
			VoiceCommand
			{
				Delay 0.3
				Cooldown 3
				Repeats 5
				IfSeeTarget 1
				Type "Dispenser here"
			}
			
			Action Passive
			Taunt
			{
				Delay 0 //Time before the first taunt starts (Default: 10)
				Name "Taunt: Mannrobics" //If set, uses this item taunt instead of default
				IfHealthAbove 399 //When set, the task activates only when the bot health is above specified value
			}
			
		}
		boss_bighead_mannvich
		{
			SpawnTemplate "stats_base"
			SpawnTemplate "stats_bighead"
			
			ClassIcon enemy_giant
			
			AlwaysGlow 1
			Name "Boss Unsatisfied Sandvich"
			Class Heavyweapons
			Skill Easy
			Health 3500
			Scale 1.75
			
			UseMeleeThreatPrioritization 1
			Attributes DisableDodge
			Attributes Aggressive
			StripItemSlot 0
			StripItemSlot 1
			FastUpdate 1
			SuppressTimedFetchFlag 1
				
	//		Attributes UseBossHealthBar
			Attributes MiniBoss
			NoIdleSound 1
			UseHumanModel 2
			NoIdleSound 1
			
			WeaponRestrictions MeleeOnly
			Item "Mannvich"
			UseCustomModel "models/berserker_monsters/bighead_legs/heavy_legs.mdl"
			
			ItemAttributes
			{
				ItemName "Mannvich"
				"custom item model" "models/berserker_monsters/bighead_mannvich/hwn2020_mannvich.mdl"
			}
			ItemAttributes
			{
				ItemName TF_WEAPON_FISTS
				"custom hit sound" "sandwicheat09_single.wav"
				"custom kill icon" "ham_shank"
			}
			CharacterAttributes
			{
				"damage penalty" 0.33
				"move speed penalty" 0.65
				"override footstep sound set" 9
				"voice pitch scale" 0.8
				"SET BONUS: Special dsp" 30
			}
			VoiceCommand
			{
				Delay 0.3
				Cooldown 3
				Repeats 5
				IfSeeTarget 1
				Type "Dispenser here"
			}
			
		}
		monster_bighead_eyeball
		{
			SpawnTemplate "stats_base"
			SpawnTemplate "stats_bighead"
			
			ClassIcon enemy
			
			Name "Annoyed Eyeball"
			Class Heavyweapons
			Skill Easy
			Health 400
			Scale 1.01
			
			UseMeleeThreatPrioritization 1
			Attributes DisableDodge
			Attributes Aggressive
			StripItemSlot 0
			StripItemSlot 1
			UseHumanModel 2
			SuppressTimedFetchFlag 1
			NoIdleSound 1
			
			WeaponRestrictions MeleeOnly
			Item "MONOCULUS!"
			UseCustomModel "models/berserker_monsters/bighead_legs/heavy_legs.mdl"
			
			ItemAttributes
			{
				ItemName "MONOCULUS!"
				"custom item model" "models/berserker_monsters/bighead_eyeball/eyeball_hat_heavy.mdl"
			}
			ItemAttributes
			{
				ItemName TF_WEAPON_FISTS
			//	"custom hit sound" "sandwicheat09_single.wav"
				"custom kill icon" "ham_shank"
			}
			CharacterAttributes
			{
				"damage penalty" 0.16
				"override footstep sound set" 9
				"SET BONUS: Special dsp" 30
			}
			
		}
		boss_bighead_eyeball
		{
			SpawnTemplate "stats_base"
			SpawnTemplate "stats_bighead"
			
			ClassIcon enemy_giant
			
			AlwaysGlow 1
			Name "Boss Annoyed Eyeball"
			Class Heavyweapons
			Skill Easy
			Health 4000
			Scale 1.75
			
			UseMeleeThreatPrioritization 1
			Attributes DisableDodge
			Attributes Aggressive
			StripItemSlot 0
			StripItemSlot 1
			FastUpdate 1
			SuppressTimedFetchFlag 1
				
	//		Attributes UseBossHealthBar
			Attributes MiniBoss
			NoIdleSound 1
			UseHumanModel 2
			NoIdleSound 1
			
			WeaponRestrictions MeleeOnly
			Item "MONOCULUS!"
			UseCustomModel "models/berserker_monsters/bighead_legs/heavy_legs.mdl"
			
			ItemAttributes
			{
				ItemName "MONOCULUS!"
				"custom item model" "models/berserker_monsters/bighead_eyeball/eyeball_hat_heavy.mdl"
			}
			ItemAttributes
			{
				ItemName TF_WEAPON_FISTS
			//	"custom hit sound" "sandwicheat09_single.wav"
				"custom kill icon" "ham_shank"
			}
			CharacterAttributes
			{
				"damage penalty" 0.33
				"move speed penalty" 0.65
				"override footstep sound set" 9
				"voice pitch scale" 0.8
				"SET BONUS: Special dsp" 30
			}
			
		}
		monster_bighead_pumpkin
		{
			SpawnTemplate "stats_base"
			SpawnTemplate "stats_bighead"
			
			ClassIcon enemy
			
			Name "Pissed Pumpkin"
			Class Heavyweapons
			Skill Easy
			Health 400
			Scale 1.01
			
			UseMeleeThreatPrioritization 1
			Attributes DisableDodge
			Attributes Aggressive
			StripItemSlot 0
			StripItemSlot 1
			UseHumanModel 2
			SuppressTimedFetchFlag 1
			NoIdleSound 1
			
			WeaponRestrictions MeleeOnly
			Item "Horseless Headless Horseman's Head"
			UseCustomModel "models/berserker_monsters/bighead_legs/heavy_legs.mdl"
			
			ItemAttributes
			{
				ItemName "Horseless Headless Horseman's Head"
				"custom item model" "models/berserker_monsters/bighead_pumpkin/pumpkin_hat_heavy.mdl"
			}
			ItemAttributes
			{
				ItemName TF_WEAPON_FISTS
			//	"custom hit sound" "sandwicheat09_single.wav"
				"custom kill icon" "ham_shank"
			}
			CharacterAttributes
			{
				"damage penalty" 0.16
				"override footstep sound set" 9
				"SET BONUS: Special dsp" 30
			}
			
		}
		boss_bighead_pumpkin
		{
			SpawnTemplate "stats_base"
			SpawnTemplate "stats_bighead"
			
			
			ClassIcon enemy_giant
			
			AlwaysGlow 1
			Name "Boss Pissed Pumpkin"
			Class Heavyweapons
			Skill Easy
			Health 4000
			Scale 1.75
			
			UseMeleeThreatPrioritization 1
			Attributes DisableDodge
			Attributes Aggressive
			StripItemSlot 0
			StripItemSlot 1
			FastUpdate 1
			SuppressTimedFetchFlag 1
				
	//		Attributes UseBossHealthBar
			Attributes MiniBoss
			NoIdleSound 1
			UseHumanModel 2
			NoIdleSound 1
			
			WeaponRestrictions MeleeOnly
			Item "Horseless Headless Horseman's Head"
			UseCustomModel "models/berserker_monsters/bighead_legs/heavy_legs.mdl"
			
			ItemAttributes
			{
				ItemName "Horseless Headless Horseman's Head"
				"custom item model" "models/berserker_monsters/bighead_pumpkin/pumpkin_hat_heavy.mdl"
			}
			ItemAttributes
			{
				ItemName TF_WEAPON_FISTS
			//	"custom hit sound" "sandwicheat09_single.wav"
				"custom kill icon" "ham_shank"
			}
			CharacterAttributes
			{
				"damage penalty" 0.33
				"move speed penalty" 0.65
				"override footstep sound set" 9
				"voice pitch scale" 0.8
				"SET BONUS: Special dsp" 30
			}
			
		}
		
///////////////
//// Other ////
///////////////
		enemy_flying_skull
		{
			SpawnTemplate "stats_base"
			SpawnTemplate "robot_flying_skull"
			
			ClassIcon enemy
			
			Name "Unflaming Skull"
			Class Pyro
			Skill Easy
			Health 125
			Scale 1.5
			
			AlwaysGlow 1
			UseMeleeThreatPrioritization 1
			Attributes DisableDodge
			Attributes Aggressive
			StripItemSlot 0
			StripItemSlot 1
			UseHumanModel 2
			SuppressTimedFetchFlag 1
			NoIdleSound 1
			
			WeaponRestrictions MeleeOnly
		//	Item "Wandering Wraith"
		//	UseCustomModel "models/berserker_monsters/bighead_legs/heavy_legs.mdl"
			
			ItemAttributes
			{
				ItemName "Wandering Wraith"
				"attach particle effect" 13
		//		"custom item model" "models/berserker_monsters/bighead_mannvich/hwn2020_mannvich.mdl"
			}
			CharacterAttributes
			{
				"damage penalty" 0.2
				"head scale" 2.5
				"not solid to players" 1
				"voice pitch scale" 0.8
			}
			AddCond { Name TF_COND_SWIMMING_NO_EFFECTS }
			AddCond { Name TF_COND_STEALTHED_USER_BUFF_FADING }
		}
		
////////////////////
//// Skeletons /////
///////////////////
		monster_skeleton
		{
			SpawnTemplate "stats_base"
			SpawnTemplate "stats_skeleton"
			
			
			ClassIcon enemy
			
			Name "Skeleton"
			Class Sniper
			Skill Hard
			Health 110
			Scale 1.01
			
			UseMeleeThreatPrioritization 1
			Attributes Aggressive
			StripItemSlot 0
			StripItemSlot 1
			UseHumanModel 2
			SuppressTimedFetchFlag 1
			NoIdleSound 1
			
			WeaponRestrictions MeleeOnly
			Item "Upgradeable TF_WEAPON_FISTS"
			UseCustomModel "models/berserker_monsters/skeleton_sniper/skeleton_sniper.mdl"
			Skin 0
			
			ItemAttributes
			{
				ItemName "Upgradeable TF_WEAPON_FISTS"
				"custom kill icon" "spellbook_skeleton"
			}
			CharacterAttributes
			{
				"damage penalty" 0.15
				"move speed penalty" 0.93
				"melee attack rate bonus" 1.4
				"override footstep sound set" 9
				"SET BONUS: Special dsp" 30
			}
		}
		monster_skeleton_armor
		{
			SpawnTemplate "stats_base"
			SpawnTemplate "stats_skeleton"
			
			
			ClassIcon enemy
			
			Name "Skeleton Knight"
			Class Sniper
			Skill Hard
			Health 220
			Scale 1.01
			
			UseMeleeThreatPrioritization 1
			Attributes Aggressive
			StripItemSlot 0
			StripItemSlot 1
			UseHumanModel 2
			SuppressTimedFetchFlag 1
			NoIdleSound 1
			
			WeaponRestrictions MeleeOnly
			Item "Upgradeable TF_WEAPON_FISTS"
			UseCustomModel "models/berserker_monsters/skeleton_sniper/skeleton_sniper.mdl"
			Skin 0
			
			ItemAttributes
			{
				ItemName "Upgradeable TF_WEAPON_FISTS"
				"custom kill icon" "spellbook_skeleton"
			}
			CharacterAttributes
			{
				"damage penalty" 0.15
				"move speed penalty" 0.93
				"melee attack rate bonus" 1.4
				"override footstep sound set" 9
			}
		}
		monster_skeleton_armor_sword
		{
			SpawnTemplate "stats_base"
			SpawnTemplate "stats_skeleton"
			
			
			ClassIcon enemy
			
			Name "Skeleton with a sword"
			Class Demoman
			Skill Hard
			Health 110
			Scale 1.01
			
			UseMeleeThreatPrioritization 1
			Attributes Aggressive
			StripItemSlot 0
			StripItemSlot 1
			UseHumanModel 2
			SuppressTimedFetchFlag 1
			NoIdleSound 1
			
			WeaponRestrictions MeleeOnly
			Item "The Eyelander"
			UseCustomModel "models/berserker_monsters/skeleton_demo/skeleton_demo.mdl"
			Skin 0
			
			ItemAttributes
			{
				ItemName "The Eyelander"
				"max health additive penalty" 0
			}
			CharacterAttributes
			{
				"damage penalty" 0.35
				"melee attack rate bonus" 1.4
				"override footstep sound set" 9
			}
		}
		
//////////////
/// Trolls ///
/////////////
		monster_troll
		{
			SpawnTemplate "stats_base"
			SpawnTemplate "stats_skeleton"
			
			
			ClassIcon enemy
			
			Name "Skeleton"
			Class Scout
			Skill Hard
			Health 1000
			Scale 1.3
			
			UseMeleeThreatPrioritization 1
			Attributes Aggressive
			StripItemSlot 0
			StripItemSlot 1
			UseHumanModel 2
			SuppressTimedFetchFlag 1
			NoIdleSound 1
			
			WeaponRestrictions MeleeOnly
			Item "Upgradeable TF_WEAPON_FISTS"
			Skin 2
			
			ItemAttributes
			{
				ItemName "Upgradeable TF_WEAPON_FISTS"
			}
			CharacterAttributes
			{
				"damage penalty" 0.15
				"move speed penalty" 0.93
				"melee attack rate bonus" 1.4
				"override footstep sound set" 9
				"SET BONUS: Special dsp" 30
			}
			ChangeAttributes
			{
				Delay 0
				Cooldown 10
				IfHealthBelow 900 //When set, the task activates only when the bot health is below specified value
				Name "Enraged"
			}
			EventChangeAttributes
			{
				Normal
				{
					ItemAttributes               // turn off light hat
					{
						ItemName "MvM GateBot Light Engineer"
						"item style override" 0
						"torso scale" 10
					}
				}
				Enraged
				{
					ItemAttributes               // turn off light hat
					{
						ItemName "MvM GateBot Light Engineer"
						"item style override" 1
					}
					CharacterAttributes
					{
						"move speed bonus" 2
						"head scale" 10
					}
				}
			}
		}
		
		robot_attr_meleeonly
		{
			UseMeleeThreatPrioritization 1
			Attributes DisableDodge
			Attributes Aggressive
			StripItemSlot 0
			StripItemSlot 1
		}
	}
	
	PointTemplates
	{
		robot_vortex01_target
		{
			NoFixUp 1
			OnSpawnOutput
			{
				Target vortex01_spawn_location
				Action Teleport
			}
			OnSpawnOutput
			{
				Target spawnbot_vortex01
				Action Disable
			}
			OnSpawnOutput
			{
				Target vortex01_spawn_location
				Action Kill
				Delay 0.01
			}
		}
		robot_vortex02_target
		{
			NoFixUp 1
			OnSpawnOutput
			{
				Target vortex02_spawn_location
				Action Teleport
			}
			OnSpawnOutput
			{
				Target spawnbot_vortex02
				Action Disable
			}
			OnSpawnOutput
			{
				Target vortex02_spawn_location
				Action Kill
				Delay 0.01
			}
		}
		robot_vortex03_target
		{
			NoFixUp 1
			OnSpawnOutput
			{
				Target vortex03_spawn_location
				Action Teleport
			}
			OnSpawnOutput
			{
				Target spawnbot_vortex03
				Action Disable
			}
			OnSpawnOutput
			{
				Target vortex03_spawn_location
				Action Kill
				Delay 0.01
			}
		}
		robot_vortex01_boss_target
		{
			NoFixUp 1
			OnSpawnOutput
			{
				Target vortex01_boss_spawn_location
				Action Teleport
			}
			OnSpawnOutput
			{
				Target spawnbot_vortex01_boss
				Action Disable
			}
			OnSpawnOutput
			{
				Target vortex01_boss_spawn_location
				Action Kill
				Delay 0.01
			}
		}
		robot_vortex02_boss_target
		{
			NoFixUp 1
			OnSpawnOutput
			{
				Target vortex02_boss_spawn_location
				Action Teleport
			}
			OnSpawnOutput
			{
				Target spawnbot_vortex02_boss
				Action Disable
			}
			OnSpawnOutput
			{
				Target vortex02_boss_spawn_location
				Action Kill
				Delay 0.01
			}
		}
		robot_vortex03_boss_target
		{
			NoFixUp 1
			OnSpawnOutput
			{
				Target vortex03_boss_spawn_location
				Action Teleport
			}
			OnSpawnOutput
			{
				Target spawnbot_vortex03_boss
				Action Disable
			}
			OnSpawnOutput
			{
				Target vortex03_boss_spawn_location
				Action Kill
				Delay 0.01
			}
		}
		robot_flying_skull
		{
			OnSpawnOutput
			{
				Target "!activator"
				Action "$SetKey$rendermode"
				Param "10"
			}
			OnSpawnOutput
			{
				Target "flying_skull_brush"
				Action "SetParent"
				Param "!activator"
			}
			OnSpawnOutput
			{
				Target "flying_skull_brush"
				Action "SetParentAttachment"
				Param "bip_head"
				Delay 0.01
			}
			func_brush
			{
				"targetname" "flying_skull_brush"
				"maxs" "10 10 10"
				"mins" "-10 -10 -10"
				"solidity" "1"
			}
            logic_measure_movement 
            {
                "MeasureReference" "flying_skull_base"
                "MeasureTarget" "flying_skull_base"
                "MeasureType" "0"
                "Target" "flying_skull_brush"
                "TargetReference" "flying_skull_base"
                "TargetScale" "1"
            }
			base_boss
			{
				"targetname" "flying_skull_base"
				"health" "125"
				"max_health" "125"
				"teamnum" "3"
				"model" "models/workshop/player/items/pyro/hwn2021_wandering_wraith/hwn2021_wandering_wraith.mdl"
				"modelscale" "1.5"
				"renderamt" "255"
				"rendercolor" "255 255 255"
				"solid" "0"
			}
		}
	}
}