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


//---Standard-------------------------------------
// Naming
Name M2A3 Bradley
ShortName GFS_M2A2
ItemID Your ID


// Visuals
Model gfs.Bradley
ModelScale 1
Icon IconBradley


// Recipe


//Misc
Description US Army Infantry Fighting Vehicle_1x 25mm Chain Gun_2x BGM-71 TOW_Introduced: 2000

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

//---Driveables-----------------------------------
//Visuals
Texture SkinBradley


//Movement
MaxThrottle 0.93
MaxNegativeThrottle 0.6
Drag 5.0


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


//Floating


//Ammo
BulletSpeed 5
AllowAllAmmo False
AddAmmo GFS_BGM71


//Weapons
Primary GUN
Secondary MISSILE
ShootDelayPrimary 6
ShootDelaySecondary 20
ReloadTimePrimary 250
ReloadTimeSecondary 100
AlternatePrimary False
AlternateSecondary True
ModePrimary FULLAUTO
ModeSecondary SEMIAUTO
ShootPointPrimary 16 34 7 turret GFS_25mmCannon 38 0 0
ShootPointSecondary 0 46 -17 turret 0 0 0
ShootPointSecondary 0 46 -23 turret 0 0 0
TurretOrigin 0 0 4


//Driver and Passengers
Driver 0 25 4 -360 360 -10 45
RotatedDriverOffset 12 0 -8
Passengers 4
Passenger 1 -25 4 -12 core
Passenger 2 -39 4 -12 core
Passenger 3 -25 4 12 core
Passenger 4 -39 4 12 core
SetPlayerInvisible true


//Inventory Slots
CargoSlots 9
ShellSlots 6
FuelTankSize 6000


//Recipe
AddRecipeParts core GFS_LightArmorChassis
AddRecipeParts turret GFS_IFVTurret
AddRecipeParts leftTrack GFS_TankTracks
AddRecipeParts rightTrack GFS_TankTracks
AddDye 6 yellow


//Health and Collision
SetupPart core 850 -51 4 -24 115 24 56
SetupPart turret 600 -20 28 -21 40 15 38
SetupPart rightTrack 500 -53 -10 -25 119 22 12
SetupPart leftTrack 500 -53 -10 21 119 22 12
BulletDetection 7
ShootParticlesPrimary flansmod.fmflame 0.25 0 0
ShootParticlesPrimary cloud 0.05 0 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

RightLinkPoint [59,10.5,23]
RightLinkPoint [62,7.5,23]
RightLinkPoint [62,2.5,23]
RightLinkPoint [59,-0.5,23]
RightLinkPoint [44,-9.5,23]
RightLinkPoint [-32,-9.5,23]
RightLinkPoint [-44,-0.5,23]
RightLinkPoint [-48,2.5,23]
RightLinkPoint [-48,7.5,23]
RightLinkPoint [-44,10.5,23]
LeftLinkPoint [59,10.5,-23]
LeftLinkPoint [62,7.5,-23]
LeftLinkPoint [62,2.5,-23]
LeftLinkPoint [59,-0.5,-23]
LeftLinkPoint [44,-9.5,-23]
LeftLinkPoint [-32,-9.5,-23]
LeftLinkPoint [-45,-0.5,-23]
LeftLinkPoint [-48,2.5,-23]
LeftLinkPoint [-48,7.5,-23]
LeftLinkPoint [-45,10.5,-23]
TrackLinkLength 4
FlipLinkFix true
FixTrackLink 5


//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_M242
ShootSoundSecondary Shoot_TOW
ReloadSoundPrimary Reload_ChainGun
ReloadSoundSecondary Reload_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

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