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


//---Standard-------------------------------------
// Naming
Name BTR-90 "Beresgok"
ShortName GFS_BTR90
ItemID Your ID


// Visuals
Model gfs.BTR90
ModelScale 1
Icon IconBTR90


// Recipe


//Misc
Description Middle Eastern Powers (Fictional) Armored Fighting Vehicle_1x 30mm Chain Gun_4x 9M133 "Kornet"_Introduced: 2004

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

//---Driveables-----------------------------------
//Visuals
Texture SkinBTR90


//Movement
MaxThrottle 1.00
MaxNegativeThrottle 0.75
Drag 5.0


//Wheels
NumWheels 4
WheelPosition 0 -65 -10 -26
WheelPosition 1 -65 -10 26
WheelPosition 2 26 -10 26
WheelPosition 3 26 -10 -26
WheelRadius 2


//Floating
FloatOnWater true
Buoyancy 0.06

FloatOffset -1.5


//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 37 0 turret GFS_30mmCannon 50 2 0
ShootPointSecondary 0 40 20 turret 0 1 0
ShootPointSecondary 0 40 -20 turret 0 1 0


//Driver and Passengers
Driver 0 25 0 -360 360 -6 65
RotatedDriverOffset 13 0 -9
Passengers 6
Passenger 1 -50 6 15 core
Passenger 2 -18 6 15 core
Passenger 3 -34 6 15 core
Passenger 4 -50 6 -15 core
Passenger 5 -18 6 -15 core
Passenger 6 -34 6 -15 core
SetPlayerInvisible true


//Inventory Slots
CargoSlots 6
ShellSlots 2
FuelTankSize 6000


//Recipe
AddRecipeParts core 1 GFS_APCChassis
AddRecipeParts turret 1 GFS_IFVTurret
AddDye 4 brown 2 yellow


//Health and Collision
SetupPart core 500 -90 2 -30 140 28 60
SetupPart turret 900 -20 30 -20 40 13 40
BulletDetection 7
ShootParticlesPrimary flansmod.fmsmoke 0 0 0.1
ShootParticlesPrimary flansmod.fmsmoke 0 0 -0.1
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
PlaceSoundPrimary EngineStart_IFV_BTR
IdleSound EngineIdle_IFV_BTR
IdleSoundLength 20
EngineSound Engine_IFV_BTR
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 0.30
TurnRightSpeed 0.30
FourWheelDrive False


//Misc
Tank False


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

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