// ------------------------------------------------------ Naming ------------------------------------------------------
Name HMS Cockshafer Gunboat
ShortName hmsCockshafer
ItemID 7464
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon hmsCockshafer
Model rainfire.InsectGunboat
Texture SkinInsectGunboat
//Third Person Camera Distance
CameraDistance 20.0
// ------------------------------------------------------ Movement ------------------------------------------------------
//Throttle
MaxThrottle 0.365
MaxNegativeThrottle 0.18
ThrottleDecay 0.0
//Steering modifiers
TurnLeftSpeed 0.3
TurnRightSpeed 0.3
Drag 4.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 -172 -18 -18
WheelPosition 1 -172 -18 18
WheelPosition 2 159 -18 10
WheelPosition 3 159 -18 -10
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 60
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 -73 20 0 core
ShootPointPrimary 54 20 0 core
ShootPointSecondary -12 16 18 core lewisGunM191X
ShootPointSecondary 1 16 18 core lewisGunM191X
ShootPointSecondary 13 16 18 core lewisGunM191X
ShootPointSecondary 29 16 18 core lewisGunM191X
ShootPointSecondary -12 16 -18 core lewisGunM191X
ShootPointSecondary 1 16 -18 core lewisGunM191X
ShootPointSecondary 13 16 -18 core lewisGunM191X
ShootPointSecondary 29 16 -18 core lewisGunM191X
------- Inventory ------------------------------------------------------
CargoSlots 8
BombSlots 0
ShellSlots 2
AllowAllAmmo False
AddAmmo 3in50ShellHC
AddAmmo 3in50ShellAP
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 4000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Driver 37 24 0 -360 360 -10 65
Passengers 7
Passenger 1 75 15 0 core -140 140 -7 20 6inchMkVIIGun PassengerGun1
GunOrigin 1 75 7 0
Passenger 2 -60 13 0 core 45 325 -7 20 6inchMkVIIGun PassengerGun2
GunOrigin 2 -60 6 0
Passenger 3 0 27 0 core
Passenger 4 -153 3 -9 core
Passenger 5 -153 3 9 core
Passenger 6 -117 3 9 core
Passenger 7 -117 3 -9 core
PassengerAimSpeed 1 0.7 0.8 0
PassengerAimSpeed 2 0.7 0.8 0
// ------------------------------------------------------- Sounds -------------------------------------------------------
StartSound Engine
StartSoundLength 24
EngineSound RealEngineStart
EngineSoundLength 29
ShootSoundPrimary 7.5cmKwK40
ShootSoundSecondary .303caliberRifle
//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 navalSteelSegment500 2 steamEngine 2 boiler
//Health and collision
SetupPart core 1875 -185 -36 -42 350 58 84 14
BulletDetection 10
ModelScale 1.3
Description A British Gunboat which fought Chinese warlords in 1926 and_rescued an Iraqi regent during WW2._Displ. - 625t | L.D. - 1915_Length - 24.13m | Beam - 3.67m | Draft - 0.4m_Spd. - 14kn | Rng. - 4000? | 2x Steam Engines | 2x Boilers
Boat
PlaceableOnLand False
PlaceableOnWater True
FloatOnWater True
WheelStepHeight 0
Buoyancy 0.08
IsExplosionWhenDestroyed false
CollisionDamageEnable true
CollisionDamageThrottle 0.35
CollisionDamageTimes 40
RotateWheels True
ShootParticlesPrimary explode 0.2 0 0
ShootParticlesPrimary explode 0.4 0 0
ShootParticlesPrimary smoke 0.4 0 0
ShootParticlesPrimary cloud 0.2 0 0
ShootParticlesSecondary cloud 0.2 0 0
DeathExplosionRadius 10
DeathExplosionDamageVsVehicle 1.5
DeathExplosionDamageVsLiving 100.0
DeathExplosionDamageVsPlane 1.5
//isExplosionWhenDestroyedRadius 25
//bigDeath True
////Smonkstaks

//Stage 1
AddEmitter largesmoke 2 [24,50,12] [5,3,5] [0,0,0] 0.02 1 0 1 core
AddEmitter largesmoke 2 [24,50,-12] [5,3,5] [0,0,0] 0.3 1 0 1 core

//Owie 1
AddEmitter largesmoke 4 [24,50,12] [5,3,5] [0,0,0] 0 1 0 0.4 core
AddEmitter largesmoke 4 [24,50,-12] [5,3,5] [0,0,0] 0 1 0 0.4 core

//Owie 2
AddEmitter flame 2 [24,50,12] [5,2,5] [-0.25,0,0] 0 1 0 0.2 core
AddEmitter flame 2 [24,50,-12] [5,2,5] [-0.25,0,0] 0 1 0 0.2 core