// ------------------------------------------------------ Naming ------------------------------------------------------
Name Barrack Buster 12-mortar Battery
ShortName barrackBusterBattery
ItemID 23287
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon BarrackBuster
Model rainfire.BarrackBusterBattery
Texture SkinBarrackBuster
//Third Person Camera Distance
CameraDistance 20.0
// ------------------------------------------------------ Movement ------------------------------------------------------
//Throttle
MaxThrottle 0
MaxNegativeThrottle 0
//Steering modifiers
TurnLeftSpeed 0
TurnRightSpeed 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 -12 -9 -11
WheelPosition 1 -12 -9 11
WheelPosition 2 14 -9 12
WheelPosition 3 14 -9 -12
WheelSpringStrength 0.5
//If true, then all wheels will apply drive forces
FourWheelDrive true
//Tank mode activate
Tank true
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Shell
Secondary None
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 240
ShootDelaySecondary 0
//Whether to alternate or fire all together
AlternatePrimary False
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 115 -4 0 frontWheel 
ShootPointPrimary 115 -4 -40 frontWheel 
ShootPointPrimary 115 -4 40 frontWheel 
ShootPointPrimary 35 -4 -64 turret 
ShootPointPrimary 35 -4 60 turret 
ShootPointPrimary 35 -4 -20 turret 
ShootPointPrimary 35 -4 20 turret 
ShootPointPrimary -45 -4 0 backWheel 
ShootPointPrimary -45 -4 40 backWheel 
ShootPointPrimary -45 -4 -40 backWheel 
ShootPointPrimary -45 -4 80 backWheel 
ShootPointPrimary -45 -4 -80 backWheel 
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 12
BombSlots 0
MissileSlots 12
AllowAllAmmo False
AddAmmo 320mmHE
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 100
// ------------------------------------------------------ Passengers ------------------------------------------------------
Driver -12 -10 -24 -1 1 5 45
Passengers 0
// ------------------------------------------------------- Sounds -------------------------------------------------------
StartSound None
StartSoundLength 0
EngineSound None
EngineSoundLength 0
ShootSoundPrimary Quiet
//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 blockIron
AddRecipeParts turret 4 barrackBuster
AddRecipeParts frontWheel 3 barrackBuster
AddRecipeParts backWheel 5 barrackBuster
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 10 red
AddDye 2 orange
//Health and collision
SetupPart turret 100 -13 -10 -70 32 12 140
SetupPart frontWheel 100 67 -10 -50 32 12 100
SetupPart backWheel 100 -93 -10 -94 32 12 184
SetupPart core 100 -70 -10 -40 141 3 81
BulletDetection 2
ModelScale 1
isExplosionWhenDestroyedRadius 10
Death True
PlaceTimePrimary 240
Description Improvised IRA battery of 12 Barrack Buster mortars_that all fire at once!
SetPlayerInvisible false
DriverAimSpeed 2 1 0
DriverYawBeforePitch false
DriverTraverseSounds false
ShootParticlesPrimary largeexplode 6 0 0
ShootParticlesPrimary explode 6 0 0
ShootParticlesPrimary explode 6 0 0
ShootParticlesPrimary explode 6 0 0
ShootParticlesPrimary explode 6 0 0
ShootParticlesPrimary explode 6 0 0
ShootParticlesPrimary explode 6 0 0
ShootParticlesPrimary explode 7 0 0
ShootParticlesPrimary explode 7 0 0
ShootParticlesPrimary explode 7 0 0
ShootParticlesPrimary explode 7 0 0
ShootParticlesPrimary explode 7 0 0
ShootParticlesPrimary explode 7 0 0
ShootParticlesPrimary cloud 6 0 0
ShootParticlesPrimary cloud 6 0 0
ShootParticlesPrimary cloud 6 0 0
ShootParticlesPrimary cloud 6 0 0
ShootParticlesPrimary cloud 6 0 0
ShootParticlesPrimary cloud 6 0 0
ShootParticlesPrimary cloud 7 0 0
ShootParticlesPrimary cloud 7 0 0
ShootParticlesPrimary cloud 7 0 0
ShootParticlesPrimary cloud 7 0 0
ShootParticlesPrimary cloud 7 0 0
ShootParticlesPrimary cloud 7 0 0