// ------------------------------------------------------ Naming ------------------------------------------------------
Name Panzerkampfwagen III Ausf. J
ShortName panzerkampfvagenIII
ItemID 69012
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon PanzerkampfwagenIII
Model rainfire.PanzerkampfwagenIII
Texture SkinPanzerkampfwagenIII
//Third Person Camera Distance
CameraDistance 12.0
// ------------------------------------------------------ Movement ------------------------------------------------------
//Throttle
MaxThrottle 1.1
MaxNegativeThrottle 0.2
//Steering modifiers
TurnLeftSpeed 0.45
TurnRightSpeed 0.45
//Drag
Drag 1.5
//For calculating whether wheels are on the ground or not for driving
WheelRadius 1.2
//The damage taken by the vehicle when falling. 1 = default calculated by height dropped from
FallDamageFactor 0.8
//Wheel positions for collision handling. Tanks still have 4 wheels, they are just the corner ones.
NumWheels 4
WheelPosition 0 -30 -9 -23
WheelPosition 1 -30 -9 23
WheelPosition 2 28 -9 23
WheelPosition 3 28 -9 -23
WheelSpringStrength 0.5
//Bouncy bouncy
Bounciness 0.3
//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 82
ShootDelaySecondary 1
//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 67 29 0.5 turret
ShootPointSecondary 28 30 5.5 turret machinengewehr42
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 4
ShellSlots 9
AllowAllAmmo False
AddAmmo 5cmKwK39ShellAP
AddAmmo 5cmKwK39ShellHE
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 2200
// ------------------------------------------------------ Passengers ------------------------------------------------------
Driver 0 26 0 -360 360 -10 24
RotatedDriverOffset -8 0 0
Passengers 2
Passenger 1 25 2 9 core
Passenger 2 25 2 -9 core
// ------------------------------------------------------- Sounds -------------------------------------------------------
StartSound TankEngine
StartSoundLength 20
EngineSound PanzerIVGo
EngineSoundLength 30
ShootSoundPrimary 5cmKwK39Fire
ShootSoundSecondary 30-06Fire
//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 vehicleSeat
AddRecipeParts core 1 tankBody 1 vehicleSeat 3 blockIron
AddRecipeParts leftTrack 1 catTrack
AddRecipeParts rightTrack 1 catTrack
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 6 silver
AddDye 2 gray
AddDye 8 white
//Health and collision
SetupPart core 800 -62 -2 -18 115 25 36 50
SetupPart turret 600 -17 24 -17 42 14 34 50
SetupPart leftTrack 200 -54 -10 -29 107 25 11
SetupPart rightTrack 200 -54 -10 18 107 25 11
BulletDetection 5
Description Armed with a 5cm KwK 39 L/60 main gun._First vehicle to have animated barrel in pack.
RotateWheels True
IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.35
CollisionDamageTimes 50
BulletSpeed 8
BulletSpread 2
ModelScale 1
SetPlayerInvisible false
//Turret stuff
DriverAimSpeed 1.7 1.8 0
DriverYawBeforePitch false
DriverTraverseSounds true
YawSound TurretTraverse1
YawSoundLength 21
PitchSound TurretTraverse2
PitchSoundLength 20
RecoilDistance 14
RecoilTime 4
//Scope
hasScope true
nightScope false
Gunsight mwbarrett
gunsightZoom 2.5
//Shoot stuff
ShootParticlesPrimary explode 0.2 0 0
ShootParticlesPrimary explode 0.4 0 0
ShootParticlesPrimary smoke 0.4 0 0
ShootParticlesPrimary cloud 0.2 0 0
ShootParticlesSecondary cloud 0.1 0 0
ShootParticlesSecondary flansmod.fmflame 0.2 0 0

//Smonk stuff
AddEmitter cloud 1 [-56,7,-15] [1,1,1] [-0.5,-1.5,0] 0.2 1 0 1 core
AddEmitter cloud 1 [-56,7,15] [1,1,1] [-0.5,-1.5,0] 0.2 1 0 1 core
AddEmitter explode 1 [-56,7,-15] [1,1,1] [-0.75,-1.5,0] 0.4 1 0 1 core
AddEmitter explode 1 [-56,7,15] [1,1,1] [-0.75,-1.5,0] 0.4 1 0 1 core
AddEmitter largesmoke 2 [-56,7,-15] [1,1,1] [-0.75,-1.5,0] 0.8 1 0 1 core
AddEmitter largesmoke 2 [-56,7,15] [1,1,1] [-0.75,-1.5,0] 0.8 1 0 1 core

//Owie
AddEmitter largesmoke 2 [-56,7,-15] [1,1,1] [0,1.5,0] -1 1 0 0.4 core
AddEmitter largesmoke 2 [-56,7,15] [1,1,1] [0,1.5,0] -1 1 0 0.4 core
AddEmitter flame 1 [-56,7,-15] [1,1,1] [0,0.5,0] -1 1 0 0.25 core
AddEmitter flame 1 [-56,7,15] [1,1,1] [0,0.5,0] -1 1 0 0.25 core
AddEmitter largesmoke 3 [-56,7,-15] [1,1,1] [0,1,0] -1 1 0 0.25 core
AddEmitter largesmoke 3 [-56,7,15] [1,1,1] [0,1,0] -1 1 0 0.25 core