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


//---Standard-------------------------------------
// Naming
Name BM-21 "Grad"
ShortName GFS_BM21
ItemID Your ID


// Visuals
Model gfs.Grad
ModelScale 1
Icon IconGrad


// Recipe


//Misc
Description Russian MLRS_40x 122mm Unguided Rockets_Introduction: 1963

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

//---Driveables-----------------------------------
//Visuals
Texture SkinGrad


//Movement
MaxThrottle 1.10
MaxNegativeThrottle 0.8
Drag 5.0


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


//Floating
FloatOnWater False


//Ammo
BulletSpeed 6
BulletSpread 4
AllowAllAmmo False
AddAmmo GFS_122mm


//Weapons
Primary MISSILE
Secondary NONE
ShootDelayPrimary 3
ShootDelaySecondary 100
ReloadTimePrimary 600
AlternatePrimary True
AlternateSecondary True
ModePrimary FULLAUTO
ModeSecondary FULLAUTO
ShootPointPrimary -8 34 -13 turret
ShootPointPrimary -8 34 -10 turret
ShootPointPrimary -8 34 -7 turret
ShootPointPrimary -8 34 -4 turret
ShootPointPrimary -8 34 -1 turret
ShootPointPrimary -8 34 1 turret
ShootPointPrimary -8 34 4 turret
ShootPointPrimary -8 34 7 turret
ShootPointPrimary -8 34 10 turret
ShootPointPrimary -8 34 13 turret
ShootPointPrimary -8 26 -13 turret
ShootPointPrimary -8 26 -10 turret
ShootPointPrimary -8 26 -7 turret
ShootPointPrimary -8 26 -4 turret
ShootPointPrimary -8 26 -1 turret
ShootPointPrimary -8 26 1 turret
ShootPointPrimary -8 26 4 turret
ShootPointPrimary -8 26 7 turret
ShootPointPrimary -8 26 10 turret
ShootPointPrimary -8 26 13 turret
TurretOrigin -39 16 0


//Driver and Passengers
Driver 17 14 -9 -360 360 0 50
Passengers 1
Passenger 1 17 14 9 core

//Inventory Slots
CargoSlots 4
ShellSlots 2
FuelTankSize 6000


//Recipe
AddRecipeParts core 1 GFS_TruckChassis 1 GFS_ArtyModule
AddDye 5 green 1 black


//Health and Collision
SetupPart core 75 -60 6 -21 120 30 42
BulletDetection 7
ShootParticlesPrimary largeexplode 0 0 0
ShootParticlesPrimary explode -2 0 0
ShootParticlesPrimary largesmoke -0.5 0 0.1
ShootParticlesPrimary largesmoke -0.5 0 -0.1
ShootParticlesPrimary largesmoke -0.5 0.06 0.06
ShootParticlesPrimary largesmoke -0.5 0.06 -0.06
ShootParticlesPrimary largesmoke -0.5 -0.06 0.06
ShootParticlesPrimary largesmoke -0.5 -0.06 -0.06
ShootParticlesPrimary largesmoke -0.5 -0.1 0
ShootParticlesPrimary largesmoke -0.5 0.1 0
ShootParticlesPrimary cloud 0.05 0 0.2
ShootParticlesPrimary cloud 0.05 0 -0.2
ShootParticlesPrimary cloud 0.05 0.13 0.13
ShootParticlesPrimary cloud 0.05 0.13 -0.13
ShootParticlesPrimary cloud 0.05 -0.13 0.13
ShootParticlesPrimary cloud 0.05 -0.13 -0.13
ShootParticlesPrimary cloud 0.05 -0.2 0
ShootParticlesPrimary cloud -0.05 0.2 0
ShootParticlesPrimary cloud -0.05 0 0.2
ShootParticlesPrimary cloud -0.05 0 -0.2
ShootParticlesPrimary cloud -0.05 0.13 0.13
ShootParticlesPrimary cloud -0.05 0.13 -0.13
ShootParticlesPrimary cloud -0.05 -0.13 0.13
ShootParticlesPrimary cloud -0.05 -0.13 -0.13
ShootParticlesPrimary cloud -0.05 -0.2 0
ShootParticlesPrimary cloud -0.05 0.2 0
ShootParticlesPrimary cloud -1 0 0
ShootParticlesPrimary cloud -1.5 0 0
ShootParticlesPrimary cloud -0.5 0 0
ShootParticlesPrimary cloud -0.25 0 0
ShootParticlesPrimary cloud -1.5 0 0
ShootParticlesPrimary cloud -0.5 0 0.1
ShootParticlesPrimary cloud -0.5 0 -0.1
ShootParticlesPrimary cloud -0.5 0.06 0.06
ShootParticlesPrimary cloud -0.5 0.06 -0.06
ShootParticlesPrimary cloud -0.5 -0.06 0.06
ShootParticlesPrimary cloud -0.5 -0.06 -0.06
ShootParticlesPrimary cloud -0.5 -0.1 0
ShootParticlesPrimary cloud -0.5 0.1 0
ShootParticlesPrimary cloud -0.05 0 0.2
ShootParticlesPrimary cloud -0.05 0 -0.2
ShootParticlesPrimary cloud -0.05 0.13 0.13
ShootParticlesPrimary cloud -0.05 0.13 -0.13
ShootParticlesPrimary cloud -0.05 -0.13 0.13
ShootParticlesPrimary cloud -0.05 -0.13 -0.13
ShootParticlesPrimary cloud -0.05 -0.2 0
ShootParticlesPrimary cloud -0.05 0.2 0
ShootParticlesPrimary cloud -0.1 0 0.4
ShootParticlesPrimary cloud -0.1 0 -0.4
ShootParticlesPrimary cloud -0.1 0.26 0.26
ShootParticlesPrimary cloud -0.1 0.26 -0.26
ShootParticlesPrimary cloud -0.1 -0.26 0.26
ShootParticlesPrimary cloud -0.1 -0.26 -0.26
ShootParticlesPrimary cloud -0.1 -0.4 0
ShootParticlesPrimary cloud -0.1 0.4 0


//Misc
CameraDistance 15


//Sounds
IdleSound Engine_IFV_5TonTruck
IdleSoundLength 20
EngineSound Engine_IFV_5TonTruck
EngineSoundLength 20
StartSoundRange 12
EngineSoundRange 90
BackSoundRange 50
ShootSoundPrimary Shoot_MLRS_Grad
ReloadSoundPrimary Reload_MLRS

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

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


//Movement
TurnLeftSpeed 0.25
TurnRightSpeed 0.25
FourWheelDrive False


//Misc
Tank False


//Turret rotation stuff
DriverAimSpeed 3 1.5 0
DriverYawBeforePitch true
DriverTraverseSounds true
YawSound TurretYaw4
YawSoundLength 21
PitchSound TurretPitch4
PitchSoundLength 20

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