//Naming
Name M1 Abrams
ShortName CW_M1
Description American Main Battle Tank_1x 105mm Smoothbore Gun_1x 7.62mm Machine Gun
//Visuals
Icon IconM1
Model CW.M1
Texture SkinM1
//Third Person Camera Distance
CameraDistance 15
ModelScale 1
//Throttle
MaxThrottle 1
MaxNegativeThrottle 0.6
//Steering modifiers
TurnLeftSpeed 1
TurnRightSpeed 1
//Drag
Drag 10.0
//For calculating whether wheels are on the ground or not for driving
WheelRadius 1
//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
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Shell
Secondary Gun
AllowAllAmmo False
BulletSpeed 6
BulletSpread 1
AddAmmo GFS_105mmHEAT
AddAmmo GFS_105mmAPFSDS
AddAmmo GFS_105mmM900
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 105
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 110 30 0 turret
ShootPointSecondary 45 33 5 turret GFS_M240
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 6000
//Inventory Slots
CargoSlots 0
ShellSlots 9
//Driver and passenger positions
Driver 0 22 0 -360 360 -10 20
RotatedDriverOffset 18 0 15
Passengers 0
SetPlayerInvisible true
//Turret rotation stuff
DriverAimSpeed 5 5 0
DriverYawBeforePitch false
DriverTraverseSounds true
YawSound TurretYaw
YawSoundLength 21
PitchSound TurretPitch
PitchSoundLength 20
//Delays are in ticks or 1/20ths of seconds
//Sounds
IdleSound EngineIdle_Tnk_Turbine
IdleSoundLength 20
EngineSound Engine_Tnk_Turbine
EngineSoundLength 20
ShootSoundPrimary Shoot_Tnk_105mm
ShootSoundSecondary Shoot_Gun_M240
//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 core 1 GFS_MBTChassis
AddRecipeParts turret 1 GFS_MBTTurret
AddRecipeParts rightTrack 1 catTrack
AddRecipeParts leftTrack 1 catTrack
//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 1800 -82 -1 -34 153 26 68
SetupPart rightTrack 500 -81 -10 -34 154 20 13
SetupPart leftTrack 500 -81 -10 21 154 20 13
SetupPart turret 1200 -59 25 -29 98 15 58
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.025 0 0
ShootParticlesSecondary flansmod.fmsmoke 0 0.01 0

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


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 400
FlareSound SmokeDeploy

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
AddEmitter flame 1 [-30,37,8] [1,1,1] [0,1.5,0] -1 1 0 0.25 turret
AddEmitter flame 1 [-35,37,8] [1,1,1] [0,1.5,0] -1 1 0 0.25 turret
AddEmitter flame 1 [-40,37,8] [1,1,1] [0,1.5,0] -1 1 0 0.25 turret
AddEmitter flame 1 [-45,37,8] [1,1,1] [0,1.5,0] -1 1 0 0.25 turret
AddEmitter flame 1 [-30,37,-8] [1,1,1] [0,1.5,0] -1 1 0 0.25 turret
AddEmitter flame 1 [-35,37,-8] [1,1,1] [0,1.5,0] -1 1 0 0.25 turret
AddEmitter flame 1 [-40,37,-8] [1,1,1] [0,1.5,0] -1 1 0 0.25 turret
AddEmitter flame 1 [-45,37,-8] [1,1,1] [0,1.5,0] -1 1 0 0.25 turret