#p38f.ini

[Type]
icon = P38
name = P38F
fullName = Lockheed P-38 F Lightning

[modifyer]
mass = 1.6
area = 1.45

[armor]
armorFactor = 1.3

[AirfoilWing]
al =  -20.0,   -16.0,  -12.0,  -8.0,   -4.0,   0,     4.0,   8.0,   12.0,  22.0
cll = -0.611,  -0.868, -0.868, -0.636, -0.311, 0.071, 0.411, 0.736, 0.968, 0.768
ad =  0.0,    4.0,    8.0,     12.0,    18.0
cdl = 0.00035, 0.0018, 0.026, 0.058, 0.098


[AirfoilTail]
al =  -16.0,  -12.0,  -8.0,   -4.0,   0,     4.0,   8.0,   12.0,  22
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 = 3.5
dihedral = 0.0
area = 50
flap = 0
flapLiftShift = 0.55
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 = 5.5
dihedral = 0.0
area = 55
flap = 0
flapLiftShift = 2.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 = 5.5
dihedral = 0.0
area = 55
flap = 0
flapLiftShift = 2.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 = 3.5
dihedral = 0.0
area = 50
flap = 0
flapLiftShift = 0.55
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 = 30.8
flap = 0
flapLiftShift = 2.0
flapDragShift = 0.02
flapCompressionStart = 350
flapCompressionEnd = 650
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 = 30.8
flap = 0
flapLiftShift = 2.0
flapDragShift = 0.02
flapCompressionStart = 350
flapCompressionEnd = 650
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 = 96
flap = 0
flapLiftShift = 1.2
flapDragShift = 0.01
airFoil = AirfoilTail

[fuselage]		
name = fuselage
mass = 48
designPos = 0, 0.0, -1.4
dimension = 1.54, 0.85, 2.6
area = 520

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

[guns]
number = 5
type = 3

[gun0]
position = 0.00136512, 0.130553, -1.94238
direction = 0, 0, -1
velocity = 500
dispersion = 0.03
caliber = 12.7
ammo = 120
reload = 90
tracer = 0

[gun1]
position = -0.114567, 0.1354, -1.79521
direction = 0, 0, -1
velocity = 500
dispersion = 0.03
caliber = 12.7
ammo = 120
reload = 80
tracer = 0

[gun2]
position = -0.056803, 0.200839, -1.88234
direction = 0, 0, -1
velocity = 500
dispersion = 0.03
caliber = 12.7
ammo = 120
reload = 110
tracer = 0

[gun3]
position = 0.0599372, 0.200435, -1.94003
direction = 0, 0, -1
velocity = 500
dispersion = 0.03
caliber = 12.7
ammo = 120
reload = 100
tracer = 0

[gun4]
position = 0.119317, 0.1354, -1.82465
direction = 0, 0, -1
velocity = 600
dispersion = 0.05
caliber = 20
explosive = 1.6
ammo = 120
reload = 100
tracer = 0

[hardpoints]
number = 4

[hardpoint0]
name = Port inner
position = -0.579715, 0.0195281, -0.183282
allowedOrdnace = 0, 1, 2
ordnaceDescription = Empty, Drop tank, Bomb
ordnaceValue = 0, 100, 1500
ordnaceModel = none, drop_tank, bomb

[hardpoint1]
name = Port outer
position = -1.95992, 0.124881, -0.183282
allowedOrdnace = 0, 1, 2, 3
ordnaceDescription = Empty, Drop tank, Bomb, Rockets
ordnaceValue = 0, 100, 1500, 550
ordnaceModel = none, drop_tank, bomb_mid, rocket

[hardpoint2]
name = Starb inner
position = 0.579715, 0.0195281, -0.183282
allowedOrdnace = 0, 1, 2
ordnaceDescription = Empty, Drop tank, Bomb
ordnaceValue = 0, 100, 1500
ordnaceModel = none, drop_tank, bomb

[hardpoint3]
name = Starb outer
position = 1.95992, 0.124881, -0.183282
allowedOrdnace = 0, 1, 2, 3
ordnaceDescription = Empty, Drop tank, Bomb, Rockets
ordnaceValue = 0, 100, 1500, 550
ordnaceModel = none, drop_tank, bomb_mid, rocket

