# Defining a rack setup
#
# Initially we define the racks, stations and compatible weapons.
# Weapons can be specified via its simweapondata number, the weapon class or
# its weapon index number.

# To start a rack definition, use

# definerack <name>

# You can have each of addswd, addwid & addwclass in each rack definition, but
# not multiples.  These commands tell the code that particular weapons are loadable
# on a given rack

# addswd is used to add an array of swd index numbers
# addwid is used to add weapon id numbers
# addwclass is used to add weapon classes
#   addwclass keywords are:
#     "aim","rocket","bomb","gun","ecm","tank","agm",
#     "harm","sam","gbu","camera"

# Jettison

# weapjettmodes specifies if weapons can be jettisoned from their parents
# rackjettmodes specifies is racks can be jetted from it's parent
#	"emergency" & "selective"
# they both default to "EMERGENCY,SELECTIVE"

# a rackct of 0 signifies "no rack", and the weapon will be attached
# to the pylon or a/c without a rack

# TODO

# Add drag multipliers for weapons in the rack/pylons, which can 
# be used to affect the drag value (for recessed etc)

definerack mrp-no-rack
	weapjettmodes NONE
	rackjettmodes NONE
	rackct 0
	rackstations 1
	addwid 363

definerack ecm-camera-no-rack
	weapjettmodes NONE
	rackjettmodes NONE
	rackct 0
	rackstations 1
	addwclass ecm camera

definerack no-rack
	rackct 0
	rackstations 1
	addwclass rocket, bomb, tank, agm, gbu, ecm
	addwid 179 83 84 183 119 149 150 151 184 382 696 697 698

definerack aim-no-rail
	rackct 0
	rackstations 1
	weapjettmodes NONE
	rackjettmodes NONE
	addwclass aim
	addwid 696 697 698

definerack acmi
	rackct 0
	rackstations 1
	weapjettmodes NONE
	rackjettmodes NONE
	addwid 696 697 698

definerack aim-recessed-45
	rackct 3852
	rackstations 1
	weapjettmodes NONE
	rackjettmodes NONE
	addwclass aim
	addwid 696 697 698

definerack aim-with-rail
	rackct 2872
	rackstations 1
	weapjettmodes NONE
	rackjettmodes NONE
	addwclass aim
	addwid 696 697 698

# rotated 45' and recessed
definerack aim-recessed-left
	rackct 3500
	rackstations 1
	weapjettmodes NONE
	rackjettmodes NONE
	# all ACMI pods, Aim-7s, Aim-9s, Aim-54s and Aim-120s
	addwid 25 26 27 28 29 41 42 30 31 32 33 34 35 36 37 38 39 40 696 697 698

# rotated 45' and recessed
definerack aim-recessed-right
	rackct 3501
	rackstations 1
	weapjettmodes NONE
	rackjettmodes NONE
	# all Aim-7s, Aim-9s, Aim-54s and Aim-120s
	# all ACMI pods, Aim-7s, Aim-9s, Aim-54s and Aim-120s
	addwid 25 26 27 28 29 41 42 30 31 32 33 34 35 36 37 38 39 40 696 697 698

# Aim-7 & F-18
definerack lau-115
	rackct 3348
	rackstations 1
	weapjettmodes SELECTIVE
	rackjettmodes SELECTIVE
	addwid 25 26 27 28 29

definerack aimx2
	rackct 0
	rackstations 2731
	weapjettmodes NONE
	rackjettmodes NONE
	addwclass aim

definerack bru-41-left
	racksmsname MER
	rackct 2876
	rackstations 6
	rackjettmodes EMERGENCY,SELECTIVE
	weapjettmodes EMERGENCY,SELECTIVE
	addwclass rocket, bomb, gbu

definerack bru-41-right
	racksmsname MER
	rackct 2876
	rackstations 6
	rackjettmodes EMERGENCY,SELECTIVE
	weapjettmodes EMERGENCY,SELECTIVE
	addwclass rocket, bomb, gbu

# ITER 
definerack bru-42i-left
	racksmsname TER
	rackct 2812
	rackstations 3
	rackjettmodes EMERGENCY,SELECTIVE
	weapjettmodes EMERGENCY,SELECTIVE
	addwclass rocket, bomb, gbu
	addwid 119
	addloadorder 0
	addloadorder 1 0
	addloadorder 1 0 2

# ITER 
definerack bru-42i-right
	racksmsname TER
	rackct 2812
	rackstations 3
	rackjettmodes EMERGENCY,SELECTIVE
	weapjettmodes EMERGENCY,SELECTIVE
	addwclass rocket, bomb, gbu
	addwid 119
	addloadorder 0
	addloadorder 2 0
	addloadorder 2 0 1

# TER 
definerack bru-42-left
	racksmsname TER
	rackct 2813
	rackstations 3
	rackjettmodes EMERGENCY,SELECTIVE
	weapjettmodes EMERGENCY,SELECTIVE
	addwclass rocket, bomb, gbu
	addloadorder 2
	addloadorder 2 1
	addloadorder 2 1 0

# TER 
definerack bru-42-right
	racksmsname TER
	rackct 2813
	rackstations 3
	rackjettmodes EMERGENCY,SELECTIVE
	weapjettmodes EMERGENCY,SELECTIVE
	addwclass rocket, bomb, gbu
	addloadorder 2
	addloadorder 2 0
	addloadorder 2 0 1

# SER
definerack bru-55-left	
	racksmsname SER
	rackct 1979
	rackstations 2
	rackjettmodes EMERGENCY,SELECTIVE
	weapjettmodes EMERGENCY,SELECTIVE
	addwclass agm, bomb, gbu, rocket
	addloadorder 0
	addloadorder 1 0

# SER
definerack bru-55-right	
	racksmsname SER
	rackct 1979
	rackstations 2
	rackjettmodes EMERGENCY,SELECTIVE
	weapjettmodes EMERGENCY,SELECTIVE
	addwclass agm, bomb, gbu, rocket
	addloadorder 0
	addloadorder 0 1

# Rack for BDU-33D/B
definerack suu-20	
	racksmsname SUU20
	rackct 3681
	rackstations 6
	rackjettmodes EMERGENCY,SELECTIVE
	weapjettmodes EMERGENCY,SELECTIVE
	addwid 119

# Rack for 2 JDAMs up to 1000 lbs, 2 JSOWs, 2 WCMDs or 2 SDBs
definerack bru-57
	racksmsname BR57
	rackct 1979
	rackstations 2
	rackjettmodes EMERGENCY,SELECTIVE
	weapjettmodes EMERGENCY,SELECTIVE
	addwid 179 83 84 183 149 150 151 184 382
	addloadorder 0
	addloadorder 0 1

# Rack for 4 SDBs
definerack bru-61
	racksmsname BR61
	rackct 3899
	rackstations 4
	rackjettmodes EMERGENCY,SELECTIVE
	weapjettmodes EMERGENCY,SELECTIVE
	addwid 184

# Maverick x 3
definerack lau-88-left
	racksmsname L88
	rackjettmodes EMERGENCY,SELECTIVE
	weapjettmodes EMERGENCY,SELECTIVE
	rackct 2810
	rackstations 3
	addwid 65 64 66 67
	addloadorder 1 2
	addloadorder 0 1 2 

# Maverick x 3
definerack lau-88-right
	racksmsname L88
	rackjettmodes EMERGENCY,SELECTIVE
	weapjettmodes EMERGENCY,SELECTIVE
	rackct 2810
	rackstations 3
	addwid 65 64 66 67
	addloadorder 0 2
	addloadorder 0 1 2

# Maverick
definerack lau-117
	racksmsname L117
	weapjettmodes NONE
	rackct 1982
	rackstations 1
	addwid 65 64 66 67

# HARM
definerack lau-118
	racksmsname L118
	rackjettmodes EMERGENCY,SELECTIVE
	weapjettmodes EMERGENCY,SELECTIVE
	rackct 1859
	rackstations 1
	addwclass harm

# AA-7 AA-7R
definerack apu-23
	rackct 2733
	rackstations 1
	addwid 10 11

# AA-2 AA-2D
definerack apu-13
	rackct 2734
	rackstations 1
	addwid 2 3

# AA-8 Left
definerack apu-60L
	rackct 2832
	rackstations 2
	addwid 12

# AA-8 Right
definerack apu-60R
	rackct 2833
	rackstations 2
	addwid 12

