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


//---Standard-------------------------------------
// Naming
Name BMD-4
ShortName GFS_BMD-4
ItemID Your ID


// Visuals
Model gfs.BMD4
ModelScale 1
Icon IconBMD4


// Recipe


//Misc
Description Russian Airborne Armored Fighting Vehicle_1x 100mm Low Velocity Gun_1x 30mm Chain Gun_Introduction: 2004

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

//---Driveables-----------------------------------
//Visuals
Texture SkinBMD4


//Movement
MaxThrottle 1.16
MaxNegativeThrottle 0.60
Drag 5.0


//Wheels
NumWheels 4
WheelPosition 0 -33 -10 -22
WheelPosition 1 -33 -10 22
WheelPosition 2 19 -10 22
WheelPosition 3 19 -10 -22
WheelRadius 1.5
WheelSpringStrength 0.5


//Floating
FloatOnWater True
Buoyancy 0.06


//Ammo
//Ammo
BulletSpeed 4
BulletSpread 2
AllowAllAmmo False
AddAmmo GFS_100mmHEF
AddAmmo GFS_100mm9M117


//Weapons
Primary SHELL
Secondary GUN
ShootDelayPrimary 100
ShootDelaySecondary 6
AlternatePrimary False
AlternateSecondary False
ModePrimary FULLAUTO
ModeSecondary FULLAUTO
ShootPointPrimary 71 25 -2 turret 
ShootPointSecondary 61 25 2 turret GFS_30mmCannon


//Driver and Passengers
Driver 0 14 0 -360 360 -2 20
RotatedDriverOffset 10 0 -10
Passengers 0
SetPlayerInvisible true


//Inventory Slots
CargoSlots 5
ShellSlots 4
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 yellow


//Health and Collision
SetupPart core 500 -50 -1 -25 130 22 50
SetupPart rightTrack 300 -49 -10 -27 115 20 5
SetupPart leftTrack 300 -49 -10 22 115 20 5
SetupPart turret 200 -20 19 -20 40 11 40
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.025 0.025
ShootParticlesPrimary largesmoke 0.5 0.025 -0.025
ShootParticlesPrimary largesmoke 0.5 -0.025 0.025
ShootParticlesPrimary largesmoke 0.5 -0.025 -0.025
ShootParticlesPrimary cloud 0.025 0 0.1
ShootParticlesPrimary cloud 0.025 0 -0.1
ShootParticlesPrimary cloud 0.025 -0.1 0
ShootParticlesPrimary cloud 0.025 0.1 0
ShootParticlesPrimary cloud 0.05 0.8 0.8
ShootParticlesPrimary cloud 0.05 0.8 -0.8
ShootParticlesPrimary cloud 0.05 -0.8 0.8
ShootParticlesPrimary cloud 0.05 -0.8 -0.8
ShootParticlesSecondary flansmod.fmflame 0.1 0 0
ShootParticlesSecondary flansmod.fmsmoke 0.05 0.5 0

RightLinkPoint [13,8.5,23.5]
RightLinkPoint [32.5,8,23.5]
RightLinkPoint [36,4.5,23.5]
RightLinkPoint [36,2,23.5]
RightLinkPoint [32.5,-1.5,23.5]
RightLinkPoint [21,-9,23.5]
RightLinkPoint [-36,-9,23.5]
RightLinkPoint [-46,-2,23.5]
RightLinkPoint [-49,0,23.5]
RightLinkPoint [-49,4,23.5]
RightLinkPoint [-46,6.5,23.5]
RightLinkPoint [-28.5,8.5,23.5]
LeftLinkPoint [13,8.5,-23.5]
LeftLinkPoint [32.5,8,-23.5]
LeftLinkPoint [36,4.5,-23.5]
LeftLinkPoint [36,2,-23.5]
LeftLinkPoint [32.5,-1.5,-23.5]
LeftLinkPoint [21,-9,-23.5]
LeftLinkPoint [-36,-9,-23.5]
LeftLinkPoint [-46,-2,-23.5]
LeftLinkPoint [-49,0,-23.5]
LeftLinkPoint [-49,4,-23.5]
LeftLinkPoint [-46,6.5,-23.5]
LeftLinkPoint [-28.5,8.5,-23.5]
TrackLinkLength 3
FlipLinkFix false
FixTrackLink 6


//Misc
CameraDistance 15


//Sounds
PlaceSoundPrimary EngineStart_IFV_BMPD
IdleSound EngineIdle_IFV_BMPD
IdleSoundLength 20
EngineSound Engine_IFV_BMPD
EngineSoundLength 20
StartSoundRange 12
EngineSoundRange 90
BackSoundRange 50
ShootSoundPrimary Shoot_Tnk_100mm
ShootSoundSecondary Shoot_IFV_2A72

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

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


//Movement
TurnLeftSpeed 1
TurnRightSpeed 1
FourWheelDrive True


//Misc
Tank True


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


//------------------------------------------------
AddSmokePoint [13,22,-12] [0.50,0.75,-0.75] 20 turret
AddSmokePoint [13,22,12] [0.50,0.75,0.75] 20 turret

AddSmokePoint [13,22,-12] [0.75,0.75,-0.25] 20 turret
AddSmokePoint [13,22,12] [0.75,0.75,0.25] 20 turret
HasFlare True

HasSmoke True
FlareDelay 350
FlareSound SmokeDeploy