// ------------------------------------------------------ Naming ------------------------------------------------------
Name K2 Black Panther PIP
ShortName k2PIP
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon K2BlackPantherAnimu
Model rainfire.K2PIP
Texture SkinK2PIP
//Third Person Camera Distance
CameraDistance 12.0
// ------------------------------------------------------ Movement ------------------------------------------------------
//Throttle
MaxThrottle 1.8
MaxNegativeThrottle 0.45
//Steering modifiers
TurnLeftSpeed 0.5
TurnRightSpeed 0.5
//Drag
Drag 1.0
//For calculating whether wheels are on the ground or not for driving
WheelRadius 2.0
//The damage taken by the vehicle when falling. 1 = default calculated by height dropped from
FallDamageFactor 0.5
//Wheel positions for collision handling. Tanks still have 4 wheels, they are just the corner ones.
NumWheels 4
WheelPosition 0 -36 -9 -22
WheelPosition 1 -36 -9 22
WheelPosition 2 38 -9 22
WheelPosition 3 38 -9 -22
WheelSpringStrength 0.5
//If true, then all wheels will apply drive forces
FourWheelDrive true
//Tank mode activate
Tank true
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Shell
Secondary Gun
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 60
ShootDelaySecondary 2
//Whether to alternate or fire all together
AlternatePrimary True
AlternateSecondary False
//Firing modes. One of SemiAuto, FullAuto or Minigun
ModePrimary FullAuto
ModeSecondary FullAuto
//Add shoot origins. These are the points on your vehicle from which bullets / missiles / shells / bombs appear
ShootPointPrimary 124 23 0 turret
ShootPointSecondary 43 27.5 -5 turret fnM240
ShootParticlesPrimary largeexplode 6 0 0
ShootParticlesPrimary explode 1 0 0
ShootParticlesPrimary explode 1 0 0
ShootParticlesPrimary explode 1 0 0
ShootParticlesPrimary explode 2 0 0
ShootParticlesPrimary explode 2 0 0
ShootParticlesPrimary explode 2 0 0
ShootParticlesPrimary cloud 2 0 0
ShootParticlesPrimary cloud 2 0 0
ShootParticlesPrimary cloud 2 0 0
ShootParticlesPrimary cloud 3 0 0
ShootParticlesPrimary cloud 3 0 0
ShootParticlesPrimary cloud 3 0 0
ShootParticlesSecondary cloud 0.2 0 0
ShootParticlesSecondary flansmod.fmflame 0.2 0 0
// ------------------------------------------------------ Inventory ------------------------------------------------------
//Inventory Slots
CargoSlots 6
BombSlots 0
MissileSlots 3
AllowAllAmmo False
AddAmmo 120mmETCShell
AddAmmo 120mmK2FFShell
AddAmmo HESH
AddAmmo APFSDS
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 6000
// ------------------------------------------------------ Passengers ------------------------------------------------------
//Driver and passenger positions
Driver 0 21 0 -360 360 -10 35
RotatedDriverOffset 4 0 -14
Passengers 1
Passenger 1 0 21 0 turret -360 360 -10 25 browningM2 PassengerGun1
RotatedPassengerOffset 1 0 0 13
GunOrigin 1 17 33 13
PassengerAimSpeed 1 4 4 0
// ------------------------------------------------------- Sounds -------------------------------------------------------
StartSound Leo2A4Slow
StartSoundLength 20
EngineSound K2Go
EngineSoundLength 40
BackSoundLength 20
BackSound Leo2A4Slow
EngineSoundRange 80
BackSoundRange 40
IdleSound HeavyDieselIdle
IdleSoundLength 60
ShootSoundPrimary XM360Fire
ShootSoundSecondary .308BattleRifle
//Recipe
//Each section of the plane may have many parts
//The sections are tailWheel, tail, bay, topWing, leftWingWheel, leftWing, rightWingWheel,
//rightWing, nose, turret, coreWheel, core
AddRecipeParts turret 1 tankTurret 1 autoLoader 4 depletedUranium 2 diamond 12 redstone
AddRecipeParts core 1 advancedTankBody 1 vehicleSeat 16 depletedUranium 4 diamond
AddRecipeParts leftTrack 1 catTrack 16 iron
AddRecipeParts rightTrack 1 catTrack 16 iron
AddRecipeParts trailer
AddRecipeParts ERA
AddRecipeParts ADS
AddRecipeParts APS
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 10 green
AddDye 6 white
AddDye 5 brown
//Health and collision
SetupPart core 2800 -56 -2 -16 110 14 32 110
SetupPart turret 2000 -38 18 -24 75 10 48 960
SetupPart leftTrack 600 -52 -9 17 110 18 10 11
SetupPart rightTrack 600 -52 -9 -27 110 18 10 11
SetupPart trailer 1200 -62 -7 -30 124 25 60 970
SetupPart ERA 600 -64 -9 -39 132 40 78 240
SetupPart ADS 800 67 -8 -45 14 46 90
SetupPart APS 800 80 -9 -54 16 48 108
BulletDetection 6
Description A South Korean MBT equipped with an autoloader for faster firing._Also the world's (and pack's) most expensive and advanced tank._Now with 120mm ETC gun and better armor!
ModelScale 1.0
RotateWheels True
IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.20
CollisionDamageTimes 20
BulletSpeed 14
BulletSpread 0.6
SetPlayerInvisible true
DriverAimSpeed 3 2.2 0
DriverYawBeforePitch false
DriverTraverseSounds true
YawSound TurretTraverse1
YawSoundLength 21
PitchSound TurretTraverse2
PitchSoundLength 20
hasScope true
nightScope true
Gunsight modernTankGunSystem
gunsightZoom 4.0
//Recoil stuff
RecoilDistance 12
RecoilTime 4