# BD-30
definerack bd-30
	rackct 2834
	rackstations 1
	addwclass bomb, agm, gbu, rocket, ecm

# MDB-2 Left
definerack mbd-2L
	rackct 3830
	rackstations 4
	addwclass bomb, agm, gbu
	addloadorder 0 1 2 3

# MDB-2 Right
definerack mbd-2R
	rackct 3830
	rackstations 4
	addwclass bomb, agm, gbu
	addloadorder 2 3 0 1

# PTB-800
definerack ptb-800
	rackct 2831
	rackstations 1
	addwclass tank, camera


###########################################
###########################################
###########################################
#
# hardpoint groups, these are used according to
# the hardpointXXGrp data specified in the a/c.dat file

# the group is searched until a rack definition is found that
# matches the weapon being loaded, and the qty of that weapon.

# multiple pylon styles can be added per group, and each pylon
# can hold several different rack styles.

# pylonjettmodes will determine whether or not a particular
# pylon can be jettisoned under what conditions

###########################################
###########################################
###########################################

definerack a10-centerrack
	racksmsname MAU
	rackct 2808
	rackstations 3
	#rackjettmodes EMERGENCY,SELECTIVE
	weapjettmodes EMERGENCY,SELECTIVE
	addwclass rocket, bomb, gbu
	addloadorder 1
	addloadorder 0 2
	addloadorder 0 2 1

# for a/c with pylons as part of the a/c LOD
definegroup a10-center
	addpylon
		addrack lau-117
		addrack lau-118
		addrack aim-with-rail
		addrack no-rack
		addrack a10-centerrack
		addrack lau-88-left
		addrack bru-42-left
		addrack bru-41-left
		addrack bru-61
	
###########################################
###########################################
###########################################

definerack b52-dualmer-rack
	rackct 2727
	rackstations 12
	weapjettmodes EMERGENCY,SELECTIVE
	addwclass rocket, bomb, gbu, agm, harm

definerack b52-hsab-rack
	rackct 2880
	rackstations 9
	weapjettmodes EMERGENCY,SELECTIVE
	addwclass rocket, bomb, gbu, agm, harm
	addloadorder 6
	addloadorder 6 0
	addloadorder 6 3 0
	addloadorder 2 8 1 7
	addloadorder 2 8 1 7 3
	addloadorder 2 8 1 7 6 0 
	addloadorder 2 8 1 7 6 0 3
	addloadorder 2 8 4 1 7 6 0 3
	addloadorder 2 8 4 1 7 5 6 0 3

definegroup b52-hsab
	addpylon
		addrack b52-hsab-rack

definegroup b52-dualmer
	addpylon
		addrack b52-dualmer-rack

###########################################
###########################################
###########################################

definerack f4-pylon-aa-left
	rackct 3537
	rackstations 2
	weapjettmodes NONE
	rackjettmodes NONE
	addwclass aim
	
definerack f4-pylon-aa-right
	rackct 3537
	rackstations 2
	weapjettmodes NONE
	rackjettmodes NONE
	addwclass aim
	addloadorder 1 0
	
definegroup f4-inner-wing-left
	addpylon 
		addrack f4-pylon-aa-left
		addrack lau-117
		addrack lau-88-left
		addrack lau-118
		addrack no-rack
		addrack bru-42-left
		addrack bru-41-left	
	
definegroup f4-inner-wing-right
	addpylon 
		addrack f4-pylon-aa-right
		addrack lau-117
		addrack lau-88-right
		addrack lau-118
		addrack no-rack
		addrack bru-42-right
		addrack bru-41-right

###########################################
###########################################
###########################################

definerack f8-aim-left
	rackct 3076
	rackstations 1
	weapjettmodes NONE
	rackjettmodes NONE
	addwclass aim

definerack f8-aim-right
	rackct 3079
	rackstations 1
	weapjettmodes NONE
	rackjettmodes NONE
	addwclass aim

definerack f8-aimx2-left
	rackct 3076
	rackstations 2
	weapjettmodes NONE
	rackjettmodes NONE
	addwclass aim

definerack f8-aimx2-right
	rackct 3079
	rackstations 2
	weapjettmodes NONE
	rackjettmodes NONE
	addwclass aim

definegroup f8-left
	addpylon
		pylonsmsname MAU
		pylonct 3077
		addrack no-rack
		addrack bru-42-left

definegroup f8-right
	addpylon
		pylonsmsname MAU
		pylonct 3077
		addrack no-rack
		addrack bru-42-right

definegroup f8-leftfuse
	addpylon
		addrack f8-aim-left
		addrack f8-aimx2-left

definegroup f8-rightfuse
	addpylon
		addrack f8-aim-left
		addrack f8-aimx2-left

###########################################
###########################################
###########################################

definerack f14-aim54-fuserack
	rackct 2784
	rackstations 4
	weapjettmodes SELECTIVE
	addwid 39 40

definerack f14-aim7-fuserack
	rackct 2783
	rackstations 4
	weapjettmodes SELECTIVE
	addwclass aim

definerack f14-ag-fuserack
	rackct 2792
	rackstations 4
	weapjettmodes EMERGENCY,SELECTIVE
	addany
	addswd 0

definegroup f14-fuselage
	addpylon
		pylonsmsname MAU
		pylonct 0
	    addrack f14-aim54-fuserack
		addrack f14-aim7-fuserack
		addrack f14-ag-fuserack

definegroup f14-aim
	addpylon
		pylonsmsname MAU
		pylonct 0
		addrack aim-with-rail

definegroup f14-pylon
	addpylon
		pylonsmsname MAU
		pylonct 0
	    addrack aim-recessed-left
	    addrack aim-no-rail
		addrack no-rack

definegroup f14-nacelle
	addpylon
		pylonsmsname MAU
		pylonct 0
		addrack no-rack

###########################################
###########################################
###########################################

definerack f15e-cft-bru61x4-left
	rackct 2040
	rackstations 4
	weapjettmodes EMERGENCY,SELECTIVE
	rackjettmodes EMERGENCY,SELECTIVE
	addwid 184
	addloadorder 0
	addloadorder 0 2
	addloadorder 0 2 1
	addloadorder 0 2 1 3

definerack f15e-cft-bru61x4-right
	rackct 2040
	rackstations 4
	weapjettmodes EMERGENCY,SELECTIVE
	rackjettmodes EMERGENCY,SELECTIVE
	addwid 184
	addloadorder 1
	addloadorder 1 3
	addloadorder 1 3 0
	addloadorder 1 3 0 2

definerack f15e-cft-bru61x8-left
	rackct 2041
	rackstations 8
	weapjettmodes EMERGENCY,SELECTIVE
	rackjettmodes EMERGENCY,SELECTIVE
	addwid 184
	addloadorder 0
	addloadorder 0 2
	addloadorder 0 2 1
	addloadorder 0 2 1 3
	addloadorder 0 2 1 3 4 
	addloadorder 0 2 1 3 4 6 
	addloadorder 0 2 1 3 4 6 5
	addloadorder 0 2 1 3 4 6 5 7

definerack f15e-cft-bru61x8-right
	rackct 2041
	rackstations 8
	weapjettmodes EMERGENCY,SELECTIVE
	rackjettmodes EMERGENCY,SELECTIVE
	addwid 184
	addloadorder 1
	addloadorder 1 3
	addloadorder 1 3 0
	addloadorder 1 3 0 2
	addloadorder 1 3 0 2 5
	addloadorder 1 3 0 2 5 7
	addloadorder 1 3 0 2 5 7 4
	addloadorder 1 3 0 2 5 7 4 6

definerack f15e-cft-rack-left
	rackct 2726
	rackstations 6
	weapjettmodes EMERGENCY,SELECTIVE
	addany
	addswd 0

definerack f15e-cft-rack-right
	rackct 2725
	rackstations 6
	weapjettmodes EMERGENCY,SELECTIVE
	addany
	addswd 0

definerack f15e-cft-aa-rack-left
	rackct 2726
	rackstations 3
	weapjettmodes EMERGENCY,SELECTIVE
	addwclass aim
	addloadorder 0 2

definerack f15e-cft-aa-rack-right
	rackct 2725
	rackstations 3
	weapjettmodes EMERGENCY,SELECTIVE
	addwclass aim
	addloadorder 0 2

