[Template AAGERBuildingPackableAirfield Template=AAGERBuildingPackable]
{
	[BodyComponent]
	health = 20000
	defense = 5

	[Flags]
	axis_locked = false

	[DenizenComponent]
	{
		guard_range = 90
		guard_operational_range = 100

		[DenizenGroup]
		{
			actor_ids = ger_bomber
			size = 1,1
			behavior = AIR_OFFENSIVE + AIR_RECON 
			
			[FormationPositions]
			offset = -9,+15,-2
			
			[FormationPositions]
			offset = +9,+15,-2
		}

		[DenizenGroup]
		{
			actor_ids = ger_bomber1
			size = 1,1
			behavior = AIR_DEFENSIVE + AIR_RECON
			
			[FormationPositions]
			offset = -9,+15,-2
			
			[FormationPositions]
			offset = +9,+15,-2
		}


		[Inventory]
		actor_ids = ger_bomber
		count = 12

		[Inventory]
		actor_ids = ger_bomber1
		count = 0


		[Runway]
		{
			hangar_offset = 2.85, 0, -.75
			hangar_orientation = 0, 1
			hangar_length = 2
			offset = 0, 5, -.75
			orientation = -1 ,0
			length = 4.8
			delay = 1
		}
		[AirAttackCost]
		money = 50
	
		[AirReconCost]
		money = 10
	}

	[DetectionComponent]
	{
		detection_range = 48
	}

	[EconomyComponent]
	{
		[Cost]
		money = 4

		[Upkeep]
		ammo = 10
		oil = 10
		money = 10
		building_limit_consumed = 1
	}

	[MobileDeploymentComponent]
	{
		packing_length = 8
		unpacking_length = 8
		pack_health_min = 1
	}

 	[PropertiesComponent]
	{
		[Property]
		property_IDS = airhq

		[Property]
		property_IDS = airfield

		[Property]
		property_IDS = economic_building
	}
/*
	[RecruitComponent]
	{		
		[RecruitActor]
		actor_ids = regiment_ger_paratrooper
	}
*/
	[ResearchComponent]
	{
		[ResearchItem]
		{
			property_IDS = tech_self_sealing_fuel_tanks
			type = GLOBAL
			research_time = 60
		
			[ResearchCost Template=CostList]
			{
				money = 10000
			}
		}
		
		[ResearchItem]
		{
			property_IDS = tech_air_superiority
			type = GLOBAL
			research_time = 60
		
			[ResearchCost Template=CostList]
			{
				money = 20000
			}
		}

		[ResearchItem]
		{
			property_IDS = tech_improved_recon
			type = GLOBAL
			research_time = 60
		
			[ResearchCost Template=CostList]
			{
				money = 1000
			}
		}
		
		[ResearchItem]
		{
			property_IDS = tech_superchargers
			type = GLOBAL
			research_time = 60
		
			[ResearchCost Template=CostList]
			{
				money = 1000
			}
		}
		
	}
	[Size]
	{
		blocking_shape = SQUARE
		square_size = 12
	}

	[View]
	{
		minimap_icon = /Minimap/Icons/IconAirfield.tga
		resource_prefix = GERAirfield/GERAirfield
		icon = /UI/Game/BuildingButtons/IconAirfield.png
		
		[TextureSearchPath]
		path = /Units/GER/GERFighter
		
		[WhenConstructed Template=FXC_CreateVFX]
		{
			vfx_ids = ground_airfield_dirt
			terrain_group_filter = dirt
		}
		
		[WhenConstructed Template=FXC_CreateVFX]
		{
			vfx_ids = ground_airfield_snow
			terrain_group_filter = snow
		}
		
		[WhenConstructed Template=FXC_CreateVFX]
		{
			vfx_ids = ground_airfield_desert
			terrain_group_filter = desert
		}

		[WhenSelected Template=FXC_PlaySFX]
		audio_ids = airfield_select

		[WhenCommanded Template=FXC_PlaySFX]
		audio_ids = air_attack

		[WhenCommandedAggressive Template=FXC_PlaySFX]
		audio_ids = air_attack
		
		;;------ Lights --------------------
		
		[WhenConstructed Template=FXC_CreateVFX]
		{
			vfx_ids = blinking_light01
			location = spotlight_ae_01
			attached = true
		}
		
		[WhenConstructed Template=FXC_CreateVFX]
		{
			vfx_ids = window_tiny
			location = window_01
			attached = true
		}
		
		[WhenConstructed Template=FXC_CreateVFX]
		{
			vfx_ids = window_tiny
			location = window_02
			attached = true
		}
		
		[WhenConstructed Template=FXC_CreateVFX]
		{
			vfx_ids = window_tiny
			location = window_03
			attached = true
		}
		
		[WhenConstructed Template=FXC_CreateVFX]
		{
			vfx_ids = window_tiny
			location = window_04
			attached = true
		}
		
		[WhenConstructed Template=FXC_CreateVFX]
		{
			vfx_ids = window_tiny
			location = window_05
			attached = true
		}
		
		[WhenConstructed Template=FXC_CreateVFX]
		{
			vfx_ids = window_tiny
			location = window_06
			attached = true
		}
		
		[WhenConstructed Template=FXC_CreateVFX]
		{
			vfx_ids = window_tiny
			location = window_07
			attached = true
		}
		
		[WhenConstructed Template=FXC_CreateVFX]
		{
			vfx_ids = window_tiny
			location = window_08
			attached = true
		}
	}

	[WhenEnter Template=FXC_PlaySFX]
	{
		actor_state = structure_packing
		audio_ids = pack_7s_sfx
	}
	
	[WhenEnter Template=FXC_PlaySFX]
	{
		actor_state = structure_unpacking
		audio_ids = unpack_7s_sfx
	}

	[WhenLeave Template=FXC_PlaySFX]
	{
		actor_state = structure_unpacking
		audio_ids = airfield_complete
	}
}

[Thing Template=AAGERBuildingPackableAirfield]
{
	IDS = ger_airfield
	name = "#ger_airfield_Thing_name"
	editor_name = "#ger_airfield_Thing_editor_name"

	hide_if_missing_properties = false
	
	[EconomyComponent]
}

/*
;; brw090704 - Removed these, not needed for the Dynamic Campaign
[Thing Template=AAGERBuildingPackableAirfield]
{
	IDS = ger_airfield_dynamic
	name = "#ger_airfield_dynamic_name"
	editor_name = "#ger_airfield_dynamic_editor_name"

	[EconomyComponent]
	
	[Placement]
	placement_group_ids = null
}
*/