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


//---Standard-------------------------------------
// Naming
Name LAV-AD
ShortName GFS_LAVAD
ItemID Your ID


// Visuals
Model gfs.LAVAD
ModelScale 1
Icon IconLAVAD


// Recipe


//Misc
Description US Marines Mobile Anti-Air_1x 25mm Gatling Gun_8x AIM-92 Stinger_Introduction: 1994

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

//---Driveables-----------------------------------
//Visuals
Texture SkinLAVAD


//Movement
MaxThrottle 1.00
MaxNegativeThrottle 0.75
Drag 5.0


//Wheels
NumWheels 4
WheelPosition 0 -17 -10 -22
WheelPosition 1 -17 -10 22
WheelPosition 2 57 -10 22
WheelPosition 3 57 -10 -22
WheelRadius 1.5
WheelSpringStrength 0.5


//Floating
FloatOnWater True
Buoyancy 0.50
FloatOffset -1.5


//Ammo
BulletSpeed 10
AllowAllAmmo False
AddAmmo GFS_AIM92
AddAmmo GFS_Hydra70


//Weapons
Primary GUN
Secondary MISSILE
ShootDelayPrimary 0
ShootDelaySecondary 10
ReloadTimeSecondary 200
AlternatePrimary False
AlternateSecondary True
ModePrimary FULLAUTO
ModeSecondary SEMIAUTO
ShootPointPrimary -6 38 0 turret GFS_25mmAirGun 34 0 -6
ShootPointSecondary -6 38 -4 turret 20 10 0
ShootPointSecondary -5 39 15 turret 22 8 3
TurretOrigin 0 0 -3


//Driver and Passengers
Driver 0 25 -3 -360 360 -10 75
RotatedDriverOffset 4 0 -10
Passengers 0
SetPlayerInvisible true


//Inventory Slots
CargoSlots 4
ShellSlots 4
FuelTankSize 6000


//Recipe
AddRecipeParts core GFS_APCChassis
AddRecipeParts turret GFS_AATurret
AddDye 4 green 2 brown


//Health and Collision
SetupPart core 450 -49 4 -28 133 26 50
SetupPart turret 200 -14 32 -19 30 10 36
BulletDetection 7
AddEmitter cloud 1 [2,25,24] [1,5,5] [-1,0,0.75] 0.25 2 0 1 core
AddEmitter largesmoke 1 [2,25,24] [1,5,5] [-1,0,0.75] 0.75 2 0 1 core
//Damage
AddEmitter smoke 1 [50,30,10] [1,5,5] [0,1,0] -1 2 0 0.4 core
AddEmitter largesmoke 3 [50,30,10] [1,5,5] [0,1.5,0] -1 2 0 0.25 core
AddEmitter flame 1 [50,30,10] [1,5,5] [0,1,0] -1 2 0 0.25 core
ShootParticlesPrimary explode 0.1 0 0
ShootParticlesPrimary flansmod.fmflame 0.25 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


//Misc
CameraDistance 15


//Sounds
PlaceSoundPrimary EngineStart_IFV_LAV
IdleSound EngineIdle_IFV_LAV
IdleSoundLength 20
EngineSound Engine_IFV_LAV
EngineSoundLength 20
StartSoundRange 12
EngineSoundRange 90
BackSoundRange 50
ShootSoundPrimary Shoot_Jet_Gatling
ShootSoundSecondary Shoot_AIM
ReloadSoundPrimary Reload_ChainGun

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

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


//Movement
TurnLeftSpeed 0.30
TurnRightSpeed 0.30
FourWheelDrive False


//Misc
Tank False
CanMountEntity true


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

//------------------------------------------------
LockOnToPlanes True
LockOnToVehicles False
LockOnToPlayers False
LockOnToLivings False
CanLockOnAngle 25
MaxRangeLockOn 500
LockedOnSoundRange 2
LockOnSound Lockon_AA
LockOnSoundTime 14