// ------------------------------------------------------ Naming ------------------------------------------------------
Name USS New Mexico BB-40 (1944)
ShortName ussNewMexico1944
ItemID 12741
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon ussNewMexico1944
Model rainfire.NewMexico1944
Texture SkinNewMexico1944
//Third Person Camera Distance
CameraDistance 58.0
// ------------------------------------------------------ Movement ------------------------------------------------------
//Throttle
MaxThrottle 0.552
MaxNegativeThrottle 0.3
ThrottleDecay 0.0
//Steering modifiers
TurnLeftSpeed 0.175
TurnRightSpeed 0.175
Drag 1.0
//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 -385 -18 -55
WheelPosition 1 -385 -18 55
WheelPosition 2 416 -18 33
WheelPosition 3 416 -18 -33
WheelSpringStrength 0.5
//If true, then all wheels will apply drive forces
FourWheelDrive true
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Shell
Secondary Gun
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 8
ShootDelaySecondary 2
//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 -85 56 64 core 
ShootPointPrimary -85 56 -64 core 
ShootPointPrimary -46 56 72 core 
ShootPointPrimary -46 56 -72 core
ShootPointPrimary -2 56 74 core 
ShootPointPrimary -2 56 -74 core 
ShootPointPrimary 36 56 64 core 
ShootPointPrimary 36 56 -64 core 
ShootPointSecondary -110 70 45 core bofors40mmGun
ShootPointSecondary -102 70 45 core bofors40mmGun
ShootPointSecondary 10 65 45 core bofors40mmGun
ShootPointSecondary 18 65 45 core bofors40mmGun
ShootPointSecondary 55 36 78 core bofors40mmGun
ShootPointSecondary 62 35 78 core bofors40mmGun
ShootPointSecondary 71 63 60 core bofors40mmGun
ShootPointSecondary 79 63 60 core bofors40mmGun
ShootPointSecondary 154 26 76 core bofors40mmGun
ShootPointSecondary 161 26 76 core bofors40mmGun
ShootPointSecondary 198 21 49 core olerikon20mm
ShootPointSecondary 112 21 67 core olerikon20mm
ShootPointSecondary 93 21 71 core olerikon20mm
ShootPointSecondary 100 63 34 core olerikon20mm
ShootPointSecondary 111 63 24 core olerikon20mm
ShootPointSecondary 129 75 12 core olerikon20mm
ShootPointSecondary -18 64 41 core olerikon20mm
ShootPointSecondary -32 64 41 core olerikon20mm
ShootPointSecondary -46 64 41 core olerikon20mm
ShootPointSecondary -59 64 41 core olerikon20mm
ShootPointSecondary -122 70 34 core olerikon20mm
ShootPointSecondary -129 83 6 core olerikon20mm
ShootPointSecondary -133 50 45 core olerikon20mm
ShootPointSecondary -142 53 34 core olerikon20mm
ShootPointSecondary -159 50 39 core olerikon20mm
ShootPointSecondary -214 35 42 core olerikon20mm
ShootPointSecondary -383 39 8 core olerikon20mm

ShootPointSecondary -110 70 -45 core bofors40mmGun
ShootPointSecondary -102 70 -45 core bofors40mmGun
ShootPointSecondary 10 65 -45 core bofors40mmGun
ShootPointSecondary 18 65 -45 core bofors40mmGun
ShootPointSecondary 55 36 -78 core bofors40mmGun
ShootPointSecondary 62 35 -78 core bofors40mmGun
ShootPointSecondary 71 63 -60 core bofors40mmGun
ShootPointSecondary 79 63 -60 core bofors40mmGun
ShootPointSecondary 154 26 -76 core bofors40mmGun
ShootPointSecondary 161 26 -76 core bofors40mmGun
ShootPointSecondary 198 21 -49 core olerikon20mm
ShootPointSecondary 112 21 -67 core olerikon20mm
ShootPointSecondary 93 21 -71 core olerikon20mm
ShootPointSecondary 100 63 -34 core olerikon20mm
ShootPointSecondary 111 63 -24 core olerikon20mm
ShootPointSecondary 129 75 -12 core olerikon20mm
ShootPointSecondary -18 64 -41 core olerikon20mm
ShootPointSecondary -32 64 -41 core olerikon20mm
ShootPointSecondary -46 64 -41 core olerikon20mm
ShootPointSecondary -59 64 -41 core olerikon20mm
ShootPointSecondary -122 70 -34 core olerikon20mm
ShootPointSecondary -129 83 -6 core olerikon20mm
ShootPointSecondary -133 50 -45 core olerikon20mm
ShootPointSecondary -142 53 -34 core olerikon20mm
ShootPointSecondary -159 50 -39 core olerikon20mm
ShootPointSecondary -214 35 -42 core olerikon20mm
ShootPointSecondary -383 39 -8 core olerikon20mm
ShootPointSecondary -406 35 0 core olerikon20mm

