#base robot_giant.pop
#base robot_standard.pop
#base robot_officialtemplatefix_b855.pop
seggs
{
	LuaScriptFile "scripts/reprogram_sapper.lua"
	WaveStartCountdown 0
	DisplayRobotDeathNotice 1
	CustomWeapon
	{
		Name "Update Tool"
		OriginalItemName "the ap-sap"
		"throwable damage" 1 //attribute repurposed for reprogramming
		"cannot be upgraded" 1
		"effect bar recharge rate increased" 0.4
		"sapper damage penalty" 0
		"sapper voice pak" 0 //fuck off buddy
	}
	PlayerAttributes
	{
		"ignored by bots" 1
//		"dmg taken increased" 0
	}
	ExtraLoadoutItems
	{
		Spy
		{
			Building "Update Tool"
		}
	}
	PointTemplates
	{
		thingus
		{
			logic_relay
			{
				"targetname" "loop"
				"onspawn" "!self,trigger,0,0.1,-1"
				"ontrigger" "!self,trigger,0,0.1,-1"
				"spawnflags" "2"
			}
		}
	}
	Wave
	{
		InitWaveOutput
		{
			Target wave_init_gate_relay
			Action Trigger
		}
		StartWaveOutput
		{
			Target wave_start_relay
			Action Trigger
		}
		DoneOutput
		{
			Target wave_finished_relay
			Action Trigger
		}
		WaveSpawn
		{
			Name bot1
			Where spawnbot
			TotalCount 12
			WaitBetweenSpawns 4
			SpawnCount 3
			MaxActive 9
			TFBot
			{
				Class Heavyweapons
				Item "tomislav"
				Skill Expert
			}
		}
		WaveSpawn
		{
			Name bot2
			Where spawnbot
			TotalCount 12
			WaitForAllDead bot1
			WaitBetweenSpawns 4
			SpawnCount 2
			MaxActive 8
			Squad
			{
				TFBot
				{
					Class Soldier
					Skill Expert
				}
				TFBot
				{
					Template T_TFBot_Medic
					FastUpdate 1
				}
			}
		}
		WaveSpawn
		{
			HideIcon 1
			Where spawnbot
			TotalCount 1
			SpawnCount 1
			MaxActive 1
			WaitBeforeStarting 99999
			TFBot {Class Scout	ClassIcon scout_d}
		}
	}
}