AddSmokePoint [35,20,-25] [1,0.75,-0.05] 20 turret
AddSmokePoint [35,19,-25] [0.7,0.75,-0.3] 20 turret
AddSmokePoint [34,19,-28] [0.5,0.75,-0.5] 20 turret

AddSmokePoint [34,20,-28] [1,0.75,-0.05] 20 turret
AddSmokePoint [32,20,-28] [0.7,0.75,-0.3] 20 turret
AddSmokePoint [32,19,-28] [0.5,0.75,-0.5] 20 turret


AddSmokePoint [35,20,25] [1,0.75,0.05] 20 turret
AddSmokePoint [35,19,25] [0.7,0.75,0.3] 20 turret
AddSmokePoint [34,19,28] [0.5,0.75,0.5] 20 turret

AddSmokePoint [34,20,28] [1,0.75,0.05] 20 turret
AddSmokePoint [32,20,28] [0.7,0.75,0.3] 20 turret
AddSmokePoint [32,19,28] [0.5,0.75,0.5] 20 turret

HasFlare True
HasSmoke True
FlareDelay 200
FlareSound 81mmMortar

//Stage 1
AddEmitter explode 3 [-74,11,-12] [1,1,1] [-0.5,0,0] 0.05 0.33 0 1 core
AddEmitter explode 3 [-74,11,12] [1,1,1] [-0.5,0,0] 0.05 0.33 0 1 core
AddEmitter explode 3 [-74,11,0] [1,1,1] [-0.5,0,0] 0.05 0.33 0 1 core
//Stage 1 shift
AddEmitter explode 1 [-74,11,-12] [1,1,1] [-3,0,0] 0.05 0.07 0 1 core
AddEmitter explode 1 [-74,11,12] [1,1,1] [-3,0,0] 0.05 0.07 0 1 core
AddEmitter explode 1 [-74,11,0] [1,1,1] [-3,0,0] 0.05 0.07 0 1 core
//Stage 2
AddEmitter explode 2 [-74,11,-12] [1,1,1] [-1,0,0] 0.33 0.66 0 1 core
AddEmitter explode 2 [-74,11,12] [1,1,1] [-1,0,0] 0.33 0.66 0 1 core
AddEmitter explode 2 [-74,11,0] [1,1,1] [-1,0,0] 0.33 0.66 0 1 core
//Stage 2 shift
AddEmitter explode 1 [-74,11,-12] [1,1,1] [-3,0,0] 0.33 0.35 0 1 core
AddEmitter explode 1 [-74,11,12] [1,1,1] [-3,0,0] 0.33 0.35 0 1 core
AddEmitter explode 1 [-74,11,0] [1,1,1] [-3,0,0] 0.33 0.35 0 1 core
//Stage 3
AddEmitter explode 2 [-74,11,-12] [1,1,1] [-1.5,0,0] 0.66 2 0 1 core
AddEmitter explode 2 [-74,11,12] [1,1,1] [-1.5,0,0] 0.66 2 0 1 core
AddEmitter explode 2 [-74,11,0] [1,1,1] [-1.5,0,0] 0.66 2 0 1 core
AddEmitter largesmoke 2 [-74,11,-12] [1,1,1] [-1.5,0,0] 0.66 2 0 1 core
AddEmitter largesmoke 2 [-74,11,12] [1,1,1] [-1.5,0,0] 0.66 2 0 1 core
AddEmitter largesmoke 2 [-74,11,0] [1,1,1] [-1.5,0,0] 0.66 2 0 1 core
//Stage 3 shift
AddEmitter explode 1 [-74,11,-12] [1,1,1] [-3,0,0] 0.66 0.67 0 1 core
AddEmitter explode 1 [-74,11,12] [1,1,1] [-3,0,0] 0.66 0.67 0 1 core
AddEmitter explode 1 [-74,11,0] [1,1,1] [-3,0,0] 0.66 0.67 0 1 core
//Damage
AddEmitter flame 1 [-70,24,15] [1,1,1] [0,0.5,0] -1 1 0 0.25 core
AddEmitter flame 1 [-70,24,-15] [1,1,1] [0,0.5,0] -1 1 0 0.25 core
AddEmitter flame 1 [-70,24,5] [1,1,1] [0,0.5,0] -1 1 0 0.25 core
AddEmitter flame 1 [-70,24,-5] [1,1,1] [0,0.5,0] -1 1 0 0.25 core
AddEmitter largesmoke 3 [-70,24,15] [1,1,1] [0,1.5,0] -1 1 0 0.25 core
AddEmitter largesmoke 3 [-70,24,-15] [1,1,1] [0,-1.5,0] -1 1 0 0.25 core
AddEmitter largesmoke 3 [-70,24,5] [1,1,1] [0,1.5,0] -1 1 0 0.25 core
AddEmitter largesmoke 3 [-70,24,-5] [1,1,1] [0,1.5,0] -1 1 0 0.25 core
AddEmitter largesmoke 1 [-70,24,15] [1,1,1] [0,1,0] -1 1 0 0.4 core
AddEmitter largesmoke 1 [-70,24,-15] [1,1,1] [0,1,0] -1 1 0 0.4 core
AddEmitter largesmoke 1 [-70,24,5] [1,1,1] [0,1,0] -1 1 0 0.4 core
AddEmitter largesmoke 1 [-70,24,-5] [1,1,1] [0,1,0] -1 1 0 0.4 core