definerack f15e-cft-large-rack-left
	rackct 2726
	rackstations 6
	weapjettmodes EMERGENCY,SELECTIVE
	addwclass gbu
	addwid 219 220 175 177 165 166 # MK-84 Air MK-84 LDGP GBU-31(v)1/B GBU-31(v)3/B GBU-10C/B GBU-10G/B
	addloadorder 0 2 5 3

definerack f15e-cft-large-rack-right
	rackct 2725
	rackstations 6
	weapjettmodes EMERGENCY,SELECTIVE
	addwclass gbu
	addwid 219 220 175 177 165 166 # MK-84 Air MK-84 LDGP GBU-31(v)1/B GBU-31(v)3/B GBU-10C/B GBU-10G/B
	addloadorder 0 2 5 3
	
definerack f15e-cft-single-rack-left
	rackct 2726
	rackstations 2
	weapjettmodes EMERGENCY,SELECTIVE
	addwclass gbu
	addwid 172 171 # GBU-24A/B GBU-24/B
	addloadorder 1

definerack f15e-cft-single-rack-right
	rackct 2725
	rackstations 2
	weapjettmodes EMERGENCY,SELECTIVE
	addwclass gbu
	addwid 172 171 # GBU-24A/B GBU-24/B
	addloadorder 1

definerack f15e-cft-triple-rack-left
	rackct 2726
	rackstations 3
	weapjettmodes EMERGENCY,SELECTIVE
	addwid 183 # GBU-38/B
	addloadorder 0 1 2

definerack f15e-cft-triple-rack-right
	rackct 2725
	rackstations 3
	weapjettmodes EMERGENCY,SELECTIVE
	addwid 183 # GBU-38/B
	addloadorder 0 1 2
	
definegroup f15e-cft-left
	addpylon
		pylonsmsname FST
		pylonct 0
		addrack f15e-cft-aa-rack-left
		addrack f15e-cft-single-rack-left
		addrack f15e-cft-triple-rack-left
		addrack f15e-cft-bru61x4-left
		addrack f15e-cft-large-rack-left
		addrack f15e-cft-rack-left
		addrack f15e-cft-bru61x8-left

definegroup f15e-cft-right
	addpylon
		pylonsmsname FST
		pylonct 0
		addrack f15e-cft-aa-rack-right
		addrack f15e-cft-single-rack-right
		addrack f15e-cft-triple-rack-right
		addrack f15e-cft-bru61x4-right
		addrack f15e-cft-large-rack-right
		addrack f15e-cft-rack-right
		addrack f15e-cft-bru61x8-right

definegroup f15e-center
	addpylon
		pylonsmsname MAU
		pylonct 2873
		addrack lau-117
		addrack lau-118
		addrack aim-with-rail
		addrack no-rack
		addrack lau-88-left
		addrack bru-42-left
		addrack bru-41-left
		addrack bru-61
		
definegroup f15c-center
	addpylon
		pylonsmsname MAU
		pylonct 3347
		addrack lau-117
		addrack lau-118
		addrack aim-with-rail
		addrack no-rack
		addrack lau-88-left
		addrack bru-42-left
		addrack bru-41-left	

###########################################
###########################################
###########################################

definerack f-16-370-wing-tank
	weapjettmodes EMERGENCY,SELECTIVE
	rackjettmodes NONE
	rackct 3084
	rackstations 1
	addwclass tank

definerack f-16-600-wing-tank
	weapjettmodes EMERGENCY,SELECTIVE
	rackjettmodes NONE
	rackct 3571
	rackstations 1
	addwid 322

definerack f-16-center-tank
	weapjettmodes EMERGENCY,SELECTIVE
	rackjettmodes NONE 
	rackct 0
	rackstations 1
	addwclass tank

definerack f-16-aim7
	weapjettmodes NONE 
	rackjettmodes NONE 
	rackct 0
	rackstations 1
	addwid 29

# 12S210 launcher

definegroup f16-wingtip-16s210
	# ACMI pylon
	addpylon
		pylonsmsname LNCH
		pylonct 0
        	addrack acmi
	# AA pylon
	addpylon
		pylonsmsname LNCHW
		pylonct 0
        	addrack aim-no-rail

definegroup f16-2/8-16s210
	# AA and ACMI pylon
	addpylon
		pylonsmsname LNCH
		pylonct 231
        	addrack aim-no-rail

definegroup f16-3/4-16s210		
	# wing tank	
	addpylon	
		addrack f-16-370-wing-tank
		addrack f-16-600-wing-tank
	# AIM-7M pylon
	addpylon
		pylonsmsname LNCH
		pylonct 833
		addrack f-16-aim7
	# AA and ACMI pylon
	addpylon	
		pylonsmsname LNCH
		pylonct 231
        	addrack aim-no-rail
	# normal pylon	
	addpylon	
		pylonsmsname MAU
		pylonct 1980
		#order by number of slots
		addrack lau-117
		addrack lau-118
		addrack no-rack
		addrack bru-57
		addrack lau-88-left
		addrack bru-42i-left
		addrack bru-61
		addrack suu-20

definegroup f16-6/7-16s210		
	# wing tank	
	addpylon	
		addrack f-16-370-wing-tank
		addrack f-16-600-wing-tank
	# AIM-7M pylon
	addpylon
		pylonsmsname LNCH
		pylonct 833
		addrack f-16-aim7
	# AA and ACMI pylon
	addpylon	
		pylonsmsname LNCH
		pylonct 231
        	addrack aim-no-rail
	# normal pylon	
	addpylon	
		pylonsmsname MAU
		pylonct 1980
		#order by number of slots
		addrack lau-117
		addrack lau-118
		addrack no-rack
		addrack bru-57
		addrack lau-88-right
		addrack bru-42i-right
		addrack bru-61
		addrack suu-20

# LAU-129 launcher

definegroup f16-wingtip
	# ACMI pylon
	addpylon
		pylonsmsname MRL
		pylonct 0
        	addrack acmi
	# AA pylon
	addpylon
		pylonsmsname MRLW
		pylonct 0
        	addrack aim-no-rail

definegroup f16-2/8
	# AA and ACMI pylon
	addpylon
		pylonsmsname MRL
		pylonct 1858
        	addrack aim-no-rail

definegroup f16-2/8-ale50
	# AA and ACMI pylon
	addpylon
		pylonsmsname MRL
		pylonct 2875
        	addrack aim-no-rail

definegroup f16-3/4		
	# wing tank	
	addpylon	
		addrack f-16-370-wing-tank
		addrack f-16-600-wing-tank
	# AIM-7M pylon
	addpylon
		pylonsmsname LNCH
		pylonct 833
		addrack f-16-aim7
	# AA and ACMI pylon
	addpylon	
		pylonsmsname MRL
		pylonct 1858
        	addrack aim-no-rail
	# normal pylon	
	addpylon	
		pylonsmsname MAU
		pylonct 1980
		#order by number of slots
		addrack lau-117
		addrack lau-118
		addrack no-rack
		addrack bru-57
		addrack lau-88-left
		addrack bru-42i-left
		addrack bru-61
		addrack suu-20

definegroup f16-6/7		
	# wing tank	
	addpylon	
		addrack f-16-370-wing-tank
		addrack f-16-600-wing-tank
	# AIM-7M pylon
	addpylon
		pylonsmsname LNCH
		pylonct 833
		addrack f-16-aim7
	# AA and ACMI pylon
	addpylon	
		pylonsmsname MRL
		pylonct 1858
        	addrack aim-no-rail
	# normal pylon	
	addpylon	
		pylonsmsname MAU
		pylonct 1980
		#order by number of slots
		addrack lau-117
		addrack lau-118
		addrack no-rack
		addrack bru-57
		addrack lau-88-right
		addrack bru-42i-right
		addrack bru-61
		addrack suu-20

# PIDSU pylon

definegroup f16-pidsu-3/4		
	# wing tank	
	addpylon	
		addrack f-16-370-wing-tank
		addrack f-16-600-wing-tank
	# AA and ACMI pylon
	addpylon	
		pylonsmsname MRL
		pylonct 1858
        	addrack aim-no-rail	
	# normal pylon	
	addpylon	
		pylonsmsname PIDS
		pylonct 3901
		#order by number of slots
		addrack lau-117
		addrack lau-118
		addrack no-rack
		addrack bru-57
		addrack lau-88-left
		addrack bru-42i-left
		addrack bru-61
		addrack suu-20

