// ------------------------------------------------------ Naming ------------------------------------------------------
Name M1A2 Abrams
ShortName M1A2
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon IconM1A2
Model usmcmw.M1A2
Texture M1A2TF51
RotateWheels True
//Third Person Camera 
Distance
CameraDistance 7.5
// ------------------------------------------------------ Movement ------------------------------------------------------
//Throttle
MaxThrottle 1.4
MaxNegativeThrottle 0.4
//Steering modifiers
TurnLeftSpeed 0.3
TurnRightSpeed 0.3
//For calculating whether wheels are on the ground or not for driving
WheelRadius 1.5
//Wheel positions for collision handling. Tanks still have 4 wheels, they are just the corner ones.
NumWheels 4
WheelPosition 0 -57 -10 -44
WheelPosition 1 -57 -10 44
WheelPosition 2 49 -10 44
WheelPosition 3 49 -10 -44
RotateWheels True
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 150
ShootDelaySecondary 2
//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 25 20 0 turret
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
ShellSlots 9
AllowAllAmmo true
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 1000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Driver -13 23 10
Passengers 2
Passenger 1 3 5 14 turret
Passenger 2 -6 2 -16 turret
//Turret rotation stuff
DriverAimSpeed 2 2 0
DriverYawBeforePitch false
DriverTraverseSounds true
YawSound TurretYaw
YawSoundLength 21
PitchSound TurretPitch
PitchSoundLength 20
//Delays are in ticks or 1/20ths of seconds
//Sounds
StartSound TankIdle3
StartSoundLength 20
EngineSound TankDrive3
EngineSoundLength 20
ShootSoundPrimary TankShoot
ShootSoundSecondary HMGShoot
// ------------------------------------------------------ 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

//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 6 yellow
//Health and collision
SetupPart core 1100 -82 -1 -34 153 26 68
SetupPart rightTrack 250 -81 -10 -34 154 20 13
SetupPart leftTrack 250 -81 -10 21 154 20 13
SetupPart turret 750 -59 25 -29 98 15 58
SetupPart trailer 500 -91 5 -42 170 20 84
BulletDetection 7
SquashMobs True
ShootParticlesPrimary largeexplode 0 0 0
ShootParticlesPrimary cloud 1 0 0
ShootParticlesPrimary cloud 1.75 0 0
ShootParticlesPrimary cloud 1.5 0 0
ShootParticlesPrimary cloud 1.25 0 0
ShootParticlesPrimary cloud 0.75 0 0
ShootParticlesPrimary cloud 0.5 0 0
ShootParticlesPrimary cloud 0.25 0 0
ShootParticlesPrimary explode 1.5 0 0
ShootParticlesPrimary largesmoke 0.5 0 0.1
ShootParticlesPrimary largesmoke 0.5 0 -0.1
ShootParticlesPrimary largesmoke 0.5 0.06 0.06
ShootParticlesPrimary largesmoke 0.5 0.06 -0.06
ShootParticlesPrimary largesmoke 0.5 -0.06 0.06
ShootParticlesPrimary largesmoke 0.5 -0.06 -0.06
ShootParticlesPrimary largesmoke 0.5 -0.1 0
ShootParticlesPrimary largesmoke 0.5 0.1 0
ShootParticlesPrimary cloud 0.05 0 0.2
ShootParticlesPrimary cloud 0.05 0 -0.2
ShootParticlesPrimary cloud 0.05 0.13 0.13
ShootParticlesPrimary cloud 0.05 0.13 -0.13
ShootParticlesPrimary cloud 0.05 -0.13 0.13
ShootParticlesPrimary cloud 0.05 -0.13 -0.13
ShootParticlesPrimary cloud 0.05 -0.2 0
ShootParticlesPrimary cloud 0.05 0.2 0
ShootParticlesPrimary explode 0.1 0 0.4
ShootParticlesPrimary explode 0.1 0 -0.4
ShootParticlesPrimary explode 0.1 0.26 0.26
ShootParticlesPrimary explode 0.1 0.26 -0.26
ShootParticlesPrimary explode 0.1 -0.26 0.26
ShootParticlesPrimary explode 0.1 -0.26 -0.26
ShootParticlesPrimary explode 0.1 -0.4 0
ShootParticlesPrimary explode 0.1 0.4 0
ShootParticlesSecondary flame 0.015 0 0.025
ShootParticlesSecondary flame 0.015 0 -0.025
ShootParticlesSecondary flame 0.015 -0.0175 0.0175
ShootParticlesSecondary flame 0.015 -0.0175 -0.0175
ShootParticlesSecondary flame 0.015 0.025 0

RightLinkPoint [-73,12,-29]
RightLinkPoint [-78,6,-29]
RightLinkPoint [-78,0,-29]
RightLinkPoint [-73,-3,-29]
RightLinkPoint [-48,-10,-29]
RightLinkPoint [52,-10,-29]
RightLinkPoint [66,-2,-29]
RightLinkPoint [68,0,-29]
RightLinkPoint [68,6,-29]
RightLinkPoint [58,11,-29]
LeftLinkPoint [-73,12,29]
LeftLinkPoint [-78,6,29]
LeftLinkPoint [-78,0,29]
LeftLinkPoint [-73,-3,29]
LeftLinkPoint [-48,-10,29]
LeftLinkPoint [52,-10,29]
LeftLinkPoint [66,-2,29]
LeftLinkPoint [68,0,29]
LeftLinkPoint [68,6,29]
LeftLinkPoint [58,11,29]
TrackLinkLength 4
FlipLinkFix True
FixTrackLink 4

AddSmokePoint [0,32,-28] [1,0.75,-0.05] 20 turret
AddSmokePoint [0,28,-28] [0.7,0.75,-0.3] 20 turret
AddSmokePoint [0,24,-28] [0.5,0.75,-0.5] 20 turret
AddSmokePoint [0,32,28] [1,0.75,0.05] 20 turret
AddSmokePoint [0,28,28] [0.7,0.75,0.3] 20 turret
AddSmokePoint [0,24,28] [0.5,0.75,0.5] 20 turret
HasFlare True

HasSmoke True
FlareDelay 500
FlareSound SmokeDeploy