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


//---Standard-------------------------------------
// Naming
Name Type 59
ShortName type59T_
ItemID Your ID

Description Soviet MBT
SetPlayerInvisible false
// Visuals
Model vehicles.type59
ModelScale 1
Icon Icon_Vehicle_type59


//Recipe
AddRecipeParts core 1 tanktracksT_
AddDye 10 gray


//Misc

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

//---Driveables-----------------------------------
//Visuals
Model vehicles.type59
Texture Skin_Vehicle_type59


//Movement
MaxThrottle 0.8
MaxNegativeThrottle 0.4
Drag 15.0


//Wheels
NumWheels 4
WheelPosition 0 -45 -10 -29
WheelPosition 1 -45 -10 27
WheelPosition 2 40 -10 26
WheelPosition 3 39 -10 -28
WheelRadius 1.5
WheelSpringStrength 0.5


//Floating


//Ammo
AllowAllAmmo False
AddAmmo 100apdsshellyesT_


//Weapons
BarrelPosition 118 30 0
ShootDelay 1
ShellDelay 70
TurretOrigin 0 0 0
BulletSpeed 5


//Driver and Passengers
Driver 0 32 0 -360 360 -5 17
RotatedDriverOffset -10 0 -10
Passengers 0
GunOrigin 1 115 28 1
DriverPart turret

//Inventory Slots
CargoSlots 5
ShellSlots 5
FuelTankSize 5000




//Health and Collision
SetupPart core 1300 -62 -10 -32 126 31 68
SetupPart turret 1300 -34 20 -28 63 18 54
BulletDetection 7
IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.21
CollisionDamageTimes 0
CanRoll true

//Misc
CameraDistance 9.5


//Sounds
StartSound EngineBigtenk
StartSoundLength 20
EngineSound EngineBigtenk
EngineSoundLength 20
ShootSoundPrimary TankMediumShell
ShootSoundSecondary M60Shoot

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

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


//Movement
TurnLeftSpeed 0.8
TurnRightSpeed 0.8
FourWheelDrive True


//Misc
Tank True
ShootDelay 1
ShellDelay 70


//Turret rotation stuff
DriverAimSpeed 1.2 1.2 1.2
DriverYawBeforePitch true
DriverTraverseSounds true
YawSound TurretTraverse1
YawSoundLength 21
PitchSound TurretTraverse2
PitchSoundLength 20


//Barrel
ShootParticlesSecondary crit 0.5 0 0
BarrelPosition 111 27 0

ShootParticlesPrimary largeexplode 0 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 flansmod.fmflame 1 0 0
ShootParticlesPrimary flansmod.fmflame 1.75 0 0
ShootParticlesPrimary flansmod.fmflame 1.5 0 0
ShootParticlesPrimary flansmod.fmflame 1.25 0 0
ShootParticlesPrimary flansmod.fmflame 0.75 0 0
ShootParticlesPrimary flansmod.fmflame 0.5 0 0
ShootParticlesPrimary flansmod.fmflame 0.25 0 0
ShootParticlesPrimary flansmod.fmflame 1.5 0 0
ShootParticlesPrimary flansmod.fmflame 0.5 0 0.1
ShootParticlesPrimary flansmod.fmflame 0.5 0 -0.1
ShootParticlesPrimary flansmod.fmflame 0.5 0.06 0.06
ShootParticlesPrimary flansmod.fmflame 0.5 0.06 -0.06
ShootParticlesPrimary flansmod.fmflame 0.5 -0.06 0.06
ShootParticlesPrimary flansmod.fmflame 0.5 -0.06 -0.06
ShootParticlesPrimary flansmod.fmflame 0.5 -0.1 0
ShootParticlesPrimary flansmod.fmflame 0.5 0.1 0
ShootParticlesPrimary flansmod.fmflame 0.05 0 0.2
ShootParticlesPrimary flansmod.fmflame 0.05 0 -0.2
ShootParticlesPrimary flansmod.fmflame 0.05 0.13 0.13
ShootParticlesPrimary flansmod.fmflame 0.05 0.13 -0.13
ShootParticlesPrimary flansmod.fmflame 0.05 -0.13 0.13
ShootParticlesPrimary flansmod.fmflame 0.05 -0.13 -0.13
ShootParticlesPrimary flansmod.fmflame 0.05 -0.2 0
ShootParticlesPrimary flansmod.fmflame 0.05 0.2 0
ShootParticlesPrimary flansmod.fmflame 0.1 0 0.4
ShootParticlesPrimary flansmod.fmflame 0.1 0 -0.4
ShootParticlesPrimary flansmod.fmflame 0.1 0.26 0.26
ShootParticlesPrimary flansmod.fmflame 0.1 0.26 -0.26
ShootParticlesPrimary flansmod.fmflame 0.1 -0.26 0.26
ShootParticlesPrimary flansmod.fmflame 0.1 -0.26 -0.26
ShootParticlesPrimary flansmod.fmflame 0.1 -0.4 0
ShootParticlesPrimary flansmod.fmflame 0.1 0.4 0


