// Identity
Name MIM-23
ShortName mim23
Description Russian AA Rocket Emplacement

// Item and rendering
Icon MIM23
Model mw.MIM23
Texture MIM23
AddDye 10 gray

// Recipe
AddRecipeParts turret 3 aaBarrel
AddRecipeParts core 1 mediumTankBody 1 vehicleSeat
AddRecipeParts leftTrack 1 catTrack
AddRecipeParts rightTrack 1 catTrack

// Inventory
CargoSlots 0
BombSlots 0
MissileSlots 3
AllowAllAmmo False
AddAmmo mim23Ammo
FuelTankSize 2000

// Real-world physics
RealMassKg 5600

// Movement
MaxThrottle 0
MaxNegativeThrottle 0
TurnLeftSpeed 0
TurnRightSpeed 0
WheelRadius 1.0
WheelSpringStrength 0.5
FourWheelDrive true
Tank true

// Weaponry
Primary Missile
Secondary None
ShootDelayPrimary 20
ShootDelaySecondary 0
AlternatePrimary True
AlternateSecondary False
ModePrimary FullAuto
ModeSecondary FullAuto
ShootPointPrimary 0 32 -12 turret
ShootPointPrimary 0 44 0 turret
ShootPointPrimary 0 32 12 turret
TurretOrigin 0 32 0
TurretRotationSpeed 0.06
ShootDelayPrimarySeconds 5
ReadWeaponsFromGunTypes true

// Optics
hasScope true
Gunsight official_helioptics
gunsightZoom 3
thermalSight true

// Health and armour
SetupPart core 500 -24 0 -8 48 8 16
SetupPart turret 400 -16 10 -16 32 24 32
SetupPart leftTrack 200 -24 -8 -16 48 12 8
SetupPart rightTrack 200 -24 -8 8 48 12 8
BulletDetection 7
ArmorFrontMm 0
ArmorSideMm 0
ArmorRearMm 0
ArmorTopMm 0
ArmorBottomMm 0
UseRealisticVehicleHealth true

// Seats and geometry
CameraDistance 7.5
WheelPosition 0 -24 -8 -16
WheelPosition 1 -24 -8 16
WheelPosition 2 24 -8 16
WheelPosition 3 24 -8 -16
Driver 0 6 0 -360 360 0 75
RotatedDriverOffset 8 0 0
Passengers 0

// Sounds and particles
StartSound ural4320start
StartSoundLength 40
EngineSound kamazenginerun
EngineSoundLength 101
ShootSoundPrimary RocketFire2
