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


//---Standard-------------------------------------
// Naming
Name Leopard 2A4
ShortName CW_L2A4
ItemID Your ID


// Visuals
Model CW.L2A4
ModelScale 1
Icon IconL2A4

//Misc
Description German Main Battle Tank_1x 120mm Smoothbore Gun_2x 7.62mm Machine Gun

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

//---Driveables-----------------------------------
//Visuals
Texture SkinL2A4


//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
BulletSpeed 10
BulletSpread 1
AddAmmo GFS_120mmAPFSDS
AddAmmo GFS_120mmHEAT
AddAmmo GFS_120mmHE


//Weapons
Primary SHELL
Secondary GUN
ShootDelayPrimary 120
ShootDelaySecondary 0
AlternatePrimary False
AlternateSecondary False
ModePrimary FULLAUTO
ModeSecondary FULLAUTO
ShootPointPrimary 100 28 1 turret
ShootPointSecondary 33 32 -4 turret GFS_MG3


//Driver and Passengers
Driver 0 15 0 -360 360 -5 20
RotatedDriverOffset 28 0 14
Passengers 1
Passenger 1 0 30 0 turret -60 60 -4 30 GFS_MG3 PassengerGun1
GunOrigin 1 -1 30 -12
RotatedPassengerOffset 1 -11 0 -12
PassengerAimSpeed 1 2.5 2.5 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 catTrack
AddRecipeParts leftTrack 1 catTrack
AddDye 6 green


//Health and Collision
SetupPart core 1900 -82 -1 -34 153 26 68
SetupPart rightTrack 500 -81 -10 -34 154 20 13
SetupPart leftTrack 500 -81 -10 21 154 20 13
SetupPart turret 1550 -59 25 -29 98 15 58
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
IdleSound EngineIdle_Tnk_Diesel2
IdleSoundLength 20
EngineSound Engine_Tnk_Diesel2
EngineSoundLength 20
ShootSoundPrimary Shoot_Tnk_120mm
ShootSoundSecondary Shoot_Gun_MG3

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

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


//Movement
TurnLeftSpeed 1
TurnRightSpeed 1
FourWheelDrive True


//Misc
SquashMobs True
Tank True


//Turret rotation stuff
DriverAimSpeed 4 4 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