// ------------------------------------------------------ Naming ------------------------------------------------------
Name Leopard 2A4
ShortName leo2A4
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon Leo2A4
Model rainfire.Leo2A4
Texture SkinLeo2A4
//Third Person Camera Distance
CameraDistance 9.5
// ------------------------------------------------------ Movement ------------------------------------------------------
//Throttle
MaxThrottle 1.77
MaxNegativeThrottle 0.2
//Steering modifiers
TurnLeftSpeed 0.35
TurnRightSpeed 0.35
//Drag
Drag 1.5
//For calculating whether wheels are on the ground or not for driving
WheelRadius 1.6
//The damage taken by the vehicle when falling. 1 = default calculated by height dropped from
FallDamageFactor 0.5
//Wheel positions for collision handling. Tanks still have 4 wheels, they are just the corner ones.
NumWheels 4
WheelPosition 0 -60 -9 -26
WheelPosition 1 -60 -9 26
WheelPosition 2 32 -9 26
WheelPosition 3 32 -9 -26
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 Gun
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 65
ShootDelaySecondary 2
//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 90 26 0 turret
ShootPointSecondary 27 25.5 5 turret browningM1918A4
ShootParticlesPrimary explode 1 0 0
ShootParticlesPrimary explode 1 0 0
ShootParticlesPrimary explode 1 0 0
ShootParticlesPrimary explode 2 0 -1
ShootParticlesPrimary explode 2 0 0
ShootParticlesPrimary explode 2 0 1
ShootParticlesPrimary cloud 2 0 1
ShootParticlesPrimary cloud 2 0 0
ShootParticlesPrimary cloud 2 0 1
ShootParticlesPrimary cloud 3 0 0
ShootParticlesPrimary cloud 3 0 0
ShootParticlesPrimary cloud 3 0 0
ShootParticlesSecondary cloud 0.2 0 0
ShootParticlesSecondary flansmod.fmflame 0.2 0 0
// ------------------------------------------------------ Inventory ------------------------------------------------------
//Inventory Slots
CargoSlots 6
ShellSlots 4
AllowAllAmmo False
AddAmmo 120mmHEShell
AddAmmo 120mmAPShell
AddAmmo 120mmLockOnShell
AddAmmo HESH
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 3200
// ------------------------------------------------------ Passengers ------------------------------------------------------
//Driver and passenger positions
Driver 0 28 0 -360 360 -8 25
RotatedDriverOffset -16 0 10
Passengers 1
Passenger 1 0 28 0 turret -360 360 -15 25 browningM2 PassengerGun1
RotatedPassengerOffset 1 -16 0 -10
GunOrigin 1 0 39 -10
// ------------------------------------------------------- Sounds -------------------------------------------------------
StartSound Leo2A4Slow
StartSoundLength 20
EngineSound Leo2A4Go
EngineSoundLength 20
BackSoundLength 20
BackSound Leo2A4Slow
EngineSoundRange 120
BackSoundRange 60
IdleSound HeavyDieselIdle
IdleSoundLength 60
ShootSoundPrimary HowitzerFire
ShootSoundSecondary 30-06Fire
//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 autoLoader
AddRecipeParts core 1 advancedTankBody 1 vehicleSeat 3 blockIron
AddRecipeParts leftTrack 1 catTrack
AddRecipeParts rightTrack 1 catTrack
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 5 gray
AddDye 5 silver
//Health and collision
SetupPart core 3000 -77 0 -19 114 17 38 150
SetupPart rightTrack 550 -77 -9 21 130 19 10 11
SetupPart leftTrack 550 -77 -9 -31 130 19 10 11
SetupPart turret 3000 -66 20 -26 89 18 52 733
SetupPart trailer 2000 37 -8 -30 30 40 60 308
BulletDetection 6
Description A Germanic MBT that has an M2HB instead of a MG-3 for the passenger._Has good turret armor.
ModelScale 1.0

IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.25
CollisionDamageTimes 30
BulletSpeed 10
BulletSpread 1
RotateWheels True
SetPlayerInvisible false
DriverAimSpeed 2.4 2 0
DriverYawBeforePitch false
DriverTraverseSounds true
YawSound TurretTraverse1
YawSoundLength 21
PitchSound TurretTraverse2
PitchSoundLength 20
//Scope
hasScope true
nightScope true
Gunsight rocketscope1
gunsightZoom 4.5
//Recoil stuff
RecoilDistance 10
RecoilTime 4
//Smokelaunchers
AddSmokePoint [23,29,24] [1,0.75,-0.05] 30 turret
AddSmokePoint [23,29,-24] [0.7,0.75,-0.3] 30 turret
AddSmokePoint [27,29,24] [0.5,0.75,-0.5] 30 turret
AddSmokePoint [27,29,-24] [1,0.75,-0.05] 30 turret
AddSmokePoint [30,29,24] [0.7,0.75,-0.3] 30 turret
AddSmokePoint [30,29,-24] [0.5,0.75,-0.5] 30 turret
AddSmokePoint [35,33,23] [1,0.75,0.05] 30 turret
AddSmokePoint [35,33,-23] [0.7,0.75,0.3] 30 turret
AddSmokePoint [38,33,23] [0.5,0.75,0.5] 30 turret
AddSmokePoint [38,33,-23] [1,0.75,0.05] 30 turret
AddSmokePoint [42,33,23] [0.7,0.75,0.3] 30 turret
AddSmokePoint [42,33,-23] [0.5,0.75,0.5] 30 turret
HasFlare True
HasSmoke True
FlareDelay 200
FlareSound 81mmMortar
//Driving Particles
//1st gear change
AddEmitter smoke 1 [-74,20,11] [1,1,1] [0,1.5,0] 0.02 0.07 0 1 core
AddEmitter smoke 1 [-74,20,-11] [1,1,1] [0,1.5,0] 0.02 0.07 0 1 core
//1st gear
AddEmitter largesmoke 1 [-74,20,11] [1,1,1] [0,0.2,0] 0.05 0.2 0 1 core
AddEmitter largesmoke 1 [-74,20,-11] [1,1,1] [0,0.2,0] 0.05 0.2 0 1 core
//2nd gear change
AddEmitter smoke 1 [-80,20,11] [1,1,1] [0,3,0] 0.2 0.25 0 1 core
AddEmitter smoke 1 [-80,20,-11] [1,1,1] [0,3,0] 0.2 0.25 0 1 core
//2nd gear
AddEmitter smoke 2 [-80,20,11] [1,1,1] [0,0.7,0] 0.2 0.5 0 1 core
AddEmitter smoke 2 [-80,20,-11] [1,1,1] [0,0.7,0] 0.2 0.5 0 1 core
//3rd gear change
AddEmitter smoke 1 [-80,20,11] [1,1,1] [0,4,0] 0.5 0.52 0 1 core
AddEmitter flame 2 [-80,20,11] [1,1,1] [0,2,0] 0.5 0.51 0 1 core
AddEmitter smoke 1 [-80,20,-11] [1,1,1] [0,4,0] 0.5 0.52 0 1 core
AddEmitter flame 2 [-80,20,-11] [1,1,1] [0,2,0] 0.5 0.51 0 1 core
//3rd gear
AddEmitter smoke 2 [-80,20,11] [1,1,1] [0,0.7,0] 0.5 2 0 1 core
AddEmitter smoke 3 [-80,20,11] [1,1,1] [0,0.5,0] 0.8 2 0 1 core
AddEmitter smoke 2 [-80,20,-11] [1,1,1] [0,0.7,0] 0.5 2 0 1 core
AddEmitter smoke 3 [-80,20,-11] [1,1,1] [0,0.5,0] 0.8 2 0 1 core
//----------------------------Damaged--------------------------
AddEmitter smoke 2 [-34,26,-25.25] [7,1,7] [0,0.5,0] -1 1 0 0.6 core
AddEmitter smoke 2 [-34,26,25.25] [7,1,7] [0,0.5,0] -1 1 0 0.6 core
AddEmitter smoke 2 [5,43,14] [3,1,3] [0,0.5,0] -1 1 0 0.75 turret

AddEmitter largesmoke 3 [-34,26,-25.25] [7,1,7] [0,1,0] -1 1 0 0.4 core
AddEmitter largesmoke 3 [-34,26,25.25] [7,1,7] [0,1,0] -1 1 0 0.4 core
AddEmitter largesmoke 2 [5,43,14] [3,1,3] [0,0.5,0] -1 1 0 0.5 turret

AddEmitter largesmoke 1 [-34,26,-25.25] [7,1,7] [0,1.5,0] -1 1 0 0.25 core
AddEmitter largesmoke 1 [-34,26,25.25] [7,1,7] [0,1.5,0] -1 1 0 0.25 core

AddEmitter flame 1 [-34,26,-25.25] [5,1,5] [0,1,0] -1 1 0 0.2 core
AddEmitter flame 1 [-34,26,25.25] [5,1,5] [0,1,0] -1 1 0 0.2 core
AddEmitter largesmoke 1 [5,43,14] [3,1,3] [0,1,0] -1 1 0 0.3 turret