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


//---Standard-------------------------------------
// Naming
Name BMP-2
ShortName CW_BMP2
ItemID Your ID


// Visuals
Model CW.BMP2
ModelScale 1
Icon IconBMP2


// Recipe


//Misc
Description Soviet Armored Fighting Vehicle

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

//---Driveables-----------------------------------
//Visuals
Texture SkinBMP2


//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
AllowAllAmmo False
AddAmmo GFS_Konkurs


//Weapons
Primary GUN
Secondary MISSILE
ShootDelayPrimary 4
ReloadTimePrimary 160
ShootDelaySecondary 240
ShootDelaySecondary 400
AlternatePrimary False
AlternateSecondary True
ModePrimary FULLAUTO
ModeSecondary SEMIAUTO
ShootPointPrimary 13 27 2 turret GFS_30mmCannon 50 2 0
ShootPointSecondary 0 39 0 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 1
FuelTankSize 6000


//Recipe
AddRecipeParts core 1 GFS_LightArmorChassis
AddRecipeParts turret 1 GFS_IFVTurret
AddRecipeParts leftTrack 1 catTrack
AddRecipeParts rightTrack 1 catTrack
AddDye 4 brown 2 yellow


//Health and Collision
SetupPart core 450 -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 turret200 -20 19 -20 40 11 40
BulletDetection 7
ShootParticlesPrimary flansmod.fmflame 0.1 0 0
ShootParticlesPrimary flansmod.fmsmoke 0 0 0.1
ShootParticlesPrimary flansmod.fmsmoke 0 0 -0.1
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

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
IdleSound EngineIdle_IFV_BMPD
IdleSoundLength 20
EngineSound Engine_IFV_BMPD
EngineSoundLength 20
ShootSoundPrimary Shoot_IFV_2A42
ShootSoundSecondary Shoot_Kornet
ReloadSoundPrimary Reload_ChainGun

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

//---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

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