// ------------------------------------------------------ Naming ------------------------------------------------------
Name CATTB Abrams
ShortName forestedAbrams
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon NotAK2
Model rainfire.CATTB
Texture SkinCATTB
//Third Person Camera Distance
CameraDistance 12.0
// ------------------------------------------------------ Movement -----------------------------------------------------
//Throttle
MaxThrottle 1.76
MaxNegativeThrottle 0.2
//Steering modifiers
TurnLeftSpeed 0.5
TurnRightSpeed 0.5
//Drag
Drag 15.0
//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 -55 -9 -28
WheelPosition 1 -55 -9 28
WheelPosition 2 40 -9 28
WheelPosition 3 40 -9 -28
WheelSpringStrength 0.5
//If true, then all wheels will apply drive forces
FourWheelDrive true
//Tank mode activate
Tank true
RotateWheels true
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Shell
Secondary Gun
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 80
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 120 28.5 0 turret
ShootPointSecondary 45 31 5.5 turret fnM240
ShootParticlesPrimary largeexplode 6 0 0
ShootParticlesPrimary explode 1 0 1
ShootParticlesPrimary explode 1 0 0
ShootParticlesPrimary explode 1 0 -1
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 8
ShellSlots 4
AllowAllAmmo False
AddAmmo 140mmDeathShell
AddAmmo 140mmHEATShell
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 3600
// ------------------------------------------------------ Passengers ------------------------------------------------------
//Driver and passenger positions
Driver 0 32 0 -360 360 -10 30
RotatedDriverOffset -16 0 -14
Passengers 1
Passenger 1 0 33 0 turret -360 360 -10 25 browningM2 PassengerGun1
RotatedPassengerOffset 1 -15 0 16
GunOrigin 1 5 43 16
PassengerAimSpeed 1 4.4 4.2 0
invisiblePassenger 1 true
heliGuiSeat 1 true
heliGUI CROWSScope
passengerZoom 1 3
// ------------------------------------------------------- Sounds -------------------------------------------------------
StartSound Leo2A4Slow
StartSoundLength 20
EngineSound K2Go
EngineSoundLength 40
BackSoundLength 20
BackSound Leo2A4Slow
EngineSoundRange 80
BackSoundRange 40
IdleSound HeavyDieselIdle
IdleSoundLength 60
ShootSoundPrimary CATTBFire
ShootSoundSecondary .308BattleRifle
//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 12 depletedUranium 2 diamond 12 redstone
AddRecipeParts core 1 advancedTankBody 1 vehicleSeat 18 depletedUranium
AddRecipeParts leftTrack 1 catTrack 2 depletedUranium 16 ingotIron
AddRecipeParts rightTrack 1 catTrack 2 depletedUranium 16 ingotIron
AddRecipeParts trailer 10 depletedUranium
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 5 gray
AddDye 5 green
//Health and collision
SetupPart core 3000 -64 3 -33 120 16 66 460
SetupPart turret 2500 -64 21 -30 105 13 61 250
SetupPart leftTrack 800 -71 -9 -32 125 21 10 11
SetupPart rightTrack 800 -72 -9 23 124 21 9 11
SetupPart ERA 1200 -90 2 -43 153 21 85 980
SetupPart trailer 1800 -87 4 -39 148 17 80 500
SetupPart additionalArmor 2400 -67 22 -34 114 16 68 970
SetupPart APS 1200 63 -10 -50 20 58 99 120
BulletDetection 6
Description An Abrams tank with super thick armor,_fringes by tracks, and autoloading 140mm gun!
ModelScale 1.05
IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.20
CollisionDamageTimes 20
BulletSpeed 15
BulletSpread 0.5
SetPlayerInvisible false
DriverAimSpeed 3 2.4 0
DriverYawBeforePitch false
DriverTraverseSounds true
YawSound TurretTraverse1
YawSoundLength 21
PitchSound TurretTraverse2
PitchSoundLength 20
//Scope
hasScope true
nightScope true
Gunsight AbramsScope
gunsightZoom 5.0
//Recoil stuff
RecoilDistance 12
RecoilTime 4
//Useless concealment but looks cool
HasFlare True
HasSmoke True
FlareDelay 180
FlareSound 81mmMortar

AddSmokePoint [37,33,20] [1,0.75,-0.05] 30 turret
AddSmokePoint [38,31,24] [0.5,0.75,-0.5] 30 turret
AddSmokePoint [34,31,25] [1,0.75,-0.05] 30 turret
AddSmokePoint [35,31,24] [0.7,0.75,-0.3] 30 turret
AddSmokePoint [39,29,21] [0.5,0.75,-0.5] 30 turret
AddSmokePoint [36,29,25] [1,0.75,-0.05] 30 turret
AddSmokePoint [40,27,21] [0.5,0.75,-0.5] 30 turret
AddSmokePoint [37,27,26] [0.7,0.75,-0.3] 30 turret

AddSmokePoint [37,33,-20] [1,0.75,0.05] 30 turret
AddSmokePoint [38,31,-24] [0.5,0.75,0.5] 30 turret
AddSmokePoint [34,31,-25] [1,0.75,0.05] 30 turret
AddSmokePoint [35,31,-24] [0.7,0.75,0.3] 30 turret
AddSmokePoint [39,29,-21] [0.5,0.75,0.5] 30 turret
AddSmokePoint [36,29,-25] [1,0.75,0.05] 30 turret
AddSmokePoint [40,27,-21] [0.5,0.75,0.5] 30 turret
AddSmokePoint [37,27,-26] [0.7,0.75,0.3] 30 turret

