// ------------------------------------------------------ Naming ------------------------------------------------------
Name Attacker_Ju87 G-2 Kanonenvogel
ShortName attacker_ju87g-2
ItemID 11230
Description MAX HP:175_FlareDelay 300_TimeFlareUsing 5s_PlaneAmmo 3.7cm Ju87G-2 Ammo__PG 7.92mm MG81Z Ammo
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon Attacker_Ju87G-2
Model manus_ww2.JU87G
Texture Skin_WW2_Plane_JU87_2A
//Third Person Camera Distance
CameraDistance 8.0
//Resting Pitch. Set this so the plane spawns level. It will fall onto its collision boxes automatically, but this lets you start it flat
RestingPitch 5.0
// ------------------------------------------------------ Movement ------------------------------------------------------
//Mode : One of Plane, Heli or VTOL. The VTOL has a toggle button that switches some model aesthetics and the flight mode
Mode Plane
//Throttle
MaxThrottle 0.85
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 0.8
TurnRightSpeed 0.8
//Pitch modifiers
LookUpSpeed 0.7
LookDownSpeed 0.7
//Roll modifiers
RollLeftSpeed 1.7
RollRightSpeed 1.7
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 0.45
//Wheels
NumWheels 3
WheelPosition 0 18 -12 -24
WheelPosition 1 18 -12 24
WheelPosition 2 -98 16 0
WheelSpringStrength 0.125
//Propeller Positions
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 69 30 0 nose parts_metalpropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Shell
Secondary None
//Time between shots in 1/20ths of seconds
PlaceTimePrimary 160
ShootDelayPrimary 10
ReloadTimePrimary 160
PlaceTimeSecondary 
ShootDelaySecondary 
ReloadTimeSecondary 
BulletSpeed 5.00
BulletSpread 1.25
//Whether to alternate or fire all together
AlternatePrimary False
AlternateSecondary False
//Firing modes. One of SemiAuto, FullAuto or Minigun
ModePrimary FullAuto
ModeSecondary FullAuto
//Add shoot origins. These are the points on your vehicle from which bullets / missiles / shells / bombs appear
ShootPointPrimary 60 13 38 rightWing 
ShootPointPrimary 60 13 -38 leftWing 
ShootParticlesPrimary cloud 0 0 0
ShootParticlesPrimary explode 0 0 0
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
BombSlots 0
MissileSlots 8
AllowAllAmmo False
AddAmmo planeammo_3.7cm_ju87g-2_ammo
AddAmmo sound_horn
AddAmmo dummyammo
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 12000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 12 28 0
Passengers 1
//Passenger <ID> <x> <y> <z> <part> [minYaw] [maxYaw] [minPitch] [maxPitch] [gunType] [gunModelName]
Passenger 1 -8 27 0 core 140 220 -5 50 pg_7.92mm_mg81z MG81
GunOrigin 1 -36 20 0
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound Camel_StartSound
StartSoundLength 20
PropSound Camel_PropSound
PropSoundLength 40
StartSoundRange 100
EngineSoundRange 1000
PlaceSoundPrimary Camel_PlaceSound
ShootSoundPrimary PG_BK3,7_fire
ReloadSoundPrimary PG_reload
PlaceSoundSecondary None
ShootSoundSecondary None
ReloadSoundSecondary None
LockedOnSound Lock
SoundTime 8
LockedOnSoundRange 15
// ------------------------------------------------------ Recipe ------------------------------------------------------
//Each section of the plane may have many parts
//The sections are tailWheel, tail, bay, topWing, leftWingWheel, leftWing, rightWingWheel,
//rightWing, nose, turret, coreWheel, core
AddRecipeParts nose 1 parts_metalcockpit 9 iron 1 parts_metalnose 1 parts_metalwingsmall 3 parts_smallwheel
AddRecipeParts tail 1 parts_metaltail
AddRecipeParts rightWing 1 parts_metalwingsmall
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
//AddDye 0 gray
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart core 175 -36 22 -8 101 20 16
SetupPart tail 125 -109 22 -8 73 20 16
SetupPart rightWing 150 -26 22 -113 52 12 226
HasGear True
BulletDetection 5
SquashMobs false
//Collision points for breaking wings etc. upon crashing
//Core
CollisionPoint 33 30 0 core
CollisionPoint 66 30 0 core
//RightWing
CollisionPoint 12 33 110 rightWing
CollisionPoint 12 29 83 rightWing
CollisionPoint 12 25 55 rightWing
CollisionPoint 12 21 28 rightWing
CollisionPoint 12 33 -110 rightWing
CollisionPoint 12 29 -83 rightWing
CollisionPoint 12 25 -55 rightWing
CollisionPoint 12 21 -28 rightWing
//Tail
CollisionPoint -40 30 0 tail
CollisionPoint -66 30 0 tail
CollisionPoint -92 30 0 tail
IsExplosionWhenDestroyed true
CollisionDamageEnable false
CollisionDamageThrottle 0.21
CollisionDamageTimes 0
HasFlare True
FlareDelay 300
FlareSound Flare
TimeFlareUsing 5