//Basic emission
AddEmitter smoke 1 [-46,21,-14]] [1,1,1] [0,0.5,0] -1 1 0 1 core

AddEmitter smoke 1 [-46,21,14]] [1,1,1] [0,0.5,0] -1 1 0 1 core


//1st gear change

AddEmitter largesmoke 1 [-46,21,14] [1,1,1] [0,1.5,0] 0.02 0.07 0 1 core

AddEmitter largesmoke 1 [-46,21,-14] [1,1,1] [0,1.5,0] 0.02 0.07 0 1 core

//1st gear

AddEmitter explode 1 [-46,21,14] [1,1,1] [0,0.2,0] 0.05 0.2 0 1 core

AddEmitter explode 1 [-46,21,-14] [1,1,1] [0,0.2,0] 0.05 0.2 0 1 core

//2nd gear change

AddEmitter largesmoke 1 [-46,21,14] [1,1,1] [0,3,0] 0.2 0.25 0 1 core

AddEmitter largesmoke 1 [-46,21,-14] [1,1,1] [0,3,0] 0.2 0.25 0 1 core

//2nd gear

AddEmitter explode 1 [-46,21,14] [1,1,1] [0,0.7,0] 0.2 0.5 0 1 core

AddEmitter explode 1 [-46,21,-14] [1,1,1] [0,0.7,0] 0.2 0.5 0 1 core


//3rd gear change

AddEmitter largesmoke 1 [-46,21,14] [1,1,1] [0,4,0] 0.5 0.52 0 1 core

AddEmitter largesmoke 1 [-46,21,-14] [1,1,1] [0,4,0] 0.5 0.52 0 1 core

AddEmitter flame 1 [-46,21,14] [1,1,1] [0,2,0] 0.5 0.51 0 1 core

AddEmitter flame 1 [-46,21,-14] [1,1,1] [0,2,0] 0.5 0.51 0 1 core

//3rd gear
AddEmitter explode 1 [-46,21,14] [1,1,1] [0,0.7,0] 0.5 2 0 1 core

AddEmitter explode 1 [-46,21,-14] [1,1,1] [0,0.7,0] 0.5 2 0 1 core

AddEmitter largesmoke 3 [-46,21,14] [1,1,1] [0,0.5,0] 0.8 2 0 1 core

AddEmitter largesmoke 3 [-46,21,-14] [1,1,1] [0,0.5,0] 0.8 2 0 1 core

//4th gear change

AddEmitter largesmoke 1 [-46,21,14] [1,1,1] [0,5,0] 0.7 0.75 0 1 core

AddEmitter largesmoke 1 [-46,21,-14] [1,1,1] [0,5,0] 0.7 0.77 0 1 core

AddEmitter flame 1 [-46,21,14] [1,1,1] [0,5,0] 0.7 0.73 0 1 core

AddEmitter flame 1 [-46,21,-14] [1,1,1] [0,5,0] 0.7 0.73 0 1 core

//dodgy one
RightLinkPoint [57,12.5,-28.5]
RightLinkPoint [61,8.5,-28.5]
RightLinkPoint [61,4.5,-28.5]
RightLinkPoint [57,0.5,-28.5]
RightLinkPoint [41,-9,-28.5]
RightLinkPoint [-44,-9,-28.5]
RightLinkPoint [-59,-2,-28.5]
RightLinkPoint [-61,2,-28.5]
RightLinkPoint [-61,7,-28.5]
RightLinkPoint [-58,11,-28.5]
RightLinkPoint [-52,11,-28.5]
RightLinkPoint [-26,7,-28.5]
RightLinkPoint [17,7,-28.5]
RightLinkPoint [53,12.5,-28.5]
RightLinkPoint [57,12.5,-28.5]
LeftLinkPoint [57,12.5,26.5]
LeftLinkPoint [61,8.5,26.5]
LeftLinkPoint [61,4.5,26.5]
LeftLinkPoint [57,0.5,26.5]
LeftLinkPoint [41,-9,26.5]
LeftLinkPoint [-44,-9,26.5]
LeftLinkPoint [-59,-2,26.5]
LeftLinkPoint [-61,2,26.5]
LeftLinkPoint [-61,7,26.5]
LeftLinkPoint [-58,11,26.5]
LeftLinkPoint [-52,11,26.5]
LeftLinkPoint [-26,7,26.5]
LeftLinkPoint [17,7,26.5]
LeftLinkPoint [53,12.5,26.5]
LeftLinkPoint [57,12.5,26.5]
TrackLinkLength 5
FlipLinkFix true

//Sound

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