AddSmokePoint [-50,38,28] [0,1,-1.0] 30 turret
AddSmokePoint [-55,38,28] [0,1,-0.5] 30 turret
AddSmokePoint [-50,37,31] [0,1,-1.0] 30 turret
AddSmokePoint [-55,37,30] [0,1,-0.7] 30 turret
AddSmokePoint [-50,33,34] [-0.05,0.75,-0.5] 30 turret
AddSmokePoint [-55,33,32] [-0.05,0.75,-1.0] 30 turret
AddSmokePoint [-50,31,35] [-0.05,0.75,-0.5] 30 turret
AddSmokePoint [-55,31,33] [-0.05,0.75,-0.7] 30 turret

AddSmokePoint [-50,38,28] [0,1,1.0] 30 turret
AddSmokePoint [-55,38,28] [0,1,0.5] 30 turret
AddSmokePoint [-50,37,31] [0,1,1.0] 30 turret
AddSmokePoint [-55,37,30] [0,1,0.7] 30 turret
AddSmokePoint [-50,33,34] [-0.05,0.75,0.5] 30 turret
AddSmokePoint [-55,33,32] [-0.05,0.75,1.0] 30 turret
AddSmokePoint [-50,31,35] [-0.05,0.75,0.5] 30 turret
AddSmokePoint [-55,31,33] [-0.05,0.75,0.7] 30 turret
//Fancy tracks- uhhh
RightLinkPoint [55.5,15,-27.5]
RightLinkPoint [61,10,-27.5]
RightLinkPoint [61,5,-27.5]
RightLinkPoint [55.5,0,-27.5]
RightLinkPoint [38.5,-9.5,-27.5]
RightLinkPoint [-54.5,-9.5,-27.5]
RightLinkPoint [-70,3,-27.5]
RightLinkPoint [-74,6,-27.5]
RightLinkPoint [-74,12,-27.5]
RightLinkPoint [-70,15,-27.5]
LeftLinkPoint [55.5,15,27.5]
LeftLinkPoint [61,10,27.5]
LeftLinkPoint [61,5,27.5]
LeftLinkPoint [55.5,0,27.5]
LeftLinkPoint [38.5,-9.5,27.5]
LeftLinkPoint [-54.5,-9.5,27.5]
LeftLinkPoint [-70,3,27.5]
LeftLinkPoint [-74,6,27.5]
LeftLinkPoint [-74,12,27.5]
LeftLinkPoint [-70,15,27.5]
TrackLinkLength 5
FlipLinkFix false
FixTrackLink 5

//Smonk stuff
AddEmitter cloud 1 [-83,15,-4] [1,1,1] [-0.75,-1.5,0] 0.4 1 0 1 core
AddEmitter cloud 1 [-83,15,0] [1,1,1] [-0.75,-1.5,0] 0.4 1 0 1 core
AddEmitter cloud 1 [-83,15,4] [1,1,1] [-0.75,-1.5,0] 0.4 1 0 1 core
AddEmitter cloud 1 [-83,15,8] [1,1,1] [-0.75,-1.5,0] 0.4 1 0 1 core
AddEmitter largesmoke 3 [-83,15,-4] [1,1,1] [-0.75,-1.5,0] 0.8 1 0 1 core
AddEmitter largesmoke 3 [-83,15,0] [1,1,1] [-0.75,-1.5,0] 0.8 1 0 1 core
AddEmitter largesmoke 3 [-83,15,4] [1,1,1] [-0.75,-1.5,0] 0.8 1 0 1 core
AddEmitter largesmoke 3 [-83,15,8] [1,1,1] [-0.75,-1.5,0] 0.8 1 0 1 core
//Damage
AddEmitter flame 1 [-70,24,15] [1,1,1] [0,0.5,0] -1 1 0 0.25 core
AddEmitter flame 1 [-70,24,-15] [1,1,1] [0,0.5,0] -1 1 0 0.25 core
AddEmitter flame 1 [-70,24,5] [1,1,1] [0,0.5,0] -1 1 0 0.25 core
AddEmitter flame 1 [-70,24,-5] [1,1,1] [0,0.5,0] -1 1 0 0.25 core
AddEmitter largesmoke 3 [-70,24,15] [1,1,1] [0,1.5,0] -1 1 0 0.25 core
AddEmitter largesmoke 3 [-70,24,-15] [1,1,1] [0,-1.5,0] -1 1 0 0.25 core
AddEmitter largesmoke 3 [-70,24,5] [1,1,1] [0,1.5,0] -1 1 0 0.25 core
AddEmitter largesmoke 3 [-70,24,-5] [1,1,1] [0,1.5,0] -1 1 0 0.25 core
AddEmitter largesmoke 1 [-70,24,15] [1,1,1] [0,1,0] -1 1 0 0.4 core
AddEmitter largesmoke 1 [-70,24,-15] [1,1,1] [0,1,0] -1 1 0 0.4 core
AddEmitter largesmoke 1 [-70,24,5] [1,1,1] [0,1,0] -1 1 0 0.4 core
AddEmitter largesmoke 1 [-70,24,-5] [1,1,1] [0,1,0] -1 1 0 0.4 core