# me109e.ini
# Physics and mechanical properties

[Type]
icon = Bf109
name = BF109G
fullName = Messerschmitt Bf 109 G

[modifyer]
mass = 0.85

[AirfoilWing]
al =  -20.0,   -16.0,  -12.0,  -8.0,   -4.0,   0,     4.0,   8.0,   12.0,  16.0
cll = -0.611,  -0.868, -0.868, -0.636, -0.311, 0.071, 0.511, 0.836, 0.968, 0.768
ad =  0.0,    4.0,    8.0,     12.0,    16.0
cdl = 0.004, 0.007, 0.016, 0.038, 0.08

[AirfoilTail]
al =  -16.0,  -12.0,  -8.0,   -4.0,   0,     4.0,   8.0,   12.0,  16
cll = -0.611, -0.868, -0.636, -0.311, 0,   0.311, 0.636, 0.868, 0.611
ad =  0.0, 4.0, 8.0, 12.0, 16.0, 26
cdl = 0.0018,0.0025,0.0041,0.0211,0.0611,0.2

[wingOutboardPort]
name = wingOutboardPort
mass = 3.575
designPos = -2.43, -0.29, 0
dimension = 1.56, 0.12, 1.1
incidence = 0.5
dihedral = 0.0
area = 40
flap = 0
flapLiftShift = 0.65
flapDragShift = 0.10
airFoil = AirfoilWing

[wingInboardPort]
name = wingInboardPort
mass = 5.575
designPos = -1.06, -0.37, 0.23
dimension = 1.33, 0.22, 1.66 
incidence = 3.5
dihedral = 0.0
area = 50
flap = 0
flapLiftShift = 1.5
flapDragShift = 0.35
airFoil = AirfoilWing

[wingInboardStarboard]
name = wingInboardStarboard
mass = 5.575
designPos = 1.06, -0.37, 0.23
dimension = 1.33, 0.22, 1.66 
incidence = 3.5
dihedral = 0.0
area = 50
flap = 0
flapLiftShift = 1.5
flapDragShift = 0.35
airFoil = AirfoilWing

[wingOutboardStarboard]
name = wingOutboardStarboard
mass = 3.575
designPos = 2.43, -0.29, 0
dimension = 1.56, 0.12, 1.1
incidence = 0.5
dihedral = 0.0
area = 40
flap = 0
flapLiftShift = 0.65
flapDragShift = 0.10
airFoil = AirfoilWing

[horizontalStabPort]
name = horizontalStabPort
mass = 0.5
designPos = -0.425077, 0.156209, 3.83641
dimension = 0.91, 0.06, 0.61
incidence = 1.5
dihedral = 0
area = 20.8
flap = 0
flapLiftShift = 2.2
flapDragShift = 0.02
airFoil = AirfoilTail

[horizontalStabStarboard]
name = horizontalStabStarboard
mass = 0.5
designPos = 0.425077, 0.156209, 3.83641
dimension = 0.91, 0.06, 0.61
incidence = 1.5
dihedral = 0
area = 20.8
flap = 0
flapLiftShift = 2.2
flapDragShift = 0.02
airFoil = AirfoilTail

[verticalStab]
name = verticalStab
mass = 0.5
designPos = 0.0, 0.415336, 3.94961
dimension = 0.08, 1.11, 0.89
incidence = 0
dihedral = 90
area = 66
flap = 0
flapLiftShift = 1.6
flapDragShift = 0.01
airFoil = AirfoilTail

[fuselage]		
name = fuselage
mass = 37.81
designPos = 0, 0.0, -1.8
dimension = 0.54, 0.85, 2.4
area = 200

[flaps]		
speed = 0.2
minAngle = 0
maxAngle = 50

[guns]
number = 4

[gun0]
position = -0.090498, 0.277139, -0.726375
direction = 0, 0, -1
velocity = 600
dispersion = 0.03
caliber = 20
ammo = 100
reload = 100
tracer = 1

[gun1]
position = 0.090498, 0.277139, -0.726375
direction = 0, 0, -1
velocity = 600
dispersion = 0.03
caliber = 20
ammo = 100
reload = 100
tracer = 1

[gun2]
position = -1.1743, -0.125023, -0.369123
direction = -0.0001, 0, -1
velocity = 600
dispersion = 0.02
caliber = 20
explosive = 2
ammo = 35
reload = 100
tracer = 1

[gun3]
position = 1.1743, -0.125023, -0.369123
direction = 0.0001, 0, -1
velocity = 600
dispersion = 0.02
caliber = 20
explosive = 2
ammo = 35
reload = 100
tracer = 1

[hardpoints]
number = 3

