﻿//---Standard Vehicle Config for Flans Mod--------
//Created by Minecraft-SMP Toolbox 2.1.4.2


//---Standard-------------------------------------
// Naming
Name 9K22 Tunguska
ShortName GFS_GFS_Tungusta
ItemID Your ID


// Visuals
Model gfs.Tungusta
ModelScale 1
Icon IconTungusta


// Recipe


//Misc
Description Russian Mobile Anti-Air_2x 30mm Autocannon_6x 9M311 Treugolnik Missile_Introduced: 1982

//------------------------------------------------

//---Driveables-----------------------------------
//Visuals
Texture SkinTungusta


//Movement
MaxThrottle 0.75
MaxNegativeThrottle 0.6
Drag 10.0


//Wheels
NumWheels 4
WheelPosition 0 -56 -10 -28
WheelPosition 1 -56 -10 28
WheelPosition 2 30 -10 28
WheelPosition 3 30 -10 -28
WheelSpringStrength 0.5
WheelRadius 1.5


//Floating


//Ammo
BulletSpeed 14
AllowAllAmmo False
AddAmmo GFS_Treugolnik 


//Weapons
Primary GUN
Secondary MISSILE
ShootDelayPrimary 1
ShootDelaySecondary 150
ReloadTimeSecondary 200
AlternatePrimary True
AlternateSecondary True
ModePrimary FULLAUTO
ModeSecondary FULLAUTO
ShootPointPrimary -16 32 -12 turret GFS_30mmAirGun4 50 0 0  
ShootPointPrimary -16 32 12 turret GFS_30mmAirGun4 50 0 0  
ShootPointSecondary -16 32 -20 turret 38 0 0
ShootPointSecondary -16 32 20 turret 38 0 0


//Driver and Passengers
Driver 0 30 0 -360 360 -4 85
RotatedDriverOffset 6 0 4
Passengers 0
SetPlayerInvisible true


//Inventory Slots
CargoSlots 4
ShellSlots 2
FuelTankSize 6000


//Recipe
AddRecipeParts core 1 GFS_MBTChassis
AddRecipeParts turret 1 GFS_AATurret
AddRecipeParts leftTrack 1 GFS_TankTracks
AddRecipeParts rightTrack 1 GFS_TankTracks
AddDye 4 brown 6 yellow


//Health and Collision
SetupPart core 400 -76 0 -26 135 22 52
SetupPart rightTrack 250 -72 -10 -28 125 20 8
SetupPart leftTrack 250 -72 -10 20 125 20 8
SetupPart turret 200 -37 22 -24 55 16 48
BulletDetection 7
ShootParticlesPrimary smoke 0 0 0
ShootParticlesPrimary explode 0.5 0 0
ShootParticlesPrimary explode 0.1 0.05 0
ShootParticlesPrimary flansmod.fmflame 0 0 0
ShootParticlesSecondary flansmod.fmflame -0.5 0 0
ShootParticlesSecondary flansmod.fmflame 1.0 0 0
ShootParticlesSecondary cloud 0.25 0.05 0
ShootParticlesSecondary cloud 0.25 -0.05 0
ShootParticlesSecondary cloud 0.25 0 -0.05
ShootParticlesSecondary cloud 0.25 0 0.05
ShootParticlesSecondary cloud 0.25 0.025 0.025
ShootParticlesSecondary cloud 0.25 -0.025 0.025
ShootParticlesSecondary cloud 0.25 0.025 -0.025
ShootParticlesSecondary cloud 0.25 -0.025 -0.025
ShootParticlesSecondary cloud -0.5 0.05 0
ShootParticlesSecondary cloud -0.5 -0.05 0
ShootParticlesSecondary cloud -0.5 0 -0.05
ShootParticlesSecondary cloud -0.5 0 0.05
ShootParticlesSecondary cloud -0.5 0.025 0.025
ShootParticlesSecondary cloud -0.5 -0.025 0.025
ShootParticlesSecondary cloud -0.5 0.025 -0.025
ShootParticlesSecondary cloud -0.5 -0.025 -0.025
ShootParticlesSecondary cloud -1.5 0.05 0
ShootParticlesSecondary cloud -1.5 -0.05 0
ShootParticlesSecondary cloud -1.5 0 -0.05
ShootParticlesSecondary cloud -1.5 0 0.05
ShootParticlesSecondary cloud -1.5 0.025 0.025
ShootParticlesSecondary cloud -1.5 -0.025 0.025
ShootParticlesSecondary cloud -1.5 0.025 -0.025
ShootParticlesSecondary cloud -1.5 -0.025 -0.025


//Misc
CameraDistance 15


//Sounds
IdleSound EngineIdle_Tnk_Diesel
IdleSoundLength 20
EngineSound Engine_Tnk_Diesel
EngineSoundLength 20
StartSoundRange 12
EngineSoundRange 90
BackSoundRange 50
ShootSoundPrimary Shoot_AA_Cannon2
ShootSoundSecondary Shoot_9M311

//------------------------------------------------

//---Vehicle--------------------------------------
//Visuals
RotateWheels True


//Movement
TurnLeftSpeed 1
TurnRightSpeed 1
FourWheelDrive True


//Misc
SquashMobs True
Tank True


//Turret rotation stuff
DriverAimSpeed 5 5 0
DriverYawBeforePitch true
DriverTraverseSounds true
YawSound TurretYaw4
YawSoundLength 21
PitchSound TurretPitch4
PitchSoundLength 20

//------------------------------------------------
LockOnToPlanes True
LockOnToVehicles False
LockOnToPlayers False
LockOnToLivings False
CanLockOnAngle 10
MaxRangeLockOn 750
LockedOnSoundRange 1
LockOnSound Lockon_AA2
LockOnSoundTime 14