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


//---Standard-------------------------------------
// Naming
Name ZBD-08 IFV
ShortName GFS_ZBD08
ItemID Your ID


// Visuals
Model gfs.ZBD08
ModelScale 1.1
Icon IconZBD09


// Recipe


//Misc
Description Chinese Armored Fighting Vehicle_1x 30mm Chain Gun_2x HJ-73_Introduction: 2009

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

//---Driveables-----------------------------------
//Visuals
Texture SkinZBD08


//Movement
MaxThrottle 1.00
MaxNegativeThrottle 0.75
Drag 5.0


//Wheels
NumWheels 4
WheelPosition 0 -25 -10 -31
WheelPosition 1 -25 -10 31
WheelPosition 2 62 -10 31
WheelPosition 3 62 -10 -31
WheelRadius 1.5
WheelSpringStrength 0.5


//Floating
FloatOnWater True
Buoyancy 0.06


//Ammo
AllowAllAmmo False
AddAmmo GFS_HJ73


//Weapons
Primary GUN
Secondary MISSILE
ShootDelayPrimary 6
ShootDelaySecondary 100
ReloadTimePrimary 200
AlternatePrimary False
AlternateSecondary True
ModePrimary FULLAUTO
ModeSecondary SEMIAUTO
ShootPointPrimary 62 41 0 turret GFS_30mmCannon4
ShootPointSecondary 0 42 -22 turret
ShootPointSecondary 0 42 22 turret


//Driver and Passengers
Driver 0 30 0 -360 360 -8 40
RotatedDriverOffset 8 0 12
Passengers 6
Passenger 1 -30 4 13 core
Passenger 2 -4 4 13 core
Passenger 3 -17 4 13 core
Passenger 4 -30 4 -13 core
Passenger 5 -17 4 -13 core
Passenger 6 -4 4 -13 core
SetPlayerInvisible true


//Inventory Slots
CargoSlots 9
ShellSlots 3
FuelTankSize 6000


//Recipe
AddRecipeParts core 1 GFS_APCChassis
AddRecipeParts turret 1 GFS_IFVTurret
AddDye 2 lime 2 brown 2 green


//Health and Collision
SetupPart core 550 -55 3 -29 154 30 58
SetupPart turret 200 -26 34 -22 44 12 44
BulletDetection 7
ShootParticlesPrimary flansmod.fmflame 0.1 0 0
ShootParticlesPrimary flansmod.fmsmoke 0.05 0.5 0
ShootParticlesPrimary flansmod.fmflame 0.1 0 0
ShootParticlesPrimary flansmod.fmsmoke 0.05 0.075 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_IFV_Stryker
IdleSoundLength 20
EngineSound Engine_IFV_Stryker
EngineSoundLength 20
StartSoundRange 12
EngineSoundRange 90
BackSoundRange 50
ShootSoundPrimary Shoot_IFV_2A72
ShootSoundSecondary Shoot_TOW
ReloadSoundPrimary Reload_ChainGun
ReloadSoundSecondary Reload_TOW

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

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


//Movement
TurnLeftSpeed 0.25
TurnRightSpeed 0.25
FourWheelDrive False


//Misc
Tank False
CanMountEntity true


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

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