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


//---Standard-------------------------------------
// Naming
Name BMP-2M "Berezhok"
ShortName GFS_BMP2M
ItemID Your ID


// Visuals
Model gfs.BMP2M
ModelScale 1
Icon IconBMP2M


// Recipe


//Misc
Description Russian Armored Fighting Vehicle_1x 30mm Chain Gun_4x 9M133 "Kornet"_Introduction: 2008

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

//---Driveables-----------------------------------
//Visuals
Texture SkinBMP2M


//Movement
MaxThrottle 1.00
MaxNegativeThrottle 0.75
Drag 10.0


//Wheels
NumWheels 4
WheelPosition 0 -22 -10 -24
WheelPosition 1 -22 -8 24
WheelPosition 2 22 -8 24
WheelPosition 3 22 -8 -24
WheelRadius 2


//Floating

FloatOnWater true
Buoyancy 0.06
FloatOffset -1.0


//Ammo
BulletSpeed 6
AllowAllAmmo False
AddAmmo GFS_Kornet


//Weapons
Primary GUN
Secondary MISSILE
ShootDelayPrimary 4
ShootDelaySecondary 8
ReloadTimePrimary 400
ReloadTimeSecondary 200
AlternatePrimary False
AlternateSecondary True
ModePrimary FULLAUTO
ModeSecondary SEMIAUTO
ShootPointPrimary 13 27 2 turret GFS_30mmCannon 50 2 0
ShootPointSecondary 0 31 20 turret 0 1 0
ShootPointSecondary 0 31 -20 turret 0 1 0


//Driver and Passengers
Driver 0 16 0 -360 360 -6 65
RotatedDriverOffset 13 0 -9
Passengers 4
Passenger 1 -38 2 4 core
Passenger 2 -26 2 4 core
Passenger 3 -26 2 -4 core
Passenger 4 -38 2 -4 core
SetPlayerInvisible true


//Inventory Slots
CargoSlots 6
ShellSlots 2
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 650 -50 -1 -25 130 22 50
SetupPart rightTrack 450 -49 -10 -27 115 20 5
SetupPart leftTrack 450 -49 -10 22 115 20 5
SetupPart turret GFS_ 200 -20 19 -20 40 11 40
BulletDetection 7
ShootParticlesPrimary flansmod.fmflame 0.25 0 0
ShootParticlesPrimary cloud 0 0 0.15
ShootParticlesPrimary cloud 0 0 -0.15
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

RightLinkPoint [60,11,23.5]
RightLinkPoint [65,7,23.5]
RightLinkPoint [65,3,23.5]
RightLinkPoint [60,-1,23.5]
RightLinkPoint [45,-9.5,23.5]
RightLinkPoint [-30,-9.5,23.5]
RightLinkPoint [-45,0.5,23.5]
RightLinkPoint [-47.5,3,23.5]
RightLinkPoint [-48.5,6,23.5]
RightLinkPoint [-47.5,9,23.5]
RightLinkPoint [-45,11.5,23.5]
RightLinkPoint [-43,12.5,23.5]
LeftLinkPoint [60,11,-23.5]
LeftLinkPoint [65,7,-23.5]
LeftLinkPoint [65,3,-23.5]
LeftLinkPoint [60,-1,-23.5]
LeftLinkPoint [45,-9.5,-23.5]
LeftLinkPoint [-30,-9.5,-23.5]
LeftLinkPoint [-45,0.5,-23.5]
LeftLinkPoint [-47.5,3,-23.5]
LeftLinkPoint [-48.5,6,-23.5]
LeftLinkPoint [-47.5,9,-23.5]
LeftLinkPoint [-45,11.5,-23.5]
LeftLinkPoint [-43,12.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_IFV_2A42
ShootSoundSecondary Shoot_Kornet
ReloadSoundPrimary Reload_ChainGun
ReloadSoundSecondary Reload_TOW

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

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


//Movement
TurnLeftSpeed 1
TurnRightSpeed 1
FourWheelDrive False


//Misc
Tank True


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

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