// Identity
Name T-90MS
ShortName T90
Description Russian Main Battle Tank

// Item and rendering
Icon T-90
Model mw.T90
FlashModel DefaultFlash
Texture SkinT90
AddDye 6 green
AddDye 3 gray
RotateWheels true

// Recipe
AddRecipeParts turret 1 heavyTankTurret 2 redstone 2 vehicleSeat
AddRecipeParts core 1 advancedTankBody
AddRecipeParts leftTrack 1 catTrack
AddRecipeParts rightTrack 1 catTrack

// Inventory
FuelTankSize 2000
CargoSlots 0
ShellSlots 5
AddAmmo shell
AddAmmo HEshell
AddAmmo Shell125mm3BM60
AddAmmo Shell125mm3BK18M
AddAmmo Shell125mm3OF26

// Real-world physics
RealMassKg 48000
RealEnginePowerHp 1130
RealMaxSpeedKmh 60
DriveType TRACKED
RealMaxReverseSpeedKmh 5

// Movement
MaxThrottle 0.6
MaxNegativeThrottle 0.4
TurnLeftSpeed 0.8
TurnRightSpeed 0.8
RealTurnRateDegPerSec 28
Drag 10.0
WheelRadius 1.5
WheelSpringStrength 0.5
FourWheelDrive true
Tank true

// Weaponry
GunOrigin 1 1 15.9 -10
BarrelPosition 122 21 0
AddGun 8 34 8 turret rpd
ShootDelay 1
ShellDelay 70
TurretRotationSpeed 0.06
DamageModifierPrimary 100
ShootDelayPrimarySeconds 7.5
ReadWeaponsFromGunTypes true

// Optics
hasScope true
Gunsight official_leo2a6 official_leo2a6 official_leo2a6 official_leo2a6
gunsightZoom 3 12 3 12
thermalSight true
ThermalGuis 3 4

// Health and armour
SetupPart core 23500 -62 -5 -25 131 20 50
SetupPart turret 21500 -54 15 -37 101 16 74
SetupPart leftTrack 10000 -45 -10 22 116 20 11
SetupPart rightTrack 10000 -45 -10 -33 116 20 11
BulletDetection 7
ArmorFrontMm 800
ArmorSideMm 150
ArmorRearMm 60
ArmorTopMm 50
ArmorBottomMm 40
TurretArmorFrontMm 850
TurretArmorSideMm 350
TurretArmorRearMm 60
TurretArmorTopMm 50
UseRealisticVehicleHealth true

// Seats and geometry
CameraDistance 7.5
WheelPosition 0 -40 -10 -26
WheelPosition 1 -40 -10 26
WheelPosition 2 68 -10 26
WheelPosition 3 68 -10 -26
Driver 0 20 0 -360 360 -10 20
RotatedDriverOffset -5 0 11
Passengers 1
Passenger 1 0 15 0 turret -360 360 -15 40 rpd PassengerGun1
RotatedPassengerOffset 1 2 0 -14

// Sounds and particles
StartEngineSound ChallengerIdle
StartEngineSoundLength 40
EngineSound ChallengerRun
EngineSound 40
ShootSoundPrimary 90mm
ShootParticlesPrimary largeexplode 0 0 0
ShootParticlesPrimary explode 1.4 0 0
ShootParticlesPrimary flansmod.fmflame 1.7 0 0
ShootParticlesPrimary flansmod.fmflame 0.9 0.08 0.12
ShootParticlesPrimary flansmod.fmflame 0.85 -0.08 -0.12
ShootParticlesPrimary largesmoke 0.5 0.1 0.12
ShootParticlesPrimary largesmoke 0.48 -0.1 -0.12
ShootParticlesPrimary cloud 0.08 0 0
ShootSoundSecondary RPDShoot
