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


//---Standard-------------------------------------
// Naming
Name Leopard 2A7+
ShortName GFS_L2A7
ItemID Your ID


// Visuals
Model gfs.L2A7
ModelScale 1
Icon IconL2A7

//Misc
Description German Main Battle Tank_1x 120mm Smoothbore Gun_1x 12.7mm Machine Gun_Introduction: 2014

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

//---Driveables-----------------------------------
//Visuals
Texture SkinL2A7


//Movement
MaxThrottle 1.25
MaxNegativeThrottle 0.75
Drag 10.0


//Wheels
NumWheels 4
WheelPosition 0 -57 -10 -44
WheelPosition 1 -57 -10 44
WheelPosition 2 49 -10 44
WheelPosition 3 49 -10 -44
RotateWheels True
WheelSpringStrength 0.5


//Floating


//Ammo
AllowAllAmmo False
BulletSpeed 12
BulletSpread 1
AddAmmo GFS_120mmAPFSDS
AddAmmo GFS_120mmHEAT
AddAmmo GFS_120mmDM63
AddAmmo GFS_LAHAT


//Weapons
Primary SHELL
Secondary GUN
ShootDelayPrimary 120
ShootDelaySecondary 3
AlternatePrimary False
AlternateSecondary False
ModePrimary FULLAUTO
ModeSecondary FULLAUTO
ShootPointPrimary 125 28 1 turret
ShootPointSecondary -15 49 0 turret GFS_M2HB


//Driver and Passengers
Driver 0 18 0 -360 360 -10 20
RotatedDriverOffset 25 0 14
Passengers 0
SetPlayerInvisible true


//Inventory Slots
CargoSlots 0
ShellSlots 9
FuelTankSize 6000


//Recipe
AddRecipeParts core 1 GFS_MBTChassis
AddRecipeParts turret 1 GFS_MBTTurret
AddRecipeParts rightTrack 1 GFS_TankTracks
AddRecipeParts leftTrack 1 GFS_TankTracks
AddDye 6 yellow


//Health and Collision
SetupPart core 800 -80 -1 -34 146 26 68
SetupPart rightTrack 500 -76 -10 -34 136 20 13
SetupPart leftTrack 500 -76 -10 21 136 20 13
SetupPart turret 2600 -59 25 -24 84 15 48
SetupPart frontalArmor 1800 -2 25 -28 50 15 56
SetupPart additionalArmor 3200 19 -1 -36 52 26 72
BulletDetection 7
SquashMobs True
ShootParticlesPrimary largeexplode 0 0 0
ShootParticlesPrimary cloud 1 0 0
ShootParticlesPrimary cloud 1.75 0 0
ShootParticlesPrimary cloud 1.5 0 0
ShootParticlesPrimary cloud 1.25 0 0
ShootParticlesPrimary cloud 0.75 0 0
ShootParticlesPrimary cloud 0.5 0 0
ShootParticlesPrimary cloud 0.25 0 0
ShootParticlesPrimary explode 1.5 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 explode 0.1 0 0.4
ShootParticlesPrimary explode 0.1 0 -0.4
ShootParticlesPrimary explode 0.1 0.26 0.26
ShootParticlesPrimary explode 0.1 0.26 -0.26
ShootParticlesPrimary explode 0.1 -0.26 0.26
ShootParticlesPrimary explode 0.1 -0.26 -0.26
ShootParticlesPrimary explode 0.1 -0.4 0
ShootParticlesPrimary explode 0.1 0.4 0
ShootParticlesSecondary flame 0.025 0 0
ShootParticlesSecondary flansmod.fmsmoke 0 0.01 0

RightLinkPoint [54,12,26.5]
RightLinkPoint [60,8,26.5]
RightLinkPoint [60,4,26.5]
RightLinkPoint [54,-1,26.5]
RightLinkPoint [39,-9,26.5]
RightLinkPoint [-55,-9,26.5]
RightLinkPoint [-70.5,0,26.5]
RightLinkPoint [-73.5,3,26.5]
RightLinkPoint [-73.5,9,26.5]
RightLinkPoint [-70.5,12,26.5]
LeftLinkPoint [54,12,-26.5]
LeftLinkPoint [60,8,-26.5]
LeftLinkPoint [60,4,-26.5]
LeftLinkPoint [54,-1,-26.5]
LeftLinkPoint [39,-9,-26.5]
LeftLinkPoint [-55,-9,-26.5]
LeftLinkPoint [-70.5,0-,26.5]
LeftLinkPoint [-73.5,3,-26.5]
LeftLinkPoint [-73.5,9,-26.5]
LeftLinkPoint [-70.5,12,-26.5]
TrackLinkLength 5
FlipLinkFix false
FixTrackLink 5

//Misc
CameraDistance 15


//Sounds
PlaceSoundPrimary EngineStart_Tnk_Diesel2
IdleSound EngineIdle_Tnk_Diesel2
IdleSoundLength 20
EngineSound Engine_Tnk_Diesel2
EngineSoundLength 20
StartSoundRange 12
EngineSoundRange 90
BackSoundRange 50
ShootSoundPrimary Shoot_Tnk_120mm
ShootSoundSecondary Shoot_Gun_M2HB
VehicleGunReloadTick 55
ShootReloadSound Reload_Tnk_Manual

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

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


//Movement
TurnLeftSpeed 1
TurnRightSpeed 1
FourWheelDrive True


//Misc
SquashMobs True
Tank True


//Turret rotation stuff
DriverAimSpeed 6 6 0
DriverYawBeforePitch false
DriverTraverseSounds true
YawSound TurretYaw
YawSoundLength 21
PitchSound TurretPitch
PitchSoundLength 20

AddSmokePoint [0,32,-28] [1,0.75,-0.05] 20 turret
AddSmokePoint [0,28,-28] [0.7,0.75,-0.3] 20 turret
AddSmokePoint [0,24,-28] [0.5,0.75,-0.5] 20 turret
AddSmokePoint [0,32,28] [1,0.75,0.05] 20 turret
AddSmokePoint [0,28,28] [0.7,0.75,0.3] 20 turret
AddSmokePoint [0,24,28] [0.5,0.75,0.5] 20 turret

HasFlare True

HasSmoke True
FlareDelay 400
FlareSound SmokeDeploy

AddEmitter cloud 1 [-77,10,8] [1,1,1] [-0.85,-2,0] 0.4 1 0 1 core
AddEmitter cloud 1 [-77,10,-8] [1,1,1] [-0.85,-2,0] 0.4 1 0 1 core
AddEmitter largesmoke 1 [-77,10,8] [1,1,1] [-0.85,-2,0] 0.8 1 0 1 core
AddEmitter largesmoke 1 [-77,10,-8] [1,1,1] [-0.85,-2,0] 0.8 1 0 1 core
//Damage
AddEmitter largesmoke 1 [-77,10,8] [1,1,1] [0,1,0] -1 1 0 0.4 core
AddEmitter largesmoke 1 [-77,10,-8] [1,1,1] [0,1,0] -1 1 0 0.4 core
AddEmitter largesmoke 3 [-77,10,8] [1,1,1] [0,1.5,0] -1 1 0 0.25 core
AddEmitter largesmoke 3 [-77,10,-8] [1,1,1] [0,1.5,0] -1 1 0 0.25 core
AddEmitter flame 1 [-77,10,8] [1,1,1] [0,1,0] -1 1 0 0.25 core
AddEmitter flame 1 [-77,10,-8] [1,1,1] [0,1,0] -1 1 0 0.25 core