[hardpoint0]
name = Belly
position = 0, -0.4, -0.19
allowedOrdnace = 0, 1, 2
ordnaceDescription = Empty, Drop tank, Bomb
ordnaceValue = 0, 100, 1500
ordnaceModel = none, drop_tank, bomb

[hardpoint1]
name = Port
position = -1.55, -0.11, -0.18
allowedOrdnace = 0, 2, 3
ordnaceDescription = Empty, Bomb, Rockets
ordnaceValue = 0, 1200, 650
ordnaceModel = none, bomb_mid, rocket

[hardpoint2]
name = Starboard
position = 1.55, -0.11, -0.18
allowedOrdnace = 0, 2, 3
ordnaceDescription = Empty, Bomb, Rockets
ordnaceValue = 0, 1200, 650
ordnaceModel = none, bomb_mid, rocket

[sensors]
portWingtipPosition = -3.16, -0.1, 0
starboardWingtipPosition = 3.16, -0.1, 0
nosePosition = 0, 0, -2.2
topPosition = 0, 0.5, 0

[gear]	
portGearPosition = -0.5, -1.1, -0.75
starboardGearPosition = 0.5, -1.1, -0.75
tailGearPosition = 0, -0.48, 2.4
maxRollingSpeed = 150
maxMovementSpeed = 200
maxAirSpeed = 250

[pgear]
upAngle = 80
downAngle = 0
speed = 0.16

[sgear]
upAngle = -80
downAngle = 0
speed = 0.2

[pilot]
position = 0, 0.4, 0.53

[AutoPilot]
stallAoaMin = -7
stallAoaEnergyMax = 6
stallAoaAnglesMax = 10
aimFactor = 1.8
emgPitch = 35
takeoffPitch = 35
safeAltDist = 150

[AutoPilotYaw]
kP = 0.005
kI = 0.0

[AutoPilotPitch]
kP = 0.03
kI = 0.01

[AutoPilotRoll]
i = true
kP = 0.02
kI = 0.0

[AutoPilotSpeed]
kP = 0.1
kI = 0.01
uMin = -1.0
uMax = 1.0

[engine]
type = 2
maxThrustForce = 600
tourqueFactor = 0.00001
thrustPosition = 0, 0, -1.67
exhaustPosition1 = 0.32, -0.15, 0
exhaustPosition2 = -0.32, -0.15, 0
superchargerAltitudes = 0, 300, 800, 1600, 2200
superchargerFactors =   0.9, 1.25, 1.65, 1.8, 1.3

[fuel]
max = 250

[OpponentGraphics]
modelExternal.keyLod1 = bf109g01_ext_lod1
modelExternal.keyLod2 = bf109g01_ext_lod2
modelExternal.keyLod3 = bf109g01_ext_lod3
modelExternal.keyLod4 = aircraft_lod4

modelPilot.keyLod1 = pilot02
modelPilot.position = 0, 0.4, 0.53

modelProp.keyLod1 = bf109g01_prop
modelProp.relativePosition = 0.000802239, 0.00435028, -1.37402

modelDisc.keyLod1 = bf109g01_disc
modelDisc.relativePosition = 0.000802239, 0.00435028, -1.37402

modelElevator.keyLod1 = bf109g01_elevator
modelElevator.relativePosition = 0, 0.45, 3.18
modelElevator.rotationAxis = 1, 0, 0

modelRudder.keyLod1 = bf109g01_rudder
modelRudder.relativePosition = 0, 0.06, 3.31
modelRudder.rotationVertex1 = 0, 0.071788, 3.30512
modelRudder.rotationVertex2 = 0, 0.702167, 3.27987

modelPortAileron.keyLod1 = bf109g01_paileron
modelPortAileron.relativePosition = -2.33626, 0.01844, 0.318309
modelPortAileron.rotationVertex1 = -2.33626, 0.01844, 0.318309
modelPortAileron.rotationVertex2 = -1.54876, -0.062211, 0.442871

modelStarboardAileron.keyLod1 = bf109g01_saileron
modelStarboardAileron.relativePosition = 2.34921, 0.020256, 0.316237
modelStarboardAileron.rotationVertex1 = 1.5622, -0.061013, 0.44219
modelStarboardAileron.rotationVertex2 = 2.34921, 0.020256, 0.316237

modelPortFlap.keyLod1 = bf109g01_pflap
modelPortFlap.relativePosition = -0.323981, -0.184487, 0.595736
modelPortFlap.rotationVertex1 = -1.54442, -0.062211, 0.444954
modelPortFlap.rotationVertex2 = -0.323981, -0.184487, 0.595736

