// ------------------------------------------------------ Naming ------------------------------------------------------
Name Bofors 40mm Quadruple Mount
ShortName bofors40mmQuadMount
ItemID 23287
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon Bofors40mmQuadcannon
Model rainfire.Bofors40mmQuad
Texture SkinBofors40mmQuad
//Third Person Camera Distance
CameraDistance 12.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 -20 -9 -16
WheelPosition 1 -20 -9 16
WheelPosition 2 20 -9 16
WheelPosition 3 20 -9 -16
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 Shell
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 10
ShootDelaySecondary 10
//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 45 21.5 16 turret
ShootPointPrimary 45 21.5 -12 turret
ShootPointSecondary 45 21.5 12 turret
ShootPointSecondary 45 21.5 -16 turret
ShootParticlesPrimary explode 0.5 0 0
ShootParticlesPrimary explode 0.6 0 0
ShootParticlesPrimary cloud 0.6 0 0
ShootParticlesPrimary cloud 0.7 0 0
ShootParticlesSecondary explode 0.5 0 0
ShootParticlesSecondary explode 0.6 0 0
ShootParticlesSecondary cloud 0.6 0 0
ShootParticlesSecondary cloud 0.7 0 0
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 4
BombSlots 0
MissileSlots 1
AllowAllAmmo False
AddAmmo 40mmAmmoBox
AddAmmo 40mmAmmoTracer
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 100
// ------------------------------------------------------ Passengers ------------------------------------------------------
Driver 0 7 0 -360 360 -15 89
RotatedDriverOffset 0 0 -31
Passengers 0
// ------------------------------------------------------- Sounds -------------------------------------------------------
StartSound None
StartSoundLength 0
EngineSound None
EngineSoundLength 0
ShootSoundPrimary 40mmFire2
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 turret 3 blockIron 2 vehicleSeat 16 redstone 2 ingotGold
AddRecipeParts core 12 ingotIron
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 10 gray
AddDye 10 white
//Health and collision
SetupPart turret 360 -19 -5 -26 32 20 53
SetupPart core 200 -18 -10 -18 36 5 36
BulletDetection 6
ModelScale 1
Description Renowned as the finest AA gun of WW2.
DriverAimSpeed 2.5 2.8 0
DriverYawBeforePitch true
DriverTraverseSounds true
YawSound TurretElectric1
YawSoundLength 21
PitchSound TurretElectric1
PitchSoundLength 20
BulletSpeed 26
BulletSpread 2