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


//---Standard-------------------------------------
// Naming
Name SPz Marder 1A5
ShortName GFS_MarderIFV
ItemID Your ID


// Visuals
Model gfs.MarderIFV
ModelScale 1
Icon IconMarder


// Recipe


//Misc
Description German Infantry Fighting Vehicle_1x 20mm Chain Gun_1x MILAN

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

//---Driveables-----------------------------------
//Visuals
Texture SkinMarderIFV


//Movement
MaxThrottle 1
MaxNegativeThrottle 0.6
Drag 5.0


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


//Floating


//Ammo
AllowAllAmmo False
AddAmmo GFS_MILAN


//Weapons
Primary GUN
Secondary MISSILE
ShootDelayPrimary 3
ShootDelaySecondary 50
ReloadTimePrimary 100
ReloadTimeSecondary 80
AlternatePrimary False
AlternateSecondary True
ModePrimary FULLAUTO
ModeSecondary SEMIAUTO
ShootPointPrimary -11 38 0 turret GFS_20mmCannon 42 1 0
ShootPointSecondary 3 42 15 turret 0 0 0


//Driver and Passengers
Driver 0 18 0 -360 360 -12 70
RotatedDriverOffset 12 0 -7
Passengers 4
Passenger 1 -28 4 -16 core
Passenger 2 -45 4 -16 core
Passenger 3 -28 4 16 core
Passenger 4 -45 4 16 core
SetPlayerInvisible true


//Inventory Slots
CargoSlots 9
ShellSlots 6
FuelTankSize 6000


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


//Health and Collision
SetupPart core 700 -60 3 -30 122 24 60
SetupPart leftTrack 250 -56 -9 21 113 20 10
SetupPart rightTrack 250 -56 -9 -31 113 20 10
SetupPart turret 350 -15 27 -15 30 15 30
BulletDetection 7
ShootParticlesPrimary flansmod.fmflame 0.25 0 0
ShootParticlesPrimary cloud 0.010 0 0
ShootParticlesSecondary flansmod.fmflame -0.75 0 0
ShootParticlesSecondary cloud -0.8 0 0.075
ShootParticlesSecondary cloud -0.8 0 -0.075
ShootParticlesSecondary cloud -0.8 -0.075 0
ShootParticlesSecondary cloud -0.8 0.075 0


//Misc
CameraDistance 15


//Sounds
PlaceSoundPrimary EngineStart_IFV_Marder
IdleSound EngineIdle_IFV_Marder
IdleSoundLength 20
EngineSound Engine_IFV_Marder
EngineSoundLength 20
StartSoundRange 12
EngineSoundRange 90
BackSoundRange 50
ShootSoundPrimary Shoot_IFV_Rh202
ShootSoundSecondary Shoot_MILAN

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

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


//Movement
TurnLeftSpeed 1
TurnRightSpeed 1
FourWheelDrive True


//Misc
Tank True
CanMountEntity true


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

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