ShootParticlesPrimary largeexplode 0.6 0 0
ShootParticlesPrimary explode 0.7 0 0
ShootParticlesPrimary cloud 0.6 0 0
ShootParticlesPrimary cloud 0.6 0 0
ShootParticlesSecondary cloud 0.2 0 0
------- Inventory ------------------------------------------------------
CargoSlots 32
BombSlots 0
ShellSlots 8
AllowAllAmmo False
AddAmmo 5in25ShellAA
AddAmmo 12.7cmShellAA
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 15000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Driver 110 134 0 -360 360 -10 85
Passengers 4
Passenger 1 274 44 0 turret1 -150 150 -5 30 14in50Mk11Gun TurretI
GunOrigin 1 274 33 0
Passenger 2 194 62 0 turret2 -150 150 -5 30 14in50Mk11Gun TurretII
GunOrigin 2 194 47 0
Passenger 3 -194 54 0 turret3 50 310 -5 30 14in50Mk11Gun TurretIII
GunOrigin 3 -194 36 0
Passenger 4 -278 35 0 turret4 50 310 -5 30 14in50Mk11Gun TurretIV
GunOrigin 4 -278 21 0
PassengerAimSpeed 1 0.3 0.45 0
PassengerAimSpeed 2 0.3 0.45 0
PassengerAimSpeed 3 0.3 0.45 0
PassengerAimSpeed 4 0.3 0.45 0
//Passenger turret sounds
PassengerTraverseSounds 1 true
PassengerTraverseSounds 2 true
PassengerTraverseSounds 3 true
PassengerTraverseSounds 4 true
//Turret 1
PassengerPitchSound 1 shipTurret
PassengerPitchSoundLength 1 19
PassengerYawSound 1 shipTurret
PassengerYawSoundLength 1 18
//Turret 2
PassengerPitchSound 2 shipTurret
PassengerPitchSoundLength 2 19
PassengerYawSound 2 shipTurret
PassengerYawSoundLength 2 18
//Turret 3
PassengerPitchSound 3 shipTurret
PassengerPitchSoundLength 3 19
PassengerYawSound 3 shipTurret
PassengerYawSoundLength 3 18
//Turret 4
PassengerPitchSound 4 shipTurret
PassengerPitchSoundLength 4 19
PassengerYawSound 4 shipTurret
PassengerYawSoundLength 4 18
// ------------------------------------------------------- Sounds -------------------------------------------------------
StartSound ShipEngine3
StartSoundLength 120
EngineSound ShipEngine2
EngineSoundLength 111
ShootSoundPrimary 5inGun
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 3 navalSteelSegment5000 4 blockRedstone
AddRecipeParts citadel 1 navalSteelSegment1000
AddRecipeParts bulkhead 2 navalSteelSegment500
AddRecipeParts bow 1 navalSteelSegment500
AddRecipeParts stern 1 navalSteelSegment500
AddRecipeParts belt 1 navalSteelSegment1000
AddRecipeParts leftsideArmor 3 navalSteelSegment1000
AddRecipeParts rightsideArmor 3 navalSteelSegment1000
AddRecipeParts torpedoBulge 1 navalSteelSegment500
AddRecipeParts torpedoBulge2 1 navalSteelSegment500
AddRecipeParts deck 1 navalSteelSegment1000
AddRecipeParts deck2 1 navalSteelSegment1000
AddRecipeParts superstructure 1 navalSteelSegment500
AddRecipeParts steering 1 steamTurbine
AddRecipeParts leftTrack 3 boiler
AddRecipeParts engineRoom1 2 steamTurbine
AddRecipeParts rightTrack 3 boiler
AddRecipeParts engineRoom2 2 steamTurbine
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 16 black
AddDye 12 blue
AddDye 12 lightBlue
AddDye 10 white
//Health and collision, 32000t, 96000hp
SetupPart core 21000 -305 -52 -36 610 45 72 25
SetupPart citadel 7500 -317 -33 -42 634 54 84 127
SetupPart bulkhead 6000 -334 -61 -54 676 62 108 343
SetupPart bow 2000 343 -61 -48 140 88 96 25
SetupPart stern 1500 -481 -45 -55 160 54 108 25
//4400 orig
SetupPart belt 13500 -385 -39 -60 766 42 120 343
SetupPart leftsideArmor 7250 -385 -39 60 766 45 15 343
SetupPart rightsideArmor 7250 -385 -39 -75 766 45 15 343
SetupPart torpedoBulge 6000 -321 -63 -90 710 60 42 101
SetupPart torpedoBulge2 6000 -321 -63 48 710 60 42 101

SetupPart deck1 6500 -406 0 -66 321 9 132 206
SetupPart deck2 6500 -85 0 -72 465 30 144 206
SetupPart superstructure 3500 -85 30 -67 258 12 132 13
SetupPart conningTower 3500 74 42 -24 55 69 48 406