definegroup f16-pidsu-6/7		
	# wing tank	
	addpylon	
		addrack f-16-370-wing-tank
		addrack f-16-600-wing-tank
	# AA and ACMI pylon
	addpylon	
		pylonsmsname MRL
		pylonct 1858
        	addrack aim-no-rail
	# normal pylon	
	addpylon	
		pylonsmsname PIDS
		pylonct 3902
		#order by number of slots
		addrack lau-117
		addrack lau-118
		addrack no-rack
		addrack bru-57
		addrack lau-88-right
		addrack bru-42i-right
		addrack bru-61
		addrack suu-20

# ECIPSU pylon

definegroup f16-ecipsu-6/7		
	# wing tank	
	addpylon	
		addrack f-16-370-wing-tank
		addrack f-16-600-wing-tank
	# AA and ACMI pylon
	addpylon	
		pylonsmsname MRL
		pylonct 1858
        	addrack aim-no-rail
	# normal pylon	
	addpylon	
		pylonsmsname MAUQ
		pylonct 3903
		#order by number of slots
		addrack lau-117
		addrack lau-118
		addrack no-rack
		addrack bru-57
		addrack lau-88-right
		addrack bru-42i-right
		addrack bru-61
		addrack suu-20

# ECIPS+ pylon

definegroup f16-ecips+-3/4		
	# wing tank	
	addpylon	
		addrack f-16-370-wing-tank
		addrack f-16-600-wing-tank
	# AA and ACMI pylon
	addpylon	
		pylonsmsname MRL
		pylonct 1858
        	addrack aim-no-rail	
	# normal pylon	
	addpylon	
		pylonsmsname MAUQ+
		pylonct 3905
		#order by number of slots
		addrack lau-117
		addrack lau-118
		addrack no-rack
		addrack bru-57
		addrack lau-88-left
		addrack bru-42i-left
		addrack bru-61
		addrack suu-20

# PIDS+ pylon

definegroup f16-pids+-6/7		
	# wing tank	
	addpylon	
		addrack f-16-370-wing-tank
		addrack f-16-600-wing-tank
	# AA and ACMI pylon
	addpylon	
		pylonsmsname MRL
		pylonct 1858
        	addrack aim-no-rail
	# normal pylon	
	addpylon	
		pylonsmsname PIDS+
		pylonct 3904
		#order by number of slots
		addrack lau-117
		addrack lau-118
		addrack no-rack
		addrack bru-57
		addrack lau-88-right
		addrack bru-42i-right
		addrack bru-61
		addrack suu-20

# Centerline
	
definegroup f16-centerline
	addpylon 
		addrack mrp-no-rack
	addpylon 
		addrack f-16-center-tank
	addpylon
		pylonsmsname MAU
		pylonct 2815
		addrack ecm-camera-no-rack
		addrack no-rack

########    ###               ##    #######
##         ## ##            ####   ##     ##
##        ##   ##             ##   ##     ##
######   ##     ## #######    ##    #######
##       #########            ##   ##     ##
##       ##     ##            ##   ##     ##
##       ##     ##          ######  #######

definerack f18-aimx2
	rackct 2941
	rackstations 2
	weapjettmodes NONE
	rackjettmodes NONE
	addwclass aim

definerack f18-aas38
	weapjettmodes NONE
	rackjettmodes NONE
	rackct 3940
	rackstations 1
	addwid 338

definerack f18-asq228
	weapjettmodes NONE
	rackjettmodes NONE
	rackct 3941
	rackstations 1
	addwid 349

definegroup f18-wingtip
	addpylon
		pylonsmsname LNCHW
		pylonct 0
		addrack aim-no-rail

definegroup f18-left
	addpylon
		pylonsmsname MAU
		pylonct 2874
		addrack lau-117
		addrack lau-118
		addrack lau-115
		addrack aim-with-rail
		addrack f18-aimx2
		addrack no-rack
		addrack bru-55-left
		addrack suu-20

definegroup f18-right
	addpylon
		pylonsmsname MAU
		pylonct 2874
		addrack lau-117
		addrack lau-118
		addrack lau-115	
		addrack aim-with-rail
		addrack f18-aimx2
		addrack no-rack
		addrack bru-55-right
		addrack suu-20

definegroup f18-leftfuse
	addpylon
		addrack f18-asq228
		addrack f18-aas38
        addrack aim-no-rail
		addrack no-rack

definegroup f18-rightfuse
	addpylon
		addrack f18-aas38
		addrack f18-asq228
		addrack aim-no-rail
		addrack no-rack

definegroup f18-centerline
	addpylon
		pylonsmsname MAU
		pylonct 2815
		addrack lau-117
		addrack lau-118
		addrack aim
		addrack aimx2
		addrack no-rack
		addrack bru-55-left
		addrack suu-20

###########################################
###########################################
###########################################

# Mirage 2000 racks

definerack m2k-tanks
	rackjettmodes NONE
	weapjettmodes EMERGENCY,SELECTIVE
	rackct 3513
	rackstations 1
	addwclass tank
	
definerack m2k-Pod
	rackjettmodes NONE
	weapjettmodes NONE
	rackct 3516
	rackstations 1
	addwid 353 365

definerack m2k-R530
	rackjettmodes EMERGENCY
	weapjettmodes SELECTIVE
	rackct 3514
	rackstations 1
	addwclass aim

definerack m2k-R550
	rackjettmodes NONE
	weapjettmodes SELECTIVE
	rackct 3512
	rackstations 1
	addwclass aim
	addwid 696 698

definerack m2k-Mica-fwd
	rackjettmodes NONE
	weapjettmodes SELECTIVE
	rackct 3516
	rackstations 1
	addwclass aim

definerack m2k-Mica-aft
	rackjettmodes NONE
	weapjettmodes SELECTIVE
	rackct 3518
	rackstations 1
	addwclass aim

definerack m2k-AG
	rackjettmodes NONE
	weapjettmodes SELECTIVE,EMERGENCY
	rackct 3519
	rackstations 1
	addwclass rocket, bomb, agm, harm, gbu

definerack m2k-AG-center
	rackjettmodes NONE
	weapjettmodes SELECTIVE,EMERGENCY
	rackct 3515
	rackstations 1
	addwclass rocket, bomb, agm, harm, gbu, tank

definerack m2k-AG2x-L
	rackjettmodes NONE
	weapjettmodes SELECTIVE,EMERGENCY
	rackct 3572
	rackstations 2
	addwclass bomb, gbu
	addloadorder 1 0

definerack m2k-AG2x-R
	rackjettmodes NONE
	weapjettmodes SELECTIVE,EMERGENCY
	rackct 3572
	rackstations 2
	addwclass bomb, gbu
	addloadorder 0 1

definerack m2k-AG3x-L
	rackjettmodes NONE
	weapjettmodes SELECTIVE,EMERGENCY
	rackct 2813
	rackstations 3
	addwclass bomb, gbu

definerack m2k-AG3x-R
	rackjettmodes NONE
	weapjettmodes SELECTIVE,EMERGENCY
	rackct 2812
	rackstations 3
	addwclass bomb, gbu

definerack m2k-AG4x-L
	rackjettmodes NONE
	weapjettmodes SELECTIVE,EMERGENCY
	rackct 3485
	rackstations 4
	addwclass bomb, gbu

definerack m2k-AG4x-R
	rackjettmodes NONE
	weapjettmodes SELECTIVE,EMERGENCY
	rackct 3484
	rackstations 4
	addwclass bomb, gbu

# Mirage 2000 groups

definegroup m2k-center
	addpylon 
		addrack m2k-tanks
		addrack m2k-AG-center
	addpylon
		pylonct 3515
		addrack m2k-AG2x-L
		addrack m2k-AG3x-L
		addrack m2k-AG4x-L

definegroup m2k-fusefwd
	addpylon 
		addrack m2k-AG
		addrack m2k-Mica-fwd
		addrack m2k-Pod

definegroup m2k-fuseaft
	addpylon 
		addrack m2k-AG
		addrack m2k-Mica-aft

definegroup m2k-winginner-L
	addpylon 
		addrack m2k-tanks
		addrack m2k-R530
		addrack m2k-AG
	addpylon
		pylonct 3519
		addrack m2k-AG2x-L
		addrack m2k-AG3x-L
		addrack m2k-AG4x-L

