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


//---Standard-------------------------------------
// Naming
Name Leopard 3A1
ShortName GFS_L3A1
ItemID Your ID


// Visuals
Model gfs.L3A1
ModelScale 1
Icon IconL2A7

//Misc
Description German Main Battle Tank_1x 140mm Smoothbore Gun_1x 7.62mm Machine Gun_Introduction: 2021

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

//---Driveables-----------------------------------
//Visuals
Texture SkinL3A1


//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 16
BulletSpread 1
AddAmmo GFS_140mmHEAT
AddAmmo GFS_140mmAPFSDS
AddAmmo GFS_140mmXM112


//Weapons
Primary SHELL
Secondary GUN
ShootDelayPrimary 140
ShootDelaySecondary 1
AlternatePrimary False
AlternateSecondary False
ModePrimary FULLAUTO
ModeSecondary FULLAUTO
ShootPointPrimary 140 28 0 turret
ShootPointSecondary 48 32 4 turret GFS_MG3


//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 1 GFS_ActiveProtection
AddRecipeParts turret 1 GFS_MBTTurret
AddRecipeParts rightTrack 1 GFS_TankTracks
AddRecipeParts leftTrack 1 GFS_TankTracks
AddRecipeParts leftsideArmor 1 GFS_ReactiveArmor
AddRecipeParts rightsideArmor 1 GFS_ReactiveArmor
AddDye 6 yellow


//Health and Collision
SetupPart core 1200 -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 3000 -59 25 -24 84 15 48
SetupPart frontalArmor 2200 -2 25 -28 50 15 56
SetupPart additionalArmor 4000 19 -1 -36 52 26 72
SetupPart rightsideArmor 1000 -81 -1 -38 149 26 6
SetupPart leftsideArmor 1000 -81 -1 34 149 26 6
SetupPart APS 2500 -100 -1 -55 190 50 110
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_140mm
ShootSoundSecondary Shoot_Gun_MG3
VehicleGunReloadTick 55
ShootReloadSound Reload_Tnk_Auto

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

//---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