// Identity
Name Aichi D3A
ShortName 44_D3A
Description Japanese Torpedo Bomber Aircraft__Uses Type 99 Ammo / 250kg/500lb Bomb__Year Introduced : 1940

// Rendering
Icon 44_D3A
Model W44.D3A
FlashModel DefaultFlash
ModelScale 1.05
Texture Skin44_D3A
CameraDistance 10.0

// Recipe and inventory
AddRecipeParts core 1 44_AttackerAircraftBody
AddRecipeParts nose 2 44_Type99
CargoSlots 30
BombSlots 0
MissileSlots 2
FuelTankSize 6000

// Paintjobs
advpaintjob Green 44_D3A_Green 44_D3A_Green AddDye 4 green
AddDye 10 silver

// Real-world specifications
RealMassKg 3800
RealEnginePowerPS 1300
RealMaxSpeedKmh 430
RealWingSpanM 14.365
RealWingAreaM2 34.9
RealClimbRateMs 5.3

// Movement
Mode Plane
MaxThrottle 2
MaxNegativeThrottle 0.0
TurnLeftSpeed 1.25
TurnRightSpeed 1.25
RealTurnRateDegPerSec 22.16
LookUpSpeed 2.22
LookDownSpeed 2.22
RollLeftSpeed 2
RollRightSpeed 2
RestingPitch 10.0
Drag 1.0

// Wheels and tracks
WheelPosition 0 4 -11 -40
WheelPosition 1 4 -11 40
WheelPosition 2 -138 18 0
WheelSpringStrength 0.125
Propeller 0 -31 -27 0 core 44_Metal_Propeller

// Weapons
Primary Gun
Secondary Missile
ReadWeaponsFromGunTypes true
ShootDelayPrimary 3
ShootDelaySecondary 20
ModePrimary FullAuto
ModeSecondary FullAuto
AlternatePrimary False
AlternateSecondary False
BulletSpread 4
BulletSpeed 1
BulletDetection 10
AllowAllAmmo False
AddAmmo 44_Torpedo
ShootPointPrimary 33 36 4 core 44_Type99
ShootPointPrimary 33 36 -4 core 44_Type99
ShootPointSecondary 5 -8 0 core
GunOrigin 1 -69.3 19.5 0
ShootParticlesPrimary crit 0.4 0 0
ShootParticlesPrimary crit 0.4 -0.1 0
ShootParticlesPrimary crit 0.4 0.1 0
ShootParticlesPrimary crit 0.4 0 -0.1
ShootParticlesPrimary crit 0.4 0 0.1
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 2660 -150 9 -17 180 48 34
SetupPart rightWing 570 -45 17 17 58 22 105
SetupPart leftWing 570 -45 17 -123 58 22 105
CollisionPoint 45 36 0 core
CollisionPoint -9 31 111 core
CollisionPoint -9 31 -111 core
CollisionPoint -116 36 0 core

// Seats
Pilot -25 24 0
Passengers 1
Passenger 1 -42 23 0 core 140 220 -5 45 44_Type92 PassengerGun1

// Optics
heliGuiSeat 1 true
heliGUI warfare44_bombsightgui

// Sounds
StartSound FighterStart
StartSoundLength 22
PropSound FighterEngine
PropSoundLength 30
ShootSoundPrimary Plane30CalShoot

// Effects
AddEmitter largesmoke 1 [40,37,14] [0,0,0] [0,1.5,0] 0.02 0.07 0 1 core
AddEmitter flame 1 [40,37,14] [0,0,0] [0,2,0] 0.5 0.51 0 1 core
AddEmitter largesmoke 1 [40,37,-14] [0,0,0] [0,1.5,0] 0.02 0.07 0 1 core
AddEmitter flame 1 [40,37,-14] [0,0,0] [0,2,0] 0.5 0.51 0 1 core
AddEmitter explode 1 [40,37,14] [0,0,0] [0,0.2,0] 0.05 0.2 0 1 core
AddEmitter flame 1 [40,37,14] [0,0,0] [0,2,0] 0.5 0.51 0 1 core
AddEmitter explode 1 [40,37,-14] [0,0,0] [0,0.2,0] 0.05 0.2 0 1 core
AddEmitter flame 1 [40,37,-14] [0,0,0] [0,2,0] 0.5 0.51 0 1 core