definegroup m2k-winginner-R
	addpylon 
		addrack m2k-tanks
		addrack m2k-R530
		addrack m2k-AG
	addpylon
		pylonct 3519
		addrack m2k-AG2x-R
		addrack m2k-AG3x-R
		addrack m2k-AG4x-R
		
definegroup m2k-wingtip
	addpylon 
		addrack m2k-R550

###########################################
############## Rafale racks ###############
###########################################

# Air-air rack definitions

definerack rafale-mica-no-rack
	rackct 0
	rackstations 1
	weapjettmodes SELECTIVE
	rackjettmodes NONE
	addwclass aim

definerack rafale-mica-rack
	rackct 3912
	rackstations 1
	weapjettmodes SELECTIVE
	rackjettmodes NONE
	addwclass aim

definerack rafale-mica-center
	rackct 3911
	rackstations 3
	rackjettmodes SELECTIVE
	weapjettmodes NONE
	addwclass aim
	addloadorder 0
	addloadorder 1 2

# Air-ground rack definitions

definerack rafale-ag-wings
	rackct 0
	rackstations 1
	rackjettmodes EMERGENCY
	weapjettmodes EMERGENCY,SELECTIVE
	addwclass bomb, agm, gbu

definerack rafale-bombs-center-short
	rackct 3911
	rackstations 5
	rackjettmodes EMERGENCY
	weapjettmodes EMERGENCY,SELECTIVE
	addwclass bomb, gbu
	addloadorder 0
	addloadorder 1 2
	addloadorder 3 4

definerack rafale-bombs-center-long # avoid bomb collision on Rack GBU-22B and GBU-12B
	rackct 3911
	rackstations 5
	rackjettmodes EMERGENCY
	weapjettmodes EMERGENCY,SELECTIVE
	addwid 167 170
	addloadorder 0	
	addloadorder 3 4
	addloadorder 1 2

definerack rafale-agm-center
	rackct 3911
	rackstations 3
	rackjettmodes EMERGENCY
	weapjettmodes EMERGENCY,SELECTIVE
	addwclass agm
	addloadorder 0

definerack rafale-triple-bombs
	rackct 3913
	rackstations 3
	rackjettmodes EMERGENCY
	weapjettmodes EMERGENCY,SELECTIVE
	addwclass bomb, gbu
	addloadorder 0
	addloadorder 1 2
	addloadorder 1 2 0

definerack rafale-triple-brimstone
	rackct 3914
	rackstations 3
	rackjettmodes EMERGENCY
	weapjettmodes EMERGENCY,SELECTIVE
	addwid 109
	addloadorder 0
	addloadorder 1 2
	addloadorder 1 2 0

# Fuel tank rack definitions

definerack rafale-tank-wing-internal
	rackct 3909
	rackstations 1	
	rackjettmodes EMERGENCY,SELECTIVE
	weapjettmodes EMERGENCY,SELECTIVE
	addwclass tank

definerack rafale-tank-wing-middle
	rackct 3908
	rackstations 1
	rackjettmodes EMERGENCY,SELECTIVE
	weapjettmodes EMERGENCY,SELECTIVE
	addwclass tank
	
definerack rafale-tank-center
	rackct 3911
	rackstations 3
	rackjettmodes EMERGENCY,SELECTIVE
	weapjettmodes EMERGENCY,SELECTIVE
	addwclass tank
	addloadorder 0
definerack rafale-tank-center
	rackct 3911
	rackstations 3
	rackjettmodes EMERGENCY,SELECTIVE
	weapjettmodes EMERGENCY,SELECTIVE
	addwclass tank
	addloadorder 0

# Camera rack definition

definerack rafale-camera-center
	rackct 3911
	rackstations 3
	rackjettmodes NONE
	weapjettmodes NONE
	addwclass camera
	addloadorder 0

# Rafale racks group

definegroup rafale-wingtip
	addpylon
		pylonct 0
		addrack rafale-mica-no-rack

definegroup rafale-wing-external
	addpylon
		pylonct 3907
		addrack rafale-mica-no-rack

definegroup rafale-wing-middle
	addpylon
		pylonct 0
		addrack rafale-tank-wing-middle
	addpylon
		pylonct 3908
		addrack rafale-mica-rack
		addrack rafale-ag-wings
		addrack rafale-triple-bombs
		addrack rafale-triple-brimstone

definegroup rafale-wing-internal
	addpylon
		pylonct 0
		addrack rafale-tank-wing-internal
	addpylon
		pylonct 3909
		addrack rafale-ag-wings
		addrack rafale-triple-bombs
		addrack rafale-triple-brimstone

definegroup rafale-under-rear
	addpylon
		pylonct 3910
		addrack rafale-mica-no-rack

definegroup rafale-under-front
	addpylon
		pylonct 0

definegroup rafale-under-middle
	addpylon
		pylonct 0
		addrack rafale-tank-center
		addrack rafale-camera-center
		addrack rafale-agm-center
		addrack rafale-mica-center
		addrack rafale-bombs-center-short
		addrack rafale-bombs-center-long


########  #######  ########  ##    ##    ###    ########   #######  
   ##    ##     ## ##     ## ###   ##   ## ##   ##     ## ##     ## 
   ##    ##     ## ##     ## ####  ##  ##   ##  ##     ## ##     ## 
   ##    ##     ## ########  ## ## ## ##     ## ##     ## ##     ## 
   ##    ##     ## ##   ##   ##  #### ######### ##     ## ##     ## 
   ##    ##     ## ##    ##  ##   ### ##     ## ##     ## ##     ## 
   ##     #######  ##     ## ##    ## ##     ## ########   #######  

definerack gr4-aimleft
	rackjettmodes NONE
	weapjettmodes NONE
	rackct 3086
	rackstations 1
	addwclass aim

definerack gr4-aimright
	rackjettmodes NONE
	weapjettmodes NONE
	rackct 3088
	rackstations 1
	addwclass aim

definerack gr4-ALARMLeft
	rackjettmodes NONE
	weapjettmodes NONE
	rackct 3092
	rackstations 1
	addwclass harm

definerack gr4-ALARMRight
	rackjettmodes NONE
	weapjettmodes NONE
	rackct 3087
	rackstations 1
	addwclass harm

definerack gr4-ALARMFuse
	rackjettmodes NONE
	weapjettmodes NONE
	rackct 3835
	rackstations 1
	addwclass harm

definerack gr4-ALARMWing
	rackjettmodes NONE
	weapjettmodes NONE
	rackct 3836
	rackstations 1
	addwclass harm

definerack gr4-brim
	rackjettmodes NONE
	weapjettmodes NONE
	rackct 3085
	rackstations 6
	addwid 109
	addloadorder 0 1 2 3 4 5

definerack gr4-bombx4
	rackjettmodes SELECTIVE,EMERGENCY
	weapjettmodes NONE
	rackct 3078
	rackstations 4
	addwclass bomb
	addloadorder 0 1 2 3

# Two position in tandem.
definerack gr4-bombx2
	rackjettmodes SELECTIVE,EMERGENCY
	weapjettmodes NONE
	rackct 3075
	rackstations 2
	addwclass bomb
	addwid 167
	addloadorder 1 0

definerack gr4-shoulder-pos1
	rackjettmodes NONE
	weapjettmodes NONE
	rackct 0
	rackstations 1
	addwclass bomb, gbu

# Uses the second attachment point on the fuselage shoulder pylon. This is further aft than position 1.
definerack gr4-shoulder-pos2
	rackjettmodes SELECTIVE,EMERGENCY
	weapjettmodes NONE
	rackct 3837
	rackstations 1
	addwclass tank, agm

definerack gr4-shoulder-offsetx2
	rackjettmodes NONE
	weapjettmodes NONE
	rackct 3838
	rackstations 2
	addloadorder 1 0
	addwid 167

definerack gr4-shoulder-offset
	rackjettmodes NONE
	weapjettmodes NONE
	rackct 3838
	rackstations 1
	addloadorder 0
	addwclass gbu

# This is the one that gets the TGP
definegroup gr4-shoulderLeft
	addpylon
		pylonct 0
		addrack gr4-ALARMFuse
		addrack gr4-shoulder-offsetx2
		addrack gr4-shoulder-offset
		addrack gr4-shoulder-pos1
		addrack gr4-shoulder-pos2
		addrack gr4-brim
		addrack gr4-bombx2
		addrack gr4-bombx4

