// Identity
Name JU-87 G1
ShortName 44_Ju87G1
Description German Ground Attack Aircraft __Uses 37mm AP Tank Shell __Year Introduced : 1943

// Rendering
Icon 44_Ju87G1
Model W44.Ju87G1
FlashModel DefaultFlash
Texture Skin44_Ju87G1
CameraDistance 10.0

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

// Paintjobs
AddDye 3 silver
AddDye 6 green

// Real-world specifications
RealMassKg 5530
RealEnginePowerPS 1400
RealMaxSpeedKmh 348
RealWingSpanM 13.805
RealWingAreaM2 31.9
RealClimbRateMs 9.4

// Movement
Mode Plane
MaxThrottle 2.35
MaxNegativeThrottle 0.0
TurnLeftSpeed 1.0
TurnRightSpeed 1.0
RealTurnRateDegPerSec 23.06
LookUpSpeed 1.35
LookDownSpeed 1.35
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 -4 -19 -30 core 44_Metal_Propeller
Propeller 1 -4 -19 30 core 44_Metal_Propeller
Propeller 2 -50 -36 0 core 44_Metal_Propeller

// Weapons
Primary Missile
Secondary None
ReadWeaponsFromGunTypes true
ShootDelayPrimary 10
ModePrimary FullAuto
ModeSecondary FullAuto
AlternatePrimary False
AlternateSecondary True
BulletSpread 4
BulletSpeed 12
BulletDetection 10
AllowAllAmmo False
ShootPointPrimary 55 12 45 core 44_37mmCannon
ShootPointPrimary 55 12 -45 core 44_37mmCannon
GunOrigin 1 -67 25.2 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 3650 -175 9 -17 230 48 34
SetupPart rightWing 940 -69 20 9 74 25 140
SetupPart leftWing 940 -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 30
ShootSoundPrimary Shoot_37mDE
