// ------------------------------------------------------ Naming ------------------------------------------------------
Name TBM-3E Avenger Torpedo Boomer
ShortName tbm3E
ItemID 23318
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon TBM3E
Model rainfire.TBM3E
Texture SkinTBM3E
//Third Person Camera Distance
CameraDistance 16.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 12.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 3.0
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 
TurnRightSpeed 2
//Pitch modifiers
LookUpSpeed 2
LookDownSpeed 2.15
//Roll modifiers
RollLeftSpeed 2
RollRightSpeed 2
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 1.2
//Wheels
NumWheels 3
WheelPosition 0 48 -9 -32
WheelPosition 1 48 -9 32
WheelPosition 2 -76 13 0
WheelSpringStrength 0.125
//Propeller Positions
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 -107 -33 0 nose metalPropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Gun
Secondary Bomb
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 2
ShootDelaySecondary 120
//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 52 32 -43 leftWing browningM2
ShootPointPrimary 52 32 43 leftWing browningM2
ShootPointSecondary -21 10 0 core 
ShootParticlesPrimary cloud 0.2 0 0
ShootParticlesPrimary flansmod.fmflame 0.3 0 0
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 8
BombSlots 2
MissileSlots 0
AllowAllAmmo False
AddAmmo generic150lbBomb
AddAmmo generic500lbBomb
AddAmmo generic1000lbBomb
AddAmmo generic2000lbBomb
AddAmmo torpedoBomb
AddAmmo 21inTorpedo
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 6000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 38 40 0
Passengers 2
Passenger 1 17 40 0 core
Passenger 2 -14 38 0 core -360 360 -30 85 browningM2 PassengerGun2
GunOrigin 2 -14 36 -1
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound wtP-51MustangStart
StartSoundLength 20
PropSound wtP-51MustangEngine
PropSoundLength 30
ShootSoundPrimary M2Fire
ShootSoundSecondary bomb
// ------------------------------------------------------ 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 core 1 metalCockpit
AddRecipeParts nose 1 metalNose 6 ingotIron
AddRecipeParts rightWing 1 metalWingSmall
AddRecipeParts leftWing 1 metalWingSmall
AddRecipeParts tail 1 metalTail 3 ingotIron
AddRecipeParts rightWingWheel 1 wheel 2 ingotIron
AddRecipeParts leftWingWheel 1 wheel 2 ingotIron
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 4 blue
AddDye 3 white
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart core 400 -24 13 -14 84 32 27 8
SetupPart nose 275 60 16 -14 40 32 28 7
SetupPart tail 250 -108 25 -10 84 24 20 8
SetupPart rightWing 150 -9 31 14 60 8 132 6
SetupPart leftWing 150 -9 31 -147 60 8 132 6
SetupPart rightWingWheel 50 45 -3 25 6 32 4
SetupPart leftWingWheel 50 45 -3 -29 7 32 4
BulletDetection 2
//Radar shit, range in blocks and delay in ticks. Visible means if it does/doesn't have stealth, offset the lowness on screen.
hasPlaneRadar true
radarPositionOffset 25
radarRange 1000
radarVisible true
radarRefreshDelay 35
//Collision points for breaking wings etc. upon crashing
//Nose
CollisionPoint 116 33 0 nose
CollisionPoint 77 52 0 nose
CollisionPoint 77 13 0 nose
//Core
CollisionPoint 50 63 0 core
CollisionPoint 50 12 0 core
CollisionPoint -14 62 0 core
CollisionPoint -14 12 0 core
//RightWing
CollisionPoint 52 32 32 rightWing
CollisionPoint 52 32 48 rightWing
CollisionPoint 50 32 64 rightWing
CollisionPoint 48 34 80 rightWing
CollisionPoint 45 37 96 rightWing
CollisionPoint 43 38 112 rightWing
CollisionPoint 40 40 128 rightWing
CollisionPoint 39 41 144 rightWing
//Left Wing
CollisionPoint 52 32 -32 leftWing
CollisionPoint 52 32 -48 leftWing
CollisionPoint 50 32 -64 leftWing
CollisionPoint 48 34 -80 leftWing
CollisionPoint 45 37 -96 leftWing
CollisionPoint 43 38 -112 leftWing
CollisionPoint 40 40 -128 leftWing
CollisionPoint 39 41 -144 rightWing
//Tail
CollisionPoint -109 88 0 tail
CollisionPoint -88 61 0 tail
CollisionPoint -87 52 -24 tail
CollisionPoint -92 52 -48 tail
CollisionPoint -87 52 24 tail
CollisionPoint -92 52 48 tail
ModelScale 1.0
Description Considered the best torpedo bomber of the war, and equipped_nearly every naval squadron in the USN.