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


//---Standard-------------------------------------
// Naming
Name ZTZ-99G
ShortName GFS_Type99
ItemID Your ID


// Visuals
Model gfs.Type99
ModelScale 1.03
Icon IconType99


// Recipe


//Misc
Description Chinese Main Battle Tank_1x 125mm Smoothbore Gun_1x 7.62 Machine Gun_Introduced: 2001

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

//---Driveables-----------------------------------
//Visuals
Texture SkinType99


//Movement
MaxThrottle 0.75
MaxNegativeThrottle 0.6
Drag 10.0


//Wheels
NumWheels 4
WheelPosition 0 -50 -10 -27
WheelPosition 1 -50 -10 27
WheelPosition 2 55 -10 27
WheelPosition 3 55 -10 -27
WheelRadius 1.5
WheelSpringStrength 0.5


//Floating


//Ammo
BulletSpeed 10
BulletSpread 1
AllowAllAmmo False
AddAmmo GFS_125mmHEAT
AddAmmo GFS_125mmAPFSDS
AddAmmo GFS_125mm9M119


//Weapons
Primary SHELL
Secondary GUN
ShootDelayPrimary 150
ShootDelaySecondary 2
AlternatePrimary False
AlternateSecondary False
ModePrimary FULLAUTO
ModeSecondary FULLAUTO
ShootPointPrimary 117 23 0 turret 
ShootPointSecondary 25 23 6 turret GFS_QJY88


//Driver and Passengers
Driver 0 16 0 -360 360 -5 20
RotatedDriverOffset 4 0 -10
Passengers 1
Passenger 1 0 28 0 turret -360 360 -10 50 GFS_QZJ89 PassengerGun1
RotatedPassengerOffset -15 0 11
GunOrigin 1 25 35 -6
SetPlayerInvisible true


//Inventory Slots
CargoSlots 0
ShellSlots 9
FuelTankSize 6000


//Recipe
AddRecipeParts core 1 GFS_MBTChassis
AddRecipeParts turret 1 GFS_MBTTurret
AddRecipeParts rightTrack 1 GFS_TankTracks
AddRecipeParts leftTrack 1 GFS_TankTracks
AddDye 3 green 3 yellow 3 lime


//Health and Collision
SetupPart core 800 -78 -1 -33 142 20 66
SetupPart rightTrack 250 -74 -10 -36 130 20 14
SetupPart leftTrack 250 -74 -10 22 130 20 14
SetupPart turret 800 -48 19 -21 58 11 42
SetupPart frontalArmor 1200 30 -1 -40 41 20 80
SetupPart additionalArmor 1000 2 19 -23 22 11 46
BulletDetection 7
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.015 0 0.025
ShootParticlesSecondary flame 0.015 0 -0.025
ShootParticlesSecondary flame 0.015 -0.0175 0.0175
ShootParticlesSecondary flame 0.015 -0.0175 -0.0175
ShootParticlesSecondary flame 0.015 0.025 0


//Misc
CameraDistance 15


//Sounds
IdleSound EngineIdle_Tnk_Diesel2
IdleSoundLength 20
EngineSound Engine_Tnk_Diesel2
EngineSoundLength 20
StartSoundRange 12
EngineSoundRange 90
BackSoundRange 50
ShootSoundPrimary Shoot_Tnk_125mm
ShootSoundSecondary Shoot_Gun_PKT
ShootReloadSound Reload_Tnk_Auto

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

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


//Movement
TurnLeftSpeed 1
TurnRightSpeed 1
FourWheelDrive True


//Misc
SquashMobs True
Tank True

//Turret rotation stuff
DriverAimSpeed 4 4 0
DriverYawBeforePitch false
DriverTraverseSounds true
YawSound TurretYaw3
YawSoundLength 21
PitchSound TurretPitch3
PitchSoundLength 20

//Tracks
RightLinkPoint [57,10,-26]
RightLinkPoint [60,8,-26]
RightLinkPoint [60,3,-26]
RightLinkPoint [57,0,-26]
RightLinkPoint [43,-10,-26]
RightLinkPoint [-57,-10,-26]
RightLinkPoint [-75,-1,-26]
RightLinkPoint [-79,2,-26]
RightLinkPoint [-79,7,-26]
RightLinkPoint [-75,10,-26]
LeftLinkPoint [57,10,26]
LeftLinkPoint [60,8,26]
LeftLinkPoint [60,3,26]
LeftLinkPoint [57,0,26]
LeftLinkPoint [43,-10,26]
LeftLinkPoint [-57,-10,26]
LeftLinkPoint [-75,-1,26]
LeftLinkPoint [-79,2,26]
LeftLinkPoint [-79,7,26]
LeftLinkPoint [-75,10,26]
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 500
FlareSound SmokeDeploy