// Identity
Name JU-87 D3
ShortName 44_Ju87D3
Description German Ground Attack Aircraft __Uses MG 17 / 250kg/500lb Bomb __Year Introduced : 1943

// Rendering
Icon 44_Ju87D3
Model W44.Ju87D3
Texture Skin44_Ju87D3
CameraDistance 10.0

// Recipe and inventory
AddRecipeParts core 1 44_AttackerAircraftBody
AddRecipeParts rightWing 1 44_Mg17
AddRecipeParts leftWing 1 44_Mg17
CargoSlots 30
BombSlots 1
MissileSlots 0
FuelTankSize 6000

// Paintjobs
AddDye 3 silver
AddDye 6 green

// Real-world specifications
RealMassKg 6600
RealEnginePowerPS 1400
RealMaxSpeedKmh 410
RealWingSpanM 13.805
RealWingAreaM2 31.9
RealClimbRateMs 8.6

// Movement
Mode Plane
MaxThrottle 2.5
MaxNegativeThrottle 0.0
TurnLeftSpeed 1.0
TurnRightSpeed 1.0
LookUpSpeed 1.5
LookDownSpeed 1.5
RollLeftSpeed 1.75
RollRightSpeed 1.75
RestingPitch 10.0
Drag 1.0

// Wheels and tracks
WheelPosition 0 1 -11 -30
WheelPosition 1 0 -11 30
WheelPosition 2 -145 19 0
WheelSpringStrength 0.125
Propeller 0 -25 -27 -30 core 44_Metal_Propeller
Propeller 1 -25 -27 30 core 44_Metal_Propeller
Propeller 2 -70 -54 0 core 44_Metal_Propeller

// Weapons
Primary Gun
Secondary Bomb
ReadWeaponsFromGunTypes true
ShootDelayPrimary 2
ShootDelaySecondary 50
ModePrimary FullAuto
ModeSecondary FullAuto
AlternatePrimary False
AlternateSecondary False
BulletSpread 4
BulletSpeed 12
BulletDetection 10
AllowAllAmmo False
AddAmmo 44_250kg500lbBomb
ShootPointPrimary 5 26 43 core 44_Mg17
ShootPointPrimary 5 26 -43 core 44_Mg17
ShootPointSecondary 25 -5 0 core
GunOrigin 1 -51 26 0
ShootParticlesPrimary flansmod.fmflame 0 0 0
ShootParticlesPrimary flansmod.fmflame 0 0 0
ShootParticlesPrimary flansmod.fmflame 0 0 0
ShootParticlesPrimary flansmod.fmflame 0 0 0
ShootParticlesPrimary flansmod.fmflame 0 0 0

// Armour and damage
UseRealisticVehicleHealth true
IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.21
CollisionDamageTimes 20

// Parts and collision
SetupPart core 500 -175 9 -17 230 48 34
SetupPart rightWing 300 -69 20 9 74 25 140
SetupPart leftWing 300 -69 20 -149 74 25 140
CollisionPoint 45 36 0 core
CollisionPoint -9 31 111 core
CollisionPoint -9 31 -111 core
CollisionPoint -116 36 0 core

// Seats
Pilot -23 33 0
Passengers 1
Passenger 1 -41 31 0 core 140 220 -5 45 44_Mg15 PassengerGun1

// Optics
heliGuiSeat 1 true
heliGUI warfare44_bombsightgui

// Sounds
StartSound FighterStart
StartSoundLength 22
PropSound FighterEngine
PropSoundLength 28
ShootSoundPrimary PlaneMGShoot
ShootSoundSecondary BombDrop
