// ------------------------------------------------------ Naming ------------------------------------------------------
Name Tsar Tank
ShortName tsarTank
ItemID 69012
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon tsartank
Model rainfire.TsarTank
Texture SkinTsarTank
//Third Person Camera Distance
CameraDistance 32.0
// ------------------------------------------------------ Movement ------------------------------------------------------
//Throttle
MaxThrottle 0.405
MaxNegativeThrottle 0.2
//Steering modifiers
TurnLeftSpeed 0.3
TurnRightSpeed 0.3
//Drag
Drag 1.5
//For calculating whether wheels are on the ground or not for driving
WheelRadius 12.0
//The damage taken by the vehicle when falling. 1 = default calculated by height dropped from
FallDamageFactor 1.0
//Wheel positions for collision handling. Tanks still have 4 wheels, they are just the corner ones.
NumWheels 4
WheelPosition 0 -137 -9 -14
WheelPosition 1 -137 -9 14
WheelPosition 2 120 -9 74
WheelPosition 3 120 -9 -74
WheelSpringStrength 0.5
//Bouncy bouncy
Bounciness 0.3
//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 Gun
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 85
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 37 136 0 turret
ShootPointSecondary 0 32 0 core pm1910MG
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 4
ShellSlots 5
AllowAllAmmo False
AddAmmo 57mmTsarShell
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 2200
// ------------------------------------------------------ Passengers ------------------------------------------------------
Driver 3 147 0 -360 360 -21 15
Passengers 8
Passenger 1 8 69 -114 turret1 -200 0 -15 21 75mmTsarHowitzer PassengerGun1
GunOrigin 1 8 65 -114
Passenger 2 8 69 114 turret2 0 200 -15 21 75mmTsarHowitzer PassengerGun2
GunOrigin 2 65 114
Passenger 3 0 32 0 turret3 -360 360 -24 24 pm1910MG BottomMG
GunOrigin 3 0 30 0
Passenger 4 -11 65 0 core
Passenger 5 3 97 -40 core
Passenger 6 3 96 40 core
Passenger 7 3 99 -82 core
Passenger 8 3 99 82 core
// ------------------------------------------------------- Sounds -------------------------------------------------------
StartSound TankEngine
StartSoundLength 20
EngineSound PanzerIVGo
EngineSoundLength 30
PlaceSoundPrimary Sherman_PlaceSound
BackSoundLength 59
BackSound TankEngine
StartSoundRange 12
EngineSoundRange 32
BackSoundRange 50
ShootSoundPrimary 5cmTankGun
ShootSoundSecondary VZ59Fire
//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 1 tankTurret 1 vehicleSeat
AddRecipeParts core 2 vehicleSeat 5 blockIron
AddRecipeParts backLeftWheel 2 wheel
AddRecipeParts backRightWheel 2 wheel
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 2 gray
AddDye 8 green
//Health and collision
SetupPart turret 500 -20 114 -21 46 35 42 25
SetupPart core 700 -14 59 -54 37 40 108 25
SetupPart turret1 400 -5 63 -126 28 36 26 16
SetupPart turret2 400 -5 62 100 28 36 26 16
SetupPart turret3 400 -12 27 -15 30 30 30 16
SetupPart trailer 400 -14 57 -105 37 2 210 16
SetupPart backLeftWheel 300 40 60 -84 100 36 20 14
SetupPart backRightWheel 300 40 60 64 100 36 20 14
SetupPart backWheel 300 110 72 -65 16 16 130 14
SetupPart frontWheel 300 -155 -9 -18 40 35 36 14
BulletDetection 12
Description Elegant, yet impractical Russian "tank"._Armed wih a 57mm Howitzer, 75mm Sponsoons, and bottom 7.62mm MGs.
RotateWheels True
IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.35
CollisionDamageTimes 50
BulletSpeed 4
BulletSpread 2
ModelScale 2.5
SetPlayerInvisible false
//Turret stuff
DriverAimSpeed 2.7 2.8 0
DriverYawBeforePitch false
DriverTraverseSounds true
YawSound TurretTraverse1
YawSoundLength 21
PitchSound TurretTraverse2
PitchSoundLength 20
//Shoot stuff
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.1 0 0
ShootParticlesSecondary flansmod.fmflame 0.2 0 0