definegroup gr4-shoulderRight
	addpylon
		pylonct 0
		addrack gr4-ALARMFuse
		addrack gr4-shoulder-pos1
		addrack gr4-shoulder-pos2
		addrack gr4-brim
		addrack gr4-bombx2
		addrack gr4-bombx4

definegroup gr4-wingLeft
	addpylon
		addrack gr4-aimleft
		addrack gr4-ALARMLeft

definegroup gr4-wingRight
	addpylon
		addrack gr4-aimright
		addrack gr4-ALARMRight

definegroup gr4-wing
	addpylon
		addrack no-rack
		addrack gr4-ALARMWing
		
definegroup gr4-centre
	addpylon
		pylonct 3839
		addrack gr4-ALARMFuse

########  #######  ########  ##    ##    ###    ########   #######     #### ########   ######           ######   
   ##    ##     ## ##     ## ###   ##   ## ##   ##     ## ##     ##     ##  ##     ## ##    ##         ##    ##  
   ##    ##     ## ##     ## ####  ##  ##   ##  ##     ## ##     ##     ##  ##     ## ##               ##        
   ##    ##     ## ########  ## ## ## ##     ## ##     ## ##     ##     ##  ##     ##  ######  ####### ##   #### 
   ##    ##     ## ##   ##   ##  #### ######### ##     ## ##     ##     ##  ##     ##       ##         ##    ##  
   ##    ##     ## ##    ##  ##   ### ##     ## ##     ## ##     ##     ##  ##     ## ##    ##         ##    ##  
   ##     #######  ##     ## ##    ## ##     ## ########   #######     #### ########   ######           ######   

definerack ids-g-bombx4
	rackjettmodes SELECTIVE,EMERGENCY
	weapjettmodes NONE
	rackct 3078
	rackstations 4
	addwclass bomb
	addloadorder 0 1 2 3

# Two position in tandem.
definerack ids-g-bombx2
	rackjettmodes SELECTIVE,EMERGENCY
	weapjettmodes NONE
	rackct 3075
	rackstations 2
	addwclass bomb
	addwid 167
	addloadorder 1 0

definerack ids-g-shoulder-pos1
	rackjettmodes NONE
	weapjettmodes NONE
	rackct 0
	rackstations 1
	addwclass bomb, gbu

# Uses the second attachment point on the fuselage shoulder pylon. This is further aft than position 1.
definerack ids-g-shoulder-pos2
	rackjettmodes SELECTIVE,EMERGENCY
	weapjettmodes NONE
	rackct 3837
	rackstations 1
	addwclass tank, agm

definerack ids-g-shoulder-offsetx2
	rackjettmodes NONE
	weapjettmodes NONE
	rackct 3838
	rackstations 2
	addloadorder 1 0
	addwid 167

definerack ids-g-shoulder-offset
	rackjettmodes NONE
	weapjettmodes NONE
	rackct 3838
	rackstations 1
	addloadorder 0
	addwclass gbu

# This is the one that gets the TGP
definegroup ids-g-shoulderLeft
	addpylon
		pylonct 0
		addrack ids-g-shoulder-offsetx2
		addrack ids-g-shoulder-offset
		addrack ids-g-shoulder-pos1
		addrack ids-g-shoulder-pos2
		addrack ids-g-bombx2
		addrack ids-g-bombx4

definegroup ids-g-shoulderRight
	addpylon
		pylonct 0
		addrack ids-g-shoulder-pos1
		addrack ids-g-shoulder-pos2
		addrack ids-g-bombx2
		addrack ids-g-bombx4

definegroup ids-ecr-wingRail
	addpylon
		addrack aim-no-rail

definegroup ids-g-wing
	addpylon
		addrack no-rack
		
definegroup ids-g-centre
	addpylon
		pylonct 3839

########  #######  ########  ##    ##    ###    ########   #######     ########  ######  ########           ######   
   ##    ##     ## ##     ## ###   ##   ## ##   ##     ## ##     ##    ##       ##    ## ##     ##         ##    ##  
   ##    ##     ## ##     ## ####  ##  ##   ##  ##     ## ##     ##    ##       ##       ##     ##         ##        
   ##    ##     ## ########  ## ## ## ##     ## ##     ## ##     ##    ######   ##       ########  ####### ##   #### 
   ##    ##     ## ##   ##   ##  #### ######### ##     ## ##     ##    ##       ##       ##   ##           ##    ##  
   ##    ##     ## ##    ##  ##   ### ##     ## ##     ## ##     ##    ##       ##    ## ##    ##          ##    ##  
   ##     #######  ##     ## ##    ## ##     ## ########   #######     ########  ######  ##     ##          ######   

definegroup ecr-g-shoulder
	addpylon
		pylonct 0
		addrack lau-118

definegroup ecr-g-wing
	addpylon
		addrack no-rack
		addrack lau-118
		
definegroup ecr-g-centre
	addpylon
		pylonct 3839


########  #######  ########  ##    ##    ###    ########   #######     #### ########   ######          ####
   ##    ##     ## ##     ## ###   ##   ## ##   ##     ## ##     ##     ##  ##     ## ##    ##          ## 
   ##    ##     ## ##     ## ####  ##  ##   ##  ##     ## ##     ##     ##  ##     ## ##                ## 
   ##    ##     ## ########  ## ## ## ##     ## ##     ## ##     ##     ##  ##     ##  ######  #######  ## 
   ##    ##     ## ##   ##   ##  #### ######### ##     ## ##     ##     ##  ##     ##       ##          ## 
   ##    ##     ## ##    ##  ##   ### ##     ## ##     ## ##     ##     ##  ##     ## ##    ##          ## 
   ##     #######  ##     ## ##    ## ##     ## ########   #######     #### ########   ######          ####

definerack ids-i-aimleft
	rackjettmodes NONE
	weapjettmodes NONE
	rackct 3889
	rackstations 1
	addwclass aim

definerack ids-i-aimright
	rackjettmodes NONE
	weapjettmodes NONE
	rackct 3890
	rackstations 1
	addwclass aim

definegroup ids-i-wingLeft
	addpylon
		addrack ids-i-aimleft

definegroup ids-i-wingRight
	addpylon
		addrack ids-i-aimright


##     ## ####  ######            #######   #######
###   ###  ##  ##    ##          ##     ## ##     ##
#### ####  ##  ##                       ##        ##
## ### ##  ##  ##   #### #######  #######   #######
##     ##  ##  ##    ##          ##               ##
##     ##  ##  ##    ##          ##        ##     ##
##     ## ####  ######           #########  #######

definegroup mig23-wing-left
	addpylon
		pylonct 0
		addrack apu-23
		addrack apu-13
		addrack apu-60L
		addrack bd-30
		addrack mbd-2L

definegroup mig23-wing-right
	addpylon
		pylonct 0
		addrack apu-23
		addrack apu-13
		addrack apu-60R
		addrack bd-30
		addrack mbd-2R

definegroup mig23-shoulder-left
	addpylon
		pylonct 0
		addrack apu-23
		addrack apu-13
		addrack apu-60L
		addrack bd-30
		addrack mbd-2L

definegroup mig23-shoulder-right
	addpylon
		pylonct 0
		addrack apu-23
		addrack apu-13
		addrack apu-60R
		addrack bd-30
		addrack mbd-2R

definegroup mig23-centre
	addpylon
		pylonct 0
		addrack ptb-800
		addrack bd-30


##     ## ####  ######            #######  #########
###   ###  ##  ##    ##          ##     ## ##
#### ####  ##  ##                       ## ##
## ### ##  ##  ##   #### #######  #######  #######
##     ##  ##  ##    ##          ##               ##
##     ##  ##  ##    ##          ##               ##
##     ## ####  ######           ######### #######

# AA-8 single 
definerack Mig25-apu60
	weapjettmodes EMERGENCY,SELECTIVE
	rackjettmodes EMERGENCY,SELECTIVE 
	rackct 2816
	rackstations 1
	addwid 12

# AA-8 double left
definerack Mig25-AA8dualL
	weapjettmodes EMERGENCY,SELECTIVE
	rackjettmodes EMERGENCY,SELECTIVE 
	rackct 2832
	rackstations 2
	addwid 12	
	