modelStarboardFlap.keyLod1 = bf109g01_sflap
modelStarboardFlap.relativePosition = 0.341433, -0.184233, 0.591316
modelStarboardFlap.rotationVertex1 =  0.341433, -0.184233, 0.591316
modelStarboardFlap.rotationVertex2 = 1.55653, -0.061013, 0.445454

modelPortGear.keyLod1 = bf109g01_pgear
modelPortGear.relativePosition = -0.367112, -0.29519, -0.137387
modelPortGear.rotationVertex1 = -0.367112, -0.29519, -0.137387
modelPortGear.rotationVertex2 = -0.364249, -0.274765, -0.207125

modelStarboardGear.keyLod1 = bf109g01_sgear
modelStarboardGear.relativePosition = 0.397194, -0.293219, -0.137387
modelStarboardGear.rotationVertex1 = 0.397194, -0.293219, -0.137387
modelStarboardGear.rotationVertex2 = 0.394688, -0.272747, -0.207125

[PlayerGraphics]
modelExternal.keyLod1 = bf109g01_ext_lod1
modelExternal.keyLod2 = bf109g01_ext_lod2
modelExternal.keyLod3 = bf109g01_ext_lod3
modelExternal.keyLod4 = aircraft_lod4
modelInternal.keyLod1 = bf109g01_int
modelShadow.keyLod1 = bf_shadow

modelPilot.keyLod1 = pilot02
modelPilot.position = 0, 0.4, 0.53

modelProp.keyLod1 = bf109g01_prop
modelProp.relativePosition = 0.000802239, 0.00435028, -1.37402

modelDisc.keyLod1 = bf109g01_disc
modelDisc.relativePosition = 0.000802239, 0.00435028, -1.37402

modelGunsight.keyLod1 = gunsight
modelGunsight.position = 0, 0.4, 0
modelGunsight.scale = 0.8, 0.8, 0.8

modelElevator.keyLod1 = bf109g01_elevator
modelElevator.relativePosition = 0, 0.45, 3.18
modelElevator.rotationAxis = 1, 0, 0

modelRudder.keyLod1 = bf109g01_rudder
modelRudder.relativePosition = 0, 0.06, 3.31
modelRudder.rotationVertex1 = 0, 0.071788, 3.30512
modelRudder.rotationVertex2 = 0, 0.702167, 3.27987

modelPortAileron.keyLod1 = bf109g01_paileron
modelPortAileron.relativePosition = -2.33626, 0.01844, 0.318309
modelPortAileron.rotationVertex1 = -2.33626, 0.01844, 0.318309
modelPortAileron.rotationVertex2 = -1.54876, -0.062211, 0.442871

modelStarboardAileron.keyLod1 = bf109g01_saileron
modelStarboardAileron.relativePosition = 2.34921, 0.020256, 0.316237
modelStarboardAileron.rotationVertex1 = 1.5622, -0.061013, 0.44219
modelStarboardAileron.rotationVertex2 = 2.34921, 0.020256, 0.316237

modelPortFlap.keyLod1 = bf109g01_pflap
modelPortFlap.relativePosition = -0.323981, -0.184487, 0.595736
modelPortFlap.rotationVertex1 = -1.54442, -0.062211, 0.444954
modelPortFlap.rotationVertex2 = -0.323981, -0.184487, 0.595736

modelStarboardFlap.keyLod1 = bf109g01_sflap
modelStarboardFlap.relativePosition = 0.341433, -0.184233, 0.591316
modelStarboardFlap.rotationVertex1 =  0.341433, -0.184233, 0.591316
modelStarboardFlap.rotationVertex2 = 1.55653, -0.061013, 0.445454

modelPortGear.keyLod1 = bf109g01_pgear
modelPortGear.relativePosition = -0.367112, -0.29519, -0.137387
modelPortGear.rotationVertex1 = -0.367112, -0.29519, -0.137387
modelPortGear.rotationVertex2 = -0.364249, -0.274765, -0.207125

modelStarboardGear.keyLod1 = bf109g01_sgear
modelStarboardGear.relativePosition = 0.397194, -0.293219, -0.137387
modelStarboardGear.rotationVertex1 = 0.397194, -0.293219, -0.137387
modelStarboardGear.rotationVertex2 = 0.394688, -0.272747, -0.207125

#modelTailGear.keyLod1 = bf109g01_tgear
#modelTailGear.relativePosition = -0.0417214, 0.108909, 2.81919
#modelTailGear.rotationVertex1 = -0.0417214, 0.108909, 2.81919
#modelTailGear.rotationVertex2 = 0.0385805, 0.108909, 2.81919



