[sensors]
portWingtipPosition = -3.70298, 0.280536, -0.058329
starboardWingtipPosition = 3.70298, 0.280536, -0.058329
nosePosition = 0.00207506, -0.0735387, -1.90739
topPosition = 0, 0.65, 0

[gear]	
portGearPosition = -1.22322, -1.04689, 0.12785
starboardGearPosition = 1.24184, -1.04689, 0.12785
tailGearPosition = 0.00309902, -1.04691, -1.432
maxRollingSpeed = 180
maxMovementSpeed = 230
maxAirSpeed = 280
momentDamping = 33
groundPitch = 0
reverseSteering = 1

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

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

[tgear]
upAngle = -80
downAngle = 0
speed = 0.5

[pilot]
position = 0, 0.45, -0.20

[AutoPilot]
stallAoaMin = -7
stallAoaEnergyMax = 6
stallAoaAnglesMax = 8
aimFactor = 1.0
emgPitch = 45
takeoffPitch = 80

[AutoPilotYaw]
kP = 0.005
kI = 0.0

[AutoPilotPitch]
kP = 0.01

[AutoPilotRoll]
i = true
kP = 0.015

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

[engines]
number = 2

[engine0]
maxThrustForce = 700
tourqueFactor = 0.0
engineDrag = 4
engineResponse = 0.1
element = 2
thrustPosition = -1.16526, 0.162578, -1.28978
exhaustPosition1 = 0, 0.16, 0
exhaustPosition2 = 0, 0.16, 0
superchargerAltitudes = 0, 800, 1800
superchargerFactors = 0.7, 0.8, 1.3
superchargerAltitudes = 0, 300, 800, 1600, 2200
superchargerFactors =   1, 1.2, 1.5, 1.3, 1.0

[engine1]
maxThrustForce = 700
tourqueFactor = 0.0
engineDrag = 4
engineResponse = 0.1
element = 1
thrustPosition = 1.16526, 0.162578, -1.28978
exhaustPosition1 = 0, 0.16, 0
exhaustPosition2 = 0, 0.16, 0
superchargerAltitudes = 0, 800, 1800
superchargerFactors = 0.7, 0.8, 1.3

[fuel]
max = 950

[OpponentGraphics]
modelExternal.keyLod1 = p38f_ext_lod1
modelExternal.keyLod2 = p38f_ext_lod2
modelExternal.keyLod3 = p38f_ext_lod3
modelExternal.keyLod4 = p38f_ext_lod3

modelPilot.keyLod1 = pilot01
modelPilot.position = 0, 0.45, -0.20

modelElevator.keyLod1 = p38f_elevator
modelElevator.relativePosition = 1.02447, 0.2099, 3.42839
modelElevator.rotationAxis = 1, 0, 0

modelRudder1.keyLod1 = p38f_prudder
modelRudder1.relativePosition = -1.16262, -0.166041, 3.46593
modelRudder1.rotationAxis = 0, 1, 0

modelRudder2.keyLod1 = p38f_srudder
modelRudder2.relativePosition = 1.16262, -0.166041, 3.46593
modelRudder2.rotationAxis = 0, 1, 0

modelPortAileron.keyLod1 = p38f_paileron
modelPortAileron.relativePosition = -2.11075, 0.222613, 0.284195
modelPortAileron.rotationVertex2 = -2.11075, 0.222613, 0.284195
modelPortAileron.rotationVertex1 = -3.46086, 0.262789, 0.152918

modelStarboardAileron.keyLod1 = p38f_saileron
modelStarboardAileron.relativePosition = 2.11075, 0.222613, 0.284195
modelStarboardAileron.rotationVertex1 = 2.11075, 0.222613, 0.284195
modelStarboardAileron.rotationVertex2 = 3.46086, 0.262789, 0.152918

modelPortGear.keyLod1 = p38f_pgear
modelPortGear.relativePosition = -1.11245, -0.152007, 0.122885
modelPortGear.rotationVertex2 = -1.11245, -0.152007, 0.122885
modelPortGear.rotationVertex1 = -1.03913, -0.152007, 0.122885

modelStarboardGear.keyLod1 = p38f_sgear
modelStarboardGear.relativePosition = 1.11245, -0.152007, 0.122885
modelStarboardGear.rotationVertex2 = 1.11245, -0.152007, 0.122885
modelStarboardGear.rotationVertex1 = 1.03913, -0.152007, 0.122885

