// ------------------------------------------------------ Naming ------------------------------------------------------
Name USS Barb SS-220
ShortName ussBarb
ItemID 70688
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon ussGato
Model rainfire.Gato1945
Texture SkinBarb
//Third Person Camera Distance
CameraDistance 25.0
// ------------------------------------------------------ Movement ------------------------------------------------------
//Throttle
MaxThrottle 0.545
MaxNegativeThrottle 0.4
ThrottleDecay 0.0
//Steering modifiers
TurnLeftSpeed 0.2
TurnRightSpeed 0.2
Drag 0.8
//For calculating whether wheels are on the ground or not for driving
WheelRadius 1.0
//Wheel positions for collision handling. Tanks still have 4 wheels, they are just the corner ones.
NumWheels 4
WheelPosition 0 -244 12 -8
WheelPosition 1 -244 12 8
WheelPosition 2 220 12 8
WheelPosition 3 220 12 -8
WheelSpringStrength 0.5
//If true, then all wheels will apply drive forces
FourWheelDrive true
canDive true
DiveSpeed 1
SurfaceSpeed 1
//160 is about one second?
oxygen 9000
maxOxygen 9000
maxDepth 32
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Missile
Secondary Gun
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 40
ShootDelaySecondary 3
//Whether to alternate or fire all together
AlternatePrimary True
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 220 -12 -6 bow 
ShootPointPrimary 220 -18 -6 bow 
ShootPointPrimary 220 -24 -6 bow 
ShootPointPrimary 220 -12 6 bow 
ShootPointPrimary 220 -18 6 bow 
ShootPointPrimary 220 -24 6 bow 
ShootPointSecondary 91 15 0 core bofors40mmGun
ShootPointSecondary 16 15 0 core olerikon20mm
FixedPrimary true
PrimaryAngle 1 0 0
ShootParticlesPrimary cloud 0.2 0 0
------- Inventory ------------------------------------------------------
CargoSlots 6
BombSlots 0
MissileSlots 2
AllowAllAmmo False
AddAmmo 21inTorpedoMk14
AddAmmo 21inTorpedoMk16
AddAmmo 21inTorpedoMk28
AddAmmo 533mmTorpedo
AddAmmo 533mmTorpedoSmart
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 20000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Driver 60 15 0
Passengers 1
Passenger 1 -9 0 0 core 35 305 -10 40 5in25Gun AftGunNo1
GunOrigin 1 -15 4 0
// ------------------------------------------------------- Sounds -------------------------------------------------------
StartSound ModernEngine
StartSoundLength 24
EngineSound TankEngine
EngineSoundLength 25
ShootSoundPrimary bomb
ShootSoundSecondary 40mmFire2
//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 navalSteelSegment1000 2 sargoBattery
AddRecipeParts stern 1 navalSteelSegment100
AddRecipeParts bow 6 21inTorpSub 1 navalSteelSegment100
//Health and collision, 1525t, 2250hp
SetupPart core 1250 -177 -42 -20 352 42 40
SetupPart stern 500 -249 -33 -11 72 32 22
SetupPart bow 500 175 -32 -11 72 32 22
BulletDetection 14
ModelScale 1.2
Description Famous for landing a crew in Japan to blow up a train._Displ. - 1525t | L.D. - 1941_Length - 31.68m | Beam - 2.77m | Draft - 1.73m | Max Depth - 32m_Spd. - 21kn | Rng. - 10700 | 4x Diesel Engines | 4x Electric Motors | 2x Sargo Batteries
Boat
PlaceableOnLand False
PlaceableOnWater True
FloatOnWater True
WheelStepHeight 0
Buoyancy 0.08
IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.35
CollisionDamageTimes 40
RotateWheels True
//BulletSpeed 16
DeathExplosionRadius 10
DeathExplosionDamageVsVehicle 1.5
DeathExplosionDamageVsLiving 100.0
DeathExplosionDamageVsPlane 1.5