# AI plane design for testing

generic_fighter = {
	category = air

	blocked_for = {EMP USA RUS}

	available_for = {}

	roles = {
		air_cas
		air_fighter
	}

	priority = {
		factor = 1000
		modifier = {
			has_War = yes
			factor = 2
		}
	}

	great_war_fighter_default = {
		priority = {
			factor = 1
			modifier = { 
				has_tech = basic_small_airframe
				factor = 0 #let's not waste XP here
			}
		}

		#history = yes
		
		target_variant = {
			match_value = 1000
			type = small_plane_airframe_0
			modules = {
				fixed_wing_slot = biplane_wing
				fixed_radar_slot = empty
				fixed_aux_prop_slot = empty
				fixed_optics_slot = empty
				fixed_engine_mod_slot = empty
				fixed_fuel_type_slot = empty
				fixed_main_weapon_slot = light_mg_2x
				fixed_auxiliary_weapon_slot_1 = empty
				engine_type_slot = engine_1_1x
				special_type_slot_1 = empty
				special_type_slot_2 = empty	
			}
		}

		allowed_modules = {
			engine_1_1x
			light_mg_2x
			light_mg_4x
		}
	}

	basic_fighter_default = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = improved_small_airframe
				factor = 0 #let's not waste XP here
			}
		}

		#name = "P-40E-1 Warhawk"
		#history = yes		
		#override_sprite="GFX_generic_LAMP_p_40e_1"
		target_variant = {
			match_value = 2000
			type = small_plane_airframe_1
			modules = {
				fixed_wing_slot = straight_wing
				#fixed_radar_slot = empty
				#fixed_aux_prop_slot = empty
				fixed_optics_slot = reflex_gunsight
				#fixed_engine_mod_slot = empty
				##fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = {
					any_of = { 
						heavy_mg_2_4x 
						heavy_mg_4x 
						light_mg_4x
					}
				}	
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						heavy_mg_2_2x 
						heavy_mg_2x 
						light_mg_2x
					}
				}	
				fixed_auxiliary_weapon_slot_2 = bomb_locks
				engine_type_slot = engine_2_1x
				#special_type_slot_1 = empty
				#special_type_slot_2 = empty	
			}
		}

		allowed_modules = {
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			engine_2_1x
			armor_plate_small
			straight_wing	
			bomb_locks			
			high_octane_fuel
		}
	}

	improved_fighter_default = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_small_airframe 
				factor = 0 #let's not waste XP here
			}
		}

		#history = yes		
		##override_sprite="GFX_generic_CAS1_medium"
		target_variant = {
			match_value = 3000
			type = small_plane_airframe_2
			modules = {
				fixed_wing_slot = semielliptical_wing
				fixed_radar_slot = empty
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = {
					any_of = { 
						reflex_gunsight 
						gyro_gunsight 
					}
				}	
				fixed_engine_mod_slot = turbocharger
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = heavy_mg_4x 
				fixed_auxiliary_weapon_slot_1 =	heavy_mg_4x 
				fixed_auxiliary_weapon_slot_2 = { any_of = { bomb_locks heavy_bomb_locks } }
				fixed_auxiliary_weapon_slot_3 = drop_tanks
				engine_type_slot = radial_engine_3_1x
				special_type_slot_1 = armor_plate_small
				#special_type_slot_2 = self_sealing_fuel_tanks_small
			}
		}

		allowed_modules = {
			heavy_mg_4x
			heavy_mg_2x
			aircraft_cannon_1_2x
			radial_engine_3_1x
			engine_3_1x
			turbocharger
			supercharger
			semielliptical_wing
			straight_wing
			bomb_locks
			gyro_gunsight
			reflex_gunsight
			injection_system
			high_octane_fuel 
			drop_tanks
			armor_plate_small
			fuel_tanks_small
			self_sealing_fuel_tanks_small
			high_octane_fuel
		}
	}

	improved_fighter_default_2 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = aa_hmg_2 
				add = 20 #let's not waste XP here
			}
			modifier = { 
				has_tech = modern_small_airframe 
				factor = 0 #let's not waste XP here
			}
		}
		
		name="P-47D-25 Thunderbolt"
		#history = yes		
		#override_sprite="GFX_generic_LAMP_p_47d_25"
		target_variant = {
			match_value = 3500
			type = small_plane_airframe_2
			modules = {
				fixed_wing_slot = semielliptical_wing
				fixed_radar_slot = empty
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = {
					any_of = { 
						reflex_gunsight 
						gyro_gunsight 
					}
				}	
				fixed_engine_mod_slot = turbocharger
				#fixed_fuel_type_slot = high_octane_fuel				
				fixed_main_weapon_slot = {
					any_of = { 
						heavy_mg_2_4x 
						heavy_mg_4x 
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						heavy_mg_2_4x 
						heavy_mg_4x 
					}
				}
				fixed_auxiliary_weapon_slot_2 = { any_of = { bomb_locks heavy_bomb_locks } }
				fixed_auxiliary_weapon_slot_3 = drop_tanks
				engine_type_slot = radial_engine_4_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = self_sealing_fuel_tanks_small
				#special_type_slot_3 = armor_plate_small
			}
		}

		allowed_modules = {
			heavy_mg_4x
			heavy_mg_2x
			aircraft_cannon_1_2x
			radial_engine_3_1x
			engine_3_1x
			turbocharger
			supercharger
			semielliptical_wing
			straight_wing
			bomb_locks
			gyro_gunsight
			reflex_gunsight
			injection_system
			high_octane_fuel 
			drop_tanks
			armor_plate_small
			fuel_tanks_small
			self_sealing_fuel_tanks_small
			high_octane_fuel
		}
	}

	advanced_fighter_default = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe 
				factor = 0 #let's not waste XP here
			}
		}
		
		name="P-51A Mustang"
		#history = yes		
		#override_sprite="GFX_generic_LAMP_p_51a"
				
		target_variant = {
			match_value = 3600
			type = small_plane_airframe_3
			modules = {
				fixed_wing_slot = laminar_flow_straight_wing
				fixed_radar_slot = empty
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = {
					any_of = { 
						reflex_gunsight 
						gyro_gunsight 
					}
				}	
				fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = high_octane_fuel 
				fixed_main_weapon_slot = heavy_mg_4x 
				fixed_auxiliary_weapon_slot_1 = { any_of = { bomb_locks heavy_bomb_locks } }
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_auxiliary_weapon_slot_3 = rocket_rails
				engine_type_slot = engine_3_1x
				special_type_slot_1 = fuel_tanks_small
				special_type_slot_2 = pressurized_cabin_small		
			}
		}

		allowed_modules = {
			engine_4_1x		
			rocket_rails
			heavy_mg_4x
			heavy_mg_2x
			aircraft_cannon_1_2x
			engine_3_1x
			turbocharger
			supercharger
			semielliptical_wing
			straight_wing
			bomb_locks
			gyro_gunsight
			reflex_gunsight
			injection_system
			high_octane_fuel 
			drop_tanks
			armor_plate_small
			fuel_tanks_small
			self_sealing_fuel_tanks_small
			laminar_flow_straight_wing
			high_octane_fuel
		}
	}

	advanced_fighter_default_2 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = engines_4 
				add = 20 #let's not waste XP here
			}
			modifier = { 
				has_tech = modern_small_airframe 
				factor = 0 #let's not waste XP here
			}
		}
		
		name="P-51D Mustang"
		#history = yes		
		#override_sprite="GFX_generic_LAMP_p_51d"
		
		target_variant = {
			match_value = 4000
			type = small_plane_airframe_3
			modules = {
				fixed_wing_slot = laminar_flow_straight_wing
				fixed_radar_slot = empty
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = {
					any_of = { 
						reflex_gunsight 
						gyro_gunsight 
					}
				}	
				fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = high_octane_fuel 
				fixed_main_weapon_slot = heavy_mg_4x 
				fixed_auxiliary_weapon_slot_1 =	heavy_mg_2x
				fixed_auxiliary_weapon_slot_2 = { any_of = { bomb_locks heavy_bomb_locks } }
				fixed_auxiliary_weapon_slot_3 = drop_tanks
				fixed_auxiliary_weapon_slot_4 = rocket_rails
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = engine_4_1x
				special_type_slot_1 = fuel_tanks_small
				special_type_slot_2 = pressurized_cabin_small		
			}
		}

		allowed_modules = {
			engine_4_1x		
			rocket_rails
			heavy_mg_4x
			heavy_mg_2x
			aircraft_cannon_1_2x
			engine_3_1x
			turbocharger
			supercharger
			semielliptical_wing
			straight_wing
			bomb_locks
			gyro_gunsight
			reflex_gunsight
			injection_system
			high_octane_fuel 
			drop_tanks
			armor_plate_small
			fuel_tanks_small
			self_sealing_fuel_tanks_small
			laminar_flow_straight_wing
			high_octane_fuel
		}
	}

	advanced_fighter_default_3 = {
		priority = {
			factor = 100
			modifier = { 
				is_special_project_completed = sp:sp_air_axial_jet_engine 
				add = 30 #let's not waste XP here
			}
			modifier = { 
				has_tech = modern_small_airframe 
				factor = 0 #let's not waste XP here
			}
		}
		
		name="P-59 Airacomet"
		#history = yes	
		
		#override_sprite="GFX_generic_LAMP_p_59"
		
		target_variant = {
			match_value = 3900
			type = small_plane_airframe_3
			modules = {
				fixed_wing_slot = straight_wing
				fixed_radar_slot = empty
				#fixed_aux_prop_slot = injection_system
				fixed_optics_slot = {
					any_of = { 
						reflex_gunsight 
						gyro_gunsight 
					}
				}	
				#fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = high_octane_fuel 
				fixed_main_weapon_slot = heavy_mg_4x 
				fixed_auxiliary_weapon_slot_1 =	aircraft_cannon_3_1x
				#fixed_auxiliary_weapon_slot_2 = drop_tanks
				#fixed_auxiliary_weapon_slot_3 = drop_tanks
				#fixed_auxiliary_weapon_slot_4 = rocket_rails
				engine_type_slot = jet_engine_2x
				#special_type_slot_1 = fuel_tanks_small
				special_type_slot_2 = pressurized_cabin_small		
			}
		}

		allowed_modules = {
			engine_4_1x		
			rocket_rails
			heavy_mg_4x
			heavy_mg_2x
			aircraft_cannon_1_2x
			engine_3_1x
			turbocharger
			supercharger
			semielliptical_wing
			straight_wing
			bomb_locks
			gyro_gunsight
			reflex_gunsight
			injection_system
			high_octane_fuel 
			drop_tanks
			armor_plate_small
			fuel_tanks_small
			self_sealing_fuel_tanks_small
			laminar_flow_straight_wing
			high_octane_fuel
		}
	}

	# advanced_fighter_default_02 = {
	
		# #name = "P-47D Thunderbolt"
		
		# priority = {
			# factor = 100
		# }

		# target_variant = {
			# match_value = 3000
			# type = small_plane_airframe_3
			# modules = {
				# fixed_wing_slot = semielliptical_wing
				# fixed_radar_slot = empty
				# fixed_aux_prop_slot = injection_system
				# fixed_optics_slot = {
					# any_of = { 
						# gyro_gunsight 
						# reflex_gunsight 
					# }
				# }
				# fixed_engine_mod_slot = turbocharger
				# fixed_fuel_type_slot = empty
				# fixed_main_weapon_slot = heavy_mg_4x
				# fixed_auxiliary_weapon_slot_1 = heavy_mg_4x
				# fixed_auxiliary_weapon_slot_2 = bomb_locks
				# fixed_auxiliary_weapon_slot_3 = empty
				# engine_type_slot = radial_engine_4_1x
				# special_type_slot_1 = armor_plate_small
				# special_type_slot_2 = armor_plate_small	
				# special_type_slot_3 = fuel_tanks_small
			# }
		# }

		# allowed_modules = { 
			# heavy_mg_4x
			# heavy_mg_2x
			# aircraft_cannon_1_2x
			# radial_engine_4_1x
			# engine_4_1x
			# turbocharger
			# supercharger
			# reflex_gunsight
			# semielliptical_wing
			# straight_wing
			# laminar_flow_straight_wing
			# plane_optics
			# bomb_locks
			# rocket_rails
		# }
	# }
	
	jet_fighter_default = {
	 
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe_2 
				factor = 0 #let's not waste XP here
			}
		}
	
		#name = "P-80A Shooting Star"
		#history = yes			
		#override_sprite="GFX_generic_LAMP_f_80a"
		
		target_variant = {
			match_value = 4000
			type = small_plane_airframe_4
			modules = {
				fixed_wing_slot = laminar_flow_straight_wing
				fixed_radar_slot = empty
				fixed_aux_prop_slot = empty
				fixed_optics_slot = gyro_gunsight 
				fixed_engine_mod_slot = empty
				##fixed_fuel_type_slot = high_octane_fuel 
				fixed_main_weapon_slot = heavy_mg_2x 
				fixed_auxiliary_weapon_slot_1 = heavy_mg_4x 
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				#fixed_auxiliary_weapon_slot_3 = { any_of = { bomb_locks heavy_bomb_locks } }
				#fixed_auxiliary_weapon_slot_4 = imp_rocket_rails
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = jet_engine_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = pressurized_cabin_small	
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			high_octane_fuel
			gyro_gunsight
			jet_engine_2x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			g_suit_type
			imp_rocket_rails
			jet_engine_1x
			high_octane_fuel
			self_sealing_fuel_tanks_small
		}
	}
	
	jet_fighter_default_b = {
		
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe_2 
				factor = 0 #let's not waste XP here
			}
		}

		#name = "P-80C Shooting Star"
		#history = yes			
		#override_sprite="GFX_generic_LAMP_f_80c"
		
		target_variant = {
			match_value = 4500
			type = small_plane_airframe_4
			modules = {
				fixed_wing_slot = laminar_flow_straight_wing
				fixed_radar_slot = empty
				fixed_aux_prop_slot = empty
				fixed_optics_slot = gyro_gunsight 
				fixed_engine_mod_slot = empty
				#fixed_fuel_type_slot = high_octane_fuel 
				fixed_main_weapon_slot = heavy_mg_2_4x 						 
				fixed_auxiliary_weapon_slot_1 = heavy_mg_2_2x 
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_auxiliary_weapon_slot_3 = { any_of = { bomb_locks heavy_bomb_locks } }
				fixed_auxiliary_weapon_slot_4 = imp_rocket_rails
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = jet_engine_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = pressurized_cabin_small	
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			high_octane_fuel
			gyro_gunsight
			jet_engine_2x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			g_suit_type
			imp_rocket_rails
			jet_engine_1x
			high_octane_fuel
			self_sealing_fuel_tanks_small
		}
	}
	
	jet_fighter_default_02 = {
	
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe_3 
				factor = 0 #let's not waste XP here
			}
		}

		#name = "F-86A Sabre"
		#history = yes			
		#override_sprite="GFX_generic_LAMP_f_86a"

		target_variant = {
			match_value = 5000
			type = small_plane_airframe_5
			modules = {
				fixed_wing_slot = swept_wing
				fixed_radar_slot = empty				
				fixed_aux_prop_slot = empty
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = empty
				#fixed_fuel_type_slot = high_octane_fuel 
				fixed_main_weapon_slot = {
					any_of = { 
						heavy_mg_2_4x 
						heavy_mg_4x 
					}
				}	
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						heavy_mg_2_2x 
						heavy_mg_2x 
					}
				}	
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_auxiliary_weapon_slot_3 = empty
				fixed_auxiliary_weapon_slot_4 = empty
				fixed_electronics_slot = basic_radar_warning_system
				engine_type_slot = jet_engine_2_1x
				special_type_slot_1 = pressurized_cabin_small
				#special_type_slot_2 = pressurized_cabin_small
				#special_type_slot_3 = g_suit_1		
			}
		}
	

		allowed_modules = { 
			air_air_radar_3
			air_air_radar_2
			air_air_radar_1
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			jet_engine_2_1x
			jet_engine_2x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			g_suit_type
			high_octane_fuel
			self_sealing_fuel_tanks_small
			gyro_gunsight
			imp_bomb_locks
			imp_rocket_rails
		}
	}
	
	# jet_fighter_default_02_b = {
	
		# priority = {
			# factor = 100
			# modifier = { 
				# has_tech = modern_small_airframe_3 
				# factor = 0 #let's not waste XP here
			# }
		# }

		# #name = "F-86D Sabre Dog"
		# #history = yes			
		# #override_sprite="GFX_generic_LAMP_f_86d"

		# target_variant = {
			# match_value = 5500
			# type = small_plane_airframe_5
			# modules = {
				# fixed_wing_slot = swept_wing
				# fixed_radar_slot = {
					# any_of = {
						# air_air_radar_3
						# air_air_radar_2
						# air_air_radar_1
					# }
				# }
				# fixed_aux_prop_slot = empty
				# fixed_optics_slot = {
					# any_of = { 
						# gyro_gunsight 
						# reflex_gunsight 
					# }
				# }
				# fixed_engine_mod_slot = empty
				# #fixed_fuel_type_slot = high_octane_fuel 
				# fixed_main_weapon_slot = {
					# any_of = { 
						# aa_rocket_pods 
						# aa_rocket_rails 
					# }
				# }	
				# fixed_auxiliary_weapon_slot_1 = drop_tanks
				# # fixed_auxiliary_weapon_slot_2 = empty
				# # fixed_auxiliary_weapon_slot_3 = empty
				# # fixed_auxiliary_weapon_slot_4 = empty
				# engine_type_slot = jet_engine_2_1x
				# special_type_slot_1 = armor_plate_small
				# special_type_slot_2 = g_suit_1	
				# special_type_slot_3 = pressurized_cabin_small	
			# }
		# }

		# allowed_modules = { 
			# air_air_radar_3
			# air_air_radar_2
			# air_air_radar_1
			# aircraft_cannon_2_2x
			# aircraft_cannon_1_2x
			# jet_engine_2_1x
			# jet_engine_2x
			# armor_plate_small
			# straight_wing
			# plane_optics
			# reflex_gunsight
			# heavy_mg_4x
			# heavy_mg_2x
			# drop_tanks
			# bomb_locks
			# rocket_rails
			# g_suit_type
			# high_octane_fuel
			# self_sealing_fuel_tanks_small
			# gyro_gunsight
			# imp_bomb_locks
			# imp_rocket_rails
			# aa_rocket_pods 
			# aa_rocket_rails
		# }
	# }
	
	jet_fighter_default_02_c = {
	
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe_3 
				factor = 0 #let's not waste XP here
			}
		}

		#name = "F-86F Sabre"
		#history = yes			
		#override_sprite="GFX_generic_LAMP_f_86f"

		target_variant = {
			match_value = 5500
			type = small_plane_airframe_5
			modules = {
				fixed_wing_slot = swept_wing
				#fixed_radar_slot = empty
				fixed_aux_prop_slot = empty
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = empty
				#fixed_fuel_type_slot = high_octane_fuel 
				fixed_main_weapon_slot = {
					any_of = { 
						heavy_mg_2_2x 
						heavy_mg_2x 
					}
				}	
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						heavy_mg_2_4x 
						heavy_mg_4x 
					}
				}
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_auxiliary_weapon_slot_3 = { any_of = { bomb_locks heavy_bomb_locks } }
				# fixed_auxiliary_weapon_slot_4 = empty
				fixed_electronics_slot = basic_radar_warning_system
				engine_type_slot = jet_engine_2_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = g_suit_1	
				special_type_slot_3 = pressurized_cabin_small	
			}
		}

		allowed_modules = { 
			air_air_radar_3
			air_air_radar_2
			air_air_radar_1
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			jet_engine_2_1x
			jet_engine_2x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			g_suit_type
			high_octane_fuel
			self_sealing_fuel_tanks_small
			gyro_gunsight
			imp_bomb_locks
			imp_rocket_rails
			aa_rocket_pods 
			aa_rocket_rails
		}
	}
	
	jet_fighter_default_03 = {
	
		#name = "F-100A Super Sabre"
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe_4 
				factor = 0 #let's not waste XP here
			}
		}
		#history = yes			
		#override_sprite="GFX_generic_LAMP_f_100a"

		target_variant = {
			match_value = 6000
			type = small_plane_airframe_6
			modules = {
				fixed_wing_slot = swept_wing
				fixed_radar_slot = empty
				fixed_aux_prop_slot = empty
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = afterburner
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						heavy_mg_2_2x
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						heavy_mg_2_2x
					}
				}
				# fixed_auxiliary_weapon_slot_2 = { 
					# any_of = { 
						# imp_bomb_locks
						# rocket_pod_module
						# anti_tank_missile_module
					# }
				# }
				# fixed_auxiliary_weapon_slot_3 = {
					# any_of = { 
						# rocket_pod_module
						# imp_bomb_locks
						# anti_tank_missile_module
					# }
				# }				
				#fixed_auxiliary_weapon_slot_4 = drop_tanks
				fixed_electronics_slot = basic_radar_warning_system
				engine_type_slot = second_gen_jet_engine_1x
				special_type_slot_1 = g_suit_type
				special_type_slot_2 = pressurized_cabin_small	
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			aircraft_cannon_3_2x
			aircraft_cannon_4_2x
			second_gen_jet_engine_1x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			plane_special_module_air_air_radar
			g_suit_type
			cas_weapon
			air_air_ir_missile_1_module
			air_air_ir_missile_2_module
			self_sealing_fuel_tanks_small
			g_suit_1
			g_suit_2
			gyro_gunsight
			afterburner
			imp_bomb_locks
			rocket_pod_module
			anti_tank_missile_module
			high_octane_fuel
		}
	}
	
	jet_fighter_default_03_b = {
	
		#name = "F-100C Super Sabre"
		priority = {
			factor = 120
			modifier = { 
				has_tech = modern_small_airframe_4 
				factor = 0 #let's not waste XP here
			}
		}
		#history = yes			
		#override_sprite="GFX_generic_LAMP_f_100c"

		target_variant = {
			match_value = 6200
			type = small_plane_airframe_6
			modules = {
				fixed_wing_slot = swept_wing
				fixed_radar_slot = empty
				fixed_aux_prop_slot = empty
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = afterburner
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						heavy_mg_2_2x
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						heavy_mg_2_2x
					}
				}
				fixed_auxiliary_weapon_slot_2 = { 
					any_of = { 
						imp_bomb_locks
						rocket_pod_module
						anti_tank_missile_module
					}
				}
				fixed_auxiliary_weapon_slot_3 = {
					any_of = { 
						rocket_pod_module
						imp_bomb_locks
						anti_tank_missile_module
					}
				}				
				fixed_auxiliary_weapon_slot_4 = drop_tanks
				fixed_electronics_slot = basic_radar_warning_system
				engine_type_slot = second_gen_jet_engine_1x
				special_type_slot_1 = g_suit_type
				special_type_slot_2 = pressurized_cabin_small	
				special_type_slot_3 = fuel_tanks_small	
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			aircraft_cannon_3_2x
			aircraft_cannon_4_2x
			second_gen_jet_engine_1x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			plane_special_module_air_air_radar
			g_suit_type
			cas_weapon
			air_air_ir_missile_1_module
			air_air_ir_missile_2_module
			self_sealing_fuel_tanks_small
			g_suit_1
			g_suit_2
			gyro_gunsight
			afterburner
			imp_bomb_locks
			rocket_pod_module
			anti_tank_missile_module
			high_octane_fuel
		}
	}
	
	jet_fighter_default_03_c = {
	
		#name = "F-100D Super Sabre"
		priority = {
			factor = 120
			modifier = { 
				has_tech = modern_small_airframe_4 
				factor = 0 #let's not waste XP here
			}
		}
		#history = yes			
		#override_sprite="GFX_generic_LAMP_f_100d"

		target_variant = {
			match_value = 6200
			type = small_plane_airframe_6
			modules = {
				fixed_wing_slot = swept_wing
				fixed_radar_slot = empty
				fixed_aux_prop_slot = empty
				fixed_optics_slot = toss_computer
				fixed_engine_mod_slot = afterburner
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						heavy_mg_2_2x
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						heavy_mg_2_2x
					}
				}
				fixed_auxiliary_weapon_slot_2 = { 
					any_of = { 
						imp_bomb_locks
						rocket_pod_module
						anti_tank_missile_module
					}
				}
				fixed_auxiliary_weapon_slot_3 = {
					any_of = { 
						rocket_pod_module
						imp_bomb_locks
						anti_tank_missile_module
					}
				}				
				fixed_auxiliary_weapon_slot_4 = drop_tanks
				fixed_electronics_slot = basic_radar_warning_system
				engine_type_slot = second_gen_jet_engine_1x
				special_type_slot_1 = g_suit_type
				special_type_slot_2 = pressurized_cabin_small	
				special_type_slot_3 = fuel_tanks_small	
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			aircraft_cannon_3_2x
			aircraft_cannon_4_2x
			second_gen_jet_engine_1x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			plane_special_module_air_air_radar
			g_suit_type
			cas_weapon
			air_air_ir_missile_1_module
			air_air_ir_missile_2_module
			self_sealing_fuel_tanks_small
			g_suit_1
			g_suit_2
			gyro_gunsight
			afterburner
			imp_bomb_locks
			rocket_pod_module
			anti_tank_missile_module
			high_octane_fuel
		}
	}
	
	jet_fighter_default_04 = {
	
		#name = "F-101 Voodoo"
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe_5 
				factor = 0 #let's not waste XP here
			}
		}

		#history = yes			
		target_variant = {
			match_value = 7000
			type = small_plane_airframe_7
			modules = {
				fixed_wing_slot = swept_wing
				fixed_radar_slot = { any_of = { air_air_radar_6 air_air_radar_5 air_air_radar_4 air_air_radar_3 } }
				fixed_aux_prop_slot = empty
				fixed_optics_slot = {
					any_of = { 
						hud_module
						gyro_gunsight 						
					}
				}
				fixed_engine_mod_slot = afterburner
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = {
					any_of = { 
						air_air_missile_2_module 
						air_air_missile_3_module 
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						air_air_missile_2_module 
						air_air_missile_3_module 
					}
				}
				fixed_auxiliary_weapon_slot_2 = drop_tanks				
				fixed_auxiliary_weapon_slot_3 = empty	
				fixed_auxiliary_weapon_slot_4 = empty
				fixed_electronics_slot = improved_radar_warning_system
				engine_type_slot = second_gen_jet_engine_2x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = g_suit_type	
				special_type_slot_3 = pressurized_cabin_small	
				special_type_slot_4 = empty	
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			aircraft_cannon_3_2x
			aircraft_cannon_4_2x
			air_air_radar_5
			air_air_radar_4
			air_air_radar_3
			air_air_radar_2
			air_air_radar_1
			jet_engine_2x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			plane_special_module_air_air_radar
			g_suit_type
			hud_module
			gyro_gunsight
			afterburner
			swept_wing
			second_gen_jet_engine_2x
			self_sealing_fuel_tanks_small
			air_air_missile_3_module
			air_air_missile_2_module
			air_air_missile_1_module
			high_octane_fuel
		}
	}
	
	jet_fighter_default_05 = {
	
		#name = "F-4 Phantom II"
		priority = {
			factor = 100
		}
		
		#history = yes			

		target_variant = {
			match_value = 8000
			type = small_plane_airframe_8
			modules = {
				fixed_wing_slot = tailed_delta_wing
				fixed_radar_slot = { any_of = { air_air_radar_6 air_air_radar_5 air_air_radar_4 air_air_radar_3 } }
				fixed_optics_slot = {
					any_of = { 
						hud_module
						gyro_gunsight 						
					}
				}
				fixed_engine_mod_slot = afterburner
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = {
					any_of = { 
						aircraft_cannon_5_1x 
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						imp_bomb_locks
						rocket_pod_module
						air_air_ir_missile_1_module
						air_air_ir_missile_2_module
					}
				}
				fixed_auxiliary_weapon_slot_2 = {
					any_of = { 
						rocket_pod_module
						imp_bomb_locks						
						air_air_ir_missile_1_module
						air_air_ir_missile_2_module
					}
				}
				fixed_auxiliary_weapon_slot_3 = {
					any_of = { 
						imp_bomb_locks
						rocket_pod_module
						imp_bomb_locks					
					}
				}
				fixed_auxiliary_weapon_slot_4 = {
					any_of = { 				
						air_air_ir_missile_1_module
						air_air_ir_missile_2_module
					}
				}
				fixed_electronics_slot = improved_radar_warning_system
				engine_type_slot = third_gen_jet_engine_2x
				special_type_slot_1 = g_suit_type
				special_type_slot_2 = armor_plate_small	
				special_type_slot_3 = pressurized_cabin_small	
			}
		}

		allowed_modules = { 
			aircraft_cannon_5_1x
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			aircraft_cannon_3_2x
			aircraft_cannon_4_2x
			aircraft_cannon_4_1x
			air_air_radar_6
			air_air_radar_5
			air_air_radar_4
			air_air_radar_3
			air_air_radar_2
			air_air_radar_1
			self_sealing_fuel_tanks_small
			imp_bomb_locks
			rocket_pod_module
			hud_module
			gyro_gunsight
			jet_engine_2x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			plane_special_module_air_air_radar
			g_suit_type
			tailed_delta_wing
			third_gen_jet_engine_2x
			air_air_missile_2_module
			air_air_missile_1_module
			air_air_ir_missile_1_module
			air_air_ir_missile_2_module
			high_octane_fuel
		}
	}
}

generic_interceptor = {
	category = air

	blocked_for = {EMP USA RUS}

	available_for = {}

	roles = {
		air_fighter
	}

	priority = {
		factor = 1000
		modifier = {
			has_war = yes
			factor = 2
		}
		modifier = {
			factor = 1.5
			has_war = yes
			any_other_country = {	
				is_in_array = {
					array = potential_and_current_enemies
					value = USA  # Target country
				}
				has_deployed_air_force_size = {
					size > 200
					type = strategic_bomber
				}
				has_deployed_air_force_size = {
					size > 400
					type = tactical_bomber
				}
			}
		}
	}
		
	basic_fighter_interceptor_early = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = improved_small_airframe
				factor = 0 #let's not waste XP here
			}
			modifier = { 
				has_tech = engines_2
				factor = 0 #let's not waste XP here
			}
		}

		#name = "P-35A"
		#history = yes		
		#override_sprite="GFX_generic_LAMP_p_35a"
		target_variant = {		
			match_value = 1000			
			type = small_plane_airframe_1			
			modules = {						
				fixed_main_weapon_slot = light_mg_2x
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						heavy_mg_2_2x 
						heavy_mg_2x 
						light_mg_2x
					}
				}	
				engine_type_slot = radial_engine_1_1x
				#special_type_slot_1 = empty
				fixed_wing_slot = semielliptical_wing
			}
		}

		allowed_modules = {
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			engine_2_1x
			armor_plate_small
			straight_wing	
			bomb_locks			
			high_octane_fuel
		}
	}
	
	basic_fighter_interceptor_early_main = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = improved_small_airframe
				factor = 0 #let's not waste XP here
			}
			modifier = { 
				has_tech = engines_2
				factor = 0 #let's not waste XP here
			}
		}

		#name = "P-36A Hawk"
		##history = yes		
		#override_sprite="GFX_generic_LAMP_p_36"
		target_variant = {
			match_value = 1500
			type = small_plane_airframe_1
			modules = {				
				fixed_main_weapon_slot = light_mg_2x
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						heavy_mg_2_2x 
						heavy_mg_2x 
						light_mg_2x
					}
				}	
				engine_type_slot = radial_engine_1_1x
				#special_type_slot_1 = empty
				fixed_wing_slot = semielliptical_wing
			}
		}

		allowed_modules = {
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			engine_2_1x
			armor_plate_small
			straight_wing	
			bomb_locks			
			high_octane_fuel
		}
	}
	
	basic_fighter_interceptor_early_b = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = improved_small_airframe
				factor = 0 #let's not waste XP here
			}
			modifier = { 
				has_tech = engines_2
				factor = 0 #let's not waste XP here
			}
		}

		#name = "P-36A Hawk"
		#history = yes		
		#override_sprite="GFX_generic_LAMP_p_36"
		target_variant = {
			match_value = 1500
			type = small_plane_airframe_1
			modules = {				
				fixed_main_weapon_slot = light_mg_2x
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						heavy_mg_2_2x 
						heavy_mg_2x 
						light_mg_2x
					}
				}	
				engine_type_slot = radial_engine_1_1x
				#special_type_slot_1 = empty
				fixed_wing_slot = semielliptical_wing
			}
		}

		allowed_modules = {
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			engine_2_1x
			armor_plate_small
			straight_wing	
			bomb_locks			
			high_octane_fuel
		}
	}
	
	basic_fighter_interceptor = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = improved_small_airframe
				factor = 0 #let's not waste XP here
			}
		}

		#name = "P-40F Warhawk"
		#history = yes		
		#override_sprite="GFX_generic_LAMP_p_40f"
		target_variant = {
			match_value = 2500
			type = small_plane_airframe_1
			modules = {
				fixed_wing_slot = straight_wing
				#fixed_radar_slot = empty
				#fixed_aux_prop_slot = empty
				fixed_optics_slot = reflex_gunsight
				fixed_engine_mod_slot = supercharger
				##fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = {
					any_of = { 
						heavy_mg_2_4x 
						heavy_mg_4x 
						light_mg_4x
					}
				}	
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						heavy_mg_2_2x 
						heavy_mg_2x 
						light_mg_2x
					}
				}	
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				engine_type_slot = engine_2_1x
				#special_type_slot_1 = empty
				#special_type_slot_2 = empty	
			}
		}

		allowed_modules = {
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			engine_2_1x
			armor_plate_small
			straight_wing	
			bomb_locks			
			high_octane_fuel
		}
	}
	
	basic_fighter_interceptor_b = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = improved_small_airframe
				factor = 0 #let's not waste XP here
			}
		}

		#name = "P-40N Warhawk"
		#history = yes		
		#override_sprite="GFX_generic_LAMP_p_40n"
		target_variant = {
			match_value = 2500
			type = small_plane_airframe_1
			modules = {
				fixed_wing_slot = straight_wing
				#fixed_radar_slot = empty
				#fixed_aux_prop_slot = empty
				fixed_optics_slot = reflex_gunsight
				fixed_engine_mod_slot = supercharger
				##fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = {
					any_of = { 
						heavy_mg_2_4x 
						heavy_mg_4x 
						light_mg_4x
					}
				}	
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						heavy_mg_2_2x 
						heavy_mg_2x 
						light_mg_2x
					}
				}	
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				engine_type_slot = engine_3_1x
				#special_type_slot_1 = drop_tanks
				#special_type_slot_2 = empty	
			}
		}

		allowed_modules = {
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			engine_2_1x
			armor_plate_small
			straight_wing	
			bomb_locks			
			high_octane_fuel
		}
	}
	
	basic_fighter_interceptor_c = {
		priority = {
			factor = 1
			modifier = { 
				has_tech = improved_small_airframe
				factor = 0 #let's not waste XP here
			}
		}

		#name = "F4F-3S Wildcatfish"
		#history = yes		
		#override_sprite="GFX_generic_LAMP_f4f_3s"
		target_variant = {
			match_value = 1
			type = small_plane_airframe_1
			modules = {
				fixed_wing_slot = straight_wing
				fixed_radar_slot = empty
				fixed_aux_prop_slot = empty
				fixed_optics_slot = reflex_gunsight
				fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = { any_of = { heavy_mg_4x light_mg_4x } }				
				#fixed_auxiliary_weapon_slot_1 = { any_of = { heavy_mg_2x light_mg_2x } }
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				engine_type_slot = radial_engine_2_1x	
				special_type_slot_1 = floats
			}
		}

		allowed_modules = {
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			engine_2_1x
			armor_plate_small
			straight_wing	
			bomb_locks			
			high_octane_fuel
		}
	}
	
	improved_fighter_interceptor = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe
				factor = 0 #let's not waste XP here
			}
		}

		#name = "P-39C Cobra"
		#history = yes		
		#override_sprite="GFX_generic_LAMP_p_39c"
		target_variant = {
			match_value = 3000
			type = small_plane_airframe_2
			modules = {
				fixed_wing_slot = straight_wing
				#fixed_radar_slot = empty
				#fixed_aux_prop_slot = empty
				fixed_optics_slot = reflex_gunsight
				fixed_engine_mod_slot = supercharger
				##fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = {
					any_of = { 
						engine_cannon_3_1x
						engine_cannon_2_1x 
						engine_cannon_1_1x
					}
				}	
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						heavy_mg_2_2x 
						heavy_mg_2x 
						light_mg_2x
					}
				}	
				fixed_auxiliary_weapon_slot_2 = {
					any_of = { 
						light_mg_2x
					}
				}	
				fixed_auxiliary_weapon_slot_3 = drop_tanks
				engine_type_slot = engine_3_1x
				#special_type_slot_1 = drop_tanks
				#special_type_slot_2 = empty	
			}
		}

		allowed_modules = {
			engine_cannon_3_1x
			engine_cannon_2_1x 
			engine_cannon_1_1x
			reflex_gunsight
			heavy_mg_2_2x 
			heavy_mg_2_4x 
			heavy_mg_4x
			heavy_mg_2x
			light_mg_2x
			light_mg_4x
			engine_2_1x
			armor_plate_small
			straight_wing	
			bomb_locks			
			high_octane_fuel
		}
	}
	
	improved_fighter_interceptor_b = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe
				factor = 0 #let's not waste XP here
			}
		}

		#name = "P-39D Cobra"
		#history = yes		
		#override_sprite="GFX_generic_LAMP_p_39d"
		target_variant = {
			match_value = 3100
			type = small_plane_airframe_2
			modules = {
				fixed_wing_slot = straight_wing
				#fixed_radar_slot = empty
				#fixed_aux_prop_slot = empty
				fixed_optics_slot = reflex_gunsight
				fixed_engine_mod_slot = supercharger
				##fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = {
					any_of = { 
						engine_cannon_3_1x
						engine_cannon_2_1x 
						engine_cannon_1_1x
					}
				}	
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						heavy_mg_2_4x 
						heavy_mg_4x 
						light_mg_4x
					}
				}	
				fixed_auxiliary_weapon_slot_2 = {
					any_of = { 
						light_mg_2x
					}
				}	
				fixed_auxiliary_weapon_slot_3 = drop_tanks
				engine_type_slot = engine_3_1x
				special_type_slot_1 = self_sealing_fuel_tanks_small
				special_type_slot_2 = armor_plate_small	
				#special_type_slot_3 = armor_plate_small	
			}
		}

		allowed_modules = {
			engine_cannon_3_1x
			engine_cannon_2_1x 
			engine_cannon_1_1x
			reflex_gunsight
			heavy_mg_2_2x 
			heavy_mg_2_4x 
			heavy_mg_4x
			heavy_mg_2x
			light_mg_2x
			light_mg_4x
			engine_2_1x
			armor_plate_small
			straight_wing	
			bomb_locks			
			high_octane_fuel
		}
	}
	
	improved_fighter_interceptor_c = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe
				factor = 0 #let's not waste XP here
			}
		}

		#name = "P-63C Kingcobra"
		#history = yes		
		#override_sprite="GFX_generic_LAMP_p_63c"
		target_variant = {
			match_value = 3200
			type = small_plane_airframe_2
			modules = {
				fixed_wing_slot = laminar_flow_straight_wing
				#fixed_radar_slot = empty
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = reflex_gunsight
				fixed_engine_mod_slot = supercharger
				##fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = {
					any_of = { 
						engine_cannon_3_1x
						engine_cannon_2_1x 
						engine_cannon_1_1x
					}
				}	
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						heavy_mg_2_4x 
						heavy_mg_4x 
						light_mg_4x
					}
				}	
				# fixed_auxiliary_weapon_slot_2 = {
					# any_of = { 
						# light_mg_2x
					# }
				# }	
				fixed_auxiliary_weapon_slot_3 = drop_tanks
				engine_type_slot = engine_4_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = self_sealing_fuel_tanks_small	
			}
		}

		allowed_modules = {
			engine_cannon_3_1x
			engine_cannon_2_1x 
			engine_cannon_1_1x
			reflex_gunsight
			heavy_mg_2_2x 
			heavy_mg_2_4x 
			heavy_mg_4x
			heavy_mg_2x
			light_mg_2x
			light_mg_4x
			engine_2_1x
			armor_plate_small
			straight_wing	
			bomb_locks			
			high_octane_fuel
		}
	}
	
	advanced_fighter_interceptor = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe
				factor = 0 #let's not waste XP here
			}
		}

		#name = "P-51K Mustang"
		#history = yes		
		#override_sprite="GFX_generic_LAMP_p_51k"
		target_variant = {
			match_value = 4000
			type = small_plane_airframe_3
			modules = {
				fixed_wing_slot = laminar_flow_straight_wing
				fixed_radar_slot = empty
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = {
					any_of = { 
						reflex_gunsight 
						gyro_gunsight 
					}
				}	
				fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = high_octane_fuel 
				fixed_main_weapon_slot = {
					any_of = { 
						heavy_mg_2_4x 
						heavy_mg_4x 
					}
				}	
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						heavy_mg_2_2x 
						heavy_mg_2x 
					}
				}	
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = engine_4_1x
				special_type_slot_1 = fuel_tanks_small
				special_type_slot_2 = pressurized_cabin_small	
				special_type_slot_3 = self_sealing_fuel_tanks_small		
			}
		}

		allowed_modules = {
			engine_cannon_3_1x
			engine_cannon_2_1x 
			engine_cannon_1_1x
			reflex_gunsight
			heavy_mg_2_2x 
			heavy_mg_2_4x 
			heavy_mg_4x
			heavy_mg_2x
			light_mg_2x
			light_mg_4x
			engine_2_1x
			armor_plate_small
			straight_wing	
			bomb_locks			
			high_octane_fuel
		}
	}
	
	modern_fighter_interceptor = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe
				factor = 0 #let's not waste XP here
			}
		}

		#name = "F-94 Starfire"
		#history = yes		
		#override_sprite="GFX_generic_LAMP_f_94a"
		target_variant = {
			match_value = 4500
			type = small_plane_airframe_4
			modules = {
				fixed_wing_slot = laminar_flow_straight_wing				
				fixed_radar_slot = {
					any_of = {
						air_air_radar_3
						air_air_radar_2
						air_air_radar_1
					}
				}
				fixed_optics_slot = {
					any_of = { 
						reflex_gunsight 
						gyro_gunsight 
					}
				}	
				fixed_main_weapon_slot = aa_rocket_rails
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						aa_rocket_pods 
						aa_rocket_rails
					}
				}	
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = jet_engine_1x
				special_type_slot_1 = pressurized_cabin_small	
			}
		}

		allowed_modules = {
			engine_cannon_3_1x
			engine_cannon_2_1x 
			engine_cannon_1_1x
			reflex_gunsight
			heavy_mg_2_2x 
			heavy_mg_2_4x 
			heavy_mg_4x
			heavy_mg_2x
			light_mg_2x
			light_mg_4x
			engine_2_1x
			armor_plate_small
			straight_wing	
			bomb_locks			
			high_octane_fuel
		}
	}
	
	jet_fighter_interceptor_1 = {
	
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe_3 
				factor = 0 #let's not waste XP here
			}
		}

		#name = "F-86D Sabre Dog"
		#history = yes			
		#override_sprite="GFX_generic_LAMP_f_86d"

		target_variant = {
			match_value = 5500
			type = small_plane_airframe_5
			modules = {
				fixed_wing_slot = swept_wing
				fixed_radar_slot = {
					any_of = {
						air_air_radar_3
						air_air_radar_2
						air_air_radar_1
					}
				}
				fixed_aux_prop_slot = empty
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = empty
				#fixed_fuel_type_slot = high_octane_fuel 
				fixed_main_weapon_slot = {
					any_of = { 
						aa_rocket_pods 
						aa_rocket_rails 
					}
				}	
				fixed_auxiliary_weapon_slot_1 = drop_tanks
				fixed_electronics_slot = basic_radar_warning_system
				# fixed_auxiliary_weapon_slot_2 = empty
				# fixed_auxiliary_weapon_slot_3 = empty
				# fixed_auxiliary_weapon_slot_4 = empty
				engine_type_slot = jet_engine_2_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = g_suit_1	
				special_type_slot_3 = pressurized_cabin_small	
			}
		}

		allowed_modules = { 
			air_air_radar_3
			air_air_radar_2
			air_air_radar_1
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			jet_engine_2_1x
			jet_engine_2x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			g_suit_type
			high_octane_fuel
			self_sealing_fuel_tanks_small
			gyro_gunsight
			imp_bomb_locks
			imp_rocket_rails
			aa_rocket_pods 
			aa_rocket_rails
		}
	}
	
	jet_fighter_interceptor_2 = {
	
		#name = "F-102 Delta Dagger"
		priority = {
			factor = 100
		}
		#override_sprite="GFX_generic_F_102"
		#history = yes			
		target_variant = {
			match_value = 7000
			type = small_plane_airframe_7
			modules = {
				fixed_wing_slot = delta_wing
				fixed_radar_slot = { any_of = { air_air_radar_5 air_air_radar_4 air_air_radar_3 } }
				fixed_aux_prop_slot = empty
				fixed_optics_slot = {
					any_of = { 
						hud_module
						gyro_gunsight 						
					}
				}
				fixed_engine_mod_slot = afterburner
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = {
					any_of = { 
						air_air_missile_2_module 
						air_air_missile_3_module 
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						air_air_missile_2_module 
						air_air_missile_3_module 
					}
				}
				fixed_auxiliary_weapon_slot_2 = empty
				fixed_auxiliary_weapon_slot_3 = empty
				fixed_auxiliary_weapon_slot_4 = empty
				fixed_electronics_slot = improved_radar_warning_system
				engine_type_slot = second_gen_jet_engine_1x
				special_type_slot_1 = g_suit_type
				special_type_slot_2 = pressurized_cabin_small	
				special_type_slot_3 = empty	
				special_type_slot_4 = empty	
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			aircraft_cannon_3_2x
			aircraft_cannon_4_2x
			jet_engine_2x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			plane_special_module_air_air_radar
			g_suit_type
			air_air_missile_2_module
			air_air_missile_1_module
			air_air_radar_6
			air_air_radar_5
			air_air_radar_4
			air_air_radar_3
			air_air_radar_2
		}
	}
	
	jet_fighter_interceptor_3 = {
	
		#name = "F-106 Delta Dart"
		priority = {
			factor = 100
		}

		#override_sprite="GFX_generic_F_106"
		#history = yes			
		target_variant = {
			match_value = 8000
			type = small_plane_airframe_8
			modules = {
				fixed_wing_slot = delta_wing
				fixed_radar_slot = plane_special_module_air_air_radar
				fixed_aux_prop_slot = empty
				fixed_optics_slot = {
					any_of = { 
						hud_module
						gyro_gunsight 						
					}
				}
				fixed_engine_mod_slot = mach_2_afterburner
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = {
					any_of = { 
						air_air_missile_4_module
						air_air_missile_3_module
						air_air_missile_2_module
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						air_air_missile_4_module
						air_air_missile_3_module
						air_air_missile_2_module
					}
				}
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_auxiliary_weapon_slot_3 = empty
				fixed_auxiliary_weapon_slot_4 = empty
				fixed_electronics_slot = improved_radar_warning_system
				engine_type_slot = third_gen_jet_engine_1x
				special_type_slot_1 = g_suit_type
				special_type_slot_2 = pressurized_cabin_small	
				special_type_slot_3 = empty	
				special_type_slot_4 = empty	
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			aircraft_cannon_3_2x
			aircraft_cannon_4_2x
			aircraft_cannon_4_1x
			jet_engine_2x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			plane_special_module_air_air_radar
			g_suit_type
			air_air_missile_2_module
			air_air_missile_1_module
			air_air_missile_4_module
			air_air_missile_3_module
			air_air_missile_2_module
			aircraft_cannon_5_1x
			air_air_radar_6
			air_air_radar_5
			air_air_radar_4
			air_air_radar_3
			air_air_radar_2
		}
	}
	
	jet_fighter_default_05C = {
	
		#name = "F-104 Starfighter"
		priority = {
			factor = 100
		}
		#history = yes
		#override_sprite = "GFX_generic_F_104"
		target_variant = {
			match_value = 8000
			type = small_plane_airframe_8
			modules = {
				fixed_wing_slot = stub_wing
				fixed_radar_slot = plane_special_module_air_air_radar
				fixed_aux_prop_slot = empty
				fixed_optics_slot = {
					any_of = { 
						hud_module
						gyro_gunsight 						
					}
				}
				fixed_engine_mod_slot = mach_2_afterburner
				fixed_fuel_type_slot = empty
				fixed_main_weapon_slot = {
					any_of = { 
						aircraft_cannon_5_1x 
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						air_air_missile_4_module
						air_air_missile_3_module
						air_air_missile_2_module
					}
				}
				fixed_auxiliary_weapon_slot_2 = {
					any_of = { 
						air_air_ir_missile_1_module
						air_air_ir_missile_2_module
					}
				}
				fixed_auxiliary_weapon_slot_3 = {
					any_of = { 
						cas_weapon
					}
				}
				fixed_auxiliary_weapon_slot_4 = drop_tanks
				fixed_electronics_slot = improved_radar_warning_system
				engine_type_slot = third_gen_jet_engine_1x
				special_type_slot_1 = g_suit_type
				special_type_slot_2 = empty	
				special_type_slot_3 = empty	
				special_type_slot_4 = empty	
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			aircraft_cannon_3_2x
			aircraft_cannon_4_2x
			aircraft_cannon_4_1x
			jet_engine_2x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			plane_special_module_air_air_radar
			g_suit_type
			air_air_missile_2_module
			air_air_missile_1_module
			air_air_missile_4_module
			air_air_missile_3_module
			air_air_missile_2_module
			aircraft_cannon_5_1x
		}
	}	
}

generic_cas = {
	category = air

	blocked_for = {EMP USA RUS}

	available_for = {}

	roles = {
		air_cas
	}

	priority = {
		factor = 500
		modifier = {
			has_War = yes
			factor = 2
		}
	}
	
	cas_0 = {
		priority = {
			factor = 1	
			modifier = { 
				has_tech = basic_small_airframe
				factor = 0 #let's not waste XP here
			}
		}
		#name = "A-3 Falcon"
		
		#override_model = GFX_generic_LAMP_a_3
		
		#history = yes
		target_variant = {
			match_value = 10
			type = small_plane_cas_airframe_0
			modules = {				
				fixed_wing_slot = biplane_wing
				fixed_main_weapon_slot = bomb_locks
				fixed_auxiliary_weapon_slot_1 = light_mg_4x
				engine_type_slot = engine_1_1x
				#special_type_slot_3 = dive_brakes_small	
			}
			
		}

		allowed_modules = {
			bomb_locks
			engine_2_1x
			armor_plate_small
			fuel_tanks_small
			reflex_gunsight
			radial_engine_2_1x
			straight_wing
			high_octane_fuel
		}
	}
	
	cas_1 = {
		priority = {
			factor = 1	
			modifier = { 
				has_tech = improved_small_airframe
				factor = 0 #let's not waste XP here
			}
		}
		#name = "A-17 Nomad"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_a_17"
		target_variant = {
			match_value = 100
			type = small_plane_cas_airframe_1
			modules = {				
				fixed_wing_slot = semielliptical_wing
				fixed_optics_slot = reflex_gunsight
				fixed_main_weapon_slot = small_bomb_bay
				fixed_auxiliary_weapon_slot_1 = light_mg_4x
				engine_type_slot = radial_engine_2_1x
				special_type_slot_1 = lmg_defense_gunner
				special_type_slot_2 = dive_brakes_small	
				#special_type_slot_3 = dive_brakes_small	
			}
			
		}

		allowed_modules = {
			bomb_locks
			engine_2_1x
			armor_plate_small
			fuel_tanks_small
			reflex_gunsight
			radial_engine_2_1x
			straight_wing
			high_octane_fuel
		}
	}
	
	cas_1_b = {
		priority = {
			factor = 1	
		}
		#name = "A-19"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_a_19"
		target_variant = {
			match_value = 1
			type = small_plane_cas_airframe_1
			modules = {				
				fixed_wing_slot = straight_wing
				fixed_optics_slot = reflex_gunsight
				fixed_main_weapon_slot = bomb_locks
				fixed_auxiliary_weapon_slot_1 = light_mg_4x
				engine_type_slot = radial_engine_2_1x
				special_type_slot_1 = lmg_defense_gunner
				special_type_slot_2 = lmg_defense_gunner	
				#special_type_slot_3 = dive_brakes_small	
			}
			
		}

		allowed_modules = {
			bomb_locks
			engine_2_1x
			armor_plate_small
			fuel_tanks_small
			reflex_gunsight
			radial_engine_2_1x
			straight_wing
			high_octane_fuel
		}
	}
	cas_2 = {
		priority = {
			factor = 120	
			modifier = { 
				has_tech = advanced_small_airframe
				factor = 0 #let's not waste XP here
			}
		}
		#name = "A-20A Havoc"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_a_20a"
		target_variant = {
			match_value = 500
			type = small_plane_cas_airframe_2
			modules = {				
				fixed_wing_slot = straight_wing
				#fixed_radar_slot = empty
				#fixed_aux_prop_slot = empty
				fixed_optics_slot = reflex_gunsight
				fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = empty
				fixed_main_weapon_slot = small_bomb_bay
				fixed_auxiliary_weapon_slot_1 = heavy_mg_4x
				fixed_auxiliary_weapon_slot_2 = small_bomb_bay
				#fixed_auxiliary_weapon_slot_3 = empty
				engine_type_slot = radial_engine_3_2x
				special_type_slot_1 = hmg_defense_gunner
				special_type_slot_2 = hmg_defense_gunner
				special_type_slot_3 = fuel_tanks_small	
			}
			
		}

		allowed_modules = {
			bomb_locks
			engine_2_1x
			armor_plate_small
			fuel_tanks_small
			reflex_gunsight
			radial_engine_3_1x
			straight_wing
			self_sealing_fuel_tanks_small
			small_bomb_bay
			heavy_mg_4x
			radial_engine_3_2x
			hmg_defense_turret
			armor_plate_small
			self_sealing_fuel_tanks_small
			high_octane_fuel
			injection_system
		}
	}
	cas_2_b = {
		priority = {
			factor = 1	
		}
		#name = "A-24 Banshee"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_a_24"
		target_variant = {
			match_value = 400
			type = small_plane_cas_airframe_2
			modules = {				
				fixed_wing_slot = straight_wing
				fixed_optics_slot = reflex_gunsight
				fixed_main_weapon_slot = { any_of = { heavy_bomb_locks bomb_locks } }
				fixed_auxiliary_weapon_slot_1 = heavy_mg_2x
				engine_type_slot = radial_engine_3_1x
				special_type_slot_1 = twin_lmg_defense_gunner
				special_type_slot_2 = fuel_tanks_small
				special_type_slot_3 = dive_brakes_small			
			}
			
		}

		allowed_modules = {
			bomb_locks
			engine_2_1x
			armor_plate_small
			fuel_tanks_small
			reflex_gunsight
			radial_engine_3_1x
			straight_wing
			self_sealing_fuel_tanks_small
			small_bomb_bay
			heavy_mg_4x
			radial_engine_3_2x
			hmg_defense_turret
			armor_plate_small
			self_sealing_fuel_tanks_small
			high_octane_fuel
			injection_system
		}
	}
	cas_2_c = {
		priority = {
			factor = 1	
		}
		#name = "A-31 Vengeance"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_a_31"
		target_variant = {
			match_value = 1
			type = small_plane_cas_airframe_2
			modules = {				
				fixed_wing_slot = straight_wing
				fixed_optics_slot = reflex_gunsight
				fixed_main_weapon_slot = { any_of = { heavy_bomb_locks bomb_locks } }
				fixed_auxiliary_weapon_slot_1 = light_mg_4x
				fixed_auxiliary_weapon_slot_2 = small_bomb_bay
				engine_type_slot = radial_engine_3_1x
				special_type_slot_1 = twin_lmg_defense_gunner
				special_type_slot_2 = fuel_tanks_small
				special_type_slot_3 = fuel_tanks_small			
			}
			
		}

		allowed_modules = {
			bomb_locks
			engine_2_1x
			armor_plate_small
			fuel_tanks_small
			reflex_gunsight
			radial_engine_3_1x
			straight_wing
			self_sealing_fuel_tanks_small
			small_bomb_bay
			heavy_mg_4x
			radial_engine_3_2x
			hmg_defense_turret
			armor_plate_small
			self_sealing_fuel_tanks_small
			high_octane_fuel
			injection_system
		}
	}
	cas_2_d = {
		priority = {
			factor = 1	
		}
		#name = "A-27 Texan"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_a_27"
		target_variant = {
			match_value = 1
			type = small_plane_cas_airframe_2
			modules = {				
				fixed_wing_slot = straight_wing
				fixed_optics_slot = reflex_gunsight
				fixed_main_weapon_slot = { any_of = { bomb_locks } }
				fixed_auxiliary_weapon_slot_1 = light_mg_2x
				#fixed_auxiliary_weapon_slot_2 = small_bomb_bay
				engine_type_slot = radial_engine_3_1x
				special_type_slot_1 = lmg_defense_gunner
				special_type_slot_2 = fuel_tanks_small
				#special_type_slot_3 = dive_brakes_small			
			}
			
		}

		allowed_modules = {
			bomb_locks
			engine_2_1x
			armor_plate_small
			fuel_tanks_small
			reflex_gunsight
			radial_engine_3_1x
			straight_wing
			self_sealing_fuel_tanks_small
			small_bomb_bay
			heavy_mg_4x
			radial_engine_3_2x
			hmg_defense_turret
			armor_plate_small
			self_sealing_fuel_tanks_small
			high_octane_fuel
			injection_system
		}
	}
	
	cas_3 = {
		priority = {
			factor = 150
			modifier = { 
				has_tech = modern_small_airframe
				factor = 0 #let's not waste XP here
			}
		}
		#name = "A-26B-15 Invader"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_a_26b_15"
		target_variant = {
			match_value = 1000
			type = small_plane_cas_airframe_3
			modules = {
				fixed_wing_slot = laminar_flow_straight_wing
				#fixed_radar_slot = empty
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = reflex_gunsight
				fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = empty
				fixed_main_weapon_slot = small_bomb_bay
				fixed_auxiliary_weapon_slot_1 = heavy_mg_4x
				fixed_auxiliary_weapon_slot_2 = small_bomb_bay
				fixed_auxiliary_weapon_slot_3 = { any_of = { heavy_bomb_locks bomb_locks  } }
				fixed_auxiliary_weapon_slot_4 = imp_rocket_rails
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = radial_engine_3_2x
				special_type_slot_1 = hmg_remote_turret_twin
				special_type_slot_2 = armor_plate_small	
				special_type_slot_3 = fuel_tanks_small	
				special_type_slot_4 = hmg_remote_turret_twin						
			}
		}
		allowed_modules = {
			small_bomb_bay
			bomb_locks
			engine_2_2x
			engine_3_2x
			armor_plate_small
			fuel_tanks_small
			reflex_gunsight
			straight_wing
			heavy_mg_2x
			heavy_mg_4x
			engine_4_1x
			self_sealing_fuel_tanks_small
			supercharger
			injection_system
			imp_rocket_rails
			radial_engine_3_2x
			hmg_defense_turret
			armor_plate_small
			high_octane_fuel
		}
	}
	
	cas_3_b = {
		priority = {
			factor = 130
			modifier = { 
				has_tech = modern_small_airframe
				factor = 0 #let's not waste XP here
			}
		}
		#name = "A-36 Apache"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_a_36"
		target_variant = {
			match_value = 1000
			type = small_plane_cas_airframe_3
			modules = {				
				fixed_wing_slot = laminar_flow_straight_wing
				fixed_radar_slot = empty
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = {
					any_of = { 
						reflex_gunsight 
						gyro_gunsight 
					}
				}	
				fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = high_octane_fuel 
				fixed_main_weapon_slot = { any_of = { bomb_locks heavy_bomb_locks } }
				fixed_auxiliary_weapon_slot_1 = heavy_mg_2x
				fixed_auxiliary_weapon_slot_2 = heavy_mg_4x 
				fixed_auxiliary_weapon_slot_3 = drop_tanks
				fixed_auxiliary_weapon_slot_4 = { any_of = { imp_rocket_rails rocket_rails } }
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = engine_3_1x
				special_type_slot_1 = dive_brakes_small
				#special_type_slot_2 = dive_brakes_small						
			}
		}
		allowed_modules = {
			small_bomb_bay
			bomb_locks
			engine_2_2x
			engine_3_2x
			armor_plate_small
			fuel_tanks_small
			reflex_gunsight
			straight_wing
			heavy_mg_2x
			heavy_mg_4x
			engine_4_1x
			self_sealing_fuel_tanks_small
			supercharger
			injection_system
			imp_rocket_rails
			radial_engine_3_2x
			hmg_defense_turret
			armor_plate_small
			high_octane_fuel
		}
	}
	
	cas_3_c = {
		priority = {
			factor = 1
		}
		#name = "A-25 Shrike"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_a_25"
		target_variant = {
			match_value = 1
			type = small_plane_cas_airframe_3
			modules = {				
				fixed_wing_slot = straight_wing
				fixed_optics_slot = reflex_gunsight
				fixed_engine_mod_slot = supercharger
				fixed_main_weapon_slot = small_bomb_bay
				fixed_auxiliary_weapon_slot_1 = { any_of = { bomb_locks heavy_bomb_locks } }
				fixed_auxiliary_weapon_slot_2 = imp_rocket_rails
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = engine_4_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small
				special_type_slot_3 = dive_brakes_small
				special_type_slot_4 = twin_hmg_defense_gunner					
			}
		}
		allowed_modules = {
			small_bomb_bay
			bomb_locks
			engine_2_2x
			engine_3_2x
			armor_plate_small
			fuel_tanks_small
			reflex_gunsight
			straight_wing
			heavy_mg_2x
			heavy_mg_4x
			engine_4_1x
			self_sealing_fuel_tanks_small
			supercharger
			injection_system
			imp_rocket_rails
			radial_engine_3_2x
			hmg_defense_turret
			armor_plate_small
			high_octane_fuel
		}
	}
	
	cas_4 = {
		priority = {
			factor = 1
		}
		#name = "A-41"
		#history = yes
		#override_sprite = "GFX_generic_A_41"
		target_variant = {
			match_value = 1
			type = small_plane_cas_airframe_4
			modules = {
				fixed_wing_slot = straight_wing
				fixed_radar_slot = empty
				fixed_aux_prop_slot = empty
				fixed_optics_slot = { any_of = { reflex_gunsight gyro_gunsight } }
				fixed_engine_mod_slot = empty
				#fixed_fuel_type_slot = empty
				fixed_main_weapon_slot = small_bomb_bay
				fixed_auxiliary_weapon_slot_1 = bomb_locks
				fixed_auxiliary_weapon_slot_2 = { any_of = { imp_rocket_rails bomb_locks } }
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = engine_4_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small	
			}
		}

		allowed_modules = {
			small_bomb_bay
			bomb_locks
			rocket_rails
			engine_3_2x
			fuel_tanks_small
			reflex_gunsight
			engine_4_1x
			armor_plate_small
			imp_rocket_rails
			gyro_gunsight
			self_sealing_fuel_tanks_small
		}
	}
	
	cas_4b = {
		priority = {
			factor = 180
			modifier = { 
				has_tech = modern_small_airframe_2
				factor = 0 #let's not waste XP here
			}
		}
		#name = "A-1 Skyraider"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_ad_2q"
		target_variant = {
			match_value = 2500
			type = small_plane_cas_airframe_4
			modules = {
				fixed_wing_slot = straight_wing
				#fixed_radar_slot = empty
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = gyro_gunsight 
				fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = empty
				fixed_main_weapon_slot = { any_of = { bomb_locks heavy_bomb_locks } }
				fixed_auxiliary_weapon_slot_1 = aircraft_cannon_2_2x
				fixed_auxiliary_weapon_slot_2 = aircraft_cannon_2_2x
				fixed_auxiliary_weapon_slot_3 = { any_of = { bomb_locks heavy_bomb_locks } }
				fixed_auxiliary_weapon_slot_4 = { 
					any_of = { 
						imp_rocket_rails 
						bomb_locks 
						heavy_bomb_locks 
					} 
				}
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = radial_engine_5_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small	
			}
		}

		allowed_modules = {
			small_bomb_bay
			bomb_locks
			imp_rocket_rails
			rocket_rails
			engine_3_2x
			fuel_tanks_small
			reflex_gunsight
			radial_engine_5_1x
			engine_4_1x
			armor_plate_small
			aircraft_cannon_2_2x
			heavy_bomb_locks
			straight_wing
			self_sealing_fuel_tanks_small
			high_octane_fuel
		}
	}
	cas_5 = {
		priority = {
			factor = 200
			modifier = { 
				has_tech = modern_small_airframe_3
				factor = 0 #let's not waste XP here
			}
		}
		#name = "F-84 Thunderjet"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_f_84e"
		target_variant = {
			match_value = 3000
			type = small_plane_cas_airframe_5
			modules = {
				fixed_wing_slot = swept_wing
				#fixed_radar_slot = empty
				#fixed_aux_prop_slot = empty
				fixed_optics_slot = gyro_gunsight 
				#fixed_engine_mod_slot = empty
				#fixed_fuel_type_slot = empty
				fixed_main_weapon_slot = { any_of = { imp_bomb_locks heavy_bomb_locks bomb_locks } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { heavy_mg_2_4x heavy_mg_4x  } }
				fixed_auxiliary_weapon_slot_2 = { any_of = { heavy_mg_2_2x heavy_mg_2x  } }
				fixed_auxiliary_weapon_slot_3 = imp_rocket_rails
				fixed_auxiliary_weapon_slot_4 = drop_tanks
				fixed_electronics_slot = basic_radar_warning_system
				engine_type_slot = jet_engine_2_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small	
			}
		}

		allowed_modules = {
			heavy_mg_4x
			heavy_mg_2x
			small_bomb_bay
			bomb_locks
			rocket_rails
			engine_3_2x
			fuel_tanks_small
			reflex_gunsight
			engine_4_1x
			armor_plate_small
			imp_rocket_rails
			swept_wing
			gyro_gunsight
			jet_engine_2_1x
			self_sealing_fuel_tanks_small
			high_octane_fuel
		}
	}
	cas_6 = {
		priority = {
			factor = 250
			modifier = { 
				has_tech = modern_small_airframe_4
				factor = 0 #let's not waste XP here
			}
		}
		#name = "F-96 Thunderstreak"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_f_84f"
		target_variant = {
			match_value = 6000
			type = small_plane_cas_airframe_6
			modules = {
				fixed_wing_slot = swept_wing
				#fixed_radar_slot = empty
				#fixed_aux_prop_slot = empty
				fixed_optics_slot = gyro_gunsight
				#fixed_engine_mod_slot = empty
				#fixed_fuel_type_slot = empty
				fixed_main_weapon_slot = { any_of = { imp_bomb_locks heavy_bomb_locks bomb_locks } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { heavy_mg_2_4x heavy_mg_4x  } }
				fixed_auxiliary_weapon_slot_2 = { any_of = { heavy_mg_2_2x heavy_mg_2x  } }
				fixed_auxiliary_weapon_slot_3 = { any_of = { imp_rocket_rails rocket_pod_module } }
				fixed_electronics_slot = basic_radar_warning_system
				engine_type_slot = second_gen_jet_engine_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small	
			}
		}

		allowed_modules = {
			small_bomb_bay
			bomb_locks
			rocket_rails
			engine_3_2x
			fuel_tanks_small
			heavy_mg_2x
			heavy_mg_4x
			reflex_gunsight
			engine_4_1x
			armor_plate_small
			imp_rocket_rails
			second_gen_jet_engine_1x
			swept_wing
			jet_engine_2_1x
			self_sealing_fuel_tanks_small
			high_octane_fuel
		}
	}
	cas_7 = {
		priority = {
			factor = 70
		}
		#name = "A-45 Panther"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_xb_51"
		target_variant = {
			match_value = 6200
			type = small_plane_cas_airframe_7
			modules = {
				fixed_wing_slot = swept_wing
				#fixed_radar_slot = empty
				fixed_aux_prop_slot = aux_jet_engine
				fixed_optics_slot = toss_computer
				#fixed_engine_mod_slot = empty
				#fixed_fuel_type_slot = empty
				fixed_main_weapon_slot = small_bomb_bay_2
				fixed_auxiliary_weapon_slot_1 = small_bomb_bay_2
				fixed_auxiliary_weapon_slot_2 = { any_of = { imp_rocket_rails rocket_pod_module } }
				fixed_auxiliary_weapon_slot_3 = { any_of = { imp_rocket_rails rocket_pod_module } }
				fixed_auxiliary_weapon_slot_4 = aircraft_cannon_3_2x
				fixed_electronics_slot = improved_radar_warning_system
				engine_type_slot = jet_engine_2_2x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small	
			}
		}

		allowed_modules = {
			small_bomb_bay
			bomb_locks
			rocket_rails
			engine_3_2x
			fuel_tanks_small
			reflex_gunsight
			engine_4_1x
			armor_plate_small
			imp_rocket_rails
			second_gen_jet_engine_1x
			swept_wing
			toss_computer
			aircraft_cannon_3_2x
			aux_jet_engine
			small_bomb_bay_2
			rocket_pod_module
			jet_engine_2_2x
			high_octane_fuel
		}
	}
	cas_8 = {
		priority = {
			factor = 300
		}
		#name = "F-105 Thunderchief"
		#override_sprite = "GFX_generic_F_105"
		#history = yes
		target_variant = {
			match_value = 8000
			type = small_plane_cas_airframe_8
			modules = {
				fixed_wing_slot = swept_wing
				fixed_radar_slot = air_air_radar_6
				#fixed_aux_prop_slot = empty
				fixed_optics_slot = { any_of = { hud_module toss_computer } }
				fixed_engine_mod_slot = mach_2_afterburner
				#fixed_fuel_type_slot = empty
				fixed_main_weapon_slot = small_bomb_bay_2
				fixed_auxiliary_weapon_slot_1 = imp_bomb_locks
				fixed_auxiliary_weapon_slot_2 = rocket_pod_module
				fixed_auxiliary_weapon_slot_3 = { 
					any_of = { 
						air_air_ir_missile_2_module 
						air_air_ir_missile_1_module
						air_air_missile_4_module
						air_air_missile_3_module
					} 
				}
				fixed_auxiliary_weapon_slot_4 = aircraft_cannon_5_1x
				fixed_electronics_slot = improved_radar_warning_system
				engine_type_slot = third_gen_jet_engine_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small	
				#special_type_slot_3 = plane_special_module_air_ground_radar	
			}
		}

		allowed_modules = {
			air_air_radar_6
			air_air_radar_5
			air_air_radar_4
			air_ground_radar_6
			air_ground_radar_5
			air_ground_radar_4
			small_bomb_bay
			bomb_locks
			rocket_rails
			engine_3_2x
			fuel_tanks_small
			reflex_gunsight
			engine_4_1x
			armor_plate_small
			imp_rocket_rails
			second_gen_jet_engine_1x
			swept_wing
			hud_module
			toss_computer
			imp_bomb_locks
			rocket_pod_module
			third_gen_jet_engine_1x
			aircraft_cannon_5_1x
			air_air_ir_missile_2_module 
			air_air_ir_missile_1_module
			air_air_missile_4_module
			air_air_missile_3_module
			high_octane_fuel
		}
	}
}

generic_naval_bomber = {
	category = air

	blocked_for = {EMP USA RUS}

	available_for = {}

	roles = {
		air_naval_bomber
	}
	
	priority = {
		factor = 500
	}
	
	gw_naval_bomber = {	
	
		#name = "P2Y"
		#override_sprite = "GFX_generic_LAMP_p2y"
		#history = yes
		
		priority = {
			factor = 100
			modifier = { 
				has_tech = basic_medium_airframe
				factor = 0 #let's not waste XP here
			}
		}
		target_variant = {
			match_value = 500
			type = medium_plane_naval_bomber_airframe_0
			modules = {
			fixed_main_weapon_slot = torpedo_mounting
			fixed_auxiliary_weapon_slot_1 = bomb_locks
			engine_type_slot = radial_engine_1_2x
				fixed_tail_modifications_slot = twin_tail
			special_type_slot_2 = flying_boat_medium
			special_type_slot_3 = lmg_defense_gunner_3x
			fixed_wing_slot = biplane_wing
			}
		}
		allowed_modules = {
			torpedo_mounting
			engine_2_1x
			straight_wing
			radial_engine_2_1x
			nav_bomber_weapon
			fuel_tanks_small
			self_sealing_fuel_tanks_small
			high_octane_fuel
			air_ground_radar_1
			air_ground_radar_2
			air_ground_radar_3
			air_ground_radar_4
		}
	}	
		
	naval_bomber_0 = {	
	
		#name = "PBY Catalina"
		#override_sprite = "GFX_generic_LAMP_pby_5"
		#history = yes
		
		priority = {
			factor = 100
			modifier = { 
				has_tech = improved_medium_airframe
				factor = 0 #let's not waste XP here
			}
		}
		target_variant = {
			match_value = 1000
			type = medium_plane_naval_bomber_airframe_1
			modules = {
			fixed_main_weapon_slot = torpedo_mounting
			fixed_auxiliary_weapon_slot_1 = bomb_locks
			engine_type_slot = radial_engine_2_2x
			special_type_slot_1 = flying_boat_medium
			special_type_slot_2 = hmg_defense_gunner_3x
			special_type_slot_3 = hmg_defense_turret
			fixed_wing_slot = straight_wing
			}
		}
		allowed_modules = {
			torpedo_mounting
			engine_2_1x
			straight_wing
			radial_engine_2_1x
			nav_bomber_weapon
			fuel_tanks_small
			self_sealing_fuel_tanks_small
			high_octane_fuel
			air_ground_radar_1
			air_ground_radar_2
			air_ground_radar_3
			air_ground_radar_4
		}
	}	
	
	naval_bomber_1 = {	
	
		#name = "PBM-3 Mariner"
		#override_sprite = "GFX_generic_LAMP_pbm_3"
		#history = yes
		
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_medium_airframe
				factor = 0 #let's not waste XP here
			}
		}
		target_variant = {
			match_value = 2000
			type = medium_plane_naval_bomber_airframe_2
			modules = {
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = injection_system
				fixed_engine_mod_slot = supercharger
				fixed_radar_slot = air_ground_radar_3
				fixed_main_weapon_slot = nav_bomber_weapon
				fixed_auxiliary_weapon_slot_1 = medium_bomb_bay
				engine_type_slot = radial_engine_3_2x
				special_type_slot_1 = hmg_defense_turret_3x
				special_type_slot_2 = hmg_defense_gunner_3x	
				special_type_slot_3 = flying_boat_medium
				special_type_slot_4 = fuel_tanks_medium	
			}
		}
		allowed_modules = {
			torpedo_mounting
			engine_2_1x
			straight_wing
			radial_engine_2_1x
			nav_bomber_weapon
			fuel_tanks_small
			self_sealing_fuel_tanks_small
			high_octane_fuel
			air_ground_radar_1
			air_ground_radar_2
			air_ground_radar_3
			air_ground_radar_4
		}
	}	
	
	naval_bomber_1_b = {	
	
		#name = "PBM-1 Mariner"
		#override_sprite = "GFX_generic_LAMP_pbm_1"
		#history = yes
		
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_medium_airframe
				factor = 0 #let's not waste XP here
			}
		}
		target_variant = {
			match_value = 2000
			type = medium_plane_naval_bomber_airframe_2
			modules = {
				fixed_wing_slot = straight_wing
				#fixed_aux_prop_slot = injection_system
				fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = empty
				fixed_main_weapon_slot = nav_bomber_weapon
				fixed_auxiliary_weapon_slot_1 = medium_bomb_bay
				engine_type_slot = radial_engine_3_2x
				special_type_slot_1 = hmg_defense_turret_3x
				special_type_slot_2 = hmg_defense_gunner_3x	
				special_type_slot_3 = flying_boat_medium
				special_type_slot_4 = fuel_tanks_medium	
				special_type_slot_5 = { any_of = { radio_navigation_2 radio_navigation_1 } } 
			}
		}
		allowed_modules = {
			torpedo_mounting
			engine_2_1x
			straight_wing
			radial_engine_2_1x
			nav_bomber_weapon
			fuel_tanks_small
			self_sealing_fuel_tanks_small
			high_octane_fuel
			air_ground_radar_1
			air_ground_radar_2
			air_ground_radar_3
			air_ground_radar_4
		}
	}	
	
	naval_bomber_1_c = {	
	
		#name = "PBJ-1C"
		#override_sprite = "GFX_generic_LAMP_pbj_1c"
		#history = yes
		
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_medium_airframe
				factor = 0 #let's not waste XP here
			}
		}
		target_variant = {
			match_value = 2000
			type = medium_plane_naval_bomber_airframe_2
			modules = {	
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = bomb_sights_1
				fixed_radar_slot = air_ground_radar_3
				fixed_engine_mod_slot = supercharger
				fixed_main_weapon_slot = { any_of = { torpedo_mounting_3 torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = heavy_mg_4x
				fixed_auxiliary_weapon_slot_2 = medium_bomb_bay
				engine_type_slot = radial_engine_3_2x
				special_type_slot_1 = fuel_tanks_medium
				special_type_slot_2 = hmg_defense_gunner_4x
				special_type_slot_3 = hmg_defense_turret
				special_type_slot_5 = { any_of = { radio_navigation_2 radio_navigation_1 } } 
			}
		}
		allowed_modules = {
			torpedo_mounting
			engine_2_1x
			straight_wing
			radial_engine_2_1x
			nav_bomber_weapon
			fuel_tanks_small
			self_sealing_fuel_tanks_small
			high_octane_fuel
			air_ground_radar_1
			air_ground_radar_2
			air_ground_radar_3
			air_ground_radar_4
		}
	}	
	
	naval_bomber_1_d = {	
	
		#name = "PBJ-1D"
		#override_sprite = "GFX_generic_LAMP_pbj_1d"
		#history = yes
		
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_medium_airframe
				factor = 0 #let's not waste XP here
			}
		}
		target_variant = {
			match_value = 2000
			type = medium_plane_naval_bomber_airframe_2
			modules = {	
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = bomb_sights_1
				fixed_engine_mod_slot = supercharger
				fixed_radar_slot = air_ground_radar_3
				fixed_main_weapon_slot = { any_of = { torpedo_mounting_3 torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = heavy_mg_4x
				fixed_auxiliary_weapon_slot_2 = medium_bomb_bay
				engine_type_slot = radial_engine_3_2x
				special_type_slot_1 = fuel_tanks_medium
				special_type_slot_2 = hmg_defense_gunner_2x
				special_type_slot_3 = hmg_defense_turret_2x
				special_type_slot_5 = { any_of = { radio_navigation_2 radio_navigation_1 } } 
			}
		}
		allowed_modules = {
			torpedo_mounting
			engine_2_1x
			straight_wing
			radial_engine_2_1x
			nav_bomber_weapon
			fuel_tanks_small
			self_sealing_fuel_tanks_small
			high_octane_fuel
			air_ground_radar_1
			air_ground_radar_2
			air_ground_radar_3
			air_ground_radar_4
		}
	}
	
	naval_bomber_1_e = {	
	
		#name = "PBJ-1J"
		#override_sprite = "GFX_generic_LAMP_pbj_1j"
		#history = yes
		
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_medium_airframe
				factor = 0 #let's not waste XP here
			}
		}
		target_variant = {
			match_value = 2000
			type = medium_plane_naval_bomber_airframe_2
			modules = {	
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = bomb_sights_1
				fixed_engine_mod_slot = supercharger
				fixed_radar_slot = air_ground_radar_3
				fixed_main_weapon_slot = { any_of = { torpedo_mounting_3 torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = heavy_mg_4x
				fixed_auxiliary_weapon_slot_2 = medium_bomb_bay
				fixed_auxiliary_weapon_slot_3 = { any_of = { imp_rocket_rails rocket_rails } }
				engine_type_slot = radial_engine_3_2x
				special_type_slot_1 = fuel_tanks_medium
				special_type_slot_2 = hmg_defense_turret_2x
				special_type_slot_3 = hmg_defense_gunner_4x
				special_type_slot_5 = { any_of = { radio_navigation_2 radio_navigation_1 } } 
			}
		}
		allowed_modules = {
			torpedo_mounting
			engine_2_1x
			straight_wing
			radial_engine_2_1x
			nav_bomber_weapon
			fuel_tanks_small
			self_sealing_fuel_tanks_small
			high_octane_fuel
			air_ground_radar_1
			air_ground_radar_2
			air_ground_radar_3
			air_ground_radar_4
		}
	}
	
	naval_bomber_1_f = {	
	
		#name = "PV-1 Ventura"
		#override_sprite = "GFX_generic_LAMP_pv_1"
		#history = yes
		
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_medium_airframe
				factor = 0 #let's not waste XP here
			}
		}
		target_variant = {
			match_value = 2000
			type = medium_plane_naval_bomber_airframe_2
			modules = {	
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = bomb_sights_1
				fixed_engine_mod_slot = supercharger
				fixed_radar_slot = air_ground_radar_1
				fixed_main_weapon_slot = { any_of = { torpedo_mounting_3 torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = heavy_mg_2x
				fixed_auxiliary_weapon_slot_2 = { any_of = { imp_rocket_rails rocket_rails } }				
				engine_type_slot = radial_engine_3_2x
				special_type_slot_1 = fuel_tanks_medium
				special_type_slot_2 = hmg_defense_turret
				special_type_slot_3 = hmg_defense_gunner_3x
				special_type_slot_5 = { any_of = { radio_navigation_2 radio_navigation_1 } } 
			}
		}
		allowed_modules = {
			torpedo_mounting
			engine_2_1x
			straight_wing
			radial_engine_2_1x
			nav_bomber_weapon
			fuel_tanks_small
			self_sealing_fuel_tanks_small
			high_octane_fuel
			air_ground_radar_1
			air_ground_radar_2
			air_ground_radar_3
			air_ground_radar_4
		}
	}
	
	naval_bomber_1_g = {	
	
		#name = "PV-2 Harpoon"
		#override_sprite = "GFX_generic_LAMP_pv_2"
		#history = yes
		
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_medium_airframe
				factor = 0 #let's not waste XP here
			}
		}
		target_variant = {
			match_value = 2000
			type = medium_plane_naval_bomber_airframe_2
			modules = {	
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = injection_system
				fixed_radar_slot = air_ground_radar_1
				fixed_engine_mod_slot = supercharger
				fixed_main_weapon_slot = { any_of = { torpedo_mounting_3 torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = heavy_mg_4x
				fixed_auxiliary_weapon_slot_2 = medium_bomb_bay
				fixed_auxiliary_weapon_slot_3 = { any_of = { imp_rocket_rails rocket_rails } }				
				engine_type_slot = radial_engine_3_2x
				special_type_slot_1 = fuel_tanks_medium
				special_type_slot_2 = hmg_defense_turret
				special_type_slot_3 = twin_hmg_defense_gunner_2x
				special_type_slot_5 = { any_of = { radio_navigation_2 radio_navigation_1 } } 
			}
		}
		allowed_modules = {
			torpedo_mounting
			engine_2_1x
			straight_wing
			radial_engine_2_1x
			nav_bomber_weapon
			fuel_tanks_small
			self_sealing_fuel_tanks_small
			high_octane_fuel
			air_ground_radar_1
			air_ground_radar_2
			air_ground_radar_3
			air_ground_radar_4
		}
	}
	
	naval_bomber_2 = {
		#name = "PBB Sea Ranger"
		priority = {
			factor = 200
			modifier = { 
				has_tech = modern_medium_airframe
				factor = 0 #let's not waste XP here
			}
		}
		#override_sprite = "GFX_generic_XPBB_SeaRanger"
		#history = yes
		target_variant = {
			match_value = 4000
			type = medium_plane_naval_bomber_airframe_3
			modules = {
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = injection_system
				fixed_engine_mod_slot = supercharger					
				fixed_radar_slot = air_ground_radar_3
				fixed_main_weapon_slot = { any_of { torpedo_mounting_3 torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = medium_bomb_bay
				fixed_electronics_slot = early_radar_jammer
				engine_type_slot = radial_engine_3_2x
				special_type_slot_1 = hmg_defense_turret_3x
				special_type_slot_2 = hmg_defense_gunner_3x	
				special_type_slot_3 = flying_boat_medium
				special_type_slot_4 = fuel_tanks_medium	
			}
		}
		allowed_modules = {
			torpedo_mounting
			lmg_defense_turret
			bomb_locks
			engine_2_2x
			straight_wing
			nav_bomber_weapon
			small_bomb_bay
			radial_engine_3_1x
			hmg_defense_turret
			fuel_tanks_small
			armor_plate_small
			self_sealing_fuel_tanks_small
			high_octane_fuel
			air_ground_radar_1
			air_ground_radar_2
			air_ground_radar_3
			air_ground_radar_4
			airdropped_mines		
			demining_coil			
			high_octane_fuel
			self_sealing_fuel_tanks_small
		}
	}

	naval_bomber_3 = {
		#name = "P3B-1"
		priority = {
			factor = 200
			modifier = { 
				has_tech = modern_medium_airframe_2
				factor = 0 #let's not waste XP here
			}
		}
		#override_sprite = "GFX_generic_P3B"
		#history = yes
		target_variant = {
			match_value = 5000
			type = medium_plane_naval_bomber_airframe_4
			modules = {
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = contra_rotating_props		
				fixed_engine_mod_slot = supercharger		
				fixed_radar_slot = air_ground_radar_3
				fixed_main_weapon_slot = { any_of { guided_anti_ship_missile torpedo_mounting_3 torpedo_mounting_2 torpedo_mounting } }
				#fixed_auxiliary_weapon_slot_1 = { any_of { guided_anti_ship_missile torpedo_mounting_3 torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_electronics_slot = early_radar_jammer
				engine_type_slot = radial_engine_4_2x
				special_type_slot_1 = fuel_tanks_medium
				special_type_slot_2 = { any_of = { mad_1 mad_2 } }
				special_type_slot_3 = pressurized_cabin_medium
				special_type_slot_5 = { any_of = { radio_navigation_2 radio_navigation_1 } } 
			}
		}

		allowed_modules = {
			torpedo_mounting
			bomb_locks
			engine_3_1x
			lmg_defense_turret
			straight_wing
			air_ground_radar_1
			air_ground_radar_2
			air_ground_radar_3
			air_ground_radar_4
			air_ground_radar_5
			air_ground_radar_6
			nav_bomber_weapon
			small_bomb_bay
			heavy_mg_2x
			radial_engine_4_1x
			hmg_defense_turret
			fuel_tanks_small
			armor_plate_small
			lmg_defense_turret
			mad_1
			mad_2
			torpedo_mounting_3
			torpedo_mounting_2
			torpedo_mounting
			guided_anti_ship_missile
			guided_anti_ship_missile_2
			guided_anti_ship_missile_4	
			airdropped_mines		
			demining_coil			
			high_octane_fuel
			self_sealing_fuel_tanks_small		
		}
	}
	
	naval_bomber_4 = {
		#name = "P2V Neptune"
		#override_sprite = "GFX_generic_P2V"
		#history = yes
		priority = {
			factor = 200
			modifier = { 
				has_tech = modern_medium_airframe_3
				factor = 0 #let's not waste XP here
			}
		}
		target_variant = {
			match_value = 8000
			type = medium_plane_naval_bomber_airframe_5
			modules = {
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = injection_system		
				fixed_engine_mod_slot = supercharger
				fixed_radar_slot = { any_of = { air_ground_radar_3 air_ground_radar_2 air_ground_radar_1 } } 				
				fixed_main_weapon_slot = { any_of { guided_anti_ship_missile_2 guided_anti_ship_missile torpedo_mounting_3 torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = { any_of { guided_anti_ship_missile_2 guided_anti_ship_missile torpedo_mounting_3 torpedo_mounting_2 torpedo_mounting } }
				#fixed_auxiliary_weapon_slot_2 = cas_weapon
				#fixed_auxiliary_weapon_slot_3 = cas_weapon
				fixed_electronics_slot = basic_radar_jammer
				engine_type_slot = radial_engine_5_2x
				special_type_slot_1 = fuel_tanks_medium
				special_type_slot_2 = pressurized_cabin_medium
				special_type_slot_3 = { any_of = { mad_2 mad_1 } }
				special_type_slot_5 = { any_of = { radio_navigation_2 radio_navigation_1 } } 
			}
		}

		allowed_modules = {
			torpedo_mounting
			bomb_locks
			engine_3_1x
			lmg_defense_turret
			straight_wing
			air_ground_radar_1
			air_ground_radar_2
			air_ground_radar_3
			air_ground_radar_4
			air_ground_radar_5
			air_ground_radar_6
			nav_bomber_weapon
			small_bomb_bay
			heavy_mg_2x
			radial_engine_4_1x
			hmg_defense_turret
			fuel_tanks_small
			armor_plate_small
			lmg_defense_turret
			mad_1
			mad_2
			torpedo_mounting_3
			torpedo_mounting_2
			torpedo_mounting
			guided_anti_ship_missile
			guided_anti_ship_missile_2
			guided_anti_ship_missile_4	
			airdropped_mines		
			demining_coil			
			high_octane_fuel
			self_sealing_fuel_tanks_small
		}
	}

	naval_bomber_5 = {
		#name = "P4M Mercator"
		#override_sprite = "GFX_generic_P4M"
		#history = yes
		priority = {
			factor = 200
			modifier = { 
				has_tech = modern_medium_airframe_4
				factor = 0 #let's not waste XP here
			}
		}
		target_variant = {
			match_value = 8000
			type = medium_plane_naval_bomber_airframe_6
			modules = {
				fixed_wing_slot = straight_wing
				#fixed_optics_slot = empty
				fixed_aux_prop_slot = aux_jet_engine_2x
				fixed_engine_mod_slot = supercharger
				fixed_radar_slot =  { any_of = { air_ground_radar_3 air_ground_radar_2 air_ground_radar_1 } } 		
				fixed_main_weapon_slot = { any_of = { guided_anti_ship_missile_4 torpedo_mounting_3 torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = { any_of { guided_anti_ship_missile_4 torpedo_mounting_3 torpedo_mounting_2 torpedo_mounting } }
				fixed_electronics_slot = basic_radar_jammer
				engine_type_slot = radial_engine_5_2x
				special_type_slot_1 = pressurized_cabin_medium
				special_type_slot_2 = { any_of = { mad_1 mad_2 } }
				special_type_slot_3 = hmg_defense_turret_3x
				
			}
		}

		allowed_modules = {
			torpedo_mounting
			bomb_locks
			engine_3_1x
			lmg_defense_turret
			straight_wing
			air_ground_radar_1
			air_ground_radar_2
			air_ground_radar_3
			air_ground_radar_4
			air_ground_radar_5
			air_ground_radar_6
			nav_bomber_weapon
			small_bomb_bay
			heavy_mg_2x
			radial_engine_4_1x
			hmg_defense_turret
			fuel_tanks_small
			armor_plate_small
			lmg_defense_turret
			mad_1
			mad_2
			torpedo_mounting_3
			torpedo_mounting_2
			torpedo_mounting
			guided_anti_ship_missile
			guided_anti_ship_missile_2
			guided_anti_ship_missile_4	
			airdropped_mines		
			demining_coil			
			high_octane_fuel
			self_sealing_fuel_tanks_small
		}
	}

	naval_bomber_6 = {
		#name = "P5M Marlin"
		#override_sprite = "GFX_generic_LAMP_p5m_1"
		#history = yes
		priority = {
			factor = 200
			modifier = { 
				has_tech = modern_medium_airframe_5
				factor = 0 #let's not waste XP here
			}
		}
		target_variant = {
			match_value = 8000
			type = medium_plane_naval_bomber_airframe_7
			modules = {
				fixed_wing_slot = straight_wing
				#fixed_optics_slot = empty
				fixed_aux_prop_slot = aux_jet_engine_2x
				fixed_engine_mod_slot = supercharger
				fixed_radar_slot = { any_of = { air_ground_radar_3 air_ground_radar_2 air_ground_radar_1 } } 		
				fixed_main_weapon_slot = { any_of { guided_anti_ship_missile_4 guided_anti_ship_missile_2 torpedo_mounting_3 torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = { any_of { guided_anti_ship_missile_4 guided_anti_ship_missile_2 torpedo_mounting_3 torpedo_mounting_2 torpedo_mounting } }
				fixed_electronics_slot = improved_radar_jammer
				engine_type_slot = radial_engine_4_2x
				special_type_slot_1 = fuel_tanks_medium
				special_type_slot_2 = pressurized_cabin_medium
				special_type_slot_3 = { any_of = { mad_1 mad_2 } }
				special_type_slot_4 = hmg_defense_turret_3x
			}
		}

		allowed_modules = {
			torpedo_mounting
			bomb_locks
			engine_3_1x
			lmg_defense_turret
			straight_wing
			air_ground_radar_1
			air_ground_radar_2
			air_ground_radar_3
			air_ground_radar_4
			air_ground_radar_5
			air_ground_radar_6
			nav_bomber_weapon
			small_bomb_bay
			heavy_mg_2x
			radial_engine_4_1x
			hmg_defense_turret
			fuel_tanks_small
			armor_plate_small
			lmg_defense_turret
			mad_1
			mad_2
			torpedo_mounting_3
			torpedo_mounting_2
			torpedo_mounting
			guided_anti_ship_missile
			guided_anti_ship_missile_2
			guided_anti_ship_missile_4	
			airdropped_mines		
			demining_coil			
			high_octane_fuel
			self_sealing_fuel_tanks_small
		}
	}

	naval_bomber_7 = {
		#name = "P6Y"
		#override_sprite = "GFX_generic_XP6Y"
		#history = yes
		priority = {
			factor = 200
		}
		target_variant = {
			match_value = 8000
			type = medium_plane_naval_bomber_airframe_8
			modules = {
				fixed_wing_slot = straight_wing
				fixed_optics_slot = empty
				fixed_engine_mod_slot = supercharger
				#fixed_radar_slot =  { any_of = { air_ground_radar_5 air_ground_radar_4 air_ground_radar_3 } } 
				fixed_aux_prop_slot = aux_jet_engine_2x
				fixed_main_weapon_slot = { any_of { guided_anti_ship_missile_4 guided_anti_ship_missile_2 torpedo_mounting_3 torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = { any_of { guided_anti_ship_missile_4 guided_anti_ship_missile_2 torpedo_mounting_3 torpedo_mounting_2 torpedo_mounting } }
				# fixed_auxiliary_weapon_slot_2 = { any_of { guided_anti_ship_missile_4 guided_anti_ship_missile_2 torpedo_mounting_3 torpedo_mounting_2 torpedo_mounting } }
				# fixed_auxiliary_weapon_slot_3 = { any_of { guided_anti_ship_missile_4 guided_anti_ship_missile_2 torpedo_mounting_3 torpedo_mounting_2 torpedo_mounting } }
				fixed_electronics_slot = improved_radar_jammer
				engine_type_slot = radial_engine_4_3x
				special_type_slot_2 = fuel_tanks_medium
				special_type_slot_3 = { any_of = { mad_1 mad_2 } }
				special_type_slot_5 = { any_of = { radio_navigation_2 radio_navigation_1 } } 
			}
		}

		allowed_modules = {
			torpedo_mounting
			bomb_locks
			engine_3_1x
			lmg_defense_turret
			straight_wing
			air_ground_radar_1
			air_ground_radar_2
			air_ground_radar_3
			air_ground_radar_4
			air_ground_radar_5
			air_ground_radar_6
			nav_bomber_weapon
			small_bomb_bay
			heavy_mg_2x
			radial_engine_4_1x
			hmg_defense_turret
			fuel_tanks_small
			armor_plate_small
			lmg_defense_turret
			mad_1
			mad_2
			torpedo_mounting_3
			torpedo_mounting_2
			torpedo_mounting
			guided_anti_ship_missile
			guided_anti_ship_missile_2
			guided_anti_ship_missile_4	
			airdropped_mines		
			demining_coil			
			high_octane_fuel
			self_sealing_fuel_tanks_small
		}
	}
}

generic_cv_fighter = {

	category = air

	#blocked_for = {  ALK USA REP JAP }

	available_for = {}

	roles = {
		air_cv_fighter
	}

	priority = {
		factor = 1000
		modifier = {
			has_navy_size = {
				type = carrier
 	  			size < 1
			}
			factor = 0
		}
		modifier = {
			has_war_with = JAP
			factor = 2
		}
	}

	great_war_cv_fighter_default = {
	
		#name = "F3F-3"	
		#override_sprite = "GFX_generic_LAMP_f3f_3"
		#history = yes
		
		priority = {
			factor = 1
			modifier = { 
				has_tech = basic_small_airframe
				factor = 0 #let's not waste XP here
			}
		}
		
		target_variant = {
			match_value = 1
			type = cv_small_plane_airframe_0
			modules = {
				fixed_wing_slot = biplane_wing
				fixed_main_weapon_slot = light_mg_2x
				engine_type_slot = radial_engine_1_1x
			}
		}

		allowed_modules = {
			biplane_wing
			engine_1_1x
			light_mg_2x
			light_mg_4x
		}
	}

	basic_cv_fighter_default = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = improved_small_airframe
				factor = 0 #let's not waste XP here
			}
		}
		#name = "F4F-4 Wildcat"
		#override_sprite = "GFX_generic_LAMP_f4f_4"
		#history = yes
		target_variant = {
			match_value = 1000
			type = cv_small_plane_airframe_1
			modules = {
				fixed_wing_slot = straight_wing
				fixed_radar_slot = empty
				fixed_aux_prop_slot = empty
				fixed_optics_slot = reflex_gunsight
				fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = { any_of = { heavy_mg_4x light_mg_4x } }				
				fixed_auxiliary_weapon_slot_1 = { any_of = { heavy_mg_2x light_mg_2x } }
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				engine_type_slot = radial_engine_2_1x
			}
		}

		allowed_modules = {
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			engine_2_1x
			armor_plate_small
			straight_wing	
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
		}
	}
	basic_cv_fighter_default_b = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = improved_small_airframe
				factor = 0 #let's not waste XP here
			}
		}
		#name = "F4F-3 Wildcat"
		#override_sprite = "GFX_generic_LAMP_f4f_3"
		#history = yes
		target_variant = {
			match_value = 1000
			type = cv_small_plane_airframe_1
			modules = {
				fixed_wing_slot = straight_wing
				fixed_radar_slot = empty
				fixed_aux_prop_slot = empty
				fixed_optics_slot = reflex_gunsight
				fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = { any_of = { heavy_mg_4x light_mg_4x } }				
				#fixed_auxiliary_weapon_slot_1 = { any_of = { heavy_mg_2x light_mg_2x } }
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				engine_type_slot = radial_engine_2_1x
			}
		}

		allowed_modules = {
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			engine_2_1x
			armor_plate_small
			straight_wing	
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
		}
	}

	improved_cv_fighter_default = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_small_airframe
				factor = 0 #let's not waste XP here
			}
		}
		#name = "F6F-5 Hellcat"
		#override_sprite = "GFX_generic_LAMP_f6f_5"
		#history = yes
		target_variant = {
			match_value = 2000
			type = cv_small_plane_airframe_2
			modules = {
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = { any_of = { heavy_mg_2_4x heavy_mg_4x  } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { heavy_mg_2_2x heavy_mg_2x  } }
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				engine_type_slot = radial_engine_3_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small	
			}
		}

		allowed_modules = {
			heavy_mg_4x
			heavy_mg_2x
			aircraft_cannon_1_2x
			radial_engine_3_1x
			engine_3_1x
			turbocharger
			supercharger
			reflex_gunsight
			semielliptical_wing
			straight_wing
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
		}
	}
	
	improved_cv_fighter_default_b = {
		priority = {
			factor = 1
		}
		#name = "F6F-3 Hellcat"
		#override_sprite = "GFX_generic_LAMP_f6f_3"
		#history = yes
		target_variant = {
			match_value = 1
			type = cv_small_plane_airframe_2
			modules = {
				fixed_wing_slot = straight_wing
				#fixed_radar_slot = { any_of = { air_air_radar_3 air_air_radar_2 } }
				#fixed_aux_prop_slot = injection_system
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = { any_of = { heavy_mg_2_4x heavy_mg_4x  } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { heavy_mg_2_2x heavy_mg_2x  } }
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				engine_type_slot = radial_engine_3_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small	
					
			}
		}

		allowed_modules = {
			heavy_mg_4x
			heavy_mg_2x
			aircraft_cannon_1_2x
			radial_engine_3_1x
			engine_3_1x
			turbocharger
			supercharger
			reflex_gunsight
			semielliptical_wing
			straight_wing
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
		}
	}

	improved_cv_fighter_default_c = {
		priority = {
			factor = 1
		}
		#name = "F6F-3E Hellcat"
		#override_sprite = "GFX_generic_LAMP_f6f_3e"
		#history = yes
		target_variant = {
			match_value = 1
			type = cv_small_plane_airframe_2
			modules = {
				fixed_wing_slot = straight_wing
				fixed_radar_slot = air_air_radar_1
				#fixed_aux_prop_slot = injection_system
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = { any_of = { heavy_mg_2_4x heavy_mg_4x  } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { heavy_mg_2_2x heavy_mg_2x  } }
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				engine_type_slot = radial_engine_3_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small	
					
			}
		}
	} 
	
	improved_cv_fighter_default_d = {
		priority = {
			factor = 1
		}
		#name = "F6F-3N Hellcat"
		#override_sprite = "GFX_generic_LAMP_f6f_3n"
		#history = yes
		target_variant = {
			match_value = 1
			type = cv_small_plane_airframe_2
			modules = {
				fixed_wing_slot = straight_wing
				fixed_radar_slot = { any_of = { air_air_radar_3 air_air_radar_2 } }
				#fixed_aux_prop_slot = injection_system
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = { any_of = { heavy_mg_2_4x heavy_mg_4x  } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { heavy_mg_2_2x heavy_mg_2x  } }
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				engine_type_slot = radial_engine_3_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small	
					
			}
		}

		allowed_modules = {
			heavy_mg_4x
			heavy_mg_2x
			aircraft_cannon_1_2x
			radial_engine_3_1x
			engine_3_1x
			turbocharger
			supercharger
			reflex_gunsight
			semielliptical_wing
			straight_wing
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
		}
	}
	
	improved_cv_fighter_default_e = {
		priority = {
			factor = 1
		}
		#name = "F6F-5N Hellcat"
		#override_sprite = "GFX_generic_LAMP_f6f_5n"
		#history = yes
		target_variant = {
			match_value = 1
			type = cv_small_plane_airframe_2
			modules = {
				fixed_wing_slot = straight_wing
				fixed_radar_slot = { any_of = { air_air_radar_3 air_air_radar_2 } }
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = heavy_mg_4x
				fixed_auxiliary_weapon_slot_1 = { any_of = { aircraft_cannon_2_2x aircraft_cannon_1_2x } }
				fixed_auxiliary_weapon_slot_2 = { any_of = { heavy_mg_2_4x heavy_mg_4x } }
				fixed_auxiliary_weapon_slot_3 = drop_tanks
				engine_type_slot = radial_engine_3_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small	
					
			}
		}

		allowed_modules = {
			heavy_mg_4x
			heavy_mg_2x
			aircraft_cannon_1_2x
			radial_engine_3_1x
			engine_3_1x
			turbocharger
			supercharger
			reflex_gunsight
			semielliptical_wing
			straight_wing
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
		}
	}
	
	improved_cv_fighter_default_e = {
		priority = {
			factor = 1
		}
		#name = "F6F-5P Hellcat"
		#override_sprite = "GFX_generic_LAMP_f6f_5p"
		#history = yes
		target_variant = {
			match_value = 1
			type = cv_small_plane_airframe_2
			modules = {
				fixed_wing_slot = straight_wing
				#fixed_radar_slot = { any_of = { air_air_radar_3 air_air_radar_2 } }
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = { any_of = { heavy_mg_2_4x heavy_mg_4x  } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { heavy_mg_2_2x heavy_mg_2x  } }
				fixed_auxiliary_weapon_slot_2 = recon_camera
				fixed_auxiliary_weapon_slot_3 = drop_tanks
				engine_type_slot = radial_engine_3_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small	
					
			}
		}

		allowed_modules = {
			heavy_mg_4x
			heavy_mg_2x
			aircraft_cannon_1_2x
			radial_engine_3_1x
			engine_3_1x
			turbocharger
			supercharger
			reflex_gunsight
			semielliptical_wing
			straight_wing
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
		}
	}

	advanced_cv_fighter_default = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe
				factor = 0 #let's not waste XP here
			}
		}
		#override_sprite = "GFX_generic_LAMP_f4u_1a"
		#history = yes
		#name = "F4U-1A Corsair"
		target_variant = {
			match_value = 3000
			type = cv_small_plane_airframe_3
			modules = {
				fixed_wing_slot = inverted_gull_wings
				#fixed_radar_slot = empty
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = { any_of = { heavy_mg_2_4x heavy_mg_4x  } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { heavy_mg_2_2x heavy_mg_2x  } }
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = radial_engine_4_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small	
			}
		}

		allowed_modules = { 
			heavy_mg_4x
			heavy_mg_2x
			aircraft_cannon_1_2x
			radial_engine_4_1x
			engine_4_1x
			turbocharger
			supercharger
			reflex_gunsight
			semielliptical_wing
			straight_wing
			laminar_flow_straight_wing
			plane_optics
			bomb_locks
			rocket_rails
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
		}
	}

	advanced_cv_fighter_default_b = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe
				factor = 0 #let's not waste XP here
			}
		}
		#override_sprite = "GFX_generic_LAMP_f4u_1"
		#history = yes
		#name = "F4U-1 Corsair"
		target_variant = {
			match_value = 1
			type = cv_small_plane_airframe_3
			modules = {
				fixed_wing_slot = inverted_gull_wings
				#fixed_radar_slot = empty
				#fixed_aux_prop_slot = injection_system
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = { any_of = { heavy_mg_2_4x heavy_mg_4x  } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { heavy_mg_2_2x heavy_mg_2x  } }
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = radial_engine_4_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small	
			}
		}

		allowed_modules = { 
			heavy_mg_4x
			heavy_mg_2x
			aircraft_cannon_1_2x
			radial_engine_4_1x
			engine_4_1x
			turbocharger
			supercharger
			reflex_gunsight
			semielliptical_wing
			straight_wing
			laminar_flow_straight_wing
			plane_optics
			bomb_locks
			rocket_rails
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
		}
	}

	advanced_cv_fighter_default_c = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe
				factor = 0 #let's not waste XP here
			}
		}
		#override_sprite = "GFX_generic_LAMP_f4u_1c"
		#history = yes
		#name = "F4U-1C Corsair"
		target_variant = {
			match_value = 1
			type = cv_small_plane_airframe_3
			modules = {
				fixed_wing_slot = inverted_gull_wings
				#fixed_radar_slot = empty
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = { any_of = { aircraft_cannon_2_2x aircraft_cannon_1_2x  } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { aircraft_cannon_2_2x aircraft_cannon_1_2x  } }
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_auxiliary_weapon_slot_3 = { any_of = { heavy_bomb_locks bomb_locks } }
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = radial_engine_4_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small	
			}
		}

		allowed_modules = { 
			heavy_mg_4x
			heavy_mg_2x
			aircraft_cannon_1_2x
			radial_engine_4_1x
			engine_4_1x
			turbocharger
			supercharger
			reflex_gunsight
			semielliptical_wing
			straight_wing
			laminar_flow_straight_wing
			plane_optics
			bomb_locks
			rocket_rails
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
		}
	}

	advanced_cv_fighter_default_d = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe
				factor = 0 #let's not waste XP here
			}
		}
		#override_sprite = "GFX_generic_LAMP_f4u_4"
		#history = yes
		#name = "F4U-4 Corsair"
		target_variant = {
			match_value = 1
			type = cv_small_plane_airframe_3
			modules = {
				fixed_wing_slot = inverted_gull_wings
				#fixed_radar_slot = empty
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = turbocharger
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = { any_of = { heavy_mg_2_4x heavy_mg_4x } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { heavy_mg_2_2x heavy_mg_2x } }
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_auxiliary_weapon_slot_3 = { any_of = { heavy_bomb_locks bomb_locks  } }
				fixed_auxiliary_weapon_slot_4 = { any_of = { imp_rocket_rails rocket_rails } }
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = radial_engine_4_1x
				special_type_slot_1 = armor_plate_small
				#special_type_slot_2 = fuel_tanks_small	
			}
		}

		allowed_modules = { 
			heavy_mg_4x
			heavy_mg_2x
			aircraft_cannon_1_2x
			radial_engine_4_1x
			engine_4_1x
			turbocharger
			supercharger
			reflex_gunsight
			semielliptical_wing
			straight_wing
			laminar_flow_straight_wing
			plane_optics
			bomb_locks
			rocket_rails
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
		}
	}

	advanced_cv_fighter_default_e = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe
				factor = 0 #let's not waste XP here
			}
		}
		#override_sprite = "GFX_generic_LAMP_f4u_5"
		#history = yes
		#name = "F4U-5 Corsair"
		target_variant = {
			match_value = 1
			type = cv_small_plane_airframe_3
			modules = {
				fixed_wing_slot = inverted_gull_wings
				#fixed_radar_slot = empty
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = { any_of = { heavy_mg_2_4x heavy_mg_4x } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { heavy_mg_2_2x heavy_mg_2x } }
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_auxiliary_weapon_slot_3 = { any_of = { heavy_bomb_locks bomb_locks  } }
				fixed_auxiliary_weapon_slot_4 = { any_of = { imp_rocket_rails rocket_rails } }
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = radial_engine_5_1x
				special_type_slot_1 = armor_plate_small
				#special_type_slot_2 = fuel_tanks_small	
			}
		}

		allowed_modules = { 
			heavy_mg_4x
			heavy_mg_2x
			aircraft_cannon_1_2x
			radial_engine_4_1x
			engine_4_1x
			turbocharger
			supercharger
			reflex_gunsight
			semielliptical_wing
			straight_wing
			laminar_flow_straight_wing
			plane_optics
			bomb_locks
			rocket_rails
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
		}
	}

	advanced_cv_fighter_default_f = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe
				factor = 0 #let's not waste XP here
			}
		}
		#override_sprite = "GFX_generic_LAMP_f2g"
		#history = yes
		#name = "F2G Corsair"
		target_variant = {
			match_value = 1
			type = cv_small_plane_airframe_3
			modules = {
				fixed_wing_slot = inverted_gull_wings
				#fixed_radar_slot = empty
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = turbocharger
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = { any_of = { heavy_mg_2_4x heavy_mg_4x } }
				fixed_auxiliary_weapon_slot_1 = drop_tanks
				fixed_auxiliary_weapon_slot_2 = { any_of = { heavy_bomb_locks bomb_locks  } }
				fixed_auxiliary_weapon_slot_3 = { any_of = { imp_rocket_rails rocket_rails } }
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = radial_engine_5_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small	
				special_type_slot_3 = fuel_tanks_small	
			}
		}

		allowed_modules = { 
			heavy_mg_4x
			heavy_mg_2x
			aircraft_cannon_1_2x
			radial_engine_4_1x
			engine_4_1x
			turbocharger
			supercharger
			reflex_gunsight
			semielliptical_wing
			straight_wing
			laminar_flow_straight_wing
			plane_optics
			bomb_locks
			rocket_rails
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
		}
	}

	advanced_cv_fighter_default_g = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe
				factor = 0 #let's not waste XP here
			}
		}
		#override_sprite = "GFX_generic_LAMP_au_1"
		#history = yes
		#name = "AU-1 Corsair"
		target_variant = {
			match_value = 1
			type = cv_small_plane_airframe_3
			modules = {
				fixed_wing_slot = straight_wing
				#fixed_radar_slot = empty
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = turbocharger
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = { any_of = { heavy_mg_2_4x heavy_mg_4x } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { heavy_mg_2_2x heavy_mg_2x } }
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_auxiliary_weapon_slot_3 = { any_of = { heavy_bomb_locks bomb_locks  } }
				fixed_auxiliary_weapon_slot_4 = { any_of = { imp_rocket_rails rocket_rails } }
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = radial_engine_4_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = armor_plate_small	
			}
		}

		allowed_modules = { 
			heavy_mg_4x
			heavy_mg_2x
			aircraft_cannon_1_2x
			radial_engine_4_1x
			engine_4_1x
			turbocharger
			supercharger
			reflex_gunsight
			semielliptical_wing
			straight_wing
			laminar_flow_straight_wing
			plane_optics
			bomb_locks
			rocket_rails
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
		}
	}

	advanced_cv_fighter_default_h = {
		priority = {
			factor = 1
			modifier = { 
				has_tech = modern_small_airframe
				factor = 0 #let's not waste XP here
			}
		}
		#override_sprite = "GFX_generic_LAMP_etf_51d"
		#history = yes
		#name = "ETF-51D Sea Horse"
		target_variant = {
			match_value = 1
			type = cv_small_plane_airframe_3			
			modules = {
				fixed_wing_slot = laminar_flow_straight_wing
				fixed_radar_slot = empty
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = {
					any_of = { 
						reflex_gunsight 
						gyro_gunsight 
					}
				}	
				fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = high_octane_fuel 
				fixed_main_weapon_slot = {
					any_of = { 
						heavy_mg_2_4x 
						heavy_mg_4x 
					}
				}	
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						heavy_mg_2_2x 
						heavy_mg_2x 
					}
				}	
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = engine_5_1x
				special_type_slot_1 = fuel_tanks_small
				special_type_slot_2 = pressurized_cabin_small	
				special_type_slot_3 = self_sealing_fuel_tanks_small		
			}
		}

		allowed_modules = { 
			heavy_mg_4x
			heavy_mg_2x
			aircraft_cannon_1_2x
			radial_engine_4_1x
			engine_4_1x
			turbocharger
			supercharger
			reflex_gunsight
			semielliptical_wing
			straight_wing
			laminar_flow_straight_wing
			plane_optics
			bomb_locks
			rocket_rails
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
		}
	}
	
	jet_cv_fighter_default = {
		priority = {
			factor = 1
			modifier = {
				has_War = yes
				factor = 100
			}
			modifier = { 
				has_tech = modern_small_airframe_2
				factor = 0 #let's not waste XP here
			}
		}
		#override_sprite = "GFX_generic_LAMP_f8f_1b"
		#history = yes
		#name = "F8F-1B Bearcat"
		target_variant = {
			match_value = 4000
			type = cv_small_plane_airframe_4
			modules = {
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = supercharger
				fixed_main_weapon_slot = { any_of = { aircraft_cannon_3_2x aircraft_cannon_2_2x  } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { aircraft_cannon_3_2x aircraft_cannon_2_2x  } }
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = radial_engine_5_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small	
				special_type_slot_3 = {	any_of = { g_suit_3 g_suit_2 g_suit_1 } }	
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			jet_engine_2x
			radial_engine_4_1x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
			g_suit_type
		}
	}
	
	jet_cv_fighter_default_b = {
		priority = {
			factor = 1
		}
		#override_sprite = "GFX_generic_LAMP_f8f_1"
		#history = yes
		#name = "F8F-1 Bearcat"
		target_variant = {
			match_value = 4000
			type = cv_small_plane_airframe_4
			modules = {
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = supercharger
				fixed_main_weapon_slot = { any_of = { heavy_mg_2_4x heavy_mg_4x } }
				fixed_auxiliary_weapon_slot_1 = drop_tanks
				fixed_auxiliary_weapon_slot_2 = { any_of = { heavy_bomb_locks bomb_locks  } }
				fixed_auxiliary_weapon_slot_3 = { any_of = { imp_rocket_rails rocket_rails  } }
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = radial_engine_5_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small	
				special_type_slot_3 = {	any_of = { g_suit_3 g_suit_2 g_suit_1 } }	
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			jet_engine_2x
			radial_engine_4_1x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
			g_suit_type
		}
	}
	
	jet_cv_fighter_default_c = {
		priority = {
			factor = 1
		}
		#override_sprite = "GFX_generic_LAMP_f8f_1p"
		#history = yes
		#name = "F8F-1 Bearcat"
		target_variant = {
			match_value = 4000
			type = cv_small_plane_airframe_4
			modules = {
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = supercharger
				fixed_main_weapon_slot = { any_of = { heavy_mg_2_4x heavy_mg_4x } }
				fixed_auxiliary_weapon_slot_1 = drop_tanks
				fixed_auxiliary_weapon_slot_2 = recon_camera
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = radial_engine_5_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small	
				special_type_slot_3 = {	any_of = { g_suit_3 g_suit_2 g_suit_1 } }	
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			jet_engine_2x
			radial_engine_4_1x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
			g_suit_type
		}
	}
	
	jet_cv_fighter_default_d = {
		priority = {
			factor = 1
		}
		#override_sprite = "GFX_generic_LAMP_f8f_2"
		#history = yes
		#name = "F8F-2 Bearcat"
		target_variant = {
			match_value = 4000
			type = cv_small_plane_airframe_4
			modules = {
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = supercharger
				fixed_main_weapon_slot = { any_of = { aircraft_cannon_3_2x aircraft_cannon_2_2x  } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { aircraft_cannon_3_2x aircraft_cannon_2_2x  } }
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_auxiliary_weapon_slot_3 = { any_of = { heavy_bomb_locks bomb_locks  } }
				fixed_auxiliary_weapon_slot_4 = { any_of = { imp_rocket_rails rocket_rails  } }
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = radial_engine_5_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small
				special_type_slot_3 = {	any_of = { g_suit_3 g_suit_2 g_suit_1 } }	
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			jet_engine_2x
			radial_engine_4_1x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
			g_suit_type
		}
	}
	
	jet_cv_fighter_default_d = {
		priority = {
			factor = 1
		}
		#override_sprite = "GFX_generic_LAMP_f8f_2n"
		#history = yes
		#name = "F8F-2N Bearcat"
		target_variant = {
			match_value = 4000
			type = cv_small_plane_airframe_4
			modules = {
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = injection_system
				fixed_radar_slot = { any_of = { air_air_radar_3 air_air_radar_2 air_air_radar_1 } }
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = supercharger
				fixed_main_weapon_slot = { any_of = { aircraft_cannon_3_2x aircraft_cannon_2_2x  } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { aircraft_cannon_3_2x aircraft_cannon_2_2x  } }
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = radial_engine_5_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small
				special_type_slot_3 = {	any_of = { g_suit_3 g_suit_2 g_suit_1 } }	
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			jet_engine_2x
			radial_engine_4_1x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
			g_suit_type
		}
	}
	
	jet_cv_fighter_default_e = {
		priority = {
			factor = 1
		}
		#override_sprite = "GFX_generic_LAMP_f8f_2p"
		#history = yes
		#name = "F8F-2P Bearcat"
		target_variant = {
			match_value = 4000
			type = cv_small_plane_airframe_4
			modules = {
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = supercharger
				fixed_main_weapon_slot = { any_of = { aircraft_cannon_3_2x aircraft_cannon_2_2x  } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { aircraft_cannon_3_2x aircraft_cannon_2_2x  } }
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_auxiliary_weapon_slot_3 = recon_camera
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = radial_engine_5_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small
				special_type_slot_3 = {	any_of = { g_suit_3 g_suit_2 g_suit_1 } }	
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			jet_engine_2x
			radial_engine_4_1x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
			g_suit_type
		}
	}
	
	jet_cv_fighter_default_f = {
		priority = {
			factor = 1
		}
		#override_sprite = "GFX_generic_LAMP_fj_1"
		#history = yes
		#name = "FJ-1 Fury"
		target_variant = {
			match_value = 4000
			type = cv_small_plane_airframe_4
			modules = {
				fixed_wing_slot = straight_wing
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				#fixed_aux_prop_slot = aux_jet_engine
				fixed_main_weapon_slot = { any_of = { heavy_mg_2_4x heavy_mg_4x } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { heavy_mg_2_2x heavy_mg_2x  } }
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = jet_engine_1x
				special_type_slot_2 = {	any_of = { g_suit_3 g_suit_2 g_suit_1 } }	
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			jet_engine_2x
			radial_engine_4_1x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
			g_suit_type
		}
	}
	
	jet_cv_fighter_default_h = {
		priority = {
			factor = 1
		}
		#override_sprite = "GFX_generic_LAMP_fr_1"
		#history = yes
		#name = "FR-1 Fireball"
		target_variant = {
			match_value = 1
			type = cv_small_plane_airframe_4
			modules = {
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = aux_jet_engine
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = supercharger
				fixed_main_weapon_slot = { any_of = { heavy_mg_2_4x heavy_mg_4x } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { imp_bomb_locks heavy_bomb_locks armor_piercing_bomb_locks bomb_locks } }
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = radial_engine_4_1x
				special_type_slot_1 = fuel_tanks_small
				special_type_slot_2 = {	any_of = { g_suit_3 g_suit_2 g_suit_1 } }	
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			jet_engine_2x
			radial_engine_4_1x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
			g_suit_type
		}
	}
	
	jet_cv_fighter_2_b = {
		priority = {
			factor = 1
		}
		#override_sprite = "GFX_generic_LAMP_fh_1"
		#history = yes
		#name = "FH-1 Phantom"
		target_variant = {
			match_value = 5000
			type = cv_small_plane_airframe_5
			modules = {
				fixed_wing_slot = straight_wing
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = { any_of = { heavy_mg_2_4x heavy_mg_4x } }
				fixed_auxiliary_weapon_slot_1 = drop_tanks
				fixed_electronics_slot = basic_radar_warning_system
				engine_type_slot = jet_engine_2x
				special_type_slot_1 = pressurized_cabin_small
				special_type_slot_2 = {	any_of = { g_suit_3 g_suit_2 g_suit_1 } }	
				special_type_slot_3 = fuel_tanks_small	
			}
		}
	}
	
	jet_cv_fighter_2 = {
		priority = {
			factor = 1
			modifier = {
				has_War = yes
				factor = 100
			}
			modifier = { 
				has_tech = modern_small_airframe_3
				factor = 0 #let's not waste XP here
			}
		}
		#override_sprite = "GFX_generic_LAMP_f2h_1"
		#history = yes
		#name = "F2H-1 Banshee"
		target_variant = {
			match_value = 1
			type = cv_small_plane_airframe_5
			modules = {
				fixed_wing_slot = straight_wing
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
						hud_module
					}
				}
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x 
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x 
					}
				}
				fixed_electronics_slot = basic_radar_warning_system
				engine_type_slot = jet_engine_2_2x
				special_type_slot_1 = pressurized_cabin_small
				special_type_slot_2 = {	any_of = { g_suit_3 g_suit_2 g_suit_1 } }	
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			aircraft_cannon_3_2x
			aircraft_cannon_4_2x
			jet_engine_2x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			plane_special_module_air_air_radar
			g_suit_type
			cas_weapon
			air_air_ir_missile_1_module
			air_air_ir_missile_2_module
			g_suit_1
			g_suit_2
			g_suit_3
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
			g_suit_type
			imp_bomb_locks
			air_air_radar_1
			air_air_radar_2
			air_air_radar_3
			air_air_radar_4
			air_air_radar_5
			air_air_radar_6
		}
	}
	
	jet_cv_fighter_2_c = {
		priority = {
			factor = 1
			modifier = {
				has_War = yes
				factor = 100
			}
			modifier = { 
				has_tech = modern_small_airframe_3
				factor = 0 #let's not waste XP here
			}
		}
		#override_sprite = "GFX_generic_LAMP_f2h_2"
		#history = yes
		#name = "F2H-2 Banshee"
		target_variant = {
			match_value = 1
			type = cv_small_plane_airframe_5
			modules = {
				fixed_wing_slot = straight_wing
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
						hud_module
					}
				}
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x 
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x 
					}
				}
				fixed_auxiliary_weapon_slot_2 = drop_tanks				
				#fixed_main_weapon_slot_3 = any_of = { imp_bomb_locks heavy_bomb_locks bomb_locks } }
				fixed_electronics_slot = basic_radar_warning_system
				engine_type_slot = jet_engine_2_2x
				special_type_slot_1 = pressurized_cabin_small
				special_type_slot_2 = {	any_of = { g_suit_3 g_suit_2 g_suit_1 } }	
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			aircraft_cannon_3_2x
			aircraft_cannon_4_2x
			jet_engine_2x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			plane_special_module_air_air_radar
			g_suit_type
			cas_weapon
			air_air_ir_missile_1_module
			air_air_ir_missile_2_module
			g_suit_1
			g_suit_2
			g_suit_3
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
			g_suit_type
			imp_bomb_locks
			air_air_radar_1
			air_air_radar_2
			air_air_radar_3
			air_air_radar_4
			air_air_radar_5
			air_air_radar_6
		}
	}
	
	jet_cv_fighter_2_d = {
		priority = {
			factor = 1
			modifier = {
				has_War = yes
				factor = 100
			}
			modifier = { 
				has_tech = modern_small_airframe_3
				factor = 0 #let's not waste XP here
			}
		}
		#override_sprite = "GFX_generic_LAMP_f2h_2n"
		#history = yes
		#name = "F2H-2N Banshee"
		target_variant = {
			match_value = 1
			type = cv_small_plane_airframe_5
			modules = {
				fixed_wing_slot = straight_wing
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
						hud_module
					}
				}
				fixed_radar_slot = { any_of = { air_air_radar_5 air_air_radar_4 air_air_radar_3 air_air_radar_2 } }
 				fixed_main_weapon_slot = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x 
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x 
					}
				}
				fixed_auxiliary_weapon_slot_2 = drop_tanks		
				fixed_electronics_slot = basic_radar_warning_system		
				engine_type_slot = jet_engine_2_2x
				special_type_slot_1 = pressurized_cabin_small
				special_type_slot_2 = {	any_of = { g_suit_3 g_suit_2 g_suit_1 } }	
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			aircraft_cannon_3_2x
			aircraft_cannon_4_2x
			jet_engine_2x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			plane_special_module_air_air_radar
			g_suit_type
			cas_weapon
			air_air_ir_missile_1_module
			air_air_ir_missile_2_module
			g_suit_1
			g_suit_2
			g_suit_3
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
			g_suit_type
			imp_bomb_locks
			air_air_radar_1
			air_air_radar_2
			air_air_radar_3
			air_air_radar_4
			air_air_radar_5
			air_air_radar_6
		}
	}
	
	jet_cv_fighter_2_e = {
		priority = {
			factor = 1
			modifier = {
				has_War = yes
				factor = 100
			}
			modifier = { 
				has_tech = modern_small_airframe_3
				factor = 0 #let's not waste XP here
			}
		}
		#override_sprite = "GFX_generic_LAMP_f2h_2p"
		#history = yes
		#name = "F2H-2P Banshee"
		target_variant = {
			match_value = 1
			type = cv_small_plane_airframe_5
			modules = {
				fixed_wing_slot = straight_wing
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
						hud_module
					}
				}
				#fixed_radar_slot = { any_of = { air_air_radar_5 air_air_radar_4 air_air_radar_3 air_air_radar_2 } }
 				fixed_main_weapon_slot = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x 
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x 
					}
				}
				fixed_auxiliary_weapon_slot_2 = drop_tanks				
				fixed_auxiliary_weapon_slot_3 = recon_camera
				fixed_electronics_slot = basic_radar_warning_system
				engine_type_slot = jet_engine_2_2x
				special_type_slot_1 = pressurized_cabin_small
				special_type_slot_2 = {	any_of = { g_suit_3 g_suit_2 g_suit_1 } }	
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			aircraft_cannon_3_2x
			aircraft_cannon_4_2x
			jet_engine_2x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			plane_special_module_air_air_radar
			g_suit_type
			cas_weapon
			air_air_ir_missile_1_module
			air_air_ir_missile_2_module
			g_suit_1
			g_suit_2
			g_suit_3
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
			g_suit_type
			imp_bomb_locks
			air_air_radar_1
			air_air_radar_2
			air_air_radar_3
			air_air_radar_4
			air_air_radar_5
			air_air_radar_6
		}
	}	
	
	jet_cv_fighter_2_f = {
		priority = {
			factor = 1
			modifier = {
				has_War = yes
				factor = 100
			}
			modifier = { 
				has_tech = modern_small_airframe_3
				factor = 0 #let's not waste XP here
			}
		}
		#override_sprite = "GFX_generic_LAMP_f2h_3"
		#history = yes
		#name = "F2H-3 Banshee"
		target_variant = {
			match_value = 1
			type = cv_small_plane_airframe_5
			modules = {
				fixed_wing_slot = straight_wing
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
						hud_module
					}
				}
				fixed_radar_slot = { any_of = { air_air_radar_5 air_air_radar_4 air_air_radar_3 air_air_radar_2 } }
 				fixed_main_weapon_slot = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x 
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x 
					}
				}
				fixed_auxiliary_weapon_slot_2 = drop_tanks				
				fixed_auxiliary_weapon_slot_4 = { any_of = { imp_bomb_locks heavy_bomb_locks bomb_locks } }
				fixed_auxiliary_weapon_slot_3 = { any_of = { air_air_ir_missile_2_module air_air_ir_missile_1_module } }
				fixed_electronics_slot = basic_radar_warning_system
				engine_type_slot = jet_engine_2_2x
				special_type_slot_1 = pressurized_cabin_small
				special_type_slot_2 = { any_of = { g_suit_3	g_suit_2 g_suit_1 } }
				special_type_slot_3 = fuel_tanks_small		
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			aircraft_cannon_3_2x
			aircraft_cannon_4_2x
			jet_engine_2x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			plane_special_module_air_air_radar
			g_suit_type
			cas_weapon
			air_air_ir_missile_1_module
			air_air_ir_missile_2_module
			g_suit_1
			g_suit_2
			g_suit_3
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
			g_suit_type
			imp_bomb_locks
			air_air_radar_1
			air_air_radar_2
			air_air_radar_3
			air_air_radar_4
			air_air_radar_5
			air_air_radar_6
		}
	}	
	
	jet_cv_fighter_2_h = {
		priority = {
			factor = 1
			modifier = {
				has_War = yes
				factor = 100
			}
			modifier = { 
				has_tech = modern_small_airframe_3
				factor = 0 #let's not waste XP here
			}
		}
		#override_sprite = "GFX_generic_LAMP_f2h_3"
		#history = yes
		#name = "F2H-3 Banshee"
		target_variant = {
			match_value = 1
			type = cv_small_plane_airframe_5
			modules = {
				fixed_wing_slot = straight_wing
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
						hud_module
					}
				}
				fixed_radar_slot = { any_of = { air_air_radar_5 air_air_radar_4 air_air_radar_3 air_air_radar_2 } }
 				fixed_main_weapon_slot = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x 
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x 
					}
				}
				fixed_auxiliary_weapon_slot_2 = drop_tanks				
				fixed_auxiliary_weapon_slot_4 = { any_of = { imp_bomb_locks heavy_bomb_locks bomb_locks } }
				fixed_auxiliary_weapon_slot_3 = { any_of = { air_air_ir_missile_2_module air_air_ir_missile_1_module } }
				fixed_electronics_slot = basic_radar_warning_system
				engine_type_slot = jet_engine_2_2x
				#special_type_slot_1 = armor_plate_small
				special_type_slot_2 = { any_of = { g_suit_3	g_suit_2 g_suit_1 } }
				special_type_slot_3 = fuel_tanks_small		
				special_type_slot_3 = pressurized_cabin_small
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			aircraft_cannon_3_2x
			aircraft_cannon_4_2x
			jet_engine_2x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			plane_special_module_air_air_radar
			g_suit_type
			cas_weapon
			air_air_ir_missile_1_module
			air_air_ir_missile_2_module
			g_suit_1
			g_suit_2
			g_suit_3
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
			g_suit_type
			imp_bomb_locks
			air_air_radar_1
			air_air_radar_2
			air_air_radar_3
			air_air_radar_4
			air_air_radar_5
			air_air_radar_6
		}
	}
	
	jet_cv_fighter_2_i = {
		priority = {
			factor = 1
			modifier = {
				has_War = yes
				factor = 100
			}
			modifier = { 
				has_tech = modern_small_airframe_3
				factor = 0 #let's not waste XP here
			}
		}
		#override_sprite = "GFX_generic_LAMP_fj_2"
		#history = yes
		#name = "FJ-2 Fury"
		target_variant = {
			match_value = 1
			type = cv_small_plane_airframe_5
			modules = {
				fixed_wing_slot = swept_wing
				fixed_radar_slot = empty				
				fixed_aux_prop_slot = empty
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = empty
				#fixed_fuel_type_slot = high_octane_fuel 
				fixed_main_weapon_slot = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x
					}
				}	
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x
					}
				}	
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_electronics_slot = basic_radar_warning_system
				engine_type_slot = jet_engine_2_1x
				special_type_slot_1 = pressurized_cabin_small
				special_type_slot_2 = {	any_of = { g_suit_3 g_suit_2 g_suit_1 } }	
				#special_type_slot_3 = g_suit_1		
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			aircraft_cannon_3_2x
			aircraft_cannon_4_2x
			jet_engine_2x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			plane_special_module_air_air_radar
			g_suit_type
			cas_weapon
			air_air_ir_missile_1_module
			air_air_ir_missile_2_module
			g_suit_1
			g_suit_2
			g_suit_3
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
			g_suit_type
			imp_bomb_locks
			air_air_radar_1
			air_air_radar_2
			air_air_radar_3
			air_air_radar_4
			air_air_radar_5
			air_air_radar_6
		}
	}
		
	jet_cv_fighter_3 = {
		priority = {
			factor = 1
			modifier = {
				has_War = yes
				factor = 100
			}
			modifier = { 
				has_tech = modern_small_airframe_4
				factor = 0 #let's not waste XP here
			}
		}
		#override_sprite = "GFX_generic_LAMP_f9f_2"
		#history = yes
		#name = "F9F-2 Panther"
		target_variant = {
			match_value = 6000
			type = cv_small_plane_airframe_6
			modules = {
				fixed_wing_slot = straight_wing
				fixed_optics_slot = {
					any_of = { 
						hud_module
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x 
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x 
					}
				}
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_electronics_slot = basic_radar_warning_system
				engine_type_slot = second_gen_jet_engine_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = {	any_of = { g_suit_3 g_suit_2 g_suit_1 } }		
				special_type_slot_3 = pressurized_cabin_small
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			aircraft_cannon_3_2x
			aircraft_cannon_4_2x
			jet_engine_2x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			plane_special_module_air_air_radar
			g_suit_type
			cas_weapon
			air_air_ir_missile_1_module
			air_air_ir_missile_2_module
			g_suit_1
			g_suit_2
			g_suit_3
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
			g_suit_type
			imp_bomb_locks
			air_air_radar_1
			air_air_radar_2
			air_air_radar_3
			air_air_radar_4
			air_air_radar_5
			air_air_radar_6
		}
	}
		
	jet_cv_fighter_3_b = {
		priority = {
			factor = 1
		}
		#override_sprite = "GFX_generic_LAMP_f9f_6"
		#history = yes
		#name = "F-9 Cougar"
		target_variant = {
			match_value = 1
			type = cv_small_plane_airframe_6
			modules = {
				fixed_wing_slot = swept_wing
				fixed_optics_slot = {
					any_of = { 
						hud_module
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x 
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x 
					}
				}
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_electronics_slot = basic_radar_warning_system
				engine_type_slot = second_gen_jet_engine_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = g_suit_type		
				special_type_slot_3 = pressurized_cabin_small
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			aircraft_cannon_3_2x
			aircraft_cannon_4_2x
			jet_engine_2x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			plane_special_module_air_air_radar
			g_suit_type
			cas_weapon
			air_air_ir_missile_1_module
			air_air_ir_missile_2_module
			g_suit_1
			g_suit_2
			g_suit_3
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
			g_suit_type
			imp_bomb_locks
			air_air_radar_1
			air_air_radar_2
			air_air_radar_3
			air_air_radar_4
			air_air_radar_5
			air_air_radar_6
		}
	}
		
	jet_cv_fighter_3_c = {
		priority = {
			factor = 1
		}
		#override_sprite = "GFX_generic_LAMP_f3d"
		#history = yes
		#name = "F3D Skynight"
		target_variant = {
			match_value = 1
			type = cv_small_plane_airframe_6
			modules = {
				fixed_wing_slot = swept_wing
				fixed_optics_slot = {
					any_of = { 
						hud_module
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_radar_slot = { any_of = { air_air_radar_5 air_air_radar_4 air_air_radar_3 } }
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x 
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x 
					}
				}
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_auxiliary_weapon_slot_3 = { any_of = { air_air_missile_3_module air_air_missile_2_module } }
				fixed_electronics_slot = basic_radar_warning_system
				engine_type_slot = second_gen_jet_engine_2x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = {	any_of = { g_suit_3 g_suit_2 g_suit_1 } }	
				special_type_slot_3 = pressurized_cabin_small
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			aircraft_cannon_3_2x
			aircraft_cannon_4_2x
			jet_engine_2x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			plane_special_module_air_air_radar
			g_suit_type
			cas_weapon
			air_air_ir_missile_1_module
			air_air_ir_missile_2_module
			g_suit_1
			g_suit_2
			g_suit_3
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
			g_suit_type
			imp_bomb_locks
			air_air_radar_1
			air_air_radar_2
			air_air_radar_3
			air_air_radar_4
			air_air_radar_5
			air_air_radar_6
		}
	}
		
	jet_cv_fighter_3_d = {
		priority = {
			factor = 1
		}
		#override_sprite = "GFX_generic_LAMP_f7u_1"
		#history = yes
		#name = "F7U-1 Cutlass"
		target_variant = {
			match_value = 1
			type = cv_small_plane_airframe_6
			modules = {
				fixed_wing_slot = swept_wing
				fixed_optics_slot = {
					any_of = { 
						hud_module
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				#fixed_engine_mod_slot = afterburner
				fixed_radar_slot = { any_of = { air_air_radar_5 air_air_radar_4 air_air_radar_3 } }
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x 
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x 
					}
				}
				#fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_auxiliary_weapon_slot_3 = { any_of = { air_air_missile_3_module air_air_missile_2_module } }
				fixed_electronics_slot = basic_radar_warning_system
				engine_type_slot = jet_engine_2_2x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = {	any_of = { g_suit_3 g_suit_2 g_suit_1 } }	
				special_type_slot_3 = pressurized_cabin_small
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			aircraft_cannon_3_2x
			aircraft_cannon_4_2x
			jet_engine_2x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			plane_special_module_air_air_radar
			g_suit_type
			cas_weapon
			air_air_ir_missile_1_module
			air_air_ir_missile_2_module
			g_suit_1
			g_suit_2
			g_suit_3
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
			g_suit_type
			imp_bomb_locks
			air_air_radar_1
			air_air_radar_2
			air_air_radar_3
			air_air_radar_4
			air_air_radar_5
			air_air_radar_6
		}
	}
		
	jet_cv_fighter_3_e = {
		priority = {
			factor = 1
		}
		#override_sprite = "GFX_generic_LAMP_f7u_3"
		#history = yes
		#name = "F7U-3 Cutlass"
		target_variant = {
			match_value = 1
			type = cv_small_plane_airframe_6
			modules = {
				fixed_wing_slot = swept_wing
				fixed_optics_slot = {
					any_of = { 
						hud_module
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = afterburner
				fixed_radar_slot = { any_of = { air_air_radar_5 air_air_radar_4 air_air_radar_3 } }
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x 
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x 
					}
				}
				#fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_auxiliary_weapon_slot_3 = { any_of = { air_air_missile_3_module air_air_missile_2_module } }
				fixed_electronics_slot = basic_radar_warning_system
				engine_type_slot = second_gen_jet_engine_2x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = {	any_of = { g_suit_3 g_suit_2 g_suit_1 } }	
				special_type_slot_3 = pressurized_cabin_small
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			aircraft_cannon_3_2x
			aircraft_cannon_4_2x
			jet_engine_2x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			plane_special_module_air_air_radar
			g_suit_type
			cas_weapon
			air_air_ir_missile_1_module
			air_air_ir_missile_2_module
			g_suit_1
			g_suit_2
			g_suit_3
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
			g_suit_type
			imp_bomb_locks
			air_air_radar_1
			air_air_radar_2
			air_air_radar_3
			air_air_radar_4
			air_air_radar_5
			air_air_radar_6
		}
	}
		
	jet_cv_fighter_3_f = {
		priority = {
			factor = 1
		}
		#override_sprite = "GFX_generic_LAMP_f7u_3p"
		#history = yes
		#name = "F7U-3P Cutlass"
		target_variant = {
			match_value = 1
			type = cv_small_plane_airframe_6
			modules = {
				fixed_wing_slot = swept_wing
				fixed_optics_slot = {
					any_of = { 
						hud_module
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = afterburner
				fixed_main_weapon_slot = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x 
					}
				}
				fixed_auxiliary_weapon_slot_1 = recon_camera
				fixed_electronics_slot = basic_radar_warning_system
				engine_type_slot = second_gen_jet_engine_2x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = {	any_of = { g_suit_3 g_suit_2 g_suit_1 } }	
				special_type_slot_3 = pressurized_cabin_small
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			aircraft_cannon_3_2x
			aircraft_cannon_4_2x
			jet_engine_2x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			plane_special_module_air_air_radar
			g_suit_type
			cas_weapon
			air_air_ir_missile_1_module
			air_air_ir_missile_2_module
			g_suit_1
			g_suit_2
			g_suit_3
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
			g_suit_type
			imp_bomb_locks
			air_air_radar_1
			air_air_radar_2
			air_air_radar_3
			air_air_radar_4
			air_air_radar_5
			air_air_radar_6
		}
	}	
		
	jet_cv_fighter_3_g = {
		priority = {
			factor = 1
		}
		#override_sprite = "GFX_generic_F4D"
		#history = yes
		#name = "F4D Skyray"
		target_variant = {
			match_value = 1
			type = cv_small_plane_airframe_6
			modules = {
				fixed_wing_slot = delta_wing
				fixed_optics_slot = {
					any_of = { 
						hud_module
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_radar_slot = { any_of = { air_air_radar_5 air_air_radar_4 air_air_radar_3 } }
				fixed_main_weapon_slot = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x 
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x 
					}
				}
				#fixed_auxiliary_weapon_slot_2 = { any_of = { air_air_ir_missile_2_module air_air_ir_missile_2_module } }
				#fixed_auxiliary_weapon_slot_3 = { any_of = { air_air_ir_missile_2_module air_air_ir_missile_2_module } }
				fixed_electronics_slot = basic_radar_warning_system
				engine_type_slot = second_gen_jet_engine_1x
				special_type_slot_1 = pressurized_cabin_small
				special_type_slot_2 = {	any_of = { g_suit_3 g_suit_2 g_suit_1 } }	
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			aircraft_cannon_3_2x
			aircraft_cannon_4_2x
			jet_engine_2x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			plane_special_module_air_air_radar
			g_suit_type
			cas_weapon
			air_air_ir_missile_1_module
			air_air_ir_missile_2_module
			g_suit_1
			g_suit_2
			g_suit_3
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
			g_suit_type
			imp_bomb_locks
			air_air_radar_1
			air_air_radar_2
			air_air_radar_3
			air_air_radar_4
			air_air_radar_5
			air_air_radar_6
		}
	}
	
	jet_cv_fighter_4 = {
		priority = {
			factor = 1
			modifier = {
				has_War = yes
				factor = 100
			}
			modifier = { 
				has_tech = modern_small_airframe_5
				factor = 0 #let's not waste XP here
			}
		}
		#override_sprite = "GFX_generic_F8"
		#history = yes
		#name = "F8 Crusader"
		target_variant = {
			match_value = 7000
			type = cv_small_plane_airframe_7
			modules = {
				fixed_wing_slot = swept_wing
				fixed_radar_slot = { any_of = { air_air_radar_5 air_air_radar_4 air_air_radar_3 } }
				fixed_optics_slot = {
					any_of = {
						hud_module
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = afterburner
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x 
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x 
					}
				}
				fixed_auxiliary_weapon_slot_2 = {
					any_of = { 
						air_air_ir_missile_1_module 
						air_air_ir_missile_2_module 
					}
				}
				fixed_auxiliary_weapon_slot_3 = drop_tanks
				fixed_electronics_slot = improved_radar_warning_system
				engine_type_slot = second_gen_jet_engine_1x
				special_type_slot_1 = {	any_of = { g_suit_3 g_suit_2 g_suit_1 } }	
				special_type_slot_2 = pressurized_cabin_small
				special_type_slot_3 = fuel_tanks_small
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			aircraft_cannon_3_2x
			aircraft_cannon_4_2x
			jet_engine_2x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			plane_special_module_air_air_radar
			g_suit_1
			g_suit_2
			g_suit_3
			cas_weapon
			air_air_ir_missile_1_module
			air_air_ir_missile_2_module
			air_air_missile_1_module  
			air_air_missile_2_module  
			air_air_missile_3_module  
			air_air_missile_4_module 
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			imp_rocket_rails
			air_air_radar_1
			air_air_radar_2
			air_air_radar_3
			air_air_radar_4
			air_air_radar_5
			air_air_radar_6
		}
	}
	
	jet_cv_fighter_4_b = {
		priority = {
			factor = 1
		}
		#override_sprite = "GFX_generic_F11F"
		#history = yes
		#name = "F11F Tiger"
		target_variant = {
			match_value = 1
			type = cv_small_plane_airframe_7
			modules = {
				fixed_wing_slot = swept_wing
				fixed_radar_slot = { any_of = { air_air_radar_5 air_air_radar_4 air_air_radar_3 } }
				fixed_optics_slot = {
					any_of = {
						hud_module
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = afterburner
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_main_weapon_slot = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x 
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						aircraft_cannon_4_2x 
						aircraft_cannon_3_2x 
						aircraft_cannon_2_2x 
					}
				}
				fixed_auxiliary_weapon_slot_2 = {
					any_of = { 
						air_air_ir_missile_1_module 
						air_air_ir_missile_2_module 
					}
				}
				fixed_auxiliary_weapon_slot_3 = drop_tanks
				fixed_electronics_slot = improved_radar_warning_system
				engine_type_slot = second_gen_jet_engine_1x
				special_type_slot_1 = {	any_of = { g_suit_3 g_suit_2 g_suit_1 } }	
				special_type_slot_2 = pressurized_cabin_small	
				special_type_slot_2 = armor_plate_small
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			aircraft_cannon_3_2x
			aircraft_cannon_4_2x
			jet_engine_2x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			plane_special_module_air_air_radar
			g_suit_1
			g_suit_2
			g_suit_3
			cas_weapon
			air_air_ir_missile_1_module
			air_air_ir_missile_2_module
			air_air_missile_1_module  
			air_air_missile_2_module  
			air_air_missile_3_module  
			air_air_missile_4_module 
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			imp_rocket_rails
			air_air_radar_1
			air_air_radar_2
			air_air_radar_3
			air_air_radar_4
			air_air_radar_5
			air_air_radar_6
		}
	}
	
	jet_cv_fighter_5 = {
		priority = {
			factor = 1
			modifier = {
				has_War = yes
				factor = 100
			}
			modifier = { 
				has_tech = modern_small_airframe_5
				factor = 0 #let's not waste XP here
			}
		}
		#override_sprite = "GFX_generic_F_4_Navy"
		#history = yes
		#name = "F4H Phantom II"
		target_variant = {
			match_value = 8000
			type = cv_small_plane_airframe_8
			modules = {
				fixed_wing_slot = tailed_delta_wing
				fixed_optics_slot = {
					any_of = { 
						hud_module
						gyro_gunsight 						
					}
				}
				fixed_radar_slot = { any_of = { air_air_radar_6 air_air_radar_5 air_air_radar_4 } }
				fixed_engine_mod_slot = mach_2_afterburner
				fixed_main_weapon_slot = {
					any_of = { 
						aircraft_cannon_5_1x 
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = { 
						air_air_ir_missile_1_module
						air_air_ir_missile_2_module
					}
				}
				fixed_auxiliary_weapon_slot_2 = {
					any_of = { 				
						air_air_ir_missile_1_module
						air_air_ir_missile_2_module
					}
				}
				fixed_auxiliary_weapon_slot_3 = air_air_missile_3_module 
				#fixed_fuel_type_slot = high_octane_fuel
				fixed_auxiliary_weapon_slot_4 = drop_tanks		
				fixed_electronics_slot = improved_radar_warning_system		
				engine_type_slot = third_gen_jet_engine_2x
				special_type_slot_1 = {	any_of = { g_suit_3 g_suit_2 g_suit_1 } }	
				special_type_slot_2 = pressurized_cabin_small
				special_type_slot_3 = armor_plate_small
			}
		}

		allowed_modules = { 
			aircraft_cannon_5_1x
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			aircraft_cannon_3_2x
			aircraft_cannon_4_2x
			aircraft_cannon_4_1x
			third_gen_jet_engine_2x
			armor_plate_small
			straight_wing
			tailed_delta_wing
			plane_optics
			reflex_gunsight
			hud_module
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails		
			g_suit_1
			g_suit_2
			g_suit_3
			air_air_missile_1_module  
			air_air_missile_2_module  
			air_air_missile_3_module  
			air_air_missile_4_module 
			hud_module
			gyro_gunsight 	
			air_air_radar_1
			air_air_radar_2
			air_air_radar_3
			air_air_radar_4
			air_air_radar_5
			air_air_radar_6
			air_air_ir_missile_1_module
			air_air_ir_missile_2_module
			imp_bomb_locks
			rocket_pod_module
			anti_tank_missile_module
			self_sealing_fuel_tanks_small
			high_octane_fuel
		}
	}
}

generic_cv_cas = {
	category = air

	#blocked_for = { ALK USA REP JAP }

	available_for = {}

	roles = {
		air_cv_cas
	}

	priority = {
		factor = 100
		modifier = {
			has_navy_size = {
				type = carrier
 	  			size < 1
			}
			factor = 0
		}
	}
	cv_cas_0 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = basic_small_airframe
				factor = 0 #let's not waste XP here
			}			
		}
		
		#override_sprite = "GFX_generic_LAMP_sbu_1"
		#history = yes
		
		#name = "SBU-1 Corsair"
		
		target_variant = {
			match_value = 100
			type = cv_small_plane_cas_airframe_0
			modules = {
				fixed_wing_slot = biplane_wing
				fixed_main_weapon_slot = { any_of = { bomb_locks } }
				fixed_auxiliary_weapon_slot_1 = light_mg_2x
				engine_type_slot = radial_engine_1_1x
				special_type_slot_1 = lmg_defense_gunner
				#special_type_slot_2 = lmg_defense_turret	
			}
			
		}

		allowed_modules = {
			bomb_locks
			engine_2_1x
			armor_plate_small
			fuel_tanks_small
			reflex_gunsight
			radial_engine_2_1x
			straight_wing
		}
	}
	cv_cas_1 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = improved_small_airframe
				factor = 0 #let's not waste XP here
			}			
		}
		
		#override_sprite = "GFX_generic_LAMP_sb2u"
		#history = yes
		
		#name = "SB2U Vindicator"
		
		target_variant = {
			match_value = 1000
			type = cv_small_plane_cas_airframe_1
			modules = {
				fixed_wing_slot = straight_wing
				fixed_radar_slot = empty
				fixed_aux_prop_slot = empty
				fixed_optics_slot = reflex_gunsight
				fixed_engine_mod_slot = empty
				fixed_fuel_type_slot = empty
				fixed_main_weapon_slot = { any_of = { bomb_locks heavy_bomb_locks } }
				fixed_auxiliary_weapon_slot_1 = light_mg_2x
				engine_type_slot = radial_engine_2_1x
				special_type_slot_1 = lmg_defense_gunner
				#special_type_slot_2 = lmg_defense_turret	
			}
			
		}

		allowed_modules = {
			bomb_locks
			engine_2_1x
			armor_plate_small
			fuel_tanks_small
			reflex_gunsight
			radial_engine_2_1x
			straight_wing
		}
	}
	cv_cas_2 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_small_airframe
				factor = 0 #let's not waste XP here
			}			
		}
		
		#override_sprite = "GFX_generic_LAMP_sbd_3"
		
		#history = yes
		#name = "SBD-3 Dauntless"
		target_variant = {
			match_value = 1500
			type = cv_small_plane_cas_airframe_2
			modules = {
				fixed_wing_slot = straight_wing
				fixed_optics_slot = reflex_gunsight
				fixed_main_weapon_slot = { any_of = { armor_piercing_bomb_locks heavy_bomb_locks bomb_locks } }
				fixed_auxiliary_weapon_slot_1 = heavy_mg_2x
				engine_type_slot = radial_engine_3_1x
				special_type_slot_1 = twin_lmg_defense_gunner
				special_type_slot_2 = fuel_tanks_small
				special_type_slot_3 = dive_brakes_small
			}
		}

		allowed_modules = {
			bomb_locks
			engine_2_1x
			armor_plate_small
			fuel_tanks_small
			reflex_gunsight
			radial_engine_3_1x
			straight_wing
			self_sealing_fuel_tanks_small
			high_octane_fuel
		}
	}
	cv_cas_2_b = {
		priority = {
			factor = 1
			modifier = { 
				has_tech = advanced_small_airframe
				factor = 0 #let's not waste XP here
			}			
		}
		
		#override_sprite = "GFX_generic_LAMP_sbd_2"
		
		#history = yes
		#name = "SBD-2 Dauntless"
		target_variant = {
			match_value = 1
			type = cv_small_plane_cas_airframe_2
			modules = {
				fixed_wing_slot = straight_wing
				fixed_optics_slot = reflex_gunsight
				fixed_main_weapon_slot = { any_of = { armor_piercing_bomb_locks heavy_bomb_locks bomb_locks } }
				fixed_auxiliary_weapon_slot_1 = heavy_mg_2x
				engine_type_slot = radial_engine_3_1x
				special_type_slot_1 = twin_lmg_defense_gunner
				#special_type_slot_2 = self_sealing_fuel_tanks_small
				special_type_slot_3 = dive_brakes_small
			}
		}

		allowed_modules = {
			bomb_locks
			engine_2_1x
			armor_plate_small
			fuel_tanks_small
			reflex_gunsight
			radial_engine_3_1x
			straight_wing
			self_sealing_fuel_tanks_small
			high_octane_fuel
		}
	}
	cv_cas_2_c = {
		priority = {
			factor = 1
			modifier = { 
				has_tech = advanced_small_airframe
				factor = 0 #let's not waste XP here
			}			
		}
		
		#override_sprite = "GFX_generic_LAMP_sb2a"
		
		#history = yes
		#name = "SB2A Buccaneer"
		target_variant = {
			match_value = 1
			type = cv_small_plane_cas_airframe_2
			modules = {
				fixed_wing_slot = straight_wing
				fixed_optics_slot = reflex_gunsight
				fixed_main_weapon_slot = small_bomb_bay
				fixed_auxiliary_weapon_slot_1 = heavy_mg_4x
				engine_type_slot = radial_engine_3_1x
				special_type_slot_1 = twin_lmg_defense_gunner
				#special_type_slot_2 = self_sealing_fuel_tanks_small
				#special_type_slot_3 = dive_brakes_small
			}
		}

		allowed_modules = {
			bomb_locks
			engine_2_1x
			armor_plate_small
			fuel_tanks_small
			reflex_gunsight
			radial_engine_3_1x
			straight_wing
			self_sealing_fuel_tanks_small
			high_octane_fuel
		}
	}
	cv_cas_3 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe
				factor = 0 #let's not waste XP here
			}			
		}
		#override_sprite = "GFX_generic_LAMP_sb2c_1"
		#name = "SB2C-1 Helldiver"
		#history = yes
		target_variant = {
			match_value = 2500
			type = cv_small_plane_cas_airframe_3
			modules = {
				fixed_wing_slot = straight_wing
				fixed_optics_slot = reflex_gunsight
				fixed_engine_mod_slot = supercharger
				fixed_main_weapon_slot = small_bomb_bay
				#fixed_auxiliary_weapon_slot_1 = { any_of = { armor_piercing_bomb_locks bomb_locks heavy_bomb_locks } }
				#fixed_auxiliary_weapon_slot_2 = imp_rocket_rails
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = engine_4_1x
				special_type_slot_1 = armor_plate_small
				#special_type_slot_2 = fuel_tanks_small
				special_type_slot_3 = dive_brakes_small
				special_type_slot_4 = twin_lmg_defense_gunner
			}
		}

		allowed_modules = {
			small_bomb_bay
			bomb_locks
			engine_2_2x
			engine_3_2x
			armor_plate_small
			fuel_tanks_small
			reflex_gunsight
			straight_wing
			self_sealing_fuel_tanks_small
			high_octane_fuel
		}
	}
	cv_cas_3_b = {
		priority = {
			factor = 1
		}
		#override_sprite = "GFX_generic_LAMP_sb2c_3"
		#name = "SB2C-3 Helldiver"
		#history = yes
		target_variant = {
			match_value = 1
			type = cv_small_plane_cas_airframe_3
			modules = {
				fixed_wing_slot = straight_wing
				fixed_optics_slot = reflex_gunsight
				fixed_engine_mod_slot = supercharger
				fixed_aux_prop_slot = injection_system
				fixed_main_weapon_slot = small_bomb_bay
				#fixed_auxiliary_weapon_slot_1 = imp_rocket_rails
				#fixed_auxiliary_weapon_slot_2 = { any_of = { armor_piercing_bomb_locks bomb_locks heavy_bomb_locks } }
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = engine_4_1x
				special_type_slot_1 = armor_plate_small
				#special_type_slot_2 = fuel_tanks_small
				special_type_slot_3 = dive_brakes_small
				special_type_slot_4 = twin_lmg_defense_gunner
			}
		}

		allowed_modules = {
			small_bomb_bay
			bomb_locks
			engine_2_2x
			engine_3_2x
			armor_plate_small
			fuel_tanks_small
			reflex_gunsight
			straight_wing
			self_sealing_fuel_tanks_small
			high_octane_fuel
		}
	}
	cv_cas_3_c = {
		priority = {
			factor = 1	
		}
		#override_sprite = "GFX_generic_LAMP_sb2c_4"
		#name = "SB2C-4 Helldiver"
		#history = yes
		target_variant = {
			match_value = 1
			type = cv_small_plane_cas_airframe_3
			modules = {
				fixed_wing_slot = straight_wing
				fixed_optics_slot = reflex_gunsight
				fixed_engine_mod_slot = supercharger
				fixed_aux_prop_slot = injection_system
				fixed_main_weapon_slot = small_bomb_bay
				fixed_auxiliary_weapon_slot_1 = imp_rocket_rails
				fixed_auxiliary_weapon_slot_2 = { any_of = { armor_piercing_bomb_locks bomb_locks heavy_bomb_locks } }
				#fixed_auxiliary_weapon_slot_3 = { any_of = { armor_piercing_bomb_locks bomb_locks heavy_bomb_locks } }
				engine_type_slot = engine_4_1x
				fixed_electronics_slot = early_radar_warning_system
				special_type_slot_1 = armor_plate_small
				#special_type_slot_2 = fuel_tanks_small
				special_type_slot_3 = dive_brakes_small
				special_type_slot_4 = twin_lmg_defense_gunner
			}
		}

		allowed_modules = {
			small_bomb_bay
			bomb_locks
			engine_2_2x
			engine_3_2x
			armor_plate_small
			fuel_tanks_small
			reflex_gunsight
			straight_wing
			self_sealing_fuel_tanks_small
			high_octane_fuel
		}
	}
	cv_cas_3_d = {
		priority = {
			factor = 1	
		}
		#override_sprite = "GFX_generic_LAMP_sb2c_5"
		#name = "SB2C-5 Helldiver"
		#history = yes
		target_variant = {
			match_value = 1
			type = cv_small_plane_cas_airframe_3
			modules = {
				fixed_wing_slot = straight_wing
				fixed_optics_slot = reflex_gunsight
				fixed_engine_mod_slot = supercharger
				fixed_aux_prop_slot = injection_system
				fixed_main_weapon_slot = small_bomb_bay
				fixed_auxiliary_weapon_slot_1 = imp_rocket_rails
				fixed_auxiliary_weapon_slot_2 = { any_of = { armor_piercing_bomb_locks bomb_locks heavy_bomb_locks } }
				#fixed_auxiliary_weapon_slot_3 = { any_of = { armor_piercing_bomb_locks bomb_locks heavy_bomb_locks } }
				engine_type_slot = engine_4_1x
				fixed_electronics_slot = early_radar_warning_system
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small
				special_type_slot_3 = dive_brakes_small
				special_type_slot_4 = twin_lmg_defense_gunner
			}
		}

		allowed_modules = {
			small_bomb_bay
			bomb_locks
			engine_2_2x
			engine_3_2x
			armor_plate_small
			fuel_tanks_small
			reflex_gunsight
			straight_wing
			self_sealing_fuel_tanks_small
			high_octane_fuel
		}
	}
	cv_cas_4 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe_2
				factor = 0 #let's not waste XP here
			}			
		}
		#history = yes
		#override_sprite = "GFX_generic_LAMP_ad_4"
		#name = "AD-4 Skyraider"
		target_variant = {
			match_value = 3000
			type = cv_small_plane_cas_airframe_4
			modules = {
				fixed_wing_slot = straight_wing
				fixed_radar_slot =  { any_of = { air_ground_radar_5 air_ground_radar_4 air_ground_radar_3 air_ground_radar_2 } }
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = gyro_gunsight 
				fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = empty
				fixed_main_weapon_slot = { any_of = { armor_piercing_bomb_locks bomb_locks heavy_bomb_locks } }
				fixed_auxiliary_weapon_slot_1 = aircraft_cannon_2_2x
				fixed_auxiliary_weapon_slot_2 = aircraft_cannon_2_2x
				fixed_auxiliary_weapon_slot_3 = { any_of = { armor_piercing_bomb_locks bomb_locks heavy_bomb_locks } }
				fixed_auxiliary_weapon_slot_4 = { 
					any_of = { 
						rocket_pod_module 
						imp_rocket_rails 
						bomb_locks 
						heavy_bomb_locks
					} 
				}
				fixed_auxiliary_weapon_slot_4 = { 
					any_of = { 
						rocket_pod_module
						imp_rocket_rails 
						bomb_locks 
						heavy_bomb_locks
					} 
				}
				engine_type_slot = engine_5_1x
				fixed_electronics_slot = early_radar_warning_system
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small	
				special_type_slot_3 = dive_brakes_small
				}
		}

		allowed_modules = {
			small_bomb_bay
			bomb_locks
			imp_rocket_rails
			rocket_rails
			engine_3_2x
			fuel_tanks_small
			reflex_gunsight
			engine_4_1x
			armor_plate_small
			aircraft_cannon_2_2x
			heavy_bomb_locks
			self_sealing_fuel_tanks_small
			high_octane_fuel
		}
	}
	cv_cas_4_b = {
		priority = {
			factor = 1			
		}
		#history = yes
		#override_sprite = "GFX_generic_LAMP_ad_1"
		#name = "AD-1 Skyraider"
		target_variant = {
			match_value = 1
			type = cv_small_plane_cas_airframe_4
			modules = {
				fixed_wing_slot = straight_wing
				#fixed_radar_slot = empty
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = gyro_gunsight 
				fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = empty
				fixed_main_weapon_slot = { any_of = { armor_piercing_bomb_locks bomb_locks heavy_bomb_locks } }
				fixed_auxiliary_weapon_slot_1 = aircraft_cannon_2_2x
				fixed_auxiliary_weapon_slot_2 = aircraft_cannon_2_2x
				fixed_auxiliary_weapon_slot_3 = { any_of = { armor_piercing_bomb_locks bomb_locks heavy_bomb_locks } }
				fixed_auxiliary_weapon_slot_4 = { 
					any_of = { 
						imp_rocket_rails 
						bomb_locks 
						heavy_bomb_locks
					} 
				}
				fixed_auxiliary_weapon_slot_4 = { 
					any_of = { 
						imp_rocket_rails 
						bomb_locks 
						heavy_bomb_locks
					} 
				}
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = radial_engine_4_1x
				#special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small	
				special_type_slot_3 = dive_brakes_small
			}
		}

		allowed_modules = {
			small_bomb_bay
			bomb_locks
			imp_rocket_rails
			rocket_rails
			engine_3_2x
			fuel_tanks_small
			reflex_gunsight
			engine_4_1x
			armor_plate_small
			aircraft_cannon_2_2x
			heavy_bomb_locks
			self_sealing_fuel_tanks_small
			high_octane_fuel
		}
	}
	cv_cas_4_c = {
		priority = {
			factor = 1			
		}
		#history = yes
		#override_sprite = "GFX_generic_LAMP_ad_2"
		#name = "AD-2 Skyraider"
		target_variant = {
			match_value = 1
			type = cv_small_plane_cas_airframe_4
			modules = {
				fixed_wing_slot = straight_wing
				#fixed_radar_slot = empty
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = gyro_gunsight 
				fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = empty
				fixed_main_weapon_slot = { any_of = { armor_piercing_bomb_locks bomb_locks heavy_bomb_locks } }
				fixed_auxiliary_weapon_slot_1 = aircraft_cannon_2_2x
				fixed_auxiliary_weapon_slot_2 = aircraft_cannon_2_2x
				fixed_auxiliary_weapon_slot_3 = { any_of = { armor_piercing_bomb_locks bomb_locks heavy_bomb_locks } }
				fixed_auxiliary_weapon_slot_4 = { 
					any_of = { 
						imp_rocket_rails 
						bomb_locks 
						heavy_bomb_locks
					} 
				}
				fixed_auxiliary_weapon_slot_4 = { 
					any_of = { 
						imp_rocket_rails 
						bomb_locks 
						heavy_bomb_locks
					} 
				}
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = radial_engine_5_1x
				#special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small	
				special_type_slot_3 = dive_brakes_small
			}
		}

		allowed_modules = {
			small_bomb_bay
			bomb_locks
			imp_rocket_rails
			rocket_rails
			engine_3_2x
			fuel_tanks_small
			reflex_gunsight
			engine_4_1x
			armor_plate_small
			aircraft_cannon_2_2x
			heavy_bomb_locks
			self_sealing_fuel_tanks_small
			high_octane_fuel
		}
	}
	cv_cas_4_d = {
		priority = {
			factor = 1			
		}
		#history = yes
		#override_sprite = "GFX_generic_LAMP_ad_3"
		#name = "AD-3 Skyraider"
		target_variant = {
			match_value = 1
			type = cv_small_plane_cas_airframe_4
			modules = {
				fixed_wing_slot = straight_wing
				#fixed_radar_slot = empty
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = gyro_gunsight 
				fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = empty
				fixed_main_weapon_slot = { any_of = { armor_piercing_bomb_locks bomb_locks heavy_bomb_locks } }
				fixed_auxiliary_weapon_slot_1 = aircraft_cannon_2_2x
				fixed_auxiliary_weapon_slot_2 = aircraft_cannon_2_2x
				fixed_auxiliary_weapon_slot_3 = { any_of = { armor_piercing_bomb_locks bomb_locks heavy_bomb_locks } }
				fixed_auxiliary_weapon_slot_4 = { 
					any_of = { 
						imp_rocket_rails 
						bomb_locks 
						heavy_bomb_locks
					} 
				}
				fixed_auxiliary_weapon_slot_4 = { 
					any_of = { 
						imp_rocket_rails 
						bomb_locks 
						heavy_bomb_locks
					} 
				}
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = radial_engine_5_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small	
				special_type_slot_3 = dive_brakes_small
				special_type_slot_4 = armor_plate_small
			}
		}

		allowed_modules = {
			small_bomb_bay
			bomb_locks
			imp_rocket_rails
			rocket_rails
			engine_3_2x
			fuel_tanks_small
			reflex_gunsight
			engine_4_1x
			armor_plate_small
			aircraft_cannon_2_2x
			heavy_bomb_locks
			self_sealing_fuel_tanks_small
			high_octane_fuel
		}
	}
	cv_cas_5 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe_3
				factor = 0 #let's not waste XP here
			}			
		}
		#history = yes
		#override_sprite = "GFX_generic_Savage"
		#name = "AJ Savage"
		target_variant = {
			match_value = 3500
			type = cv_small_plane_cas_airframe_5
			modules = {
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = aux_jet_engine
				fixed_optics_slot = toss_computer				
				fixed_aux_prop_slot = injection_system
				fixed_engine_mod_slot = supercharger
				fixed_radar_slot = { any_of = { air_ground_radar_3 air_ground_radar_2 air_ground_radar_1 } } 		
				fixed_main_weapon_slot = { any_of = { small_bomb_bay_2 small_bomb_bay  } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { small_bomb_bay_2 small_bomb_bay  } }
				fixed_auxiliary_weapon_slot_2 = drop_tanks		
				fixed_electronics_slot = basic_radar_warning_system		
				engine_type_slot = radial_engine_4_2x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small	
				special_type_slot_3 = pressurized_cabin_small	
			}
		}

		allowed_modules = {
			small_bomb_bay
			small_bomb_bay_2
			bomb_locks
			imp_bomb_locks
			rocket_rails
			rocket_pod_module
			engine_3_2x
			fuel_tanks_small
			reflex_gunsight
			engine_4_1x
			armor_plate_small
			imp_rocket_rails
			swept_wing
			self_sealing_fuel_tanks_small
			high_octane_fuel
			air_ground_radar_1
			air_ground_radar_2
			air_ground_radar_3
			air_ground_radar_4
			air_ground_radar_5
			air_ground_radar_6
		}
	}
	
	cv_cas_6 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe_4
				factor = 0 #let's not waste XP here
			}			
		}
		#history = yes
		#override_sprite = "GFX_generic_A_3"
		#name = "A3D Skywarrior"
		target_variant = {
			match_value = 4000
			type = cv_small_plane_cas_airframe_6
			modules = {
				fixed_wing_slot = swept_wing
				fixed_optics_slot = toss_computer
				fixed_radar_slot = { any_of = { air_ground_radar_4 air_ground_radar_3 air_ground_radar_2 air_ground_radar_1 } } 
				fixed_main_weapon_slot = { any_of = { small_bomb_bay_2 small_bomb_bay  } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { small_bomb_bay_2 small_bomb_bay  } }
				engine_type_slot = second_gen_jet_engine_2x
				fixed_electronics_slot = basic_radar_warning_system	
				special_type_slot_2 = fuel_tanks_small	
				special_type_slot_3 = cannon_remote_turret_1	
				special_type_slot_4 = module_countermeasure_dispenser_small	
				special_type_slot_5 = pressurized_cabin_small	
			}
		}

		allowed_modules = {
			small_bomb_bay
			small_bomb_bay_2
			bomb_locks
			imp_bomb_locks
			rocket_rails
			rocket_pod_module
			engine_3_2x
			fuel_tanks_small
			reflex_gunsight
			engine_4_1x
			armor_plate_small
			imp_rocket_rails
			second_gen_jet_engine_1x
			swept_wing
			air_ground_radar_1
			air_ground_radar_2
			air_ground_radar_3
			air_ground_radar_4
			air_ground_radar_5
			air_ground_radar_6
			self_sealing_fuel_tanks_small
			high_octane_fuel
		}
	}
	
	cv_cas_6_b = {
		priority = {
			factor = 1	
		}
		#history = yes
		#override_sprite = "GFX_generic_A2D"
		#name = "A2D Skyshark"
		target_variant = {
			match_value = 1
			type = cv_small_plane_cas_airframe_6
			modules = {
				fixed_wing_slot = straight_wing
				fixed_radar_slot = { any_of = { air_ground_radar_5 air_ground_radar_4 air_ground_radar_3 air_ground_radar_2 } }
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = toss_computer 
				#fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = empty
				fixed_main_weapon_slot = { any_of = { armor_piercing_bomb_locks bomb_locks heavy_bomb_locks } }
				fixed_auxiliary_weapon_slot_1 = aircraft_cannon_2_2x
				fixed_auxiliary_weapon_slot_2 = aircraft_cannon_2_2x
				fixed_auxiliary_weapon_slot_3 = { any_of = { armor_piercing_bomb_locks bomb_locks heavy_bomb_locks } }
				fixed_auxiliary_weapon_slot_4 = { 
					any_of = { 
						rocket_pod_module 
						imp_rocket_rails 
						bomb_locks 
						heavy_bomb_locks
					} 
				}
				fixed_auxiliary_weapon_slot_4 = { 
					any_of = { 
						rocket_pod_module
						imp_rocket_rails 
						bomb_locks 
						heavy_bomb_locks
					} 
				}			
				fixed_electronics_slot = basic_radar_warning_system	
				engine_type_slot = turboprop_engine_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small	
				special_type_slot_3 = dive_brakes_small
			}
		}

		allowed_modules = {
			small_bomb_bay
			bomb_locks
			imp_rocket_rails
			rocket_rails
			engine_3_2x
			fuel_tanks_small
			reflex_gunsight
			engine_4_1x
			armor_plate_small
			aircraft_cannon_2_2x
			heavy_bomb_locks
			self_sealing_fuel_tanks_small
			high_octane_fuel
		}
	}
	cv_cas_7 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe_5
				factor = 0 #let's not waste XP here
			}			
		}
		#history = yes
		#override_sprite = "GFX_generic_A_4"
		#name = "A4 Skyhawk"
		target_variant = {
			match_value = 4500
			type = cv_small_plane_cas_airframe_7
			modules = {
				fixed_wing_slot = tailed_delta_wing
				fixed_optics_slot = toss_computer
				fixed_main_weapon_slot = { any_of = { imp_bomb_locks rocket_pod_module } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { imp_bomb_locks rocket_pod_module } }
				fixed_auxiliary_weapon_slot_2 = aircraft_cannon_3_2x
				fixed_auxiliary_weapon_slot_3 = { any_of = { air_air_missile_2_module air_air_missile_1_module  } }
				#fixed_auxiliary_weapon_slot_4 = { any_of = { air_air_missile_2_module air_air_missile_1_module  } }
				engine_type_slot = second_gen_jet_engine_1x	
				fixed_electronics_slot = improved_radar_warning_system	
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small	
				special_type_slot_3 = module_countermeasure_dispenser_small	
				special_type_slot_4 = pressurized_cabin_small	
			}
		}

		allowed_modules = {
			small_bomb_bay_2
			bomb_locks
			rocket_rails
			engine_3_2x
			fuel_tanks_small
			reflex_gunsight
			engine_4_1x
			armor_plate_small
			imp_rocket_rails
			imp_bomb_locks
			rocket_pod_module
			second_gen_jet_engine_1x
			swept_wing
			toss_computer
			aircraft_cannon_3_2x
			air_air_radar_1
			air_air_radar_2
			air_air_radar_3
			air_air_radar_4
			air_air_radar_5
			air_air_radar_6
			air_air_ir_missile_1_module
			air_air_ir_missile_2_module
			air_ground_radar_1
			air_ground_radar_2
			air_ground_radar_3
			air_ground_radar_4
			air_ground_radar_5
			air_ground_radar_6
			self_sealing_fuel_tanks_small
			high_octane_fuel
		}
	}
	cv_cas_8 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe_5
				factor = 0 #let's not waste XP here
			}			
		}
		#history = yes
		#override_sprite = "GFX_generic_A_6"
		#name = "A2F Intruder"
		target_variant = {
			match_value = 5000
			type = cv_small_plane_cas_airframe_8
			modules = {
				fixed_wing_slot = swept_wing			
				fixed_optics_slot = { 
					any_of = { 
						hud_module
						toss_computer
					} 
				}			
				fixed_radar_slot = { any_of = { air_ground_radar_6 air_ground_radar_5 air_ground_radar_4 } } 
				fixed_main_weapon_slot = { any_of = { imp_bomb_locks rocket_pod_module } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { imp_bomb_locks rocket_pod_module } }			
				fixed_auxiliary_weapon_slot_2 = { any_of = { guided_anti_ship_missile_4 rocket_pod_module imp_bomb_locks } }
				fixed_auxiliary_weapon_slot_4 = { any_of = { anti_tank_missile_module rocket_pod_module imp_bomb_locks } }				
				fixed_auxiliary_weapon_slot_3 = { any_of = { air_air_missile_2_module air_air_missile_1_module } }	
				engine_type_slot = second_gen_jet_engine_2x
				fixed_electronics_slot = improved_radar_warning_system	
				special_type_slot_1 = fuel_tanks_small
				special_type_slot_2 = armor_plate_small
				special_type_slot_3 = pressurized_cabin_small
				special_type_slot_4 = module_countermeasure_dispenser_small
			}
		}

		allowed_modules = {
			small_bomb_bay
			small_bomb_bay_2
			bomb_locks
			rocket_rails
			engine_3_2x
			fuel_tanks_small
			reflex_gunsight
			engine_4_1x
			armor_plate_small
			imp_rocket_rails
			second_gen_jet_engine_1x
			swept_wing
			toss_computer
			imp_bomb_locks
			rocket_pod_module
			third_gen_jet_engine_1x
			aircraft_cannon_5_1x
			air_air_ir_missile_2_module 
			air_air_ir_missile_1_module
			air_air_missile_4_module
			air_air_missile_3_module
			air_ground_radar_1
			air_ground_radar_2
			air_ground_radar_3
			air_ground_radar_4
			air_ground_radar_5
			air_ground_radar_6
			self_sealing_fuel_tanks_small
			high_octane_fuel
		}
	}
	cv_cas_8_b = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe_5
				factor = 0 #let's not waste XP here
			}			
		}
		#history = yes
		#override_sprite = "GFX_generic_A_5"
		#name = "A3J Vigilante"
		target_variant = {
			match_value = 5000
			type = cv_small_plane_cas_airframe_8
			modules = {
				fixed_wing_slot = swept_wing			
				fixed_optics_slot = { 
					any_of = { 
						hud_module
						toss_computer
					} 
				}						
				fixed_radar_slot = { any_of = { air_ground_radar_6 air_ground_radar_5 air_ground_radar_4 } } 
				fixed_engine_mod_slot = afterburner	
				fixed_main_weapon_slot = small_bomb_bay_2
				fixed_auxiliary_weapon_slot_1 = small_bomb_bay_2		
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_electronics_slot = improved_radar_warning_system	
				engine_type_slot = second_gen_jet_engine_2x
				special_type_slot_1 = fuel_tanks_small
				special_type_slot_2 = pressurized_cabin_small
				special_type_slot_3 = module_countermeasure_dispenser_small
				special_type_slot_4 = fuel_tanks_small
			}
		}

		allowed_modules = {
			small_bomb_bay
			small_bomb_bay_2
			bomb_locks
			rocket_rails
			engine_3_2x
			fuel_tanks_small
			reflex_gunsight
			engine_4_1x
			armor_plate_small
			imp_rocket_rails
			second_gen_jet_engine_1x
			swept_wing
			toss_computer
			imp_bomb_locks
			rocket_pod_module
			third_gen_jet_engine_1x
			aircraft_cannon_5_1x
			air_air_ir_missile_2_module 
			air_air_ir_missile_1_module
			air_air_missile_4_module
			air_air_missile_3_module
			air_ground_radar_1
			air_ground_radar_2
			air_ground_radar_3
			air_ground_radar_4
			air_ground_radar_5
			air_ground_radar_6
			self_sealing_fuel_tanks_small
			high_octane_fuel
		}
	}
}

generic_cv_naval_bomber = {
	category = air

	#blocked_for = {  ALK USA REP JAP }

	available_for = {}

	roles = {
		air_cv_naval_bomber
	}

	priority = {
		factor = 500
		modifier = {
			has_navy_size = {
				type = carrier
 	  			size < 1
			}
			factor = 0
		}
	}
	cv_naval_bomber_0 = {
	
		#name = "BM-2"
		
		#history = yes
		#override_sprite = "GFX_generic_LAMP_bm_1"
		
		priority = {
			factor = 100
		}
		target_variant = {
			match_value = 1000
			type = cv_small_plane_naval_bomber_airframe_0
			modules = {
				fixed_wing_slot = biplane_wing
				fixed_main_weapon_slot = torpedo_mounting
				engine_type_slot = radial_engine_1_1x
				special_type_slot_1 = lmg_defense_gunner
			}
		}
		allowed_modules = {
			torpedo_mounting
			engine_2_1x
			straight_wing
			radial_engine_2_1x
			nav_bomber_weapon
			fuel_tanks_small
			self_sealing_fuel_tanks_small
			high_octane_fuel
		}
	}
	cv_naval_bomber_1 = {
	
		#name = "TBD Devastator"
		
		#history = yes
		#override_sprite = "GFX_generic_LAMP_tbd_1"
		
		priority = {
			factor = 100
		}
		target_variant = {
			match_value = 1000
			type = cv_small_plane_naval_bomber_airframe_1
			modules = {
				fixed_wing_slot = straight_wing
				fixed_main_weapon_slot = torpedo_mounting
				engine_type_slot = radial_engine_2_1x
				special_type_slot_1 = fuel_tanks_small
				special_type_slot_2 = lmg_defense_gunner
			}
		}
		allowed_modules = {
			torpedo_mounting
			engine_2_1x
			straight_wing
			radial_engine_2_1x
			nav_bomber_weapon
			fuel_tanks_small
			self_sealing_fuel_tanks_small
			high_octane_fuel
		}
	}
	cv_naval_bomber_2 = {
		#name = "TBF-1 Avenger"
		priority = {
			factor = 200
		}
		
		#history = yes
		#override_sprite = "GFX_generic_LAMP_tbf_1"
		
		target_variant = {
			match_value = 1500
			type = cv_small_plane_naval_bomber_airframe_2
			modules = {
				fixed_wing_slot = straight_wing
				fixed_engine_mod_slot = supercharger
				fixed_main_weapon_slot = { any_of { torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = light_mg_2x
				engine_type_slot = radial_engine_3_1x
				special_type_slot_1 = hmg_defense_turret
				special_type_slot_2 = lmg_defense_gunner
			}
		}
		allowed_modules = {
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			lmg_defense_turret
			bomb_locks
			engine_2_2x
			straight_wing
			nav_bomber_weapon
			small_bomb_bay
			radial_engine_3_1x
			hmg_defense_turret
			fuel_tanks_small
			armor_plate_small
			self_sealing_fuel_tanks_small
			high_octane_fuel
		}
	}
	cv_naval_bomber_2_b = {
		#name = "TBF-1C Avenger"
		priority = {
			factor = 200
		}
		
		#history = yes
		#override_sprite = "GFX_generic_LAMP_tbf_1"
		
		target_variant = {
			match_value = 1500
			type = cv_small_plane_naval_bomber_airframe_2
			modules = {
				fixed_wing_slot = straight_wing
				fixed_engine_mod_slot = supercharger
				fixed_main_weapon_slot = { any_of { torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = heavy_mg_2x
				engine_type_slot = radial_engine_3_1x
				special_type_slot_1 = hmg_defense_turret
				special_type_slot_2 = lmg_defense_gunner
				special_type_slot_3 = fuel_tanks_small
			}
		}
		allowed_modules = {
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			lmg_defense_turret
			bomb_locks
			engine_2_2x
			straight_wing
			nav_bomber_weapon
			small_bomb_bay
			radial_engine_3_1x
			hmg_defense_turret
			fuel_tanks_small
			armor_plate_small
			self_sealing_fuel_tanks_small
			high_octane_fuel
		}
	}
	cv_naval_bomber_2_c = {
		#name = "TBM-3 Avenger"
		priority = {
			factor = 200
		}
		
		#history = yes
		#override_sprite = "GFX_generic_LAMP_tbm_3"
		
		target_variant = {
			match_value = 1500
			type = cv_small_plane_naval_bomber_airframe_2
			modules = {
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = injection_system
				fixed_engine_mod_slot = supercharger
				fixed_main_weapon_slot = { any_of { torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = heavy_mg_2x
				engine_type_slot = radial_engine_3_1x
				special_type_slot_1 = hmg_defense_turret
				special_type_slot_2 = lmg_defense_gunner
				special_type_slot_3 = fuel_tanks_small
			}
		}
		allowed_modules = {
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			lmg_defense_turret
			bomb_locks
			engine_2_2x
			straight_wing
			nav_bomber_weapon
			small_bomb_bay
			radial_engine_3_1x
			hmg_defense_turret
			fuel_tanks_small
			armor_plate_small
			self_sealing_fuel_tanks_small
			high_octane_fuel
		}
	}

	cv_naval_bomber_3 = {
		#name = "TBY Sea Wolf"
		priority = {
			factor = 200
		}
		
		#history = yes
		#override_sprite = "GFX_generic_LAMP_tby"
		
		target_variant = {
			match_value = 2000
			type = cv_small_plane_naval_bomber_airframe_3
			modules = {
				fixed_wing_slot = straight_wing				
				fixed_aux_prop_slot = injection_system
				fixed_engine_mod_slot = supercharger
				fixed_radar_slot = { any_of { air_ground_radar_2 air_ground_radar_1 } }
				fixed_main_weapon_slot = { any_of { torpedo_mounting_3 torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = heavy_mg_4x
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = radial_engine_4_1x
				special_type_slot_1 = hmg_defense_gunner_2
				special_type_slot_2 = fuel_tanks_small
				special_type_slot_3 = lmg_defense_gunner
			}

		}

		allowed_modules = {
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			bomb_locks
			engine_3_1x
			lmg_defense_turret
			straight_wing
			air_ground_radar_1
			air_ground_radar_2
			air_ground_radar_3
			nav_bomber_weapon
			small_bomb_bay
			heavy_mg_2x
			radial_engine_4_1x
			hmg_defense_turret
			fuel_tanks_small
			armor_plate_small
			lmg_defense_turret
			self_sealing_fuel_tanks_small
			high_octane_fuel
		}
	}

	cv_naval_bomber_3_b = {
		#name = "BTD Destroyer"
		priority = {
			factor = 1
		}
		
		#history = yes
		#override_sprite = "GFX_generic_LAMP_btd"
		
		target_variant = {
			match_value = 1
			type = cv_small_plane_naval_bomber_airframe_3
			modules = {
				fixed_wing_slot = straight_wing				
				fixed_aux_prop_slot = injection_system
				fixed_engine_mod_slot = supercharger
				fixed_main_weapon_slot = { any_of { torpedo_mounting_3 torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = { any_of { aircraft_cannon_2_2x aircraft_cannon_1_2x } }
				fixed_auxiliary_weapon_slot_2 = { any_of { small_bomb_bay } }
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = radial_engine_4_1x
				#special_type_slot_1 = hmg_defense_turret
				special_type_slot_2 = fuel_tanks_small
			}

		}

		allowed_modules = {
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			bomb_locks
			engine_3_1x
			lmg_defense_turret
			straight_wing
			air_ground_radar_1
			air_ground_radar_2
			air_ground_radar_3
			nav_bomber_weapon
			small_bomb_bay
			heavy_mg_2x
			radial_engine_4_1x
			hmg_defense_turret
			fuel_tanks_small
			armor_plate_small
			lmg_defense_turret
			self_sealing_fuel_tanks_small
			high_octane_fuel
		}
	}

	cv_naval_bomber_4 = {
		#name = "XTB2D Skypirate"
		
		#history = yes
		#override_sprite = "GFX_generic_XTB2D"
		priority = {
			factor = 200
		}
		target_variant = {
			match_value = 2500
			type = cv_small_plane_naval_bomber_airframe_4
			modules = {
				fixed_wing_slot = straight_wing	
				fixed_aux_prop_slot = contra_rotating_props
				fixed_main_weapon_slot = { any_of { guided_anti_ship_missile torpedo_mounting_3 torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = { any_of { heavy_mg_2_4x heavy_mg_2x } }
				#fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = radial_engine_4_1x
				special_type_slot_1 = hmg_defense_turret
				special_type_slot_2 = fuel_tanks_small
				special_type_slot_3 = armor_plate_small
				special_type_slot_4 = hmg_defense_gunner_2
			}

		}

		allowed_modules = {
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			bomb_locks
			engine_3_1x
			lmg_defense_turret
			straight_wing
			air_ground_radar_1
			air_ground_radar_2
			air_ground_radar_3
			nav_bomber_weapon
			small_bomb_bay
			heavy_mg_2x
			radial_engine_4_1x
			hmg_defense_turret
			fuel_tanks_small
			armor_plate_small
			lmg_defense_turret
			contra_rotating_props
			cas_weapon
			self_sealing_fuel_tanks_small
			high_octane_fuel
			mad_1
			mad_2
		}
	}

	cv_naval_bomber_5 = {
		#name = "AM Mauler"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_am_1"
		priority = {
			factor = 200
		}
		target_variant = {
			match_value = 3000
			type = cv_small_plane_naval_bomber_airframe_5
			modules = {
				fixed_wing_slot = straight_wing				
				fixed_aux_prop_slot = injection_system
				fixed_engine_mod_slot = supercharger
				fixed_main_weapon_slot = { any_of { guided_anti_ship_missile_2 guided_anti_ship_missile torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = { any_of { aircraft_cannon_4_2x aircraft_cannon_3_2x aircraft_cannon_2_2x } }		
				fixed_electronics_slot = basic_radar_warning_system
				engine_type_slot = radial_engine_5_1x
				special_type_slot_1 = fuel_tanks_small
				special_type_slot_2 = armor_plate_small
			}

		}

		allowed_modules = {
			torpedo_mounting
			bomb_locks
			engine_3_1x
			lmg_defense_turret
			straight_wing
			air_ground_radar_1
			air_ground_radar_2
			air_ground_radar_3
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			guided_anti_ship_missile_4
			guided_anti_ship_missile_2
			guided_anti_ship_missile
			nav_bomber_weapon
			small_bomb_bay
			heavy_mg_2x
			radial_engine_4_1x
			hmg_defense_turret
			fuel_tanks_small
			armor_plate_small
			lmg_defense_turret
			contra_rotating_props
			aircraft_cannon_3_2x
			cas_weapon
			self_sealing_fuel_tanks_small
			high_octane_fuel
			mad_1
			mad_2
		}
	}

	cv_naval_bomber_6 = {
		#name = "AF-2W Guardian"
		priority = {
			factor = 200
		}
		#history = yes
		#override_sprite = "GFX_generic_LAMP_af_2w"
		target_variant = {
			match_value = 3500
			type = cv_small_plane_naval_bomber_airframe_6
			modules = {
				fixed_wing_slot = straight_wing				
				fixed_aux_prop_slot = injection_system				
				fixed_radar_slot = { any_of { air_ground_radar_5 air_ground_radar_4 air_ground_radar_3 air_ground_radar_2 } }		
				fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = empty				
				fixed_main_weapon_slot = { any_of { guided_anti_ship_missile_2 guided_anti_ship_missile torpedo_mounting_2 torpedo_mounting } }
				fixed_electronics_slot = basic_radar_warning_system
				engine_type_slot = radial_engine_5_1x
				special_type_slot_1 = fuel_tanks_small
			}
		}

		allowed_modules = {
			torpedo_mounting
			bomb_locks
			engine_3_1x
			lmg_defense_turret
			straight_wing
			air_ground_radar_1
			air_ground_radar_2
			air_ground_radar_3
			air_ground_radar_4
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			guided_anti_ship_missile_4
			guided_anti_ship_missile_2
			guided_anti_ship_missile
			nav_bomber_weapon
			small_bomb_bay
			heavy_mg_2x
			radial_engine_4_1x
			hmg_defense_turret
			fuel_tanks_small
			armor_plate_small
			lmg_defense_turret
			contra_rotating_props
			aircraft_cannon_3_2x
			cas_weapon
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
			high_octane_fuel
			mad_1
			mad_2
		}
	}

	cv_naval_bomber_6_b = {
		#name = "AF-2S Guardian"
		priority = {
			factor = 1
		}
		#history = yes
		#override_sprite = "GFX_generic_LAMP_af_2s"
		target_variant = {
			match_value = 1
			type = cv_small_plane_naval_bomber_airframe_6
			modules = {
				fixed_wing_slot = straight_wing				
				fixed_aux_prop_slot = injection_system		
				fixed_engine_mod_slot = supercharger	
				fixed_main_weapon_slot = { any_of { guided_anti_ship_missile_2 guided_anti_ship_missile torpedo_mounting_2 torpedo_mounting } }
				fixed_electronics_slot = basic_radar_warning_system
				engine_type_slot = radial_engine_5_1x
				special_type_slot_1 = fuel_tanks_small
			}
		}

		allowed_modules = {
			torpedo_mounting
			bomb_locks
			engine_3_1x
			lmg_defense_turret
			straight_wing
			air_ground_radar_1
			air_ground_radar_2
			air_ground_radar_3
			air_ground_radar_4
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			guided_anti_ship_missile_4
			guided_anti_ship_missile_2
			guided_anti_ship_missile
			nav_bomber_weapon
			small_bomb_bay
			heavy_mg_2x
			radial_engine_4_1x
			hmg_defense_turret
			fuel_tanks_small
			armor_plate_small
			lmg_defense_turret
			contra_rotating_props
			aircraft_cannon_3_2x
			cas_weapon
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
			high_octane_fuel
			mad_1
			mad_2
		}
	}

	cv_naval_bomber_7 = {
		#name = "S-2 Tracker"
		priority = {
			factor = 200
		}
		target_variant = {
			match_value = 4000
			type = cv_small_plane_naval_bomber_airframe_7
			modules = {
				fixed_wing_slot = straight_wing				
				fixed_aux_prop_slot = injection_system		
				fixed_engine_mod_slot = supercharger	
				fixed_radar_slot = { any_of { air_ground_radar_5 air_ground_radar_4 air_ground_radar_3 air_ground_radar_2 } }
				fixed_main_weapon_slot = { any_of { guided_anti_ship_missile_4 guided_anti_ship_missile_2 guided_anti_ship_missile torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = { any_of { guided_anti_ship_missile_4 guided_anti_ship_missile_2 guided_anti_ship_missile torpedo_mounting_2 torpedo_mounting } }					
				fixed_electronics_slot = improved_radar_warning_system
				engine_type_slot = radial_engine_5_2x
				special_type_slot_1 = fuel_tanks_small
				special_type_slot_2 = armor_plate_small
				special_type_slot_3 = module_countermeasure_dispenser_small
			}

		}

		allowed_modules = {
			torpedo_mounting
			bomb_locks
			engine_3_1x
			lmg_defense_turret
			straight_wing
			air_ground_radar_1
			air_ground_radar_2
			air_ground_radar_3
			air_ground_radar_4
			air_ground_radar_5
			air_ground_radar_6
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			guided_anti_ship_missile_4
			guided_anti_ship_missile_2
			guided_anti_ship_missile
			small_bomb_bay
			heavy_mg_2x
			radial_engine_4_1x
			hmg_defense_turret
			fuel_tanks_small
			armor_plate_small
			lmg_defense_turret
			contra_rotating_props
			aircraft_cannon_3_2x
			cas_weapon
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
			high_octane_fuel
			mad_1
			mad_2
		}
	}

	cv_naval_bomber_8 = {
		#name = "A-6 Intruder"
		priority = {
			factor = 200
		}
		target_variant = {
			match_value = 4500
			type = cv_small_plane_naval_bomber_airframe_8
			modules = {
				fixed_wing_slot = swept_wing	
				fixed_radar_slot = { 
					any_of = { 
						air_ground_radar_6 
						air_ground_radar_5
						air_ground_radar_4
					} 
				}			
				fixed_main_weapon_slot = { any_of { guided_anti_ship_missile_4 guided_anti_ship_missile_2 guided_anti_ship_missile torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = { any_of { guided_anti_ship_missile_4 guided_anti_ship_missile_2 guided_anti_ship_missile torpedo_mounting_2 torpedo_mounting } }	
				fixed_auxiliary_weapon_slot_2 = { any_of { guided_anti_ship_missile_4 guided_anti_ship_missile_2 guided_anti_ship_missile torpedo_mounting_2 torpedo_mounting } }					
				engine_type_slot = second_gen_jet_engine_2x
				fixed_electronics_slot = improved_radar_warning_system
				special_type_slot_1 = fuel_tanks_small
				special_type_slot_2 = armor_plate_small
				special_type_slot_4 = module_countermeasure_dispenser_small
			}

		}

		allowed_modules = {
			torpedo_mounting
			bomb_locks
			engine_3_1x
			lmg_defense_turret
			straight_wing
			air_ground_radar_1
			air_ground_radar_2
			air_ground_radar_3
			air_ground_radar_4
			air_ground_radar_5
			air_ground_radar_6
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			guided_anti_ship_missile_4
			guided_anti_ship_missile_2
			guided_anti_ship_missile
			small_bomb_bay
			heavy_mg_2x
			radial_engine_4_1x
			hmg_defense_turret
			fuel_tanks_small
			armor_plate_small
			lmg_defense_turret
			contra_rotating_props
			aircraft_cannon_3_2x
			cas_weapon
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
			high_octane_fuel
			mad_1
			mad_2
		}
	}
}

generic_tactical_bomber = {
	category = air

	blocked_for = {EMP USA RUS}

	available_for = {}

	roles = {
		air_tactical_bomber
	}

	priority = {
		factor = 2000
		modifier = {
			num_of_factories < 100
			factor = 0.5
		}
		modifier = {
			num_of_factories < 50
			factor = 0
		}
	}

	gw_tac_bomber_default = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = basic_medium_airframe
				factor = 0 #let's not waste XP here
			}
		}
		
		#name = "B-4"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_b_4"

		target_variant = {
			match_value = 100
			type = medium_plane_airframe_0
			modules = {
				fixed_wing_slot = biplane_wing
				fixed_main_weapon_slot = medium_bomb_bay
				engine_type_slot = radial_engine_1_2x
				special_type_slot_1 = lmg_defense_gunner_3x
			}
			
		}

		allowed_modules = {
			medium_bomb_bay
			engine_1_2x
			
		}
	}

	tac_bomber_1_default = {
		priority = {
			factor = 50
			modifier = { 
				has_tech = improved_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "B-18 Bolo"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_b_18"
		target_variant = {
			match_value = 100
			type = medium_plane_airframe_1
			modules = {
				fixed_wing_slot = straight_wing
				fixed_radar_slot = empty
				fixed_aux_prop_slot = empty
				fixed_optics_slot = bomb_sights_0
				fixed_engine_mod_slot = empty
				fixed_fuel_type_slot = empty
				fixed_main_weapon_slot = medium_bomb_bay
				engine_type_slot = radial_engine_2_2x
				special_type_slot_1 = fuel_tanks_medium
				special_type_slot_2 = lmg_defense_gunner_3x
			}
			
		}

		allowed_modules = {
			straight_wing
			medium_bomb_bay
			radial_engine_2_2x
			lmg_defense_turret
			hmg_defense_turret
			bomb_sights_1
			fuel_tanks_medium
		}
	}

	tac_bomber_1_b = {
		priority = {
			factor = 50
			modifier = { 
				has_tech = improved_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "B-18A Bolo"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_b_18a"
		target_variant = {
			match_value = 100
			type = medium_plane_airframe_1
			modules = {
				fixed_wing_slot = straight_wing
				fixed_radar_slot = empty
				fixed_aux_prop_slot = empty
				fixed_optics_slot = bomb_sights_0
				fixed_engine_mod_slot = empty
				fixed_fuel_type_slot = empty
				fixed_main_weapon_slot = medium_bomb_bay
				engine_type_slot = radial_engine_3_2x
				special_type_slot_1 = fuel_tanks_medium
				special_type_slot_2 = lmg_defense_gunner_3x
			}			
		}

		allowed_modules = {
			straight_wing
			medium_bomb_bay
			radial_engine_2_2x
			lmg_defense_turret
			hmg_defense_turret
			bomb_sights_1
			fuel_tanks_medium
		}
	}

	tac_bomber_1_c = {
		priority = {
			factor = 50
			modifier = { 
				has_tech = improved_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "B-10"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_b_10"
		target_variant = {
			match_value = 100
			type = medium_plane_airframe_1
			modules = {
				fixed_wing_slot = straight_wing
				fixed_radar_slot = empty
				fixed_aux_prop_slot = empty
				fixed_optics_slot = bomb_sights_0
				fixed_engine_mod_slot = empty
				fixed_fuel_type_slot = empty
				fixed_main_weapon_slot = medium_bomb_bay
				engine_type_slot = radial_engine_2_2x
				special_type_slot_1 = fuel_tanks_medium
				special_type_slot_2 = lmg_defense_gunner_3x
			}			
		}

		allowed_modules = {
			straight_wing
			medium_bomb_bay
			radial_engine_2_2x
			lmg_defense_turret
			hmg_defense_turret
			bomb_sights_1
			fuel_tanks_medium
		}
	}
	
	tac_bomber_2_default = {
		priority = {
			factor = 100	
			modifier = { 
				has_tech = advanced_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "B-25B Mitchell"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_b_25b"
		target_variant = {
			match_value = 2000
			type = medium_plane_airframe_2
			modules = {
				engine_type_slot = radial_engine_3_2x
				fixed_aux_prop_slot = injection_system
				# fixed_auxiliary_weapon_slot_1 = heavy_mg_4x
				fixed_engine_mod_slot = supercharger
				fixed_main_weapon_slot = medium_bomb_bay
				fixed_optics_slot = bomb_sights_1
				fixed_wing_slot = straight_wing
				fixed_tail_modifications_slot = twin_tail
				special_type_slot_2 = hmg_defense_turret_2x
				special_type_slot_3 = self_sealing_fuel_tanks_medium
				special_type_slot_4 = lmg_defense_gunner_2x
			}			
		}

		allowed_modules = {
			medium_bomb_bay
			bomb_locks
			engine_3_2x
			hmg_defense_turret_2x
			hmg_defense_turret
			radial_engine_3_2x
			fuel_tanks_medium
			heavy_mg_4x
			bomb_sights_1
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}
	
	tac_bomber_2_default_b = {
		priority = {
			factor = 100	
			modifier = { 
				has_tech = advanced_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "B-25C Mitchell"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_b_25c"
		target_variant = {
			match_value = 2000
			type = medium_plane_airframe_2
			modules = {
				 engine_type_slot = radial_engine_3_2x 
				 fixed_aux_prop_slot = injection_system 
				 fixed_auxiliary_weapon_slot_1 = heavy_mg_4x 
				 fixed_engine_mod_slot = supercharger 
				 fixed_main_weapon_slot = medium_bomb_bay 
				 fixed_optics_slot = bomb_sights_1 
				 fixed_wing_slot = straight_wing 
				fixed_tail_modifications_slot = twin_tail
				 special_type_slot_2 = hmg_defense_turret 
				 special_type_slot_3 = self_sealing_fuel_tanks_medium 
				 special_type_slot_4 = hmg_defense_gunner_4x 
				 special_type_slot_5 = lmg_defense_gunner
			}			
		}

		allowed_modules = {
			medium_bomb_bay
			bomb_locks
			engine_3_2x
			hmg_defense_turret_2x
			hmg_defense_turret
			radial_engine_3_2x
			fuel_tanks_medium
			heavy_mg_4x
			bomb_sights_1
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}
	
	tac_bomber_2_default_c = {
		priority = {
			factor = 100	
			modifier = { 
				has_tech = advanced_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "B-25A Mitchell"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_b_25a"
		target_variant = {
			match_value = 2000
			type = medium_plane_airframe_2
			modules = {
				 engine_type_slot = radial_engine_3_2x 
				 fixed_aux_prop_slot = injection_system 
				 fixed_auxiliary_weapon_slot_1 = heavy_mg_4x 
				 fixed_engine_mod_slot = supercharger 
				 fixed_main_weapon_slot = medium_bomb_bay 
				 fixed_wing_slot = straight_wing 
				fixed_tail_modifications_slot = twin_tail
				 special_type_slot_2 = lmg_defense_gunner_3x 
				 special_type_slot_3 = self_sealing_fuel_tanks_medium 
			}			
		}

		allowed_modules = {
			medium_bomb_bay
			bomb_locks
			engine_3_2x
			hmg_defense_turret_2x
			hmg_defense_turret
			radial_engine_3_2x
			fuel_tanks_medium
			heavy_mg_4x
			bomb_sights_1
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}
	
	tac_bomber_2_default_d = {
		priority = {
			factor = 100	
			modifier = { 
				has_tech = advanced_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "B-25G Mitchell"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_b_25g"
		target_variant = {
			match_value = 2000
			type = medium_plane_airframe_2
			modules = {
				 engine_type_slot = radial_engine_3_2x 
				 fixed_aux_prop_slot = injection_system 
				 fixed_auxiliary_weapon_slot_1 = heavy_mg_2x 
				 fixed_auxiliary_weapon_slot_2 = tank_buster_2 
				 fixed_engine_mod_slot = supercharger 
				 fixed_main_weapon_slot = medium_bomb_bay 
				 fixed_wing_slot = straight_wing 
				fixed_tail_modifications_slot = twin_tail
				 special_type_slot_2 = hmg_defense_turret
				 special_type_slot_3 = hmg_defense_gunner_3x 
				 special_type_slot_4 = fuel_tanks_medium 
				 special_type_slot_5 = armor_plate_medium 
			}			
		}

		allowed_modules = {
			medium_bomb_bay
			bomb_locks
			engine_3_2x
			hmg_defense_turret_2x
			hmg_defense_turret
			radial_engine_3_2x
			fuel_tanks_medium
			heavy_mg_4x
			bomb_sights_1
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}
	
	tac_bomber_2_default_e = {
		priority = {
			factor = 100	
			modifier = { 
				has_tech = advanced_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "B-25H Mitchell"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_b_25h"
		target_variant = {
			match_value = 2000
			type = medium_plane_airframe_2
			modules = {
				 engine_type_slot = radial_engine_3_2x 
				 fixed_aux_prop_slot = injection_system 
				 fixed_auxiliary_weapon_slot_1 = heavy_mg_4x 
				 fixed_auxiliary_weapon_slot_2 = heavy_mg_2x 
				 fixed_auxiliary_weapon_slot_3 = tank_buster_1 
				 fixed_engine_mod_slot = supercharger 
				 fixed_main_weapon_slot = medium_bomb_bay 
				 fixed_optics_slot = bomb_sights_1 
				 fixed_wing_slot = straight_wing 
				fixed_tail_modifications_slot = twin_tail
				 special_type_slot_2 = hmg_defense_turret_2x 
				 special_type_slot_3 = hmg_defense_gunner_2x 
				 special_type_slot_4 = fuel_tanks_medium 
				 special_type_slot_5 = armor_plate_medium 
			}			
		}

		allowed_modules = {
			medium_bomb_bay
			bomb_locks
			engine_3_2x
			hmg_defense_turret_2x
			hmg_defense_turret
			radial_engine_3_2x
			fuel_tanks_medium
			heavy_mg_4x
			bomb_sights_1
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}
	
	tac_bomber_2_default_f = {
		priority = {
			factor = 100	
			modifier = { 
				has_tech = advanced_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		#name =  "B-25J Mitchell"
		#history = yes
		#override_sprite =  "GFX_generic_LAMP_b_25j"
		target_variant = {
			match_value = 2000
			type = medium_plane_airframe_2
			modules = {
				 engine_type_slot = radial_engine_3_2x 
				 fixed_aux_prop_slot = injection_system 
				 fixed_auxiliary_weapon_slot_1 = heavy_mg_4x 
				 fixed_auxiliary_weapon_slot_2 = heavy_mg_4x 
				 fixed_auxiliary_weapon_slot_3 = tank_buster_1 
				 fixed_engine_mod_slot = supercharger 
				 fixed_main_weapon_slot = medium_bomb_bay 
				 fixed_wing_slot = straight_wing 
				fixed_tail_modifications_slot = twin_tail
				 special_type_slot_2 = hmg_defense_turret_2x 
				 special_type_slot_3 = hmg_defense_gunner_2x 
				 special_type_slot_4 = fuel_tanks_medium 
				 special_type_slot_5 = armor_plate_medium 
			}			
		}

		allowed_modules = {
			medium_bomb_bay
			bomb_locks
			engine_3_2x
			hmg_defense_turret_2x
			hmg_defense_turret
			radial_engine_3_2x
			fuel_tanks_medium
			heavy_mg_4x
			bomb_sights_1
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}
	
	tac_bomber_3_default = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		#name =  "B-26B Marauder"
		#history = yes
		#override_sprite =  "GFX_generic_LAMP_b_26b"
		target_variant = {
			match_value = 3500
			type = medium_plane_airframe_3
			modules = {
				 engine_type_slot = radial_engine_4_2x 
				 fixed_aux_prop_slot = injection_system 
				 fixed_auxiliary_weapon_slot_1 = heavy_mg_4x 
				 fixed_engine_mod_slot = supercharger 
				 fixed_main_weapon_slot = medium_bomb_bay 
				 fixed_optics_slot = bomb_sights_2 
				 fixed_wing_slot = straight_wing 
				 fixed_electronics_slot = early_radar_jammer
				 special_type_slot_1 = hmg_defense_turret 
				 special_type_slot_2 = lmg_defense_gunner_3x
				 special_type_slot_3 = lmg_defense_gunner_2x
			}
			
		}

		allowed_modules = {
			medium_bomb_bay
			bomb_locks
			torpedo_mounting
			engine_4_2x
			lmg_defense_turret_2x
			bomb_sights_1
			radial_engine_4_2x
			fuel_tanks_medium
			hmg_defense_turret_2x
			hmg_defense_turret
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}
	
	tac_bomber_3_b = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "B-26B-15 Marauder"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_b_26b_15"
		target_variant = {
			match_value = 3500
			type = medium_plane_airframe_3
			modules = {
				 engine_type_slot = radial_engine_4_2x 
				 fixed_aux_prop_slot = injection_system 
				 fixed_auxiliary_weapon_slot_1 = heavy_mg_4x 
				 fixed_auxiliary_weapon_slot_2 = heavy_mg_2x 
				 fixed_engine_mod_slot = supercharger 
				 fixed_main_weapon_slot = medium_bomb_bay 
				 fixed_optics_slot = bomb_sights_1 
				 fixed_wing_slot = straight_wing 
				 fixed_electronics_slot = early_radar_jammer
				 special_type_slot_1 = hmg_defense_turret_2x
				 special_type_slot_2 = lmg_defense_gunner_4x
			}
			
		}

		allowed_modules = {
			medium_bomb_bay
			bomb_locks
			torpedo_mounting
			engine_4_2x
			lmg_defense_turret_2x
			bomb_sights_1
			radial_engine_4_2x
			fuel_tanks_medium
			hmg_defense_turret_2x
			hmg_defense_turret
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}
		
	tac_bomber_3_c = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "B-26 Marauder"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_b_26"
		target_variant = {
			match_value = 3500
			type = medium_plane_airframe_3
			modules = {
				 engine_type_slot = radial_engine_4_2x 
				 fixed_aux_prop_slot = injection_system 
				 fixed_auxiliary_weapon_slot_1 = heavy_mg_2x 
				 fixed_engine_mod_slot = supercharger 
				 fixed_main_weapon_slot = medium_bomb_bay 
				 fixed_optics_slot = bomb_sights_1 
				 fixed_wing_slot = straight_wing 
				 special_type_slot_1 = lmg_defense_gunner 
				 special_type_slot_2 = lmg_defense_gunner_3x
			}
			
		}

		allowed_modules = {
			medium_bomb_bay
			bomb_locks
			torpedo_mounting
			engine_4_2x
			lmg_defense_turret_2x
			bomb_sights_1
			radial_engine_4_2x
			fuel_tanks_medium
			hmg_defense_turret_2x
			hmg_defense_turret
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}
		
	tac_bomber_3_d = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "B-26A Marauder"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_b_26a"
		target_variant = {
			match_value = 3500
			type = medium_plane_airframe_3
			modules = {
				 engine_type_slot = radial_engine_4_2x 
				 fixed_aux_prop_slot = injection_system 
				 fixed_auxiliary_weapon_slot_1 = heavy_mg_2x 
				 fixed_engine_mod_slot = supercharger 
				 fixed_main_weapon_slot = medium_bomb_bay 
				 fixed_optics_slot = bomb_sights_1 
				 fixed_wing_slot = straight_wing 
				 special_type_slot_1 = lmg_defense_turret 
				 special_type_slot_2 = lmg_defense_gunner_4x
			}
			
		}

		allowed_modules = {
			medium_bomb_bay
			bomb_locks
			torpedo_mounting
			engine_4_2x
			lmg_defense_turret_2x
			bomb_sights_1
			radial_engine_4_2x
			fuel_tanks_medium
			hmg_defense_turret_2x
			hmg_defense_turret
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}
	
	tac_bomber_3_e = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "B-26G Marauder"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_b_26g"
		target_variant = {
			match_value = 3500
			type = medium_plane_airframe_3
			modules = {
				 engine_type_slot = radial_engine_4_2x 
				 fixed_aux_prop_slot = injection_system 
				 fixed_auxiliary_weapon_slot_1 = heavy_mg_4x 
				 fixed_engine_mod_slot = supercharger 
				 fixed_main_weapon_slot = medium_bomb_bay 
				 fixed_optics_slot = bomb_sights_2 
				 fixed_wing_slot = straight_wing 
				 fixed_electronics_slot = early_radar_jammer
				 special_type_slot_1 = hmg_defense_turret_2x
				 special_type_slot_2 = hmg_defense_gunner_4x
			}
			
		}

		allowed_modules = {
			medium_bomb_bay
			bomb_locks
			torpedo_mounting
			engine_4_2x
			lmg_defense_turret_2x
			bomb_sights_1
			radial_engine_4_2x
			fuel_tanks_medium
			hmg_defense_turret_2x
			hmg_defense_turret
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}
	
	jet_tac_bomber_default = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_medium_airframe_2
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "B-43 Jetmaster"
		#history = yes

		target_variant = {
			match_value = 4000
			type = medium_plane_airframe_4
			modules = {
				fixed_wing_slot = straight_wing
				fixed_optics_slot = bomb_sights_2
				fixed_main_weapon_slot = medium_bomb_bay
				fixed_auxiliary_weapon_slot_1 = medium_bomb_bay
				 fixed_electronics_slot = early_radar_jammer
				engine_type_slot = jet_engine_2x
				#special_type_slot_1 = fuel_tanks_medium
				special_type_slot_2 = hmg_remote_turret_twin_2x
			}			
		}

		allowed_modules = {
			medium_bomb_bay
			medium_bomb_bay_2
			bomb_locks
			jet_engine_2x
			fuel_tanks_small
			bomb_sights_2
			hmg_defense_turret
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}
	
	jet_tac_bomber_b = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_medium_airframe_2
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "B-42 Mixmaster"
		#history = yes
		#override_sprite = "GFX_generic_B_42"

		target_variant = {
			match_value = 4000
			type = medium_plane_airframe_4
			modules = {
				engine_type_slot=radial_engine_5_2x
				fixed_aux_prop_slot=contra_rotating_props
				fixed_auxiliary_weapon_slot_1=medium_bomb_bay_2
				fixed_main_weapon_slot=medium_bomb_bay
				fixed_engine_mod_slot=supercharger
				fixed_optics_slot=bomb_sights_2
				fixed_wing_slot=straight_wing
				 fixed_electronics_slot = early_radar_jammer
				special_type_slot_1=hmg_remote_turret_twin_2x
				special_type_slot_2=fuel_tanks_medium
				special_type_slot_3 = pressurized_cabin_medium	
				special_type_slot_4=radio_navigation_1
			}
			
		}

		allowed_modules = {
			medium_bomb_bay
			medium_bomb_bay_2
			bomb_locks
			jet_engine_2x
			fuel_tanks_small
			bomb_sights_2
			hmg_defense_turret
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}
	
	jet_tac_bomber_2_default = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_medium_airframe_3
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "B-45A-1 Tornado"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_b_45a_1"

		target_variant = {
			match_value = 5000
			type = medium_plane_airframe_5
			modules = {
				fixed_radar_slot = { any_of = { air_ground_radar_5 air_ground_radar_4 air_ground_radar_3 } }
				engine_type_slot=jet_engine_2_4x
				fixed_auxiliary_weapon_slot_1=medium_bomb_bay_2
				fixed_main_weapon_slot=medium_bomb_bay
				fixed_optics_slot=bomb_sights_2
				fixed_wing_slot=straight_wing
				 fixed_electronics_slot = basic_radar_jammer
				special_type_slot_1=hmg_remote_turret_twin
				special_type_slot_3=radio_navigation_1
				special_type_slot_4 = pressurized_cabin_medium	
			}
			
		}

		allowed_modules = {
			medium_bomb_bay
			medium_bomb_bay_2
			bomb_locks
			fuel_tanks_medium
			jet_engine_2x
			bomb_sights_2
			hmg_defense_turret
			air_ground_radar_2
			air_ground_radar_1
			air_ground_radar_3
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}
	
	jet_tac_bomber_2_b = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_medium_airframe_3
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "B-45A-5 Tornado"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_b_45a_5"

		target_variant = {
			match_value = 5000
			type = medium_plane_airframe_5
			modules = {
				fixed_radar_slot = { any_of = { air_ground_radar_5 air_ground_radar_4 air_ground_radar_3 } }
				engine_type_slot=jet_engine_2_4x
				fixed_auxiliary_weapon_slot_1=medium_bomb_bay_2
				fixed_main_weapon_slot=medium_bomb_bay_2
				fixed_optics_slot = { any_of = { bomb_sights_4 bomb_sights_3 bomb_sights_2 } }
				fixed_wing_slot=straight_wing
				 fixed_electronics_slot = basic_radar_jammer
				special_type_slot_1=hmg_remote_turret_twin
				special_type_slot_3=radio_navigation_2
				special_type_slot_4 = pressurized_cabin_medium	
			}
			
		}

		allowed_modules = {
			medium_bomb_bay
			medium_bomb_bay_2
			bomb_locks
			fuel_tanks_medium
			jet_engine_2x
			bomb_sights_2
			hmg_defense_turret
			air_ground_radar_2
			air_ground_radar_1
			air_ground_radar_3
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}
	
	jet_tac_bomber_2_c = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_medium_airframe_3
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "B-45C Tornado"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_b_45c"

		target_variant = {
			match_value = 5000
			type = medium_plane_airframe_5
			modules = {
				fixed_radar_slot = { any_of = { air_ground_radar_5 air_ground_radar_4 air_ground_radar_3 } }
				engine_type_slot=jet_engine_2_4x
				fixed_auxiliary_weapon_slot_1=medium_bomb_bay_2
				fixed_auxiliary_weapon_slot_2=drop_tanks
				fixed_main_weapon_slot=medium_bomb_bay_2
				fixed_optics_slot = { any_of = { bomb_sights_4 bomb_sights_3 bomb_sights_2 } }
				fixed_wing_slot=straight_wing
				 fixed_electronics_slot = basic_radar_jammer
				special_type_slot_1=hmg_remote_turret_twin
				special_type_slot_3=radio_navigation_2
				special_type_slot_4 = pressurized_cabin_medium	
			}
			
		}

		allowed_modules = {
			medium_bomb_bay
			medium_bomb_bay_2
			bomb_locks
			fuel_tanks_medium
			jet_engine_2x
			bomb_sights_2
			hmg_defense_turret
			air_ground_radar_2
			air_ground_radar_1
			air_ground_radar_3
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}
	
	jet_tac_bomber_3_default = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_medium_airframe_4
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "B-59"
		#history = yes

		target_variant = {
			match_value = 6000
			type = medium_plane_airframe_6
			modules = {
				fixed_wing_slot = swept_wing
				fixed_optics_slot = { any_of = { bomb_sights_4 bomb_sights_3 bomb_sights_2 } }
				fixed_engine_mod_slot = afterburner
				fixed_main_weapon_slot = medium_bomb_bay_2
				fixed_auxiliary_weapon_slot_1 = medium_bomb_bay_2
				 fixed_electronics_slot = basic_radar_jammer
				engine_type_slot = second_gen_jet_engine_4x
				special_type_slot_1 = fuel_tanks_medium
				special_type_slot_2 = basic_radar_warning_system
				fixed_radar_slot = { any_of = { air_ground_radar_5 air_ground_radar_4 air_ground_radar_3 } }
				special_type_slot_4 = pressurized_cabin_medium	
				special_type_slot_5 = radio_navigation_2	
			}			
		}

		allowed_modules = {
			medium_bomb_bay
			medium_bomb_bay_2
			bomb_locks
			fuel_tanks_medium
			jet_engine_2x
			bomb_sights_2
			hmg_defense_turret
			air_ground_radar_2
			air_ground_radar_1
			air_ground_radar_3
			air_ground_radar_4
			cannon_defense_turret
			second_gen_jet_engine_4x
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}
	
	jet_tac_bomber_4_default = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_medium_airframe_5
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "B-66 Destroyer"
		#history = yes

		target_variant = {
			match_value = 7000
			type = medium_plane_airframe_7
			modules = {
				fixed_wing_slot = swept_wing
				fixed_optics_slot = { any_of = { bomb_sights_4 bomb_sights_3 bomb_sights_2 } }
				#fixed_radar_slot = 
				fixed_main_weapon_slot = medium_bomb_bay_2
				#fixed_auxiliary_weapon_slot_1 = medium_bomb_bay_2
				fixed_electronics_slot = improved_radar_jammer
				engine_type_slot = second_gen_jet_engine_2x
				special_type_slot_1 = fuel_tanks_medium
				special_type_slot_2 = dual_cannon_remote_turret_1
				fixed_radar_slot = { any_of = { air_ground_radar_5 air_ground_radar_4 air_ground_radar_3 } } 
				special_type_slot_3 = pressurized_cabin_medium		
				special_type_slot_4 = radio_navigation_2				
			}
			
		}

		allowed_modules = {
			medium_bomb_bay
			medium_bomb_bay_2
			bomb_locks
			fuel_tanks_medium
			jet_engine_2x
			bomb_sights_2
			hmg_defense_turret
			air_ground_radar_2
			air_ground_radar_1
			air_ground_radar_3
			air_ground_radar_4
			air_ground_radar_5
			cannon_defense_turret
			second_gen_jet_engine_4x
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}
	
	jet_tac_bomber_5_default = {
		
		priority = {			
			factor = 100			
		}
		
		#name = "B-58 Hustler"
		#history = yes

		target_variant = {
			match_value = 8000
			type = medium_plane_airframe_8
			modules = {
				fixed_wing_slot = delta_wing
				fixed_optics_slot = { any_of = { bomb_sights_5 bomb_sights_4 bomb_sights_3 bomb_sights_2 } }
				fixed_engine_mod_slot = mach_2_afterburner
				fixed_main_weapon_slot = medium_bomb_bay_2
				fixed_auxiliary_weapon_slot_1 = bomb_pod_module
				fixed_electronics_slot = improved_radar_jammer
				engine_type_slot = third_gen_jet_engine_4x
				special_type_slot_1 = fuel_tanks_medium
				special_type_slot_2 = cannon_defense_turret_4
				fixed_radar_slot = { any_of = { air_ground_radar_6 air_ground_radar_5 air_ground_radar_4 air_ground_radar_3 } } 
				special_type_slot_4 = improved_radar_warning_system		
				special_type_slot_5 = inertial_navigation_system_2		
			}
			
		}

		allowed_modules = {
			medium_bomb_bay
			medium_bomb_bay_2
			bomb_locks
			hud_module
			fuel_tanks_medium
			third_gen_jet_engine_2x
			jet_engine_2x
			fuel_tanks_small
			bomb_sights_2
			hmg_defense_turret
			air_ground_radar_2
			air_ground_radar_1
			air_ground_radar_3
			air_ground_radar_4
			air_ground_radar_5
			air_ground_radar_6
			cannon_defense_turret
			second_gen_jet_engine_4x
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}
}

generic_heavy_fighter = {
	category = air

	blocked_for = {EMP USA RUS}

	available_for = {}

	roles = {
		air_heavy_fighter
	}

	priority = {
		factor = 10
		
	}
	
	heavy_fighter_gw = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = basic_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		
		#name = "F5F Skyrocket"
		#history = yes
		
		#override_sprite = "GFX_generic_XF5F"

		target_variant = {
			match_value = 20
			type = medium_plane_fighter_airframe_0
			modules = {
				 fixed_engine_mod_slot = turbocharger 
				 engine_type_slot = { any_of = { radial_engine_3_2x radial_engine_2_2x radial_engine_1_2x } }
				 fixed_main_weapon_slot = { any_of = { heavy_mg_2_4x heavy_mg_4x } }
				 fixed_optics_slot = reflex_gunsight 
				 fixed_wing_slot = straight_wing 
				fixed_tail_modifications_slot = twin_tail
				
			}
		}

		allowed_modules = {
			heavy_mg_4x
			aircraft_cannon_1_2x
			engine_2_2x
			straight_wing
			reflex_gunsight
			turbocharger
			heavy_mg_2x
			engine_2_2x
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}
	
	heavy_fighter_0 = {
		priority = {
			factor = 1
			modifier = { 
				has_tech = improved_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		
		#name = "FM-1 Airacuda"
		#history = yes
		
		#override_sprite = "GFX_generic_LAMP_ymf_1"

		target_variant = {
			match_value = 500
			type = medium_plane_fighter_airframe_1
			modules = {
				 engine_type_slot = radial_engine_3_2x 
				 fixed_main_weapon_slot = bomber_buster_1
				 fixed_engine_mod_slot = turbocharger 
				 fixed_auxiliary_weapon_slot_1 = bomber_buster_1
				 fixed_optics_slot = reflex_gunsight 
				 fixed_wing_slot = straight_wing 
				 special_type_slot_1 = hmg_defense_gunner_4x 
				 special_type_slot_2 = hmg_defense_gunner 
				
			}
			
		}

		allowed_modules = {
			heavy_mg_4x
			aircraft_cannon_1_2x
			engine_2_2x
			straight_wing
			reflex_gunsight
			turbocharger
			heavy_mg_2x
			engine_2_2x
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}
	
	heavy_fighter_1 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		
		#name = "P-38D Lightning"
		#history = yes
		
		#override_sprite = "GFX_generic_LAMP_p_38d"

		target_variant = {
			match_value = 1000
			type = medium_plane_fighter_airframe_2
			modules = {
				 engine_type_slot = engine_3_2x 
				 fixed_auxiliary_weapon_slot_1 = { any_of = { aircraft_cannon_2_1x aircraft_cannon_1_1x  } } 
				 fixed_engine_mod_slot = turbocharger 
				 fixed_main_weapon_slot = { any_of = { heavy_mg_2_4x heavy_mg_4x } }
				 fixed_optics_slot = reflex_gunsight 
				 fixed_wing_slot = straight_wing 
				fixed_tail_modifications_slot = twin_boom
				 special_type_slot_2 = self_sealing_fuel_tanks_medium 
			}
			
		}

		allowed_modules = {
			heavy_mg_4x
			aircraft_cannon_1_2x
			engine_2_2x
			straight_wing
			reflex_gunsight
			turbocharger
			heavy_mg_2x
			engine_2_2x
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}
	
	heavy_fighter_1_b = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		
		#name = "P-38F Lightning"
		#history = yes
		
		#override_sprite = "GFX_generic_LAMP_p_38f"

		target_variant = {
			match_value = 1000
			type = medium_plane_fighter_airframe_2
			modules = {
				 engine_type_slot = engine_3_2x 
				 fixed_auxiliary_weapon_slot_1 = { any_of = { aircraft_cannon_2_1x aircraft_cannon_1_1x  } } 
				 fixed_auxiliary_weapon_slot_2 = drop_tanks 
				 fixed_engine_mod_slot = turbocharger 
				 fixed_main_weapon_slot = { any_of = { heavy_mg_2_4x heavy_mg_4x } }
				 fixed_optics_slot = reflex_gunsight 
				 fixed_wing_slot = straight_wing 
				fixed_tail_modifications_slot = twin_boom
				 special_type_slot_2 = self_sealing_fuel_tanks_medium 
			}
			
		}

		allowed_modules = {
			heavy_mg_4x
			aircraft_cannon_1_2x
			engine_2_2x
			straight_wing
			reflex_gunsight
			turbocharger
			heavy_mg_2x
			engine_2_2x
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}
	
	heavy_fighter_1_c = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		
		#name = "P-38J Lightning"
		#history = yes
		
		#override_sprite = "GFX_generic_LAMP_p_38j"

		target_variant = {
			match_value = 1000
			type = medium_plane_fighter_airframe_2
			modules = {
				 engine_type_slot = engine_4_2x 
				 fixed_aux_prop_slot = injection_system
				 fixed_auxiliary_weapon_slot_1 = { any_of = { aircraft_cannon_2_1x aircraft_cannon_1_1x  } } 
				 fixed_auxiliary_weapon_slot_2 = drop_tanks 
				 fixed_engine_mod_slot = turbocharger 
				 fixed_main_weapon_slot = { any_of = { heavy_mg_2_4x heavy_mg_4x } }
				 fixed_optics_slot = reflex_gunsight 
				 fixed_wing_slot = straight_wing 
				fixed_tail_modifications_slot = twin_boom
				 special_type_slot_2 = self_sealing_fuel_tanks_medium 
			}
			
		}

		allowed_modules = {
			heavy_mg_4x
			aircraft_cannon_1_2x
			engine_2_2x
			straight_wing
			reflex_gunsight
			turbocharger
			heavy_mg_2x
			engine_2_2x
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}
	
	heavy_fighter_1_d = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		
		#name = "P-38M Lightning"
		#history = yes
		
		#override_sprite = "GFX_generic_LAMP_p_38m"

		target_variant = {
			match_value = 1000
			type = medium_plane_fighter_airframe_2
			modules = {
				 engine_type_slot = engine_4_2x 
				 fixed_aux_prop_slot = injection_system
				 fixed_radar_slot = { any_of = { air_air_radar_2 air_air_radar_1 } } 
				 fixed_auxiliary_weapon_slot_1 = { any_of = { aircraft_cannon_2_1x aircraft_cannon_1_1x  } } 
				 fixed_auxiliary_weapon_slot_2 = drop_tanks 
				 fixed_engine_mod_slot = turbocharger 
				 fixed_main_weapon_slot = { any_of = { heavy_mg_2_4x heavy_mg_4x } }
				 fixed_optics_slot = reflex_gunsight 
				 fixed_wing_slot = straight_wing 
				fixed_tail_modifications_slot = twin_boom
				 special_type_slot_2 = self_sealing_fuel_tanks_medium 
			}
			
		}

		allowed_modules = {
			heavy_mg_4x
			aircraft_cannon_1_2x
			engine_2_2x
			straight_wing
			reflex_gunsight
			turbocharger
			heavy_mg_2x
			engine_2_2x
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}

	heavy_fighter_2 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "P-70 Nighthawk"
		#history = yes
		
		#override_sprite = "GFX_generic_LAMP_p_70"
		target_variant = {
			match_value = 1000
			type = medium_plane_fighter_airframe_2
			modules = {
				fixed_wing_slot = straight_wing
				fixed_radar_slot = { any_of = { air_air_radar_1 air_air_radar_2 } }
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = reflex_gunsight
				fixed_engine_mod_slot = supercharger
				#fixed_fuel_type_slot = empty
				fixed_main_weapon_slot = aircraft_cannon_2_2x
				fixed_auxiliary_weapon_slot_1 = aircraft_cannon_2_2x
				engine_type_slot = radial_engine_3_2x
				special_type_slot_1 = fuel_tanks_medium
				special_type_slot_2 = armor_plate_medium	
			}
			
		}

		allowed_modules = {
			heavy_mg_4x
			injection_system
			aircraft_cannon_1_2x
			air_air_radar_1 
			air_air_radar_2
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			engine_2_2x
			straight_wing
			reflex_gunsight
			turbocharger
			heavy_mg_2x
			engine_2_2x
			hmg_defense_turret_2x
			engine_3_2x
			radial_engine_3_2x
			fuel_tanks_medium
			armor_plate_small
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}

	heavy_fighter_3 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		
		#history = yes
		
		#override_sprite = "GFX_generic_LAMP_p_61a_11"
		
		#name = "P-61A-11 Black Widow"
		
		target_variant = {
			match_value = 2000
			type = medium_plane_fighter_airframe_3
			modules = {
				 engine_type_slot = engine_4_2x 
				 fixed_aux_prop_slot = injection_system
				 fixed_radar_slot = { any_of = { air_air_radar_3 air_air_radar_2 air_air_radar_1 } } 
				 fixed_auxiliary_weapon_slot_1 = { any_of = { aircraft_cannon_3_2x aircraft_cannon_2_2x aircraft_cannon_1_2x  } } 
				 fixed_auxiliary_weapon_slot_2 = drop_tanks 
				 fixed_engine_mod_slot = turbocharger 
				 fixed_main_weapon_slot = { any_of = { aircraft_cannon_3_2x aircraft_cannon_2_2x aircraft_cannon_1_2x } }
				 fixed_optics_slot = { any_of = { gyro_gunsight reflex_gunsight } }
				 fixed_wing_slot = straight_wing 
				 fixed_electronics_slot = early_radar_warning_system
				fixed_tail_modifications_slot = twin_boom
				 special_type_slot_2 = self_sealing_fuel_tanks_medium 
				 special_type_slot_3 = hmg_remote_turret_quad 
			}
			
		}

		allowed_modules = {
			aircraft_cannon_2_2x
			air_air_radar_1
			air_air_radar_2
			air_air_radar_3
			heavy_mg_4x
			heavy_mg_2x
			engine_4_2x
			straight_wing
			reflex_gunsight
			turbocharger
			hmg_defense_turret_2x
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}	

	heavy_fighter_3_b = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		
		#history = yes
		
		#override_sprite = "GFX_generic_LAMP_p_61a_1"
		
		#name = "P-61A-1 Black Widow"
		
		target_variant = {
			match_value = 2000
			type = medium_plane_fighter_airframe_3
			modules = {
				 engine_type_slot = engine_4_2x 
				 #fixed_aux_prop_slot = injection_system
				 fixed_radar_slot = { any_of = { air_air_radar_3 air_air_radar_2 air_air_radar_1 } } 
				 fixed_auxiliary_weapon_slot_1 = { any_of = { aircraft_cannon_3_2x aircraft_cannon_2_2x aircraft_cannon_1_2x  } } 
				 #fixed_auxiliary_weapon_slot_2 = drop_tanks 
				 fixed_engine_mod_slot = turbocharger 
				 fixed_main_weapon_slot = { any_of = { aircraft_cannon_3_2x aircraft_cannon_2_2x aircraft_cannon_1_2x } }
				 fixed_optics_slot = { any_of = { gyro_gunsight reflex_gunsight } }
				 fixed_wing_slot = straight_wing 
				fixed_tail_modifications_slot = twin_boom
				 special_type_slot_2 = self_sealing_fuel_tanks_medium 
				 special_type_slot_3 = hmg_remote_turret_quad 
			}
			
		}

		allowed_modules = {
			aircraft_cannon_2_2x
			air_air_radar_1
			air_air_radar_2
			air_air_radar_3
			heavy_mg_4x
			heavy_mg_2x
			engine_4_2x
			straight_wing
			reflex_gunsight
			turbocharger
			hmg_defense_turret_2x
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}	

	heavy_fighter_3_c = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		
		#history = yes
		
		#override_sprite = "GFX_generic_LAMP_p_61a_5"
		
		#name = "P-61A-5 Black Widow"
		
		target_variant = {
			match_value = 2000
			type = medium_plane_fighter_airframe_3
			modules = {
				 engine_type_slot = engine_4_2x 
				 #fixed_aux_prop_slot = injection_system
				 fixed_radar_slot = { any_of = { air_air_radar_3 air_air_radar_2 air_air_radar_1 } } 
				 fixed_auxiliary_weapon_slot_1 = { any_of = { aircraft_cannon_3_2x aircraft_cannon_2_2x aircraft_cannon_1_2x  } } 
				 #fixed_auxiliary_weapon_slot_2 = drop_tanks 
				 fixed_engine_mod_slot = turbocharger 
				 fixed_main_weapon_slot = { any_of = { aircraft_cannon_3_2x aircraft_cannon_2_2x aircraft_cannon_1_2x } }
				 fixed_optics_slot = { any_of = { gyro_gunsight reflex_gunsight } }
				 fixed_wing_slot = straight_wing 
				fixed_tail_modifications_slot = twin_boom
				 special_type_slot_2 = self_sealing_fuel_tanks_medium 
				 #special_type_slot_3 = hmg_defense_turret_2x 
			}
			
		}

		allowed_modules = {
			aircraft_cannon_2_2x
			air_air_radar_1
			air_air_radar_2
			air_air_radar_3
			heavy_mg_4x
			heavy_mg_2x
			engine_4_2x
			straight_wing
			reflex_gunsight
			turbocharger
			hmg_defense_turret_2x
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}

	heavy_fighter_3_c = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		
		#history = yes
		
		#override_sprite = "GFX_generic_LAMP_p_61b_1"
		
		#name = "P-61B-1 Black Widow"
		
		target_variant = {
			match_value = 2000
			type = medium_plane_fighter_airframe_3
			modules = {
				 engine_type_slot = engine_4_2x 
				 fixed_aux_prop_slot = injection_system
				 fixed_radar_slot = { any_of = { air_air_radar_3 air_air_radar_2 air_air_radar_1 } } 
				 fixed_auxiliary_weapon_slot_1 = { any_of = { aircraft_cannon_3_2x aircraft_cannon_2_2x aircraft_cannon_1_2x  } } 
				 fixed_auxiliary_weapon_slot_2 = drop_tanks 
				 fixed_engine_mod_slot = turbocharger 
				 fixed_main_weapon_slot = { any_of = { aircraft_cannon_3_2x aircraft_cannon_2_2x aircraft_cannon_1_2x } }
				 fixed_optics_slot = { any_of = { gyro_gunsight reflex_gunsight } }
				 fixed_wing_slot = straight_wing 
				 fixed_electronics_slot = early_radar_warning_system
				fixed_tail_modifications_slot = twin_boom
				 special_type_slot_2 = self_sealing_fuel_tanks_medium 
			}
			
		}

		allowed_modules = {
			aircraft_cannon_2_2x
			air_air_radar_1
			air_air_radar_2
			air_air_radar_3
			heavy_mg_4x
			heavy_mg_2x
			engine_4_2x
			straight_wing
			reflex_gunsight
			turbocharger
			hmg_defense_turret_2x
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}

	heavy_fighter_3_d = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		
		#history = yes
		
		#override_sprite = "GFX_generic_LAMP_p_61b_10"
		
		#name = "P-61B-10 Black Widow"
		
		target_variant = {
			match_value = 2000
			type = medium_plane_fighter_airframe_3
			modules = {
				 engine_type_slot = engine_4_2x 
				 fixed_aux_prop_slot = injection_system
				 fixed_radar_slot = { any_of = { air_air_radar_3 air_air_radar_2 air_air_radar_1 } } 
				 fixed_auxiliary_weapon_slot_1 = { any_of = { aircraft_cannon_3_2x aircraft_cannon_2_2x aircraft_cannon_1_2x  } }
				 fixed_auxiliary_weapon_slot_2 = { any_of = { heavy_bomb_locks bomb_locks } } 
				 fixed_auxiliary_weapon_slot_2 = drop_tanks 
				 fixed_engine_mod_slot = turbocharger 
				 fixed_main_weapon_slot = { any_of = { aircraft_cannon_3_2x aircraft_cannon_2_2x aircraft_cannon_1_2x } }
				 fixed_optics_slot = { any_of = { gyro_gunsight reflex_gunsight } }
				 fixed_wing_slot = straight_wing 
				 fixed_electronics_slot = early_radar_warning_system
				fixed_tail_modifications_slot = twin_boom
				 special_type_slot_2 = self_sealing_fuel_tanks_medium 
				 special_type_slot_3 = hmg_remote_turret_quad 
			}
			
		}

		allowed_modules = {
			aircraft_cannon_2_2x
			air_air_radar_1
			air_air_radar_2
			air_air_radar_3
			heavy_mg_4x
			heavy_mg_2x
			engine_4_2x
			straight_wing
			reflex_gunsight
			turbocharger
			hmg_defense_turret_2x
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}
	
	heavy_fighter_3_e = {
		priority = {
			factor = 1
		}
		#override_sprite = "GFX_generic_LAMP_f7f_1"
		#history = yes
		#name = "F7F-1 Tigercat"
		target_variant = {
			match_value = 1
			type = medium_plane_fighter_airframe_3
			modules = {
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = supercharger
				fixed_main_weapon_slot = { any_of = { aircraft_cannon_3_2x aircraft_cannon_2_2x  } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { aircraft_cannon_3_2x aircraft_cannon_2_2x  } }
				fixed_auxiliary_weapon_slot_2 = { any_of = { heavy_mg_2_4x heavy_mg_4x } }
				fixed_auxiliary_weapon_slot_3 = { any_of = { imp_bomb_locks heavy_bomb_locks bomb_locks } }
				fixed_auxiliary_weapon_slot_4 = { any_of = { imp_rocket_rails rocket_rails } }
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = { any_of = { radial_engine_5_2x radial_engine_4_2x } }
				special_type_slot_1 = fuel_tanks_medium
				#special_type_slot_2 = {	any_of = { g_suit_3 g_suit_2 g_suit_1 } }	
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			jet_engine_2x
			radial_engine_4_1x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
			g_suit_type
		}
	}
	
	heavy_fighter_3_f = {
		priority = {
			factor = 1
		}
		#override_sprite = "GFX_generic_LAMP_f7f_3n"
		#history = yes
		#name = "F7F-3N Tigercat"
		target_variant = {
			match_value = 1
			type = medium_plane_fighter_airframe_3
			modules = {
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = injection_system
				fixed_radar_slot = { any_of = { air_air_radar_3 air_air_radar_2 air_air_radar_1 } } 
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = supercharger
				fixed_main_weapon_slot = { any_of = { aircraft_cannon_3_2x aircraft_cannon_2_2x  } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { aircraft_cannon_3_2x aircraft_cannon_2_2x  } }
				engine_type_slot = { any_of = { radial_engine_5_2x radial_engine_4_2x } }
				fixed_electronics_slot = early_radar_warning_system
				special_type_slot_1 = fuel_tanks_medium
				#special_type_slot_2 = {	any_of = { g_suit_3 g_suit_2 g_suit_1 } }	
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			jet_engine_2x
			radial_engine_4_1x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
			g_suit_type
		}
	}
	
	heavy_fighter_3_g = {
		priority = {
			factor = 1
		}
		#override_sprite = "GFX_generic_LAMP_f7f_3p"
		#history = yes
		#name = "F7F-3P Tigercat"
		target_variant = {
			match_value = 1
			type = medium_plane_fighter_airframe_3
			modules = {
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = supercharger
				fixed_main_weapon_slot = { any_of = { aircraft_cannon_3_2x aircraft_cannon_2_2x  } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { aircraft_cannon_3_2x aircraft_cannon_2_2x  } }
				fixed_auxiliary_weapon_slot_2 = recon_camera
				engine_type_slot = { any_of = { radial_engine_5_2x radial_engine_4_2x } }
				fixed_electronics_slot = early_radar_warning_system
				special_type_slot_1 = fuel_tanks_medium
				#special_type_slot_2 = {	any_of = { g_suit_3 g_suit_2 g_suit_1 } }	
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			jet_engine_2x
			radial_engine_4_1x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
			g_suit_type
		}
	}

	heavy_fighter_4 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_medium_airframe_2
				factor = 0 #let's not waste XP here
			}	
		}
		
		#history = yes
		
		#override_sprite = "GFX_generic_LAMP_p_82b"
		
		#name = "P-82B Twin Mustang"
	
		target_variant = {
			match_value = 2500
			type = medium_plane_fighter_airframe_4
			modules = {
				fixed_wing_slot = laminar_flow_straight_wing
				# fixed_radar_slot = {
					# any_of = { 
						# air_air_radar_1
						# air_air_radar_2
						# air_air_radar_3
					# }
				# }
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = gyro_gunsight
				fixed_engine_mod_slot = supercharger
				fixed_main_weapon_slot = { any_of = { heavy_mg_2_4x heavy_mg_4x  } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { heavy_mg_2_2x heavy_mg_2x  } }
				fixed_auxiliary_weapon_slot_1 = drop_tanks
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = engine_5_2x
				fixed_tail_modifications_slot = twin_boom
				special_type_slot_2 = self_sealing_fuel_tanks_medium 
			}
			
		}

		allowed_modules = {
			aircraft_cannon_2_2x
			air_air_radar_1
			air_air_radar_2
			air_air_radar_3
			heavy_mg_4x
			heavy_mg_2x
			engine_4_2x
			straight_wing
			reflex_gunsight
			turbocharger
			hmg_defense_turret_2x
			laminar_flow_straight_wing
			heavy_mg_2x
			heavy_mg_4x
			gyro_gunsight
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}

	heavy_fighter_4_b = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_medium_airframe_2
				factor = 0 #let's not waste XP here
			}	
		}
		
		#history = yes
		
		#override_sprite = "GFX_generic_LAMP_f_82f"
		
		#name = "P-82F Twin Mustang"
		
		target_variant = {
			match_value = 2500
			type = medium_plane_fighter_airframe_4
			modules = {
				fixed_wing_slot = laminar_flow_straight_wing
				fixed_radar_slot = {
					any_of = { 
						air_air_radar_1
						air_air_radar_2
						air_air_radar_3
					}
				}
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = gyro_gunsight
				fixed_engine_mod_slot = supercharger
				fixed_main_weapon_slot = { any_of = { heavy_mg_2_4x heavy_mg_4x  } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { heavy_mg_2_2x heavy_mg_2x  } }
				fixed_auxiliary_weapon_slot_1 = drop_tanks
				fixed_electronics_slot = early_radar_warning_system
				engine_type_slot = engine_5_2x
				fixed_tail_modifications_slot = twin_boom
				special_type_slot_2 = self_sealing_fuel_tanks_medium 
				special_type_slot_3 = pressurized_cabin_medium 
			}
			
		}

		allowed_modules = {
			aircraft_cannon_2_2x
			air_air_radar_1
			air_air_radar_2
			air_air_radar_3
			heavy_mg_4x
			heavy_mg_2x
			engine_4_2x
			straight_wing
			reflex_gunsight
			turbocharger
			hmg_defense_turret_2x
			laminar_flow_straight_wing
			heavy_mg_2x
			heavy_mg_4x
			gyro_gunsight
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}

	heavy_fighter_5 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_medium_airframe_3
				factor = 0 #let's not waste XP here
			}	
			
		}
		
		#history = yes
		
		#override_sprite = "GFX_generic_F_87"
		
		#name = "F-87 Blackhawk"
		
		target_variant = {
			match_value = 3000
			type = medium_plane_fighter_airframe_5
			modules = {
				fixed_wing_slot = straight_wing
				fixed_radar_slot = {
					any_of = { 
						air_air_radar_4
						air_air_radar_2
						air_air_radar_3
					}
				}
				fixed_optics_slot = gyro_gunsight
				fixed_main_weapon_slot = aircraft_cannon_2_2x
				fixed_auxiliary_weapon_slot_1 = aircraft_cannon_2_2x
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_electronics_slot = basic_radar_warning_system
				engine_type_slot = jet_engine_2_4x
				special_type_slot_1 = pressurized_cabin_medium 
				special_type_slot_2 = self_sealing_fuel_tanks_medium 
			}
			
		}

		allowed_modules = {
			aircraft_cannon_2_2x
			air_air_radar_1
			air_air_radar_2
			air_air_radar_3
			engine_4_2x
			straight_wing
			reflex_gunsight
			turbocharger
			hmg_defense_turret_2x
			laminar_flow_straight_wing
			heavy_mg_2x
			heavy_mg_4x
			gyro_gunsight
			jet_engine_4x
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}

	heavy_fighter_7 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_medium_airframe_5
				factor = 0 #let's not waste XP here
			}	
			
		}
		
		#history = yes
		
		#override_sprite = "GFX_generic_F_108"
		
		#name =  "F-108 Rapier"
		
		target_variant = {
			match_value = 2000
			type = medium_plane_fighter_airframe_7
			modules = {
				fixed_wing_slot = delta_wing
				fixed_radar_slot = {
					any_of = { 
						air_air_radar_6
						air_air_radar_5
						air_air_radar_4
					}
				}
				fixed_optics_slot = { any_of = { hud_module gyro_gunsight } }
				fixed_engine_mod_slot = compressor_bleed_afterburner
				fixed_main_weapon_slot = { any_of = { air_air_missile_4_module air_air_missile_3_module } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { air_air_missile_4_module air_air_missile_3_module } }
				fixed_electronics_slot = improved_radar_warning_system
				engine_type_slot = third_gen_jet_engine_2x
				special_type_slot_1 = pressurized_cabin_medium 
				special_type_slot_2 = self_sealing_fuel_tanks_medium 
			}
			
		}

		allowed_modules = {
			aircraft_cannon_2_2x
			air_air_radar_1
			air_air_radar_2
			air_air_radar_3
			engine_4_2x
			straight_wing
			reflex_gunsight
			turbocharger
			hmg_defense_turret_2x
			laminar_flow_straight_wing
			heavy_mg_2x
			heavy_mg_4x
			gyro_gunsight
			jet_engine_4x
		}
	}
	
	heavy_fighter_8 = {
		priority = {
			factor = 200			
		}
		
		#history = yes
		
		#override_sprite = "GFX_generic_YF_12"
		
		#name = "F-12 Archangel"
		target_variant = {
			match_value = 4000
			type = medium_plane_fighter_airframe_8
			modules = {
				fixed_wing_slot = blended_wing
				fixed_radar_slot = {
					any_of = { 
						air_air_radar_6
						air_air_radar_5
						air_air_radar_4
					}
				}
				fixed_optics_slot = { any_of = { hud_module gyro_gunsight } }
				fixed_engine_mod_slot = compressor_bleed_afterburner
				fixed_main_weapon_slot = air_air_missile_4_module				
				fixed_auxiliary_weapon_slot_1 = air_air_missile_4_module
				fixed_auxiliary_weapon_slot_2 = wet_wing
				fixed_electronics_slot = improved_radar_warning_system
				engine_type_slot = third_gen_jet_engine_2x
				special_type_slot_1 = fuel_tanks_medium
				special_type_slot_2 = pressurized_cabin_medium 
				special_type_slot_3 = improved_radar_jammer 
			}
			
		}

		allowed_modules = {
			aircraft_cannon_2_2x
			air_air_radar_1
			air_air_radar_2
			air_air_radar_3
			engine_4_2x
			straight_wing
			reflex_gunsight
			turbocharger
			hmg_defense_turret_2x
			laminar_flow_straight_wing
			heavy_mg_2x
			heavy_mg_4x
			gyro_gunsight
			jet_engine_4x
			hud_module
			fly_by_wire
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}
}

generic_strategic_bomber = {
	category = air

	blocked_for = {EMP USA RUS}

	available_for = {}

	roles = {
		air_strategic_bomber
	}

	priority = {
		factor = 200
		modifier = {
			date >  1940.1.1 
			factor = 5
		}
		modifier = {
			has_war = yes
			factor = 4
		}
	}

	strat_bomber_0_default = {
		priority = {
			factor = 1
			modifier = { 
				has_tech = basic_large_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		
		#history = yes
		
		#override_sprite = "GFX_generic_LAMP_nbl_1"
		
		#name = "NBL-1 Barling Bomber"
		target_variant = {
			match_value = 500
			type = large_plane_airframe_0
			modules = {
				fixed_wing_slot = biplane_wing
				fixed_optics_slot = bomb_sights_0
				fixed_main_weapon_slot = large_bomb_bay
				engine_type_slot = engine_1_4x
				special_type_slot_1 = lmg_defense_gunner_4x
				special_type_slot_2 = lmg_defense_gunner_2x
				special_type_slot_3 = lmg_defense_gunner
			}
			
		}

		allowed_modules = {
			injection_system
			large_bomb_bay
			engine_2_4x
			engine_3_4x
			lmg_defense_turret_2x
			lmg_defense_turret
			hmg_defense_turret_2x
			hmg_defense_turret
			straight_wing
			bomb_sights_1
			bomb_sights_2
			self_sealing_fuel_tanks_small
			high_octane_fuel
			air_ground_radar_1
			fuel_tanks_large
			
			radio_navigation_1
			radio_navigation_2
		}
	}

	strat_bomber_1_default = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = improved_large_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		
		#history = yes
		
		#override_sprite = "GFX_generic_LAMP_b_17f"
		
		#name = "B-17F Flying Fortress"
		target_variant = {
			match_value = 1000
			type = large_plane_airframe_1
			modules = {
				fixed_wing_slot = straight_wing
				#fixed_aux_prop_slot = injection_system
				fixed_optics_slot = bomb_sights_1
				fixed_engine_mod_slot = turbocharger
				fixed_main_weapon_slot = large_bomb_bay
			#	fixed_auxiliary_weapon_slot_2 = wet_wing
				engine_type_slot = radial_engine_3_4x
				special_type_slot_1 = hmg_defense_turret_2x
				special_type_slot_2 = hmg_defense_gunner_4x
				special_type_slot_3 = hmg_defense_gunner_4x
				special_type_slot_4 = armor_plate_large
				special_type_slot_5 = self_sealing_fuel_tanks_large
									  
			}
			
		}

		allowed_modules = {
			injection_system
			large_bomb_bay
			engine_2_4x
			engine_3_4x
			lmg_defense_turret_2x
			lmg_defense_turret
			hmg_defense_turret_2x
			hmg_defense_turret
			straight_wing
			bomb_sights_1
			bomb_sights_2
			self_sealing_fuel_tanks_small
			high_octane_fuel
			air_ground_radar_1
			fuel_tanks_large
			
			radio_navigation_1
			radio_navigation_2
		}
	}

	strat_bomber_1_b = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = improved_large_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		
		#history = yes
		
		#override_sprite = "GFX_generic_LAMP_b_17b"
		
		#name = "B-17B Flying Fortress"
		target_variant = {
			match_value = 1000
			type = large_plane_airframe_1
			modules = {
				fixed_wing_slot = straight_wing
				#fixed_aux_prop_slot = injection_system
				fixed_optics_slot = bomb_sights_0
				fixed_engine_mod_slot = supercharger
				fixed_main_weapon_slot = large_bomb_bay
				engine_type_slot = radial_engine_2_4x
				special_type_slot_1 = lmg_defense_gunner_4x
				special_type_slot_2 = lmg_defense_gunner
			}
			
		}

		allowed_modules = {
			injection_system
			large_bomb_bay
			engine_2_4x
			engine_3_4x
			lmg_defense_turret_2x
			lmg_defense_turret
			hmg_defense_turret_2x
			hmg_defense_turret
			straight_wing
			bomb_sights_1
			bomb_sights_2
			self_sealing_fuel_tanks_small
			high_octane_fuel
			air_ground_radar_1
			fuel_tanks_large
			
			radio_navigation_1
			radio_navigation_2
		}
	}

	strat_bomber_1_c = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = improved_large_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		
		#history = yes
		
		#override_sprite = "GFX_generic_LAMP_b_17c"
		
		#name = "B-17C Flying Fortress"
		target_variant = {
			match_value = 1000
			type = large_plane_airframe_1
			modules = {
				fixed_wing_slot = straight_wing
				#fixed_aux_prop_slot = injection_system
				fixed_optics_slot = bomb_sights_1  
				fixed_engine_mod_slot = turbocharger
				fixed_main_weapon_slot = large_bomb_bay
				engine_type_slot = radial_engine_2_4x
				special_type_slot_1 = lmg_defense_gunner_4x
				special_type_slot_2 = hmg_defense_gunner_3x
			}
			
		}

		allowed_modules = {
			injection_system
			large_bomb_bay
			engine_2_4x
			engine_3_4x
			lmg_defense_turret_2x
			lmg_defense_turret
			hmg_defense_turret_2x
			hmg_defense_turret
			straight_wing
			bomb_sights_1
			bomb_sights_2
			self_sealing_fuel_tanks_small
			high_octane_fuel
			air_ground_radar_1
			fuel_tanks_large
			
			radio_navigation_1
			radio_navigation_2
		}
	}

	strat_bomber_1_c2 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = improved_large_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		
		#history = yes
		
		#override_sprite = "GFX_generic_LAMP_b_17d"
		
		#name = "B-17D Flying Fortress"
		target_variant = {
			match_value = 1000
			type = large_plane_airframe_1
			modules = {
				fixed_wing_slot = straight_wing
				#fixed_aux_prop_slot = injection_system
				fixed_optics_slot = bomb_sights_1 
				fixed_engine_mod_slot = turbocharger
				fixed_main_weapon_slot = large_bomb_bay
				engine_type_slot = radial_engine_3_4x
				special_type_slot_1 = hmg_defense_gunner_4x
				special_type_slot_2 = hmg_defense_gunner_3x
				special_type_slot_3 = armor_plate_large
				special_type_slot_4 = self_sealing_fuel_tanks_large
			}
			
		}

		allowed_modules = {
			injection_system
			large_bomb_bay
			engine_2_4x
			engine_3_4x
			lmg_defense_turret_2x
			lmg_defense_turret
			hmg_defense_turret_2x
			hmg_defense_turret
			straight_wing
			bomb_sights_1
			bomb_sights_2
			self_sealing_fuel_tanks_small
			high_octane_fuel
			air_ground_radar_1
			fuel_tanks_large
			
			radio_navigation_1
			radio_navigation_2
		}
	}

	strat_bomber_1_d = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = improved_large_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		
		#history = yes
		
		#override_sprite = "GFX_generic_LAMP_b_17e"
		
		#name = "B-17E Flying Fortress"
		target_variant = {
			match_value = 1000
			type = large_plane_airframe_1
			modules = {
				fixed_wing_slot = straight_wing
				#fixed_aux_prop_slot = injection_system
				fixed_optics_slot = bomb_sights_1
				fixed_engine_mod_slot = turbocharger
				fixed_main_weapon_slot = large_bomb_bay
				engine_type_slot = radial_engine_3_4x
				special_type_slot_1 = hmg_defense_turret_2x
				special_type_slot_2 = hmg_defense_gunner_4x
				special_type_slot_3 = hmg_defense_gunner_4x
				special_type_slot_4 = armor_plate_large
				special_type_slot_5 = self_sealing_fuel_tanks_large
			}
			
		}

		allowed_modules = {
			injection_system
			large_bomb_bay
			engine_2_4x
			engine_3_4x
			lmg_defense_turret_2x
			lmg_defense_turret
			hmg_defense_turret_2x
			hmg_defense_turret
			straight_wing
			bomb_sights_1
			bomb_sights_2
			self_sealing_fuel_tanks_small
			high_octane_fuel
			air_ground_radar_1
			fuel_tanks_large
			
			radio_navigation_1
			radio_navigation_2
		}
	}

	strat_bomber_1_e = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = improved_large_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		
		#history = yes
		
		#override_sprite = "GFX_generic_LAMP_b_17g"
		
		#name = "B-17G Flying Fortress"
		target_variant = {
			match_value = 1000
			type = large_plane_airframe_1
			modules = {
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = bomb_sights_1
				fixed_engine_mod_slot = turbocharger
				fixed_main_weapon_slot = large_bomb_bay
				
				engine_type_slot = radial_engine_3_4x
				special_type_slot_1 = hmg_defense_turret_2x      
				special_type_slot_2 = hmg_defense_gunner_4x      
				special_type_slot_3 = hmg_defense_turret_2x         
				special_type_slot_4 = armor_plate_large    
				special_type_slot_5 = self_sealing_fuel_tanks_large
			}
			
		}

		allowed_modules = {
			injection_system
			large_bomb_bay
			engine_2_4x
			engine_3_4x
			lmg_defense_turret_2x
			lmg_defense_turret
			hmg_defense_turret_2x
			hmg_defense_turret
			straight_wing
			bomb_sights_1
			bomb_sights_2
			self_sealing_fuel_tanks_small
			high_octane_fuel
			air_ground_radar_1
			fuel_tanks_large
			
			radio_navigation_1
			radio_navigation_2
		}
	}

	strat_bomber_1_f = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = improved_large_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		
		#history = yes
		
		#override_sprite = "GFX_generic_LAMP_yb_40"
		
		#name = "YB-40 Flying Fortress"
		target_variant = {
			match_value = 1000
			type = large_plane_airframe_1
			modules = {
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = injection_system
				#fixed_optics_slot = { any_of = { bomb_sights_2 bomb_sights_1 bomb_sights_0 } }
				fixed_engine_mod_slot = turbocharger
				fixed_main_weapon_slot = large_bomb_bay
				engine_type_slot = radial_engine_3_4x
				special_type_slot_1 = hmg_defense_turret_3x        
				special_type_slot_2 = hmg_defense_turret_2x          
				special_type_slot_3 = hmg_defense_gunner_2x      
				special_type_slot_4 = twin_hmg_defense_gunner_2x 
				special_type_slot_5 = armor_plate_large
			}
			
		}

		allowed_modules = {
			injection_system
			large_bomb_bay
			engine_2_4x
			engine_3_4x
			lmg_defense_turret_2x
			lmg_defense_turret
			hmg_defense_turret_2x
			hmg_defense_turret
			straight_wing
			bomb_sights_1
			bomb_sights_2
			self_sealing_fuel_tanks_small
			high_octane_fuel
			air_ground_radar_1
			fuel_tanks_large
			
			radio_navigation_1
			radio_navigation_2
		}
	}

	strat_bomber_2_default = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_large_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		
		#history = yes
		
		#override_sprite = "GFX_generic_LAMP_b_24d"
		#name = "B-24D Liberator"
		target_variant = {
			match_value = 1200
			type = large_plane_airframe_2
			modules = {
				 engine_type_slot = radial_engine_3_4x 
				 fixed_aux_prop_slot = injection_system 
				 fixed_engine_mod_slot = turbocharger 
				 fixed_main_weapon_slot = large_bomb_bay 
				 fixed_optics_slot = bomb_sights_1 
				 fixed_wing_slot = high_altitude_straight_wing 
				 fixed_auxiliary_weapon_slot_2 = wet_wing
				fixed_tail_modifications_slot = twin_tail
				 special_type_slot_2 = hmg_defense_turret_2x 
				 special_type_slot_3 = hmg_defense_turret 
				 special_type_slot_4 = hmg_defense_gunner_4x
				 special_type_slot_5 = radio_navigation_1
				 special_type_slot_6 = self_sealing_fuel_tanks_large 
			}
			
		}

		allowed_modules = {
			large_bomb_bay
			engine_3_4x
			air_ground_radar_2
			air_ground_radar_1
			bomb_sights_2
			bomb_sights_1
			lmg_defense_turret_2x
			lmg_defense_turret
			hmg_defense_turret_2x
			hmg_defense_turret
			self_sealing_fuel_tanks_small
			high_octane_fuel
			fuel_tanks_large
			
			radio_navigation_1
			radio_navigation_2
		}
	}

	strat_bomber_2_b = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_large_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		
		#history = yes
		
		#override_sprite = "GFX_generic_LAMP_b_24h"
		#name = "B-24H Liberator"
		target_variant = {
			match_value = 1200
			type = large_plane_airframe_2
			modules = {
				 engine_type_slot = radial_engine_3_4x 
				 #fixed_aux_prop_slot = injection_system 
				 fixed_engine_mod_slot = turbocharger 
				 fixed_main_weapon_slot = large_bomb_bay 
				 fixed_optics_slot = bomb_sights_1 
				 fixed_wing_slot = high_altitude_straight_wing 
				fixed_auxiliary_weapon_slot_2 = wet_wing
				fixed_electronics_slot = early_radar_jammer
				fixed_tail_modifications_slot = twin_tail
				 special_type_slot_2 = hmg_defense_turret_2x 
				 special_type_slot_3 = hmg_defense_turret_2x
				 special_type_slot_4 = self_sealing_fuel_tanks_large 
				 special_type_slot_5 = radio_navigation_1 
				 special_type_slot_6 = hmg_defense_gunner_4x 
			}
			
		}

		allowed_modules = {
			large_bomb_bay
			engine_3_4x
			air_ground_radar_2
			air_ground_radar_1
			bomb_sights_2
			bomb_sights_1
			lmg_defense_turret_2x
			lmg_defense_turret
			hmg_defense_turret_2x
			hmg_defense_turret
			self_sealing_fuel_tanks_small
			high_octane_fuel
			fuel_tanks_large
			
			radio_navigation_1
			radio_navigation_2
		}
	}

	strat_bomber_2_c = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_large_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		
		#history = yes
		
		#override_sprite = "GFX_generic_LAMP_b_24a"
		#name = "B-24A Liberator"
		target_variant = {
			match_value = 1200
			type = large_plane_airframe_2
			modules = {
				 fixed_wing_slot = high_altitude_straight_wing 
				 engine_type_slot = radial_engine_3_4x 
				 #fixed_aux_prop_slot = injection_system 
				 fixed_engine_mod_slot = supercharger 
				 fixed_main_weapon_slot = large_bomb_bay 
				 fixed_optics_slot = bomb_sights_0
				 fixed_auxiliary_weapon_slot_2 = wet_wing
				fixed_tail_modifications_slot = twin_tail
				 special_type_slot_2 = hmg_defense_turret  
				 special_type_slot_3 = twin_hmg_defense_gunner 
				 special_type_slot_4 = lmg_defense_gunner 
				 special_type_slot_5 = hmg_defense_gunner_3x 
			}
			
		}

		allowed_modules = {
			large_bomb_bay
			engine_3_4x
			air_ground_radar_2
			air_ground_radar_1
			bomb_sights_2
			bomb_sights_1
			lmg_defense_turret_2x
			lmg_defense_turret
			hmg_defense_turret_2x
			hmg_defense_turret
			self_sealing_fuel_tanks_small
			high_octane_fuel
			fuel_tanks_large
			
			radio_navigation_1
			radio_navigation_2
		}
	}

	strat_bomber_2_d = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_large_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		
		#history = yes
		
		#override_sprite = "GFX_generic_B_24J"
		#name = "B-24J Liberator"
		target_variant = {
			match_value = 1200
			type = large_plane_airframe_2
			modules = {
				 engine_type_slot = radial_engine_3_4x 
				 fixed_radar_slot = air_ground_radar_1 
				 fixed_engine_mod_slot = turbocharger 
				 fixed_main_weapon_slot = large_bomb_bay 
				 fixed_optics_slot = bomb_sights_1 
				 fixed_wing_slot = high_altitude_straight_wing 
				 fixed_auxiliary_weapon_slot_2 = wet_wing
				fixed_electronics_slot = early_radar_jammer
				fixed_tail_modifications_slot = twin_tail
				 special_type_slot_2 = hmg_defense_turret_2x 
				 special_type_slot_3 = hmg_defense_turret_2x 
				 special_type_slot_4 = self_sealing_fuel_tanks_large 
				 special_type_slot_6 = hmg_defense_gunner_4x 
			}
			
		}

		allowed_modules = {
			large_bomb_bay
			engine_3_4x
			air_ground_radar_2
			air_ground_radar_1
			bomb_sights_2
			bomb_sights_1
			lmg_defense_turret_2x
			lmg_defense_turret
			hmg_defense_turret_2x
			hmg_defense_turret
			self_sealing_fuel_tanks_small
			high_octane_fuel
			fuel_tanks_large
			
			radio_navigation_1
			radio_navigation_2
		}
	}

	strat_bomber_3_default = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_large_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		
		#history = yes
		
		#override_sprite = "GFX_generic_LAMP_b_29a"
		
		#name = "B-29A Superfortress"
		
		target_variant = {
			match_value = 3000
			type = large_plane_airframe_3
			modules = {
				fixed_wing_slot = high_altitude_straight_wing
				fixed_aux_prop_slot = injection_system
				fixed_radar_slot = air_ground_radar_1
				fixed_optics_slot = bomb_sights_2
				fixed_engine_mod_slot = turbocharger
				fixed_main_weapon_slot = large_bomb_bay
				fixed_auxiliary_weapon_slot_1 = large_bomb_bay
				fixed_auxiliary_weapon_slot_2 = large_bomb_bay
				fixed_electronics_slot = early_radar_jammer
				engine_type_slot = radial_engine_4_4x
				special_type_slot_1 = hmg_remote_turret_twin_4x	
				special_type_slot_2 = pressurized_cabin_large
				special_type_slot_3 = early_radar_warning_system
				special_type_slot_4 = cannon_defense_turret_2
				special_type_slot_6 = self_sealing_fuel_tanks_large
			}
			
		}

		allowed_modules = {
			large_bomb_bay
			engine_4_4x
			air_ground_radar_2
			air_ground_radar_1
			fuel_tanks_large
			bomb_sights_2
			bomb_sights_1
			cannon_defense_turret_2x
			hmg_defense_turret_2x
			lmg_defense_turret_2x
			lmg_defense_turret
			hmg_defense_turret_2x
			hmg_defense_turret
			self_sealing_fuel_tanks_small
			high_octane_fuel
			
			radio_navigation_1
			radio_navigation_2
		}
	}
	
	strat_bomber_3_b = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_large_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		
		#history = yes
		
		#override_sprite = "GFX_generic_LAMP_b_29b"
		
		#name = "B-29B Superfortress"
		
		target_variant = {
			match_value = 3000
			type = large_plane_airframe_3
			modules = {
				fixed_wing_slot = high_altitude_straight_wing
				fixed_aux_prop_slot = injection_system
				fixed_radar_slot = air_ground_radar_1
				fixed_optics_slot = bomb_sights_2
				fixed_engine_mod_slot = turbocharger
				fixed_main_weapon_slot = large_bomb_bay
				fixed_auxiliary_weapon_slot_1 = large_bomb_bay
				fixed_auxiliary_weapon_slot_2 = large_bomb_bay
				fixed_auxiliary_weapon_slot_3 = wet_wing
				fixed_electronics_slot = early_radar_jammer
				engine_type_slot = radial_engine_4_4x
				special_type_slot_1 = hmg_defense_turret
				special_type_slot_2 = pressurized_cabin_large
				special_type_slot_3 = early_radar_warning_system
				special_type_slot_5 = self_sealing_fuel_tanks_large
			}			
		}

		allowed_modules = {
			large_bomb_bay
			engine_4_4x
			air_ground_radar_2
			air_ground_radar_1
			fuel_tanks_large
			bomb_sights_2
			bomb_sights_1
			cannon_defense_turret_2x
			hmg_defense_turret_2x
			lmg_defense_turret_2x
			lmg_defense_turret
			hmg_defense_turret_2x
			hmg_defense_turret
			self_sealing_fuel_tanks_small
			high_octane_fuel
			
			radio_navigation_1
			radio_navigation_2
		}
	}

	strat_bomber_3_c = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_large_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		
		#history = yes
		
		#override_sprite = "GFX_generic_LAMP_b_50"
		
		#name = "B-50 Superfortress"
		
		target_variant = {
			match_value = 3000
			type = large_plane_airframe_3
			modules = {
				fixed_wing_slot = high_altitude_straight_wing
				fixed_aux_prop_slot = injection_system
				fixed_radar_slot = air_ground_radar_2
				fixed_optics_slot = bomb_sights_2
				fixed_engine_mod_slot = turbocharger
				fixed_main_weapon_slot = large_bomb_bay
				fixed_auxiliary_weapon_slot_1 = large_bomb_bay
				fixed_auxiliary_weapon_slot_2 = large_bomb_bay
				fixed_auxiliary_weapon_slot_3 = wet_wing
				fixed_auxiliary_weapon_slot_4 = large_bomb_bay
				fixed_electronics_slot = early_radar_jammer
				engine_type_slot = radial_engine_5_4x
				special_type_slot_1 = hmg_remote_turret_twin_4x
				special_type_slot_2 = hmg_remote_turret_twin_2x
				special_type_slot_3 = pressurized_cabin_large
				special_type_slot_4 = fuel_tanks_large
				special_type_slot_6 = self_sealing_fuel_tanks_large
			}
			
		}

		allowed_modules = {
			large_bomb_bay
			engine_4_4x
			air_ground_radar_2
			air_ground_radar_1
			fuel_tanks_large
			bomb_sights_2
			bomb_sights_1
			cannon_defense_turret_2x
			hmg_defense_turret_2x
			lmg_defense_turret_2x
			lmg_defense_turret
			hmg_defense_turret_2x
			hmg_defense_turret
			self_sealing_fuel_tanks_small
			high_octane_fuel
			
			radio_navigation_1
			radio_navigation_2
		}
	}

	strat_bomber_3_d = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_large_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		
		#history = yes
		
		#override_sprite = "GFX_generic_LAMP_b_32"
		
		#name = "B-32 Dominator"
		
		target_variant = {
			match_value = 1
			type = large_plane_airframe_3
			modules = {
				fixed_wing_slot = high_altitude_straight_wing
				fixed_optics_slot = bomb_sights_2
				fixed_engine_mod_slot = supercharger
				fixed_radar_slot = air_ground_radar_1
				fixed_main_weapon_slot = large_bomb_bay
				fixed_auxiliary_weapon_slot_1 = large_bomb_bay
				fixed_electronics_slot = early_radar_jammer
				engine_type_slot = radial_engine_4_4x
				special_type_slot_1 = hmg_defense_turret_4x
				special_type_slot_2 = pressurized_cabin_large
				special_type_slot_4 = hmg_defense_gunner_2x
				special_type_slot_5 = self_sealing_fuel_tanks_large
				special_type_slot_6 = early_radar_warning_system
			}
			
		}

		allowed_modules = {
			large_bomb_bay
			engine_4_4x
			air_ground_radar_2
			air_ground_radar_1
			fuel_tanks_large
			bomb_sights_2
			bomb_sights_1
			cannon_defense_turret_2x
			hmg_defense_turret_2x
			lmg_defense_turret_2x
			lmg_defense_turret
			hmg_defense_turret_2x
			hmg_defense_turret
			self_sealing_fuel_tanks_small
			high_octane_fuel
			
			radio_navigation_1
			radio_navigation_2
		}
	}

	strat_bomber_4_default = {
		priority = {
			factor = 10
			modifier = { 
				has_tech = modern_large_airframe_2
				factor = 0 #let's not waste XP here
			}	
		}
		
		#history = yes
		
		#name = "B-35 Flying Wing"
		target_variant = {
			match_value = 1
			type = large_plane_airframe_4
			modules = {
				fixed_wing_slot = flying_wing
				fixed_aux_prop_slot = contra_rotating_props
				fixed_radar_slot = air_ground_radar_3
				fixed_optics_slot = bomb_sights_2
				fixed_engine_mod_slot = turbocharger
				fixed_main_weapon_slot = large_bomb_bay
				fixed_auxiliary_weapon_slot_1 = large_bomb_bay
				fixed_auxiliary_weapon_slot_2 = wet_wing
				fixed_auxiliary_weapon_slot_3 = large_bomb_bay
				fixed_auxiliary_weapon_slot_4 = large_bomb_bay
				fixed_electronics_slot = basic_radar_jammer
				engine_type_slot = radial_engine_5_4x
				special_type_slot_2 = hmg_remote_turret_twin_4x
				special_type_slot_3 = hmg_remote_turret_quad_3x
				special_type_slot_4 = basic_radar_warning_system
				special_type_slot_5 = pressurized_cabin_large
				special_type_slot_6 = self_sealing_fuel_tanks_large	
			}
			
		}

		allowed_modules = {
			large_bomb_bay
			engine_4_4x
			air_ground_radar_3
			air_ground_radar_2
			air_ground_radar_1
			fuel_tanks_large
			bomb_sights_2
			bomb_sights_1
			cannon_defense_turret_2x
			hmg_defense_turret_2x
			injection_system
			supercharger
			cannon_defense_turret
		}
	}

	strat_bomber_5_default = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_large_airframe_3
				factor = 0 #let's not waste XP here
			}	
		}
		#history = yes
		#name = "B-36 Peacemaker"
		#override_model = generic_jet_strat_bomber_equipment_1_entity
		target_variant = {
			match_value = 1
			type = large_plane_airframe_5
			modules = {
				fixed_wing_slot = high_altitude_straight_wing
				fixed_aux_prop_slot = aux_jet_engine_4x
				fixed_optics_slot = bomb_sights_3
				fixed_engine_mod_slot = supercharger
				fixed_main_weapon_slot = { any_of = { large_bomb_bay_2 large_bomb_bay } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { large_bomb_bay_2 large_bomb_bay } }
				fixed_auxiliary_weapon_slot_2 = { any_of = { large_bomb_bay_2 large_bomb_bay } }
				fixed_auxiliary_weapon_slot_3 = { any_of = { large_bomb_bay_2 large_bomb_bay } }
				fixed_radar_slot = air_ground_radar_3
				fixed_electronics_slot = basic_radar_jammer
				engine_type_slot = radial_engine_5_6x
				special_type_slot_2 = dual_cannon_remote_turret_1_4x
				special_type_slot_3 = pressurized_cabin_large
				special_type_slot_4 = dual_cannon_remote_turret_1_4x					
				special_type_slot_5 = fuel_tanks_very_large
				special_type_slot_6 = radio_navigation_2
			}
			
		}

		allowed_modules = {
			large_bomb_bay
			engine_4_4x
			air_ground_radar_3
			air_ground_radar_2
			air_ground_radar_1
			fuel_tanks_large
			bomb_sights_2
			bomb_sights_1
			cannon_defense_turret
			cannon_defense_turret_2x
			hmg_defense_turret_2x
			injection_system
			supercharger
			cannon_defense_turret
			pressurized_cabin_large
			aux_jet_engine_4x
			straight_wing
			engine_4_6x
			self_sealing_fuel_tanks_small
			high_octane_fuel
			
			early_radar_jammer
			module_ecm_pod_1
			radio_navigation_1
			radio_navigation_2
		}
	}

	strat_bomber_5_b = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_large_airframe_3
				factor = 0 #let's not waste XP here
			}	
		}
		#override_sprite = GFX_generic_B_49a
		#override_model = generic_prototype_plane_0_entity
		#history = yes
		#name = "B-49"
		target_variant = {
			match_value = 1
			type = large_plane_airframe_5
			modules = {
				fixed_wing_slot = flying_wing
				fixed_aux_prop_slot = aux_jet_engine_4x
				fixed_optics_slot = bomb_sights_3
				fixed_main_weapon_slot = { any_of = { large_bomb_bay_2 large_bomb_bay } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { large_bomb_bay_2 large_bomb_bay } }
				fixed_auxiliary_weapon_slot_2 = { any_of = { large_bomb_bay_2 large_bomb_bay } }
				fixed_auxiliary_weapon_slot_3 = { any_of = { large_bomb_bay_2 large_bomb_bay } }
				fixed_auxiliary_weapon_slot_4 = wet_wing
				fixed_electronics_slot = basic_radar_jammer
				engine_type_slot = jet_engine_2_4x
				fixed_radar_slot = { any_of = { air_ground_radar_5 air_ground_radar_4 air_ground_radar_3 } }
				special_type_slot_2 = pressurized_cabin_large
				special_type_slot_3 = self_sealing_fuel_tanks_large
				special_type_slot_4 = hmg_defense_turret_2x
				special_type_slot_5 = basic_radar_warning_system	
				special_type_slot_6 = radio_navigation_2	
			}
			
		}

		allowed_modules = {
			large_bomb_bay
			engine_4_4x
			air_ground_radar_3
			air_ground_radar_2
			air_ground_radar_1
			fuel_tanks_large
			bomb_sights_2
			bomb_sights_1
			cannon_defense_turret
			cannon_defense_turret_2x
			hmg_defense_turret_2x
			injection_system
			supercharger
			cannon_defense_turret
			pressurized_cabin_large
			aux_jet_engine_4x
			straight_wing
			engine_4_6x
			self_sealing_fuel_tanks_small
			high_octane_fuel
			
			early_radar_jammer
			module_ecm_pod_1
			radio_navigation_1
			radio_navigation_2
		}
	}

	strat_bomber_6_default = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_large_airframe_4
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "B-47B Stratojet"
		#override_sprite = GFX_generic_LAMP_b_47b
		#history = yes
		target_variant = {
			match_value = 6000
			type = large_plane_airframe_6
			modules = {
				fixed_wing_slot = swept_wing
				fixed_optics_slot = bomb_sights_4
				fixed_main_weapon_slot = large_bomb_bay_2
				fixed_radar_slot = air_ground_radar_4
				fixed_auxiliary_weapon_slot_1 = large_bomb_bay_2
				#fixed_auxiliary_weapon_slot_2 = large_bomb_bay_2
				fixed_auxiliary_weapon_slot_3 = wet_wing
				fixed_electronics_slot = basic_radar_jammer
				engine_type_slot = second_gen_jet_engine_6x
				special_type_slot_2 = { any_of = { cannon_defense_turret_3 cannon_defense_turret_2 } }
				special_type_slot_3 = pressurized_cabin_large
				special_type_slot_4 = basic_radar_warning_system
				special_type_slot_5 = radio_navigation_2	
				special_type_slot_6 = fuel_tanks_large
			}
			
		}

		allowed_modules = {
			large_bomb_bay
			engine_4_4x
			air_ground_radar_4
			air_ground_radar_3
			air_ground_radar_2
			air_ground_radar_1
			fuel_tanks_large
			bomb_sights_2
			bomb_sights_1
			cannon_defense_turret_2x
			hmg_defense_turret_2x
			injection_system
			supercharger
			cannon_defense_turret
			pressurized_cabin_large
			aux_jet_engine_4x
			swept_wing
			engine_4_6x
			module_ecm_pod_1
			self_sealing_fuel_tanks_small
			high_octane_fuel
			
			early_radar_jammer
			radio_navigation_1
			radio_navigation_2
		}
	}

	strat_bomber_6_b = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_large_airframe_4
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "B-47A Stratojet"
		#override_sprite = GFX_generic_LAMP_b_47a
		#history = yes
		target_variant = {
			match_value = 6000
			type = large_plane_airframe_6
			modules = {
				fixed_wing_slot = swept_wing
				fixed_optics_slot = bomb_sights_4
				fixed_radar_slot = air_ground_radar_4
				fixed_main_weapon_slot = large_bomb_bay_2
				fixed_electronics_slot = basic_radar_jammer
				#fixed_auxiliary_weapon_slot_1 = large_bomb_bay_2
				engine_type_slot = second_gen_jet_engine_6x
				special_type_slot_1 = pressurized_cabin_large
				special_type_slot_2 = basic_radar_warning_system
				#special_type_slot_3 = pressurized_cabin_large
				#special_type_slot_4 = module_ecm_pod_1	
				#special_type_slot_5 = self_sealing_fuel_tanks_large	
				#special_type_slot_6 = inertial_navigation_system_1	
			}
			
		}

		allowed_modules = {
			large_bomb_bay
			engine_4_4x
			air_ground_radar_4
			air_ground_radar_3
			air_ground_radar_2
			air_ground_radar_1
			fuel_tanks_large
			bomb_sights_2
			bomb_sights_1
			cannon_defense_turret_2x
			hmg_defense_turret_2x
			injection_system
			supercharger
			cannon_defense_turret
			pressurized_cabin_large
			aux_jet_engine_4x
			swept_wing
			engine_4_6x
			module_ecm_pod_1
			self_sealing_fuel_tanks_small
			high_octane_fuel
			
			early_radar_jammer
			radio_navigation_1
			radio_navigation_2
		}
	}

	strat_bomber_7_default = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_large_airframe_5
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "B-52B Stratofortress"
		#override_sprite = GFX_generic_B_52B
		#history = yes
		target_variant = {
			match_value = 7000
			type = large_plane_airframe_7
			modules = {
				fixed_wing_slot = high_altitude_swept_wing
				fixed_optics_slot = bomb_sights_5
				fixed_main_weapon_slot = large_bomb_bay_2
				fixed_auxiliary_weapon_slot_1 = large_bomb_bay_2
				fixed_auxiliary_weapon_slot_2 = large_bomb_bay_2
				#fixed_auxiliary_weapon_slot_3 = large_bomb_bay_2
				#fixed_auxiliary_weapon_slot_4 = wet_wing
				fixed_electronics_slot = basic_radar_jammer
				engine_type_slot = second_gen_jet_engine_8x
				fixed_radar_slot = { any_of = { air_ground_radar_6 air_ground_radar_5 } }
				special_type_slot_2 = { any_of = { cannon_defense_turret_3 cannon_defense_turret_2 } }
				special_type_slot_3 = pressurized_cabin_large
				special_type_slot_4 = basic_radar_warning_system	
				#special_type_slot_5 = self_sealing_fuel_tanks_large	
				special_type_slot_6 = inertial_navigation_system_1
			}
			
		}

		allowed_modules = {
			large_bomb_bay
			engine_4_4x
			air_ground_radar_5
			air_ground_radar_4
			air_ground_radar_3
			air_ground_radar_2
			air_ground_radar_1
			fuel_tanks_large
			bomb_sights_2
			bomb_sights_1
			cannon_defense_turret_2x
			hmg_defense_turret_2x
			injection_system
			supercharger
			cannon_defense_turret
			pressurized_cabin_large
			aux_jet_engine_4x
			swept_wing
			engine_4_6x
			module_ecm_pod_1
			
			second_gen_jet_engine_4x
			radio_navigation_1
			radio_navigation_2
		}
	}

	strat_bomber_7_b = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_large_airframe_5
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "B-52C Stratofortress"
		#override_sprite = GFX_generic_B_52C
		#history = yes
		target_variant = {
			match_value = 7000
			type = large_plane_airframe_7
			modules = {
				fixed_wing_slot = high_altitude_swept_wing
				fixed_optics_slot = bomb_sights_5
				fixed_main_weapon_slot = large_bomb_bay_2
				fixed_auxiliary_weapon_slot_1 = large_bomb_bay_2
				fixed_auxiliary_weapon_slot_2 = large_bomb_bay_2
				#fixed_auxiliary_weapon_slot_3 = large_bomb_bay_2
				fixed_auxiliary_weapon_slot_4 = wet_wing
				fixed_electronics_slot = basic_radar_jammer
				engine_type_slot = second_gen_jet_engine_8x
				fixed_radar_slot = { any_of = { air_ground_radar_6 air_ground_radar_5 } }
				special_type_slot_2 = { any_of = { cannon_defense_turret_3 cannon_defense_turret_2 } }
				special_type_slot_3 = pressurized_cabin_large
				special_type_slot_4 = basic_radar_warning_system	
				#special_type_slot_5 = self_sealing_fuel_tanks_large	
				special_type_slot_6 = inertial_navigation_system_1
			}
			
		}

		allowed_modules = {
			large_bomb_bay
			engine_4_4x
			air_ground_radar_5
			air_ground_radar_4
			air_ground_radar_3
			air_ground_radar_2
			air_ground_radar_1
			fuel_tanks_large
			bomb_sights_2
			bomb_sights_1
			cannon_defense_turret_2x
			hmg_defense_turret_2x
			injection_system
			supercharger
			cannon_defense_turret
			pressurized_cabin_large
			aux_jet_engine_4x
			swept_wing
			engine_4_6x
			module_ecm_pod_1
			
			second_gen_jet_engine_4x
			radio_navigation_1
			radio_navigation_2
		}
	}

	strat_bomber_7_c = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_large_airframe_5
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "B-52D Stratofortress"
		#override_sprite = GFX_generic_B_52D
		#history = yes
		target_variant = {
			match_value = 7000
			type = large_plane_airframe_7
			modules = {
				fixed_wing_slot = high_altitude_swept_wing
				fixed_optics_slot = bomb_sights_5
				fixed_main_weapon_slot = large_bomb_bay_2
				fixed_auxiliary_weapon_slot_1 = large_bomb_bay_2
				fixed_auxiliary_weapon_slot_2 = large_bomb_bay_2
				fixed_auxiliary_weapon_slot_3 = large_bomb_bay_2
				fixed_auxiliary_weapon_slot_4 = wet_wing
				fixed_electronics_slot = basic_radar_jammer
				engine_type_slot = second_gen_jet_engine_8x
				fixed_radar_slot = { any_of = { air_ground_radar_6 air_ground_radar_5 } }
				special_type_slot_2 = { any_of = { cannon_defense_turret_3 cannon_defense_turret_2 } }
				special_type_slot_3 = pressurized_cabin_large
				special_type_slot_4 = basic_radar_warning_system	
				#special_type_slot_5 = self_sealing_fuel_tanks_large	
				special_type_slot_6 = inertial_navigation_system_1
			}
			
		}

		allowed_modules = {
			large_bomb_bay
			engine_4_4x
			air_ground_radar_5
			air_ground_radar_4
			air_ground_radar_3
			air_ground_radar_2
			air_ground_radar_1
			fuel_tanks_large
			bomb_sights_2
			bomb_sights_1
			cannon_defense_turret_2x
			hmg_defense_turret_2x
			injection_system
			supercharger
			cannon_defense_turret
			pressurized_cabin_large
			aux_jet_engine_4x
			swept_wing
			engine_4_6x
			module_ecm_pod_1
			
			second_gen_jet_engine_4x
			radio_navigation_1
			radio_navigation_2
		}
	}

	strat_bomber_7_d = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_large_airframe_5
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "B-52E Stratofortress"
		#override_sprite = GFX_generic_B_52E
		#history = yes
		target_variant = {
			match_value = 7000
			type = large_plane_airframe_7
			modules = {
				fixed_wing_slot = high_altitude_swept_wing
				fixed_optics_slot = bomb_sights_5
				fixed_main_weapon_slot = large_bomb_bay_2
				fixed_auxiliary_weapon_slot_1 = large_bomb_bay_2
				fixed_auxiliary_weapon_slot_2 = large_bomb_bay_2
				fixed_auxiliary_weapon_slot_3 = large_bomb_bay_2
				fixed_auxiliary_weapon_slot_4 = wet_wing
				fixed_electronics_slot = basic_radar_jammer
				engine_type_slot = second_gen_jet_engine_8x
				fixed_radar_slot = { any_of = { air_ground_radar_6 air_ground_radar_5 } }
				special_type_slot_2 = { any_of = { cannon_defense_turret_3 cannon_defense_turret_2 } }
				special_type_slot_3 = pressurized_cabin_large
				special_type_slot_4 = basic_radar_warning_system	
				#special_type_slot_5 = self_sealing_fuel_tanks_large	
				special_type_slot_6 = inertial_navigation_system_2 
			}
			
		}

		allowed_modules = {
			large_bomb_bay
			engine_4_4x
			air_ground_radar_5
			air_ground_radar_4
			air_ground_radar_3
			air_ground_radar_2
			air_ground_radar_1
			fuel_tanks_large
			bomb_sights_2
			bomb_sights_1
			cannon_defense_turret_2x
			hmg_defense_turret_2x
			injection_system
			supercharger
			cannon_defense_turret
			pressurized_cabin_large
			aux_jet_engine_4x
			swept_wing
			engine_4_6x
			module_ecm_pod_1
			
			second_gen_jet_engine_4x
			radio_navigation_1
			radio_navigation_2
		}
	}

	strat_bomber_7_e = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_large_airframe_5
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "B-52G Stratofortress"
		#override_sprite = GFX_generic_B_52G
		#history = yes
		target_variant = {
			match_value = 7000
			type = large_plane_airframe_7
			modules = {
				fixed_wing_slot = high_altitude_swept_wing
				fixed_optics_slot = bomb_sights_5
				fixed_main_weapon_slot = large_bomb_bay_2
				fixed_auxiliary_weapon_slot_1 = large_bomb_bay_2
				fixed_auxiliary_weapon_slot_2 = large_bomb_bay_2
				fixed_auxiliary_weapon_slot_3 = large_bomb_bay_2
				fixed_auxiliary_weapon_slot_4 = wet_wing
				fixed_electronics_slot = basic_radar_jammer
				engine_type_slot = second_gen_jet_engine_8x
				fixed_radar_slot = { any_of = { air_ground_radar_6 air_ground_radar_5 } }
				special_type_slot_2 = cannon_defense_turret_4
				special_type_slot_3 = pressurized_cabin_large
				special_type_slot_4 = basic_radar_warning_system	
				special_type_slot_5 = armor_plate_large	
				special_type_slot_6 = inertial_navigation_system_2 
			}
			
		}

		allowed_modules = {
			large_bomb_bay
			engine_4_4x
			air_ground_radar_5
			air_ground_radar_4
			air_ground_radar_3
			air_ground_radar_2
			air_ground_radar_1
			fuel_tanks_large
			bomb_sights_2
			bomb_sights_1
			cannon_defense_turret_2x
			hmg_defense_turret_2x
			injection_system
			supercharger
			cannon_defense_turret
			pressurized_cabin_large
			aux_jet_engine_4x
			swept_wing
			engine_4_6x
			module_ecm_pod_1
			
			second_gen_jet_engine_4x
			radio_navigation_1
			radio_navigation_2
		}
	}

	strat_bomber_7_f = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_large_airframe_5
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "B-52H Stratofortress"
		#override_sprite = GFX_generic_B_52H
		#history = yes
		target_variant = {
			match_value = 7000
			type = large_plane_airframe_7
			modules = {
				fixed_wing_slot = high_altitude_swept_wing
				fixed_optics_slot = bomb_sights_5
				fixed_main_weapon_slot = large_bomb_bay_2
				fixed_auxiliary_weapon_slot_1 = large_bomb_bay_2
				fixed_auxiliary_weapon_slot_2 = large_bomb_bay_2
				fixed_auxiliary_weapon_slot_3 = modern_rocket_propelled_bombs
				fixed_auxiliary_weapon_slot_4 = wet_wing
				fixed_electronics_slot = improved_radar_jammer
				engine_type_slot = second_gen_jet_engine_8x
				fixed_radar_slot = { any_of = { air_ground_radar_6 air_ground_radar_5 } }
				special_type_slot_2 = cannon_defense_turret_4
				special_type_slot_3 = pressurized_cabin_large
				special_type_slot_4 = improved_radar_warning_system	
				special_type_slot_5 = armor_plate_large	
				special_type_slot_6 = inertial_navigation_system_2 
			}
			
		}

		allowed_modules = {
			large_bomb_bay
			engine_4_4x
			air_ground_radar_5
			air_ground_radar_4
			air_ground_radar_3
			air_ground_radar_2
			air_ground_radar_1
			fuel_tanks_large
			bomb_sights_2
			bomb_sights_1
			cannon_defense_turret_2x
			hmg_defense_turret_2x
			injection_system
			supercharger
			cannon_defense_turret
			pressurized_cabin_large
			aux_jet_engine_4x
			swept_wing
			engine_4_6x
			module_ecm_pod_1
			
			second_gen_jet_engine_4x
			radio_navigation_1
			radio_navigation_2
		}
	}

	strat_bomber_8_default = {
		priority = {
			factor = 100
		}
		#name = "B-70 Valkyrie"
		#history = yes
		target_variant = {
			match_value = 8000
			type = large_plane_airframe_8
			modules = {
				fixed_wing_slot = delta_wing
				fixed_optics_slot = bomb_sights_5
				fixed_engine_mod_slot = compressor_bleed_afterburner
				fixed_main_weapon_slot = large_bomb_bay_2
				fixed_auxiliary_weapon_slot_1 = large_bomb_bay_2
				fixed_auxiliary_weapon_slot_2 = large_bomb_bay_2
				fixed_auxiliary_weapon_slot_3 = large_bomb_bay_2
				fixed_auxiliary_weapon_slot_4 = large_bomb_bay_2
				fixed_electronics_slot = improved_radar_jammer
				fixed_body_modifications_slot = canard
				engine_type_slot = third_gen_jet_engine_6x
				fixed_radar_slot = { any_of = { air_ground_radar_6 air_ground_radar_5 } }
				special_type_slot_2 = module_countermeasure_dispenser_large
				special_type_slot_3 = pressurized_cabin_large
				special_type_slot_4 = improved_radar_warning_system	
				special_type_slot_5 = self_sealing_fuel_tanks_large	
				special_type_slot_6 = { any_of = { inertial_navigation_system_2 inertial_navigation_system_1 } } 
			}			
		}

		allowed_modules = {
			large_bomb_bay
			engine_4_4x
			air_ground_radar_5
			air_ground_radar_4
			air_ground_radar_3
			air_ground_radar_2
			air_ground_radar_1
			fuel_tanks_large
			bomb_sights_2
			bomb_sights_1
			cannon_defense_turret_2x
			hmg_defense_turret_2x
			injection_system
			supercharger
			cannon_defense_turret
			pressurized_cabin_large
			aux_jet_engine_4x
			swept_wing
			engine_4_6x
			module_ecm_pod_1
			
			second_gen_jet_engine_4x
		}
	}
}

generic_maritime_patrol = {
	category = air

	blocked_for = {EMP USA RUS}

	available_for = {}

	roles = {
		air_maritime_patrol
	}

	priority = {
		factor = 200
		modifier = {
			has_war_with = JAP
			factor = 2
		}
	}
	
	maritime_patrol_0_default = {
		priority = {
			factor = 10
		}
		
		#name = "P2H-1"
		
		#override_sprite = GFX_generic_P2H

		#history = yes

		target_variant = {
			match_value = 500
			type = large_plane_maritime_patrol_plane_airframe_0
			modules = {
				fixed_wing_slot = biplane_wing
				fixed_main_weapon_slot = torpedo_mounting
				engine_type_slot = engine_1_4x
				special_type_slot_1 = lmg_defense_turret_2x
				special_type_slot_3 = flying_boat_large
			}
			
		}

		allowed_modules = {
			torpedo_mounting
			engine_1_4x
			fuel_tanks_large
			flying_boat_large
			lmg_defense_turret
		}
	}

	maritime_patrol_1_default = {
		priority = {
			factor = 10
		}
		
		#name = "PBS-1"
		
		#override_sprite = GFX_generic_XPBS1

		#history = yes
		target_variant = {
			match_value = 500
			type = large_plane_maritime_patrol_plane_airframe_1
			modules = {
				fixed_wing_slot = straight_wing
				fixed_main_weapon_slot = torpedo_mounting
				fixed_auxiliary_weapon_slot_1 = empty
				fixed_auxiliary_weapon_slot_2 = empty
				engine_type_slot = radial_engine_2_4x
				special_type_slot_1 = lmg_defense_turret_2x
				special_type_slot_2 = fuel_tanks_large
				special_type_slot_3 = flying_boat_large
			}
			
		}

		allowed_modules = {
			torpedo_mounting
			engine_1_4x
			fuel_tanks_large
			flying_boat_large
			lmg_defense_turret
		}
	}

	maritime_patrol_2_default = {
		priority = {
			factor = 30			
		}
		
		#name = "PB2Y Coronado"
		
		#override_sprite = GFX_generic_LAMP_pb2y
		
		#history = yes

		target_variant = {
			match_value = 2000
			type = large_plane_maritime_patrol_plane_airframe_2
			modules = {
				fixed_wing_slot = straight_wing
				fixed_main_weapon_slot = { any_of = { torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { torpedo_mounting_2 torpedo_mounting } }
				engine_type_slot = radial_engine_3_4x
				fixed_tail_modifications_slot = twin_tail
				special_type_slot_2 = hmg_defense_turret_2x
				special_type_slot_3 = hmg_defense_turret
				special_type_slot_4 = self_sealing_fuel_tanks_large
				special_type_slot_5 = flying_boat_large
			}
			
		}

		allowed_modules = {
			torpedo_mounting
			engine_2_4x
			hmg_defense_turret_2x
			lmg_defense_turret_2x
			fuel_tanks_large
			flying_boat_large
		}
	}

	maritime_patrol_2_b = {
		priority = {
			factor = 30			
		}
		
		#name = "PB4Y-1 Liberator"
		
		#override_sprite = GFX_generic_LAMP_pb4y_1
		
		#history = yes

		target_variant = {
			match_value = 2000
			type = large_plane_maritime_patrol_plane_airframe_2
			modules = {
				 engine_type_slot = radial_engine_3_4x 
				 fixed_aux_prop_slot = injection_system 
				 fixed_engine_mod_slot = turbocharger 
				 fixed_main_weapon_slot = { any_of = { torpedo_mounting_2 torpedo_mounting } }
				
				 fixed_wing_slot = straight_wing 
				fixed_auxiliary_weapon_slot_1 = { any_of = { torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_2 = wet_wing
				fixed_tail_modifications_slot = twin_tail
				 special_type_slot_2 = hmg_defense_turret_2x 
				 special_type_slot_3 = hmg_defense_turret_2x 
				 special_type_slot_4 = self_sealing_fuel_tanks_large 
				 special_type_slot_5 = hmg_defense_turret_2x 
			}
			
		}

		allowed_modules = {
			torpedo_mounting
			engine_2_4x
			hmg_defense_turret_2x
			lmg_defense_turret_2x
			fuel_tanks_large
			flying_boat_large
		}
	}

	maritime_patrol_3_default = {
		priority = {
			factor = 30			
		}
		
		#name = "PB4Y-2 Privateer"
		
		#override_sprite = GFX_generic_LAMP_pb4y_2
		
		#history = yes

		target_variant = {
			match_value = 2000
			type = large_plane_maritime_patrol_plane_airframe_3
			modules = {
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = injection_system
				 fixed_engine_mod_slot = turbocharger 
				 fixed_main_weapon_slot = { any_of = { torpedo_mounting_3 torpedo_mounting_2 } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { torpedo_mounting_3 torpedo_mounting_2 } }
				fixed_auxiliary_weapon_slot_2 = airdropped_mines
				fixed_auxiliary_weapon_slot_3 = wet_wing
				engine_type_slot = radial_engine_3_4x
				special_type_slot_1 = hmg_defense_turret_2x
				special_type_slot_2 = hmg_defense_turret_2x
				fixed_radar_slot = { any_of = { air_ground_radar_2 air_ground_radar_1 } }
				 special_type_slot_4 = self_sealing_fuel_tanks_large 
			}
			
		}

		allowed_modules = {
			torpedo_mounting
			engine_2_4x
			hmg_defense_turret_2x
			lmg_defense_turret_2x
			fuel_tanks_large
			flying_boat_large
		}
	}

	# maritime_patrol_3_default = {
		# priority = {
			# factor = 10
		# }

		# target_variant = {
			# match_value = 4000
			# type = large_plane_maritime_patrol_plane_airframe_3
			# modules = {
				# fixed_main_weapon_slot = torpedo_mounting
				# fixed_auxiliary_weapon_slot_1 = torpedo_mounting
				# fixed_auxiliary_weapon_slot_2 = torpedo_mounting
				# engine_type_slot = engine_4_4x
				# special_type_slot_1 = cannon_defense_turret_2x
				# special_type_slot_2 = { 
					# any_of = {
						# air_ground_radar_2
						# air_ground_radar_1
						# recon_camera
						# hmg_defense_turret_2x 
					# }
				# }
				# special_type_slot_3 = fuel_tanks_large
				# special_type_slot_4 = fuel_tanks_large
				# special_type_slot_5 = flying_boat_large
			# }
			
		# }

		# allowed_modules = {
			# torpedo_mounting
			# engine_4_4x
			# cannon_defense_turret_2x
			# hmg_defense_turret_2x
			# air_ground_radar_2
			# air_ground_radar_1
			# recon_camera
			# fuel_tanks_large
			# flying_boat_large
		# }
	# }

	maritime_patrol_3_default = {
		priority = {
			factor = 30			
		}
		
		#name = "JRM Mars"

		#history = yes
		
		target_variant = {
			match_value = 3000
			type = large_plane_maritime_patrol_plane_airframe_4
			modules = {
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = injection_system
				fixed_engine_mod_slot = turbocharger
				fixed_main_weapon_slot = { any_of = { torpedo_mounting_3 torpedo_mounting_2 } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { guided_anti_ship_missile torpedo_mounting_3 torpedo_mounting_2 } }
				fixed_auxiliary_weapon_slot_2 = wet_wing
				engine_type_slot = radial_engine_3_4x
				special_type_slot_1 = flying_boat_large
				fixed_radar_slot = { any_of = { air_ground_radar_3 air_ground_radar_2 air_ground_radar_1 } }
				special_type_slot_3 = self_sealing_fuel_tanks_large 
			}
			
		}

		allowed_modules = {
			torpedo_mounting
			engine_2_4x
			hmg_defense_turret_2x
			lmg_defense_turret_2x
			fuel_tanks_large
			flying_boat_large
		}
	}

	maritime_patrol_4_default = {
		priority = {
			factor = 30			
		}
		
		#name = "H-4 Hercules"

		#history = yes
		
		target_variant = {
			match_value = 3000
			type = large_plane_maritime_patrol_plane_airframe_5
			modules = {
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = injection_system
				fixed_engine_mod_slot = turbocharger
				fixed_main_weapon_slot = { any_of = { torpedo_mounting_3 torpedo_mounting_2 } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { guided_anti_ship_missile torpedo_mounting_3 torpedo_mounting_2 } }
				fixed_auxiliary_weapon_slot_2 = { any_of = { guided_anti_ship_missile torpedo_mounting_3 torpedo_mounting_2 } }
				fixed_auxiliary_weapon_slot_3 = wet_wing
				engine_type_slot = radial_engine_4_6x
				special_type_slot_1 = flying_boat_large
				fixed_radar_slot = { any_of = { air_ground_radar_4 air_ground_radar_3 air_ground_radar_2 } }
				special_type_slot_3 = self_sealing_fuel_tanks_large 
				special_type_slot_4 = fuel_tanks_very_large 
			}
			
		}

		allowed_modules = {
			torpedo_mounting
			engine_2_4x
			hmg_defense_turret_2x
			lmg_defense_turret_2x
			fuel_tanks_large
			flying_boat_large
		}
	}

	maritime_patrol_4_default = {
		priority = {
			factor = 10			
		}
		
		#history = yes
		#name = "P7M SubMaster"

		target_variant = {
			match_value = 4000
			type = large_plane_maritime_patrol_plane_airframe_6
			modules = {
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = aux_jet_engine_2x
				fixed_engine_mod_slot = turbocharger
				fixed_main_weapon_slot = { any_of = { guided_anti_ship_missile_4 guided_anti_ship_missile_2} }
				fixed_auxiliary_weapon_slot_1 = { any_of = { guided_anti_ship_missile_4 guided_anti_ship_missile_2} }
				engine_type_slot = radial_engine_5_4x
				special_type_slot_1 = flying_boat_large
				special_type_slot_2 = { any_of = { mad_2 mad_1 } }
				fixed_radar_slot = { any_of = { air_ground_radar_5 air_ground_radar_4 } }
				special_type_slot_4 = pressurized_cabin_large	
				special_type_slot_5 = { any_of = { sonobuoys_2 sonobuoys_1 } }
				special_type_slot_6 = module_countermeasure_dispenser_large	
			}
			
		}

		allowed_modules = {
			torpedo_mounting
			engine_2_4x
			hmg_defense_turret_2x
			lmg_defense_turret_2x
			fuel_tanks_large
			flying_boat_large
		}
	}

	maritime_patrol_5_default = {
		priority = {
			factor = 30			
		}
		
		#history = yes
		#name = "R3Y Tradewind"

		target_variant = {
			match_value = 5000
			type = large_plane_maritime_patrol_plane_airframe_7
			modules = {
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = contra_rotating_props
				fixed_main_weapon_slot = { any_of = { guided_anti_ship_missile_4 guided_anti_ship_missile_2} }
				fixed_auxiliary_weapon_slot_1 = { any_of = { guided_anti_ship_missile_4 guided_anti_ship_missile_2} }
				engine_type_slot = turboprop_engine_4x
				special_type_slot_1 = flying_boat_large
				special_type_slot_2 = { any_of = { mad_2 mad_1 } }
				fixed_radar_slot = { any_of = { air_ground_radar_5 air_ground_radar_4 } }
				special_type_slot_4 = pressurized_cabin_large	
				special_type_slot_5 = { any_of = { sonobuoys_2 sonobuoys_1 } }
				special_type_slot_6 = module_countermeasure_dispenser_large	
			}
			
		}

		allowed_modules = {
			torpedo_mounting
			engine_2_4x
			hmg_defense_turret_2x
			lmg_defense_turret_2x
			fuel_tanks_large
			flying_boat_large
		}
	}

	maritime_patrol_6_default = {
		priority = {
			factor = 30			
		}
		
		#history = yes
		#name = "P6M SeaMaster"

		target_variant = {
			match_value = 6000
			type = large_plane_maritime_patrol_plane_airframe_8
			modules = {
				fixed_wing_slot = swept_wing
				fixed_engine_mod_slot = afterburner
				fixed_main_weapon_slot = { any_of = { guided_anti_ship_missile_4 guided_anti_ship_missile_2} }
				fixed_auxiliary_weapon_slot_1 = { any_of = { guided_anti_ship_missile_4 guided_anti_ship_missile_2} }
				fixed_auxiliary_weapon_slot_2 = airdropped_mines
				fixed_auxiliary_weapon_slot_3 = large_bomb_bay_2
				engine_type_slot = third_gen_jet_engine_4x
				special_type_slot_1 = flying_boat_large
				fixed_radar_slot = { any_of = { air_ground_radar_5 air_ground_radar_4 } }
				special_type_slot_3 = pressurized_cabin_large	
				special_type_slot_4 = module_countermeasure_dispenser_large	
				special_type_slot_5 = { any_of = { cannon_defense_turret_3 cannon_defense_turret_2 } }
				
				
			}
			
		}

		allowed_modules = {
			torpedo_mounting
			engine_2_4x
			hmg_defense_turret_2x
			lmg_defense_turret_2x
			fuel_tanks_large
			flying_boat_large
		}
	}
}


generic_recon = {
	category = air

	blocked_for = {EMP USA RUS}

	available_for = {}

	roles = {
		air_recon		
	}
	
	priority = {
		factor = 10
		
	}
	
	light_recon_1 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = basic_small_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		#history = yes
		#name = "O-1"
		#override_sprite = GFX_generic_LAMP_o_1
		target_variant = {
			match_value = 1000
			type = small_plane_scout_plane_airframe_0
			modules = {
				fixed_wing_slot = biplane_wing
				fixed_main_weapon_slot = recon_camera
				#fixed_auxiliary_weapon_slot_1 = light_mg_4x
				engine_type_slot = engine_1_1x
				special_type_slot_1 = lmg_defense_turret
			}
		}

		# allowed_modules = {
			# engine_1_1x
			# light_mg_2x
			# light_mg_4x
		# }
	}
	
	light_recon_2 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = improved_small_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		#history = yes
		#name = "O-47"		
		#override_model=light_plane_entity
		#override_sprite = GFX_generic_LAMP_o_47
		target_variant = {
			match_value = 2000
			type = small_plane_scout_plane_airframe_1
			modules = {
				fixed_wing_slot = straight_wing
				fixed_main_weapon_slot = recon_camera
				engine_type_slot = radial_engine_1_1x
				special_type_slot_1 = lmg_defense_turret
			}
		}

		# allowed_modules = {
			# engine_1_1x
			# light_mg_2x
			# light_mg_4x
		# }
	}
	
	light_recon_3 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_small_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		#history = yes
		#name = "F-3 Havoc"		
		#override_model=generic_light_plane_2_entity
		#override_sprite = GFX_generic_LAMP_f_3a
		target_variant = {
			match_value = 3000
			type = small_plane_scout_plane_airframe_2
			modules = {
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = injection_system
				fixed_engine_mod_slot = supercharger
				fixed_main_weapon_slot = recon_camera
				engine_type_slot = radial_engine_3_2x
				special_type_slot_1 = hmg_defense_turret
				special_type_slot_2 = fuel_tanks_small	
			}
		}

		# allowed_modules = {
			# engine_1_1x
			# light_mg_2x
			# light_mg_4x
		# }
	}
	
	light_recon_4 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		#history = yes
		#name = "F-6D Mustang"		
		#override_model=generic_light_plane_entity
		#override_sprite = GFX_generic_LAMP_f_6d
		target_variant = {
			match_value = 4000
			type = small_plane_scout_plane_airframe_3
			modules = {
				fixed_wing_slot = laminar_flow_straight_wing
				fixed_aux_prop_slot = injection_system
				fixed_engine_mod_slot = supercharger
				fixed_main_weapon_slot = recon_camera 
				fixed_auxiliary_weapon_slot_1 = drop_tanks
				engine_type_slot = engine_4_1x
				special_type_slot_1 = fuel_tanks_small
				special_type_slot_2 = pressurized_cabin_small
			}
		}

		# allowed_modules = {
			# engine_1_1x
			# light_mg_2x
			# light_mg_4x
		# }
	}
	
	light_recon_5 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe_2
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "F-14 Shooting Star"
		#history = yes			
		#override_sprite="GFX_generic_LAMP_rf_80"
		#override_model=generic_jet_plane_1_entity
		
		target_variant = {
			match_value = 5000
			type = small_plane_scout_plane_airframe_4
			modules = {
				fixed_wing_slot = laminar_flow_straight_wing
				fixed_main_weapon_slot = recon_camera 
				fixed_auxiliary_weapon_slot_1 = drop_tanks 
				engine_type_slot = jet_engine_1x
				special_type_slot_1 = pressurized_cabin_small
			}
		}

		# allowed_modules = {
			# engine_1_1x
			# light_mg_2x
			# light_mg_4x
		# }
	}
	
	light_recon_6 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe_3
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "RF-84 Thunderflash"
		#history = yes			
		#override_sprite="GFX_generic_LAMP_rf_84"
		#override_model=generic_jet_plane_1_entity
		
		target_variant = {
			match_value = 6000
			type = small_plane_scout_plane_airframe_5
			modules = {
				fixed_wing_slot = swept_wing
				fixed_main_weapon_slot = recon_camera
				fixed_auxiliary_weapon_slot_1 = drop_tanks
				engine_type_slot = jet_engine_2_1x
				special_type_slot_1 = fuel_tanks_small	
			}
		}

		# allowed_modules = {
			# engine_1_1x
			# light_mg_2x
			# light_mg_4x
		# }
	}
	
	light_recon_7 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe_4
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "RF-100A Super Sabre"
		#history = yes			
		#override_sprite="GFX_generic_RF_100A"
		#override_model=generic_supersonic_jet_plane_entity
		 
		target_variant = {
			match_value = 7000
			type = small_plane_scout_plane_airframe_6
			modules = {
				fixed_wing_slot = swept_wing
				fixed_engine_mod_slot = afterburner
				fixed_main_weapon_slot = recon_camera
				fixed_auxiliary_weapon_slot_1 = drop_tanks
				engine_type_slot = second_gen_jet_engine_1x
				special_type_slot_1 = g_suit_type
				special_type_slot_2 = pressurized_cabin_small
			}
		}

		# allowed_modules = {
			# engine_1_1x
			# light_mg_2x
			# light_mg_4x
		# }
	}
	
	light_recon_8 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe_5
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "RF-101 Voodoo"
		#history = yes			
		#override_sprite="GFX_generic_RF_101"
		#override_model=generic_supersonic_jet_plane_entity
		
		target_variant = {
			match_value = 8000
			type = small_plane_scout_plane_airframe_7
			modules = {
				fixed_wing_slot = swept_wing
				fixed_engine_mod_slot = afterburner
				fixed_main_weapon_slot = recon_camera
				fixed_auxiliary_weapon_slot_1 = drop_tanks
				engine_type_slot = second_gen_jet_engine_2x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = g_suit_type	
				special_type_slot_3 = pressurized_cabin_small	
			}
		}

		# allowed_modules = {
			# engine_1_1x
			# light_mg_2x
			# light_mg_4x
		# }
	}
	
	light_recon_9 = {
		priority = {
			factor = 100
		}
		#name = "RF-4B Phantom II"
		#history = yes			
		#override_sprite="GFX_generic_RF_4B"
		
		target_variant = {
			match_value = 9000
			type = small_plane_scout_plane_airframe_8
			modules = {
				fixed_wing_slot = tailed_delta_wing
				fixed_radar_slot = plane_special_module_air_air_radar
				fixed_optics_slot = {
					any_of = { 
						hud_module
						gyro_gunsight 						
					}
				}
				fixed_engine_mod_slot = afterburner
				fixed_main_weapon_slot = recon_camera
				fixed_auxiliary_weapon_slot_1 = drop_tanks
				engine_type_slot = third_gen_jet_engine_2x
				special_type_slot_1 = g_suit_type
				special_type_slot_2 = armor_plate_small	
				special_type_slot_3 = pressurized_cabin_small	
			}
		}

		# allowed_modules = {
			# engine_1_1x
			# light_mg_2x
			# light_mg_4x
		# }
	}
	
	medium_recon_0 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = improved_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "F-2 Expeditor"
		#history = yes
		#override_sprite = "GFX_generic_F2"

		target_variant = {
			match_value = 1000
			type = medium_plane_scout_plane_airframe_0
			modules = {
				
				engine_type_slot=radial_engine_1_2x
				fixed_main_weapon_slot=recon_camera
				fixed_wing_slot=straight_wing
				fixed_tail_modifications_slot = twin_tail
			}
			
		}

		# allowed_modules = {
			# medium_bomb_bay
			# medium_bomb_bay_2
			# bomb_locks
			# fuel_tanks_medium
			# jet_engine_2x
			# bomb_sights_2
			# hmg_defense_turret
			# air_ground_radar_2
			# air_ground_radar_1
			# air_ground_radar_3
			# plane_special_module_air_ground_radar
			# self_sealing_fuel_tanks_small
		# }
	}	
	
	medium_recon_1 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "G-21 Goose"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_g_21"

		target_variant = {
			match_value = 2000
			type = medium_plane_scout_plane_airframe_1
			modules = {				
				engine_type_slot=radial_engine_2_2x
				fixed_main_weapon_slot=recon_camera
				fixed_wing_slot=straight_wing
				special_type_slot_1=flying_boat_medium
			}
			
		}

		# allowed_modules = {
			# medium_bomb_bay
			# medium_bomb_bay_2
			# bomb_locks
			# fuel_tanks_medium
			# jet_engine_2x
			# bomb_sights_2
			# hmg_defense_turret
			# air_ground_radar_2
			# air_ground_radar_1
			# air_ground_radar_3
			# plane_special_module_air_ground_radar
			# self_sealing_fuel_tanks_small
		# }
	}
	
	medium_recon_2 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "F-4 Lightning"
		#history = yes			
		#override_sprite="GFX_generic_LAMP_f_4"
		
		target_variant = {
			match_value = 3000
			type = medium_plane_scout_plane_airframe_2
			modules = {
				 engine_type_slot = engine_4_2x 
				 fixed_aux_prop_slot = injection_system
				 fixed_engine_mod_slot = turbocharger 
				 fixed_main_weapon_slot = recon_camera
				 fixed_auxiliary_weapon_slot_1 = drop_tanks
				 fixed_wing_slot = straight_wing 
				fixed_tail_modifications_slot = twin_boom
				 special_type_slot_2 = self_sealing_fuel_tanks_medium 
			}
		}

		# allowed_modules = {
			# engine_1_1x
			# light_mg_2x
			# light_mg_4x
		# }
	}
	
	medium_recon_3 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_medium_airframe
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "F-15 Reporter"
		#history = yes			
		#override_sprite="GFX_generic_F_15_B"
		
		target_variant = {
			match_value = 4000
			type = medium_plane_scout_plane_airframe_3
			modules = {
				 engine_type_slot = engine_4_2x 
				 fixed_aux_prop_slot = injection_system
				 fixed_engine_mod_slot = turbocharger 
				 fixed_main_weapon_slot = recon_camera
				 fixed_auxiliary_weapon_slot_1 = drop_tanks
				 fixed_wing_slot = straight_wing 
				fixed_tail_modifications_slot = twin_boom
				 special_type_slot_2 = self_sealing_fuel_tanks_medium 
			}
		}

		# allowed_modules = {
			# engine_1_1x
			# light_mg_2x
			# light_mg_4x
		# }
	}
	
	medium_recon_4 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_medium_airframe_2
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "RB-28 Dragon"
		#history = yes			
		#override_sprite="GFX_generic_RB_28"
		
		target_variant = {
			match_value = 1
			type = medium_plane_scout_plane_airframe_4
			modules = {				 
				 engine_type_slot = radial_engine_4_2x 
				 fixed_aux_prop_slot = injection_system 
				 fixed_engine_mod_slot = supercharger 
				 fixed_main_weapon_slot = recon_camera 
				 fixed_wing_slot = straight_wing 
				 special_type_slot_1 = hmg_defense_turret 
				 special_type_slot_2 = lmg_defense_turret 
				 special_type_slot_3 = self_sealing_fuel_tanks_medium
			}
		}

		# allowed_modules = {
			# engine_1_1x
			# light_mg_2x
			# light_mg_4x
		# }
	}	
	
	medium_recon_5 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_medium_airframe_3
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "RB-45C Tornado"
		#history = yes
		#override_sprite = "GFX_generic_LAMP_b_45c"

		target_variant = {
			match_value = 6000
			type = medium_plane_scout_plane_airframe_5
			modules = {
				fixed_radar_slot = { any_of = { air_ground_radar_5 air_ground_radar_4 air_ground_radar_3 } }
				engine_type_slot=jet_engine_2_4x
				fixed_auxiliary_weapon_slot_2=drop_tanks
				fixed_main_weapon_slot=recon_camera
				fixed_optics_slot = { any_of = { bomb_sights_4 bomb_sights_3 bomb_sights_2 } }
				fixed_wing_slot=straight_wing
				special_type_slot_1=hmg_defense_turret
				special_type_slot_3=radio_navigation_2
				special_type_slot_4 = pressurized_cabin_medium	
			}
			
		}

		allowed_modules = {
			medium_bomb_bay
			medium_bomb_bay_2
			bomb_locks
			fuel_tanks_medium
			jet_engine_2x
			bomb_sights_2
			hmg_defense_turret
			air_ground_radar_2
			air_ground_radar_1
			air_ground_radar_3
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}
	
	medium_recon_6 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_medium_airframe_4
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "RB-57 Canberra"
		#history = yes
		#override_sprite = "GFX_generic_RB_57"

		target_variant = {
			match_value = 7000
			type = medium_plane_scout_plane_airframe_6
			modules = {
				fixed_radar_slot = { any_of = { air_ground_radar_5 air_ground_radar_4 air_ground_radar_3 } }
				engine_type_slot = jet_engine_2_2x
				fixed_auxiliary_weapon_slot_2 = drop_tanks
				fixed_main_weapon_slot = recon_camera
				fixed_wing_slot = high_altitude_straight_wing
				special_type_slot_1 = radio_navigation_2
				special_type_slot_2 = pressurized_cabin_medium	
				special_type_slot_3 = self_sealing_fuel_tanks_medium
			}
			
		}

		allowed_modules = {
			medium_bomb_bay
			medium_bomb_bay_2
			bomb_locks
			fuel_tanks_medium
			jet_engine_2x
			bomb_sights_2
			hmg_defense_turret
			air_ground_radar_2
			air_ground_radar_1
			air_ground_radar_3
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}		
	
	medium_recon_7 = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_medium_airframe_5
				factor = 0 #let's not waste XP here
			}	
		}
		#name = "RB-66B Destroyer"
		#history = yes
		#override_sprite = "GFX_generic_RB_66"

		target_variant = {
			match_value = 8000
			type = medium_plane_scout_plane_airframe_7
			modules = {
				fixed_wing_slot = swept_wing
				fixed_main_weapon_slot = recon_camera
				engine_type_slot = second_gen_jet_engine_2x
				fixed_electronics_slot = basic_radar_jammer
				special_type_slot_1 = fuel_tanks_medium
				special_type_slot_2 = dual_cannon_remote_turret_1
				fixed_radar_slot = { any_of = { air_ground_radar_5 air_ground_radar_4 air_ground_radar_3 } } 
				special_type_slot_3 = pressurized_cabin_medium		
				special_type_slot_4 = radio_navigation_3	
			}
			
		}

		allowed_modules = {
			medium_bomb_bay
			medium_bomb_bay_2
			bomb_locks
			fuel_tanks_medium
			jet_engine_2x
			bomb_sights_2
			hmg_defense_turret
			air_ground_radar_2
			air_ground_radar_1
			air_ground_radar_3
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}		
	
	medium_recon_8 = {
		priority = {
			factor = 100
		}
		#name = "A-12 Archangel"
		#history = yes
		#override_sprite = "GFX_generic_YA_12"

		target_variant = {
			match_value = 8000
			type = medium_plane_scout_plane_airframe_8
			modules = {
				fixed_wing_slot = blended_wing
				fixed_optics_slot = { any_of = { hud_module gyro_gunsight } }
				fixed_engine_mod_slot = compressor_bleed_afterburner
				fixed_main_weapon_slot = recon_camera				
				fixed_auxiliary_weapon_slot_1 = wet_wing
				fixed_electronics_slot = improved_radar_jammer
				engine_type_slot = third_gen_jet_engine_2x
				special_type_slot_1 = fuel_tanks_medium
				special_type_slot_2 = pressurized_cabin_medium 
				special_type_slot_3 = inertial_navigation_system_2 	
				special_type_slot_4 = improved_radar_warning_system 	
			}
			
		}

		allowed_modules = {
			medium_bomb_bay
			medium_bomb_bay_2
			bomb_locks
			fuel_tanks_medium
			jet_engine_2x
			bomb_sights_2
			hmg_defense_turret
			air_ground_radar_2
			air_ground_radar_1
			air_ground_radar_3
			plane_special_module_air_ground_radar
			self_sealing_fuel_tanks_small
		}
	}				
}


generic_light_nav = {
	category = air

	blocked_for = {EMP USA RUS}

	available_for = {}

	roles = {
		air_naval_bomber
	}

	priority = {
		factor = 30
		modifier = {
			has_War = yes
			factor = 2
		}
	}
	
	light_nav_0 = {
		priority = {
			factor = 100	
			modifier = { 
				has_tech = basic_small_airframe
				factor = 0 #let's not waste XP here
			}
		}
		#name = "T4M"
		
		#override_model = GFX_generic_LAMP_t4m_float
		
		#history = yes
		target_variant = {
			match_value = 100
			type = small_plane_naval_bomber_airframe_0
			modules = {				
				fixed_wing_slot = biplane_wing
				fixed_main_weapon_slot = torpedo_mounting
				special_type_slot_1 = floats	
				special_type_slot_2 = lmg_defense_turret	
			}
			
		}

		allowed_modules = {
			bomb_locks
			engine_2_1x
			armor_plate_small
			fuel_tanks_small
			reflex_gunsight
			radial_engine_2_1x
			straight_wing
			high_octane_fuel
		}
	}
	
	light_nav_1 = {
		priority = {
			factor = 100	
			modifier = { 
				has_tech = improved_small_airframe
				factor = 0 #let's not waste XP here
			}
		}
		#name = "SBN-1"
		
		#override_model = GFX_generic_LAMP_sbn_1
		
		#history = yes
		target_variant = {
			match_value = 200
			type = small_plane_naval_bomber_airframe_1
			modules = {				
				fixed_wing_slot = straight_wing
				fixed_main_weapon_slot = torpedo_mounting
				engine_type_slot = radial_engine_2_1x
				special_type_slot_1 = lmg_defense_turret
				special_type_slot_2 = fuel_tanks_small	
			}
			
		}

		allowed_modules = {
			bomb_locks
			engine_2_1x
			armor_plate_small
			fuel_tanks_small
			reflex_gunsight
			radial_engine_2_1x
			straight_wing
			high_octane_fuel
		}
	}
	
	light_nav_2 = {
		priority = {
			factor = 100	
			modifier = { 
				has_tech = advanced_small_airframe
				factor = 0 #let's not waste XP here
			}
		}
		#name = "TBV-1 Georgia"
		
		#override_sprite = "GFX_generic_LAMP_tbv"
		
		#history = yes
		target_variant = {
			match_value = 300
			type = small_plane_naval_bomber_airframe_2
			modules = {				
				fixed_wing_slot = straight_wing
				fixed_main_weapon_slot = { any_of = { torpedo_mounting_3 torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = light_mg_4x
				engine_type_slot = radial_engine_3_1x
				special_type_slot_1 = lmg_defense_turret
				special_type_slot_2 = fuel_tanks_small	
				special_type_slot_3 = fuel_tanks_small	
			}
			
		}

		allowed_modules = {
			bomb_locks
			engine_2_1x
			armor_plate_small
			fuel_tanks_small
			reflex_gunsight
			radial_engine_2_1x
			straight_wing
			high_octane_fuel
		}
	}	
	
	light_nav_3 = {
		priority = {
			factor = 100	
			modifier = { 
				has_tech = advanced_small_airframe
				factor = 0 #let's not waste XP here
			}
		}
		#name = "SO3C-2 Seamew"
		
		#override_sprite = "GFX_generic_LAMP_so3c_2"
		
		#history = yes
		target_variant = {
			match_value = 1
			type = small_plane_naval_bomber_airframe_2
			modules = {				
				fixed_wing_slot = straight_wing
				fixed_main_weapon_slot = { any_of = { torpedo_mounting_3 torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = heavy_mg_2x
				engine_type_slot = radial_engine_3_1x
				special_type_slot_1 = hmg_defense_turret
				special_type_slot_2 = fuel_tanks_small	
				special_type_slot_3 = fuel_tanks_small	
			}
			
		}

		allowed_modules = {
			bomb_locks
			engine_2_1x
			armor_plate_small
			fuel_tanks_small
			reflex_gunsight
			radial_engine_2_1x
			straight_wing
			high_octane_fuel
		}
	}	
	
	light_nav_3_a = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = modern_small_airframe
				factor = 0 #let's not waste XP here
			}
		}
		#override_sprite = "GFX_generic_LAMP_f7f_2"
		#history = yes
		#name = "F7F-2 Tigercat"
		target_variant = {
			match_value = 500
			type = small_plane_naval_bomber_airframe_3
			modules = {
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = injection_system
				fixed_optics_slot = {
					any_of = { 
						gyro_gunsight 
						reflex_gunsight 
					}
				}
				fixed_engine_mod_slot = supercharger
				fixed_main_weapon_slot = { any_of = { guided_anti_ship_missile torpedo_mounting_3 torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { aircraft_cannon_3_2x aircraft_cannon_2_2x  } }
				fixed_auxiliary_weapon_slot_2 = { any_of = { heavy_mg_2_4x heavy_mg_4x } }
				#fixed_auxiliary_weapon_slot_3 = { any_of = { aircraft_cannon_3_2x aircraft_cannon_2_2x  } }
				engine_type_slot = { any_of = { radial_engine_5_2x radial_engine_4_2x } }
				special_type_slot_1 = fuel_tanks_small
				special_type_slot_2 = {	any_of = { g_suit_3 g_suit_2 g_suit_1 } }	
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			jet_engine_2x
			radial_engine_4_1x
			armor_plate_small
			straight_wing
			plane_optics
			reflex_gunsight
			heavy_mg_4x
			heavy_mg_2x
			drop_tanks
			bomb_locks
			rocket_rails
			high_octane_fuel
			self_sealing_fuel_tanks_small
			bomb_locks
			heavy_bomb_locks
			rocket_rails
			imp_rocket_rails
			g_suit_type
		}
	}	
	
	light_nav_4 = {
		priority = {
			factor = 100	
			modifier = { 
				has_tech = modern_small_airframe_2
				factor = 0 #let's not waste XP here
			}
		}
		#name = "TSF-1"
		
		#override_model = GFX_generic_XTSF
		
		#history = yes
		target_variant = {
			match_value = 600
			type = small_plane_naval_bomber_airframe_4
			modules = {				
				fixed_wing_slot = straight_wing
				fixed_main_weapon_slot = { any_of = { guided_anti_ship_missile_2 guided_anti_ship_missile torpedo_mounting_3 torpedo_mounting_2 } }
				fixed_auxiliary_weapon_slot_1 = heavy_mg_2x
				engine_type_slot = { any_of = { radial_engine_5_2x radial_engine_4_2x } }
				special_type_slot_1 = fuel_tanks_small
				special_type_slot_2 = fuel_tanks_small	
				fixed_radar_slot = { any_of = { air_ground_radar_3 air_ground_radar_2 air_ground_radar_1 } }
			}
		}

		allowed_modules = {
			bomb_locks
			engine_2_1x
			armor_plate_small
			fuel_tanks_small
			reflex_gunsight
			radial_engine_2_1x
			straight_wing
			high_octane_fuel
		}
	}	
	
	light_nav_5 = {
		priority = {
			factor = 100	
			modifier = { 
				has_tech = modern_small_airframe_3
				factor = 0 #let's not waste XP here
			}
		}
		#name = "F8B-1"
		
		#override_model = GFX_generic_XF8B
		
		#history = yes
		target_variant = {
			match_value = 700
			type = small_plane_naval_bomber_airframe_5
			modules = {				
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = contra_rotating_props		
				fixed_main_weapon_slot = { any_of = { guided_anti_ship_missile_2 guided_anti_ship_missile torpedo_mounting_3 torpedo_mounting_2 } }
				fixed_auxiliary_weapon_slot_1 = heavy_mg_2_2x
				fixed_auxiliary_weapon_slot_1 = drop_tanks
				engine_type_slot = { any_of = { radial_engine_5_1x radial_engine_4_1x } }
				special_type_slot_1 = fuel_tanks_small
				special_type_slot_2 = fuel_tanks_small	
				fixed_radar_slot = { any_of = { air_ground_radar_3 air_ground_radar_2 air_ground_radar_1 } }
			}
		}

		allowed_modules = {
			bomb_locks
			engine_2_1x
			armor_plate_small
			fuel_tanks_small
			reflex_gunsight
			radial_engine_2_1x
			straight_wing
			high_octane_fuel
		}
	}	
	
	light_nav_6 = {
		priority = {
			factor = 100	
			modifier = { 
				has_tech = modern_small_airframe_4
				factor = 0 #let's not waste XP here
			}
		}
		#name = "Convair Skate"
		
		#override_model = GFX_generic_Skate
		
		#history = yes
		target_variant = {
			match_value = 800
			type = small_plane_naval_bomber_airframe_6
			modules = {				
				fixed_wing_slot = swept_wing
				fixed_main_weapon_slot = { any_of = { guided_anti_ship_missile_2 guided_anti_ship_missile torpedo_mounting_3 torpedo_mounting_2 } }
				fixed_auxiliary_weapon_slot_1 = drop_tanks
				engine_type_slot = { any_of = { second_gen_jet_engine_2x } }
				special_type_slot_1 = fuel_tanks_small
				special_type_slot_2 = fuel_tanks_small	
				fixed_radar_slot = { any_of = { air_ground_radar_3 air_ground_radar_2 air_ground_radar_1 } }
				special_type_slot_4 = { any_of = { floats } }
			}
		}

		allowed_modules = {
			bomb_locks
			engine_2_1x
			armor_plate_small
			fuel_tanks_small
			reflex_gunsight
			radial_engine_2_1x
			straight_wing
			high_octane_fuel
		}
	}
	
	light_nav_7 = {
		priority = {
			factor = 100	
			modifier = { 
				has_tech = modern_small_airframe_5
				factor = 0 #let's not waste XP here
			}
		}
		#name = "A2D Skyshark"
		
		#override_model = GFX_generic_A2D
		
		#history = yes
		target_variant = {
			match_value = 900
			type = small_plane_naval_bomber_airframe_7
			modules = {				
				fixed_wing_slot = straight_wing
				fixed_aux_prop_slot = contra_rotating_props
				fixed_optics_slot = toss_computer 
				fixed_main_weapon_slot = { any_of = { guided_anti_ship_missile_4 guided_anti_ship_missile_2 guided_anti_ship_missile torpedo_mounting_3 torpedo_mounting_2 } }
				fixed_auxiliary_weapon_slot_1 = aircraft_cannon_2_2x
				fixed_auxiliary_weapon_slot_2 = aircraft_cannon_2_2x				
				engine_type_slot = turboprop_engine_1x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = fuel_tanks_small	
				special_type_slot_3 = fuel_tanks_small
				fixed_radar_slot = { any_of = { air_ground_radar_5 air_ground_radar_4 air_ground_radar_3 air_ground_radar_2 } }
			}
		}

		allowed_modules = {
			bomb_locks
			engine_2_1x
			armor_plate_small
			fuel_tanks_small
			reflex_gunsight
			radial_engine_2_1x
			straight_wing
			high_octane_fuel
		}
	}
	
	light_nav_8 = {
		priority = {
			factor = 100	
		}
		#name = "F2Y Sea Dart"
		
		#override_model = GFX_generic_A2D
		
		#history = yes
		target_variant = {
			match_value = 1000
			type = small_plane_naval_bomber_airframe_8
			modules = {				
				
				fixed_wing_slot = delta_wing
				fixed_main_weapon_slot = { any_of = { guided_anti_ship_missile_4 guided_anti_ship_missile_2 guided_anti_ship_missile torpedo_mounting_3 torpedo_mounting_2 } }
				#fixed_auxiliary_weapon_slot_1 = drop_tanks
				engine_type_slot = { any_of = { third_gen_jet_engine_1x } }
				special_type_slot_1 = fuel_tanks_small
				special_type_slot_2 = fuel_tanks_small	
				fixed_radar_slot = { any_of = { air_ground_radar_3 air_ground_radar_2 air_ground_radar_1 } }
				special_type_slot_4 = floats 
			}
		}

		allowed_modules = {
			bomb_locks
			engine_2_1x
			armor_plate_small
			fuel_tanks_small
			reflex_gunsight
			radial_engine_2_1x
			straight_wing
			high_octane_fuel
		}
	}
}