// ------------------------------------------------------ Naming ------------------------------------------------------
Name PBR Mk.II River Patrol Boat
ShortName pbrMk2
ItemID 7464
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon pibber
Model rainfire.PBRMk2
Texture SkinPBRMk2
//Third Person Camera Distance
CameraDistance 12.0
// ------------------------------------------------------ Movement ------------------------------------------------------
//Throttle
MaxThrottle 0.75
MaxNegativeThrottle 0.6
ThrottleDecay 0.0
//Steering modifiers
TurnLeftSpeed 0.4
TurnRightSpeed 0.4
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 -91 -9 -29
WheelPosition 1 -91 -9 29
WheelPosition 2 76 -9 17
WheelPosition 3 76 -9 -17
WheelSpringStrength 0.5
//If true, then all wheels will apply drive forces
FourWheelDrive false
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Gun
Secondary Shell
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 2
ShootDelaySecondary 20
//Whether to alternate or fire all together
AlternatePrimary False
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 84 15.5 6.5 turret browningM2
ShootPointPrimary 84 15.5 -6.5 turret browningM2
ShootPointSecondary -48.5 42.5 23.5 core
------- Inventory ------------------------------------------------------
CargoSlots 4
BombSlots 0
ShellSlots 3
AllowAllAmmo False
AddAmmo 40x53mmHEBelt
AddAmmo 40x53mmABBelt
AddAmmo 40x53mmCABelt
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 4000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Driver -12 13 -18 -360 360 -15 65
Passengers 3
Passenger 1 -12 13 15 core
Passenger 2 -48 16 -3 core -360 360 -18 45 fnM240 PortM60
GunOrigin 2 -56 22 -9
Passenger 3 -78 10 0 core 40 320 -15 50 browningM2 AftM2HB
RotatedPassengerOffset 3 15 0 0
GunOrigin 3 -79 18 0
PassengerAimSpeed 2 3.0 3.0 0
PassengerAimSpeed 3 3.0 2.5 0
// ------------------------------------------------------- Sounds -------------------------------------------------------
StartSound MotorboatIdle
StartSoundLength 57
EngineSound MotorboatGo
EngineSoundLength 20
ShootSoundPrimary M2Fire
ShootSoundSecondary 81mmMortar
//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 256 fiberglass
AddRecipeParts turret 2 browningM2
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 4 white
//Health and collision
SetupPart core 500 -95 -24 -31 181 30 62
SetupPart turret 150 42 0 -13 26 18 26
SetupPart backWheel 200 -88 -21 -25 34 24 50
SetupPart trailer 100 -20 0 -30 36 33 60
BulletDetection 5
ModelScale 1.02
Description Famous for its use in the Vietnam War, it is good for riverine combat._It is at full scale compared to other boats.
Boat
PlaceableOnLand False
PlaceableOnWater True
FloatOnWater True
WheelStepHeight 0
Buoyancy 0.8
IsExplosionWhenDestroyed false
CollisionDamageEnable true
CollisionDamageThrottle 0.35
CollisionDamageTimes 40
RotateWheels True
TurretOrigin 55 -15 0
//Turret stuff
DriverAimSpeed 3 2 0
DriverYawBeforePitch false
DriverTraverseSounds false
YawSound TurretElectric1
YawSoundLength 21
PitchSound TurretElectric1
PitchSoundLength 20
BulletSpeed 5
BulletSpread 2
//RecoilDistance 14
//RecoilTime 8
//Shoot stuff
ShootParticlesPrimary flansmod.fmflame 0.2 0 0
ShootParticlesPrimary explode 0.3 0 0
ShootParticlesPrimary cloud 0.2 0 0
ShootParticlesSecondary largeexplode 0.2 0 0
ShootParticlesSecondary explode 0.3 0 0
ShootParticlesSecondary cloud 0.3 0 0

//Smonkstaks
//CollisionPoint 96 -16 15 core
//CollisionPoint 96 -16 -15 core

AddEmitter bubble 1 [-96,-16,-15] [16,8,8] [0,0,0] 0.01 1 0 1 core
AddEmitter bubble 1 [-96,-16,15] [16,8,8] [0,0,0] 0.01 1 0 1 core

//Owie 1
AddEmitter largesmoke 4 [-96,-16,-15] [2,5,2] [-0.05,0,0] -1 1 0 0.4 core
AddEmitter largesmoke 4 [-96,-16,15] [2,5,2] [-0.05,0,0] -1 1 0 0.4 core

//Owie 2
AddEmitter flame 2 [-96,-16,-15] [2,5,2] [-0.05,0,0] -1 1 0 0.2 core
AddEmitter flame 2 [-96,-16,15] [2,5,2] [-0.05,0,0] -1 1 0 0.2 core