modelTailGear.keyLod1 = p38f_ngear
modelTailGear.relativePosition = 0.0112705, -0.120341, -1.28697
modelTailGear.rotationVertex2 = 0.0112705, -0.120341, -1.28697
modelTailGear.rotationVertex1 = -0.0620522, -0.120341, -1.28697

[PlayerGraphics]
modelExternal.keyLod1 = p38f_ext_lod1
modelExternal.keyLod2 = p38f_ext_lod2
modelExternal.keyLod3 = p38f_ext_lod3
modelExternal.keyLod4 = p38f_ext_lod3
modelInternal.keyLod1 = p38f_int
modelShadow.keyLod1 = li_shadow

modelPilot.keyLod1 = pilot01
modelPilot.position = 0, 0.45, -0.20

modelProp1.keyLod1 = p38f_pprop
modelProp1.relativePosition = -1.16526, 0.162578, -1.28978
modelDisc1.keyLod1 = p38f_pdisc
modelDisc1.relativePosition = -1.16526, 0.162578, -1.28978

modelProp2.keyLod1 = p38f_sprop
modelProp2.relativePosition = 1.17185, 0.162092, -1.28978
modelDisc2.keyLod1 = p38f_sdisc
modelDisc2.relativePosition = 1.17185, 0.162092, -1.28978

modelElevator.keyLod1 = p38f_elevator
modelElevator.relativePosition = 1.02447, 0.2099, 3.42839
modelElevator.rotationAxis = 1, 0, 0

modelRudder1.keyLod1 = p38f_prudder
modelRudder1.relativePosition = -1.16262, -0.166041, 3.46593
modelRudder1.rotationAxis = 0, 1, 0

modelRudder2.keyLod1 = p38f_srudder
modelRudder2.relativePosition = 1.16262, -0.166041, 3.46593
modelRudder2.rotationAxis = 0, 1, 0

modelPortAileron.keyLod1 = p38f_paileron
modelPortAileron.relativePosition = -2.11075, 0.222613, 0.284195
modelPortAileron.rotationVertex2 = -2.11075, 0.222613, 0.284195
modelPortAileron.rotationVertex1 = -3.46086, 0.262789, 0.152918

modelStarboardAileron.keyLod1 = p38f_saileron
modelStarboardAileron.relativePosition = 2.11075, 0.222613, 0.284195
modelStarboardAileron.rotationVertex1 = 2.11075, 0.222613, 0.284195
modelStarboardAileron.rotationVertex2 = 3.46086, 0.262789, 0.152918

modelPortFlap.keyLod1 = p38f_pflap
modelPortFlap.relativePosition = -2.10855, 0.12067, 0.286369
modelPortFlap.rotationVertex1 = -2.10855, 0.12067, 0.286369
modelPortFlap.rotationVertex2 = -0.085221, 0.00624001, 0.628155

modelStarboardFlap.keyLod1 = p38f_sflap
modelStarboardFlap.relativePosition = 0.085221, 0.00624001, 0.628155
modelStarboardFlap.rotationVertex1 =  0.085221, 0.00624001, 0.628155
modelStarboardFlap.rotationVertex2 = 2.10855, 0.12067, 0.286369

modelPortGear.keyLod1 = p38f_pgear
modelPortGear.relativePosition = -1.11245, -0.152007, 0.122885
modelPortGear.rotationVertex2 = -1.11245, -0.152007, 0.122885
modelPortGear.rotationVertex1 = -1.03913, -0.152007, 0.122885

modelStarboardGear.keyLod1 = p38f_sgear
modelStarboardGear.relativePosition = 1.11245, -0.152007, 0.122885
modelStarboardGear.rotationVertex2 = 1.11245, -0.152007, 0.122885
modelStarboardGear.rotationVertex1 = 1.03913, -0.152007, 0.122885

modelTailGear.keyLod1 = p38f_ngear
modelTailGear.relativePosition = 0.0112705, -0.120341, -1.28697
modelTailGear.rotationVertex2 = 0.0112705, -0.120341, -1.28697
modelTailGear.rotationVertex1 = -0.0620522, -0.120341, -1.28697

modelGunsight.keyLod1 = gunsight
modelGunsight.position = 0, 0.45, -0.6
modelGunsight.scale = 0.5, 0.5, 0.5