SetupPart engineRoom1 2250 -155 -59 -38 94 36 38 158
SetupPart engineRoom2 2250 -155 -59 0 94 36 38 158
SetupPart leftTrack 2250 -14 -59 -38 120 36 38 158
SetupPart rightTrack 2250 -14 -59 0 120 36 38 158
SetupPart steering 1000 -196 -59 -38 40 34 76 158

SetupPart turret1 8000 174 -15 -24 48 82 48 1292
SetupPart turret2 8000 253 -34 -24 48 82 48 1292
SetupPart turret3 8000 -227 -28 -24 48 82 48 1292
SetupPart turret4 8000 -305 -45 -24 48 82 48 1292

BulletDetection 25
ModelScale 1.2
Description Compared to the previous Pennsylvania-class, she has_better guns, a clipper bow, and a bigger funnel._She was overhauled around Oct-Nov. 1944 to this appearance._Standard-Type, Battleship Division 3_Displ. - 32000t | L.D. - 1915_Length - 63.40m | Beam - 9.9m | Draft - 3m_Spd. - 21kn | Rng. - 15000 | 4x Steam Turbines | 9x Boilers
Boat
PlaceableOnLand False
PlaceableOnWater True
FloatOnWater True
WheelStepHeight 0
Buoyancy 0.08
CollisionDamageEnable true
CollisionDamageThrottle 0.35
CollisionDamageTimes 40
DriverAimSpeed 3.5 4 0
BulletSpeed 6
BulletSpread 1.8
TurretOrigin 47 -151 0
RotateWheels True
//Radar shit, range in blocks and delay in ticks. Visible means if it does/doesn't have stealth, offset the lowness on screen.
hasRadar true
radarPositionOffset 25
radarRange 1600
radarVisible true
radarRefreshDelay 20
IsExplosionWhenDestroyed true
DeathExplosionRadius 25
DeathExplosionDamageVsVehicle 2.0
DeathExplosionDamageVsLiving 200.0
DeathExplosionDamageVsPlane 2.0
//isExplosionWhenDestroyedRadius 25
//bigDeath True

////Smonkstaks

//Stage 1
AddEmitter largesmoke 1 [25,124,0] [4,8,8] [0,2,0] 0.03 0.25 0 1 core
AddEmitter largesmoke 1 [17,123,0] [5,8,8] [0,2,0] 0.03 0.25 0 1 core
AddEmitter largesmoke 1 [8,122,0] [4,8,8] [0,2,0] 0.03 0.25 0 1 core

//Stage 2
AddEmitter largesmoke 2 [25,124,0] [3,12,8] [0.2,3,0] 0.25 0.6 0 1 core
AddEmitter largesmoke 2 [18,123,0] [3,12,8] [0.2,3,0] 0.25 0.6 0 1 core
AddEmitter largesmoke 2 [10,122,0] [3,12,8] [0.2,3,0] 0.25 0.6 0 1 core

//Stage 3
AddEmitter largesmoke 1 [25,124,0] [33,12,33] [0.2,4,0] 0.6 0.9 0 1 core
AddEmitter largesmoke 1 [18,123,0] [33,12,33] [0.2,4,0] 0.6 0.9 0 1 core
AddEmitter largesmoke 1 [10,122,0] [33,12,33] [0.2,4,0] 0.6 0.9 0 1 core

//Stage 4
AddEmitter largesmoke 2 [25,122,0] [64,32,64] [0,5,0] 0.9 1 0 1 core
AddEmitter largesmoke 2 [18,122,0] [64,32,64] [0,5,0] 0.9 1 0 1 core
AddEmitter largesmoke 2 [8,122,0] [64,32,64] [0,5,0] 0.9 1 0 1 core
AddEmitter largesmoke 2 [22,122,0] [64,32,64] [0,5,0] 0.9 1 0 1 core
AddEmitter largesmoke 2 [20,122,0] [64,32,64] [0,5,0] 0.9 1 0 1 core
AddEmitter largesmoke 2 [10,122,0] [64,32,64] [0,5,0] 0.9 1 0 1 core

//Owie 1
AddEmitter largesmoke 3 [25,122,0] [4,6,8] [0,0,0] -1 1 0 0.4 core
AddEmitter largesmoke 3 [18,122,0] [4,6,8] [0,0,0] -1 1 0 0.4 core
AddEmitter largesmoke 3 [8,122,0] [4,6,8] [0,0,0] -1 1 0 0.4 core

//Owie 2
AddEmitter flame 2 [25,122,0] [4,3,8] [-0.25,0,0] -1 1 0 0.2 core
AddEmitter flame 2 [17,122,0] [4,3,8] [-0.25,0,0] -1 1 0 0.2 core
AddEmitter flame 2 [8,122,0] [4,3,8] [-0.25,0,0] -1 1 0 0.2 core
