// ------------------------------------------------------ Naming ------------------------------------------------------
Name Type IXC Submarine U-511 (Surfaced)
ShortName u511Surfaced
ItemID 7464
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon u511
Model rainfire.TypeIXC
Texture SkinTypeIXC
//Third Person Camera Distance
CameraDistance 22.0
// ------------------------------------------------------ Movement ------------------------------------------------------
//Throttle
MaxThrottle 0.5
MaxNegativeThrottle 0.4
ThrottleDecay 0.0
//Steering modifiers
TurnLeftSpeed 0.3
TurnRightSpeed 0.3
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 -120 -8 -18
WheelPosition 1 -120 -8 18
WheelPosition 2 162 -8 12
WheelPosition 3 162 -8 -12
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 Missile
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 40
ShootDelaySecondary 40
//Whether to alternate or fire all together
AlternatePrimary True
AlternateSecondary True
//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 200 -4 5 bow
ShootPointPrimary 200 -4 -5 bow
ShootPointPrimary 200 -10 5 bow
ShootPointPrimary 200 -10 -5 bow
ShootPointSecondary -200 -10 5 stern
ShootPointSecondary -200 -10 -5 stern
FixedPrimary true
PrimaryAngle 1 0 0
FixedSecondary true
SecondaryAngle -1 0 0
------- Inventory ------------------------------------------------------
CargoSlots 4
BombSlots 0
MissileSlots 3
AllowAllAmmo False
AddAmmo 533mmTorpedo
AddAmmo 533mmTorpedoSmart
AddAmmo SubPong
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 24910
// ------------------------------------------------------ Passengers ------------------------------------------------------
Driver 0 25 0
Passengers 2
Passenger 1 45 15 0 core -130 130 -10 35 105mmSKC32 PassengerGun1
GunOrigin 1 48 11 0
Passenger 2 -18 12 0 core 50 310 -5 60 37mmSKC30 PassengerGun2
GunOrigin 2 -27 22 0
// ------------------------------------------------------- Sounds -------------------------------------------------------
StartSound ModernEngine
StartSoundLength 24
EngineSound TankEngine
EngineSoundLength 25
ShootSoundPrimary bomb
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 navalSteelSegment1000
AddRecipeParts stern 2 53cmTorpSub
AddRecipeParts bow 4 53cmTorpSub
//Health and collision 1120t, 1680hp
SetupPart core 1080 -120 -28 -18 250 32 36
SetupPart stern 300 -180 -22 -12 60 26 24
SetupPart bow 300 130 -22 -12 60 26 24
BulletDetection 12
ModelScale 0.85
Description Known for being transferred to Japan_and made into Ro-500._Displ. - 1120t | L.D. - 1941_Length - 25.59m | Beam - 2.25m | Draft - 1.73 | Max Depth - 76m_Spd. - 18.3kn | Rng. - 24910 | 2x Diesel Engines | 2x Electric Motors
Boat
PlaceableOnLand False
PlaceableOnWater True
FloatOnWater True
WheelStepHeight 0
Buoyancy 0.08
IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.35
CollisionDamageTimes 40
RotateWheels True
BulletSpeed 5
DeathExplosionRadius 10
DeathExplosionDamageVsVehicle 1.5
DeathExplosionDamageVsLiving 100.0
DeathExplosionDamageVsPlane 1.5