# AA-8 double right
definerack Mig25-AA8dualR
	weapjettmodes EMERGENCY,SELECTIVE
	rackjettmodes EMERGENCY,SELECTIVE 
	rackct 2833
	rackstations 2
	addwid 12

# Outer Mig-25 Pylon 
definerack Mig25-outer
	weapjettmodes EMERGENCY,SELECTIVE
	rackjettmodes EMERGENCY,SELECTIVE 
	rackct 3953
	rackstations 1
	addwclass aim
	
# Inner Mig-25 Pylon 
definerack Mig25-inner
	weapjettmodes EMERGENCY,SELECTIVE
	rackjettmodes EMERGENCY,SELECTIVE 
	rackct 3952
	rackstations 1
	addwclass aim ecm

#Mig-25 underbelly tank
definerack Mig25-Tank   
	weapjettmodes NONE
	rackjettmodes NONE  
	rackct 0
	rackstations 1
	addwid 379
	
# Mig-25 Group definition ###################################################

definegroup mig25-out-left
	addpylon
		pylonct 0
		addrack Mig25-apu60
		addrack Mig25-AA8dualL
		addrack Mig25-outer
		
definegroup mig25-out-right
	addpylon
		pylonct 0
		addrack Mig25-apu60
		addrack Mig25-AA8dualR
		addrack Mig25-outer
		
definegroup mig25-inner
	addpylon
		pylonct 0
		addrack Mig25-inner

definegroup mig25-center
	addpylon
		pylonct 0	
		addrack Mig25-Tank


##     ## ####  ######            #######    #######  
###   ###  ##  ##    ##          ##     ##  ##     ## 
#### ####  ##  ##                       ##        ##
## ### ##  ##  ##   #### #######  #######        ## 
##     ##  ##  ##    ##          ##             ## 
##     ##  ##  ##    ##          ##            ##    
##     ## ####  ######           #########    ##


definerack mig27-no-rack
	rackct 0
	rackstations 1
	weapjettmodes SELECTIVE
	rackjettmodes NONE
	addwclass bomb, gbu

definerack mig27-AGM
	rackct 2734
	rackstations 1
	weapjettmodes SELECTIVE
	rackjettmodes NONE
	addwid 92 93 94 95 96 97 100 101 102 270

definerack mig27-ECM
	ractct 2834
	rackstation 1
	weapjettmodes NONE
	rackjettmodes NONE
	addwclass ecm

definegroup mig27-rear-right
	addpylon
		pylonct 0
		addrack mig27-no-rack

definegroup mig27-wing-left
	addpylon
		pylonct 0
		addrack mig27-AGM
		addrack apu-23
		addrack apu-13
		addrack apu-60L
		addrack bd-30
		addrack mbd-2L

definegroup mig27-wing-right
	addpylon
		pylonct 0
		addrack mig27-AGM
		addrack apu-23
		addrack apu-13
		addrack apu-60R
		addrack bd-30
		addrack mbd-2R

definegroup mig27-shoulder-left
	addpylon
		pylonct 0
		addrack apu-23
		addrack apu-13
		addrack apu-60L
		addrack bd-30
		addrack mbd-2L

definegroup mig27-shoulder-right
	addpylon
		pylonct 0
		addrack apu-23
		addrack apu-13
		addrack apu-60R
		addrack bd-30
		addrack mbd-2R

definegroup mig27-centre
	addpylon
		pylonct 0
		addrack mig27-ECM
		addrack ptb-800
		addrack bd-30

definegroup mig27-rear-right
	addpylon
		pylonct 0
		addrack mig27-no-rack

definegroup mig27-rear-left
	addpylon
		pylonct 0
		addrack mig27-no-rack


##     ## ####  ######            #######   #######
###   ###  ##  ##    ##          ##     ## ##     ##
#### ####  ##  ##                       ## ##     ##
## ### ##  ##  ##   #### #######  #######   ########
##     ##  ##  ##    ##          ##               ##      
##     ##  ##  ##    ##          ##              ##      
##     ## ####  ######           #########   #####

# AA-8 single 
definerack Mig29-apu60
	weapjettmodes EMERGENCY,SELECTIVE
	rackjettmodes EMERGENCY,SELECTIVE 
	rackct 2816
	rackstations 1
	addwid 12
	
# AA-10 A/B/C/C
definerack Mig29-apu470
	weapjettmodes EMERGENCY,SELECTIVE
	rackjettmodes EMERGENCY,SELECTIVE 
	rackct 2824
	rackstations 1
	addwid 14 15 16 17

# AA-11 
definerack Mig29-apu73
	weapjettmodes EMERGENCY,SELECTIVE
	rackjettmodes EMERGENCY,SELECTIVE 
	rackct 2826
	rackstations 1
	addwid 18
	
# AA-12 Mig-29S/M only 
definerack Mig29-apu170
	weapjettmodes EMERGENCY,SELECTIVE
	rackjettmodes EMERGENCY,SELECTIVE 
	rackct 3926
	rackstations 1
	addwid 19
	
# Mig-29 BOMB, Rocket, AGM, GBU 
definerack Mig29-AG    
	weapjettmodes EMERGENCY,SELECTIVE
	rackjettmodes EMERGENCY,SELECTIVE 
	rackct 2829
	rackstations 1
	addwclass bomb rocket agm gbu

# Mig-29 MER left 100kg Bombs
definerack Mig29-MER-L100    
	weapjettmodes EMERGENCY,SELECTIVE
	rackjettmodes EMERGENCY,SELECTIVE 
	rackct 2806
	rackstations 6
	addwid	153 154
	addloadorder 2 3 4 5

# Mig-29 MER right 100kg Bombs
definerack Mig29-MER-R100    
	weapjettmodes EMERGENCY,SELECTIVE
	rackjettmodes EMERGENCY,SELECTIVE 
	rackct 2807
	rackstations 6
	addwid	153 154
	addloadorder 2 3 4 5	

# Mig-29 MER left 250kg Bombs
definerack Mig29-MER-L250    
	weapjettmodes EMERGENCY,SELECTIVE
	rackjettmodes EMERGENCY,SELECTIVE 
	rackct 2806
	rackstations 6
	addwid	155 156
	addloadorder 0 1

# Mig-29 MER right 250kg Bombs
definerack Mig29-MER-R250    
	weapjettmodes EMERGENCY,SELECTIVE
	rackjettmodes EMERGENCY,SELECTIVE 
	rackct 2807
	rackstations 6
	addwid	155 156
	addloadorder 0 1


# Mig-29 underbelly tank
definerack Mig29-tank    
	weapjettmodes EMERGENCY,SELECTIVE
	rackjettmodes EMERGENCY,SELECTIVE 
	rackct 0
	rackstations 1
	addwid 315 # WID for 440Imp Tank

# Mig-29M additional wing pylon for AA 
definerack Mig29M-out    
	weapjettmodes EMERGENCY,SELECTIVE
	rackjettmodes EMERGENCY,SELECTIVE 
	rackct 3948
	rackstations 1
	addwid 12 18 19

# Mig-29M AGM Rack 
definerack Mig29M-AGM    
	weapjettmodes EMERGENCY,SELECTIVE
	rackjettmodes EMERGENCY,SELECTIVE 
	rackct 3949
	rackstations 1
	addwid 93 95 96 97 101 103 
	
# Mig-29M empty pylon for TGP and PTB-1150
definerack Mig29M-empty
	weapjettmodes EMERGENCY,SELECTIVE
	rackjettmodes EMERGENCY,SELECTIVE 
	rackct 3950
	rackstations 1
	addwid 377 378
	
# Mig-29 A/G/S Group definition

definegroup mig29-wing-ext
	addpylon
		pylonct 0
		addrack Mig29-apu60
		addrack Mig29-apu73
		addrack Mig29-apu170

definegroup mig29-wing-mid
	addpylon
		pylonct 0
		addrack Mig29-apu60
		addrack Mig29-apu73
		addrack Mig29-apu170
		addrack Mig29-AG
		
definegroup mig29-wing-left
	addpylon
		pylonct 0
		addrack Mig29-apu60
		addrack Mig29-apu73
		addrack Mig29-apu170
		addrack Mig29-apu470
		addrack Mig29-AG
		addrack Mig29-MER-L100
		addrack Mig29-MER-L250 
		
definegroup mig29-wing-right
	addpylon
		pylonct 0
		addrack Mig29-apu60
		addrack Mig29-apu73
		addrack Mig29-apu170
		addrack Mig29-apu470
		addrack Mig29-AG
		addrack Mig29-MER-R100
		addrack Mig29-MER-R250

definegroup mig29-center
	addpylon
		pylonct 0
		addrack Mig29-tank

# Mig-29M Group definition ###################################################

definegroup mig29M-wing-out
	addpylon
		pylonct 0
		addrack Mig29M-out
		
definegroup mig29M-wing-ext
	addpylon
		pylonct 0
		addrack Mig29-apu60
		addrack Mig29-apu73
		addrack Mig29-apu170

definegroup mig29M-wing-mid-left
	addpylon
		pylonct 0
		addrack Mig29-apu60
		addrack Mig29-apu73
		addrack Mig29-apu170
		addrack Mig29-AG 
		addrack Mig29M-AGM
		addrack Mig29-MER-L250
		addrack Mig29-MER-L100

definegroup mig29M-wing-mid-right
	addpylon
		pylonct 0
		addrack Mig29-apu60
		addrack Mig29-apu73
		addrack Mig29-apu170
		addrack Mig29-AG 
		addrack Mig29M-AGM
		addrack Mig29-MER-R250
		addrack Mig29-MER-R100
		
definegroup mig29M-wing-left
	addpylon
		pylonct 0
		addrack Mig29-apu60
		addrack Mig29-apu73
		addrack Mig29-apu170
		addrack Mig29-apu470
		addrack Mig29-AG 
		addrack Mig29M-AGM
		addrack Mig29-MER-L100
		addrack Mig29-MER-L250
		addrack Mig29M-empty
		
definegroup mig29M-wing-right
	addpylon
		pylonct 0
		addrack Mig29-apu60
		addrack Mig29-apu73
		addrack Mig29-apu170
		addrack Mig29-apu470
		addrack Mig29-AG 
		addrack Mig29M-AGM
		addrack Mig29-MER-R100
		addrack Mig29-MER-R250
		addrack Mig29M-empty

definegroup mig29M-center
	addpylon
		pylonct 0	
		addrack Mig29M-empty
		addrack Mig29-tank

########    ###     #######   #######  
########   ## ##   ##     ## ##     ## 
      ##  ##   ##         ##       ## 
      ## ##     ##  ########      ## 
##    ## #########        ##     ## 
######## ##     ## ##     ##    ## 
######## ##     ##  #######    ##


definerack JA-37-center-tank
	weapjettmodes EMERGENCY,SELECTIVE
	rackjettmodes NONE 
	rackct 0
	rackstations 1
	addwclass tank

definerack JA-37-center-ecm
	weapjettmodes NONE
	rackjettmodes NONE 
	rackct 0
	rackstations 1
	addwclass ecm

definegroup JA-37-2/8
	addpylon
		pylonsmsname LNCH	
		pylonct 0
        	addrack aim-no-rail

definegroup JA-37-3/7
	addpylon
		pylonsmsname LNCH	
		pylonct 0
        	addrack aim-no-rail

definegroup JA-37-4/6
	addpylon
		pylonsmsname LNCH	
		pylonct 0
        	addrack aim-no-rail


definegroup JA-37-5
	addpylon
		pylonsmsname LNCH	
		pylonct 0
        	addrack JA-37-center-tank
		addrack JA-37-center-ecm

   ###    ##     ##  #######  ########  
  ## ##   ##     ## ##     ## ##     ## 
 ##   ##  ##     ## ##     ## ##     ## 
##     ## ##     ##  #######  ########  
#########  ##   ##  ##     ## ##     ## 
##     ##   ## ##   ##     ## ##     ## 
##     ##    ###     #######  ########  

definegroup AV8B-HP1
	addpylon
		pylonct 3853
		addrack no-rack
       	addrack aim-no-rail

definegroup AV8B-HP2
	addpylon
		pylonct 3854
		addrack no-rack
		addrack lau-117
		addrack lau-118
		addrack aim-no-rail

definegroup AV8B-HP3
	addpylon
		pylonct 3855
		addrack no-rack
		addrack lau-117
		addrack lau-118

definegroup AV8B-HP5
	addpylon
		pylonct 3856
		addrack no-rack
		addrack lau-117
		addrack lau-118
	
definegroup AV8B-HP6
	addpylon
		pylonct 3857
		addrack no-rack
		addrack lau-117
		addrack lau-118
		addrack aim-no-rail

definegroup AV8B-HP7
	addpylon
		pylonct 3858
		addrack no-rack
       	addrack aim-no-rail
	
      ##    ###     ######   ##     ##    ###    ########
      ##   ## ##   ##    ##  ##     ##   ## ##   ##     ##
      ##  ##   ##  ##        ##     ##  ##   ##  ##     ##
      ## ##     ## ##   #### ##     ## ##     ## ########
##    ## ######### ##    ##  ##     ## ######### ##   ##
##    ## ##     ## ##    ##  ##     ## ##     ## ##    ##
 ######  ##     ##  ######    #######  ##     ## ##     ##

definerack JAG-Tandem
	weapjettmodes EMERGENCY,SELECTIVE
	rackjettmodes NONE 
	rackct 3863
	rackstations 2
	addwclass bomb
	addloadorder 0 1

definerack JAG-Tandem-centre
	weapjettmodes NONE
	rackjettmodes NONE 
	rackct 3521
	rackstations 2
	addwclass bomb gbu
	addloadorder 0 1

definegroup JAG-Overwing
	addpylon
		pylonct 3859
		addrack aim-no-rail

definegroup JAG-Outer
	addpylon
		pylonct 3860
		addrack no-rack

definegroup JAG-Inner
	addpylon
		pylonct 3861
		addrack no-rack
		addrack JAG-Tandem

definegroup JAG-Centre
	addpylon
		pylonct 3862
		addrack no-rack
		addrack JAG-Tandem-centre
		addrack ecm-camera-no-rack

  #####   ######## ##    ## ######## ########  ####  ######
##    ##  ##       ###   ## ##       ##     ##  ##  ##    ##
##        ##       ####  ## ##       ##     ##  ##  ##
##   #### ######   ## ## ## ######   ########   ##  ##
##    ##  ##       ##  #### ##       ##   ##    ##  ##
##    ##  ##       ##   ### ##       ##    ##   ##  ##    ##
 ######   ######## ##    ## ######## ##     ## ####  ######

definegroup generic-aim
	addpylon
		pylonsmsname LNCHW
		pylonct 0
	        addrack aim-no-rail

definegroup recessed-aim
	addpylon
		pylonsmsname MAU
		pylonct 0
			addrack aim-recessed-45
			addrack aim-no-rail
			addrack no-rack

# for a/c without pylons as part of the a/c LOD
definegroup pylon-left
	addpylon
		pylonsmsname LNCH	
		pylonct 1858
        	addrack aim-no-rail
	addpylon
		pylonsmsname MAU
		pylonct 1980
		addrack lau-117
		addrack lau-118
		addrack aim-with-rail
		addrack no-rack
		addrack lau-88-left
		addrack bru-42-left
		addrack bru-41-left

# for a/c without pylons as part of the a/c LOD
definegroup pylon-right
	addpylon
		pylonsmsname LNCH	
		pylonct 1858
        	addrack aim-no-rail
	addpylon
		pylonsmsname MAU
		pylonct 1980
		addrack lau-117
		addrack lau-118
		addrack aim-with-rail
		addrack no-rack
		addrack lau-88-right
		addrack bru-42-right
		addrack bru-41-right

# for a/c with pylons as part of the a/c LOD
definegroup nopylon-left
	addpylon
		pylonsmsname MAU
		addrack lau-117
		addrack lau-118
		addrack aim-with-rail
		addrack no-rack
		addrack lau-88-left
		addrack bru-42-left
		addrack bru-41-left
		addrack bru-61

# for a/c with pylons as part of the a/c LOD
definegroup nopylon-right
	addpylon
		pylonsmsname MAU
		addrack lau-117
		addrack lau-118
		addrack aim-with-rail
		addrack no-rack
		addrack lau-88-right
		addrack bru-42-right
		addrack bru-41-right
		addrack bru-61

# helo rack
definegroup 0
	addpylon
#		jettmodes EMERGENCY,SELECTIVE
		pylonct 0
		addrack no-rack
 EMERGENCY,SELECTIVE
		pylonct 0
		addrack no-rack
