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


//---Standard-------------------------------------
// Naming
Name M142 Himars
ShortName GFS_M142
ItemID Your ID


// Visuals
Model gfs.Himars
ModelScale 1
Icon IconHimars


// Recipe


//Misc
Description US Marines MLRS_6x 227mm Guided Rockets or 1x MGM-140 ATACMS_Introduced: 2002

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

//---Driveables-----------------------------------
//Visuals
Texture SkinHimars


//Movement
MaxThrottle 0.9
MaxNegativeThrottle 0.75
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 2
AllowAllAmmo False
AddAmmo GFS_227mm
AddAmmo GFS_MGM140
AddAmmo GFS_AIM120


//Weapons
Primary MISSILE
Secondary NONE
ShootDelayPrimary 15
ReloadTimePrimary 100
ShootDelaySecondary 100
AlternatePrimary True
AlternateSecondary True
ModePrimary FULLAUTO
ModeSecondary FULLAUTO
ShootPointPrimary -67 15 0 turret -45 18 6
ShootPointPrimary -67 15 0 turret -45 18 0 
ShootPointPrimary -67 15 0 turret -45 18 -6
ShootPointPrimary -67 15 0 turret -45 11 6
ShootPointPrimary -67 15 0 turret -45 11 0
ShootPointPrimary -67 15 0 turret -45 11 -6
TurretOrigin -44 0 0


//Driver and Passengers
Driver 47 16 -10 -360 360 0 40
Passengers 1
Passenger 1 47 16 10 core


//Inventory Slots
CargoSlots 4
ShellSlots 4
FuelTankSize 6000


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


//Health and Collision
SetupPart core 300 -73 6 -21 140 30 42
BulletDetection 7
AddEmitter cloud 1 [26,40,-24] [1,5,5] [-0.75,-0.75,-1.25] 0.4 1 0 1 core
AddEmitter largesmoke 1 [26,40,-24] [1,5,5] [-0.75,-0.75,-1.25] 0.8 1 0 1 core
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_M142
ReloadSoundPrimary Reload_MLRS


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

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


//Movement
TurnLeftSpeed 0.25
TurnRightSpeed 0.25
FourWheelDrive False


//Misc
Tank False


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

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