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


//---Standard-------------------------------------
// Naming
Name Type-89 Hachi-Kyu IFV
ShortName GFS_Type89
ItemID Your ID


// Visuals
Model gfs.Type89
ModelScale 0.8
Icon IconType89


// Recipe


//Misc
Description Japanese Infantry Fighting Vehicle_1x 35mm Autocannon_2x Type-79 Jyu-MAT_Introduction: 1989

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

//---Driveables-----------------------------------
//Visuals
Texture SkinType89


//Movement
MaxThrottle 0.75
MaxNegativeThrottle 0.6
Drag 5.0


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


//Floating


//Ammo
BulletSpeed 6
AllowAllAmmo False
AddAmmo GFS_Type-79


//Weapons
Primary GUN
Secondary MISSILE
ShootDelayPrimary 6
ReloadTimePrimary 100
ShootDelaySecondary 50
ReloadTimePrimary 250
ReloadTimeSecondary 150
AlternatePrimary False
AlternateSecondary True
ModePrimary FULLAUTO
ModeSecondary SEMIAUTO
ShootPointPrimary 76 28 0 turret GFS_35mmAirGun
ShootPointSecondary 5 35 -27 turret 
ShootPointSecondary 5 35 27 turret 


//Driver and Passengers
Driver 0 20 0 -360 360 -10 30
RotatedDriverOffset 9 0 -15
Passengers 6
Passenger 1 -37 3 -6 core
Passenger 2 -13 3 -6 core
Passenger 3 -25 3 6 core
Passenger 4 -37 3 6 core
Passenger 5 -13 3 6 core
Passenger 6 -25 3 -6 core
SetPlayerInvisible true


//Inventory Slots
CargoSlots 9
ShellSlots 5
FuelTankSize 6000


//Recipe
AddRecipeParts core 1 GFS_LightArmorChassis
AddRecipeParts turret 1 GFS_IFVTurret
AddRecipeParts leftTrack 1 GFS_TankTracks
AddRecipeParts rightTrack 1 GFS_TankTracks
AddDye 4 brown 2 cyan


//Health and Collision
SetupPart core 1200 -50 3 -30 124 20 60
SetupPart leftTrack 450 -48 -9 21 120 20 10
SetupPart rightTrack 450 -48 -9 -31 120 20 10
SetupPart turret 1200 -28 23 -22 48 16 44
BulletDetection 7
AddEmitter cloud 1 [20,21,-28] [1,1,1] [-0.75,0.5,-0.75] 0.25 1 0 1 core
AddEmitter largesmoke 1 [20,21,-28] [1,1,1] [-0.75,0.5,-0.75] 0.75 1 0 1 core
ShootParticlesPrimary flansmod.fmflame 0.1 0 0
ShootParticlesPrimary flansmod.fmsmoke 0.15 0 0
ShootParticlesPrimary flansmod.fmflame 0.1 0 0
ShootParticlesPrimary flansmod.fmsmoke 0.05 0.075 0
ShootParticlesSecondary flansmod.fmflame -0.75 0 0
ShootParticlesSecondary cloud -0.8 0 0.075
ShootParticlesSecondary cloud -0.8 0 -0.075
ShootParticlesSecondary cloud -0.8 -0.075 0
ShootParticlesSecondary cloud -0.8 0.075 0


//Misc
CameraDistance 15


//Sounds
PlaceSoundPrimary EngineStart_IFV_Bradley
IdleSound EngineIdle_IFV_Bradley
IdleSoundLength 20
EngineSound Engine_IFV_Bradley
EngineSoundLength 20
StartSoundRange 12
EngineSoundRange 90
BackSoundRange 50
ShootSoundPrimary Shoot_IFV_KDE
ShootSoundSecondary Shoot_TOW

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

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


//Movement
TurnLeftSpeed 1
TurnRightSpeed 1
FourWheelDrive True


//Misc
Tank True


//Turret rotation stuff
DriverAimSpeed 4 4 0
DriverYawBeforePitch true
DriverTraverseSounds true
YawSound TurretYaw2
YawSoundLength 21
PitchSound TurretPitch2
PitchSoundLength 20

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