// Identity
Name Sturmgeschtz "StuG" III Ausf. G [75mm]
ShortName 44_StuG3G
Description German Medium Tank Destroyer__Uses : 75mm AP Tank Shell_Medium Cal. HE Tank Shell __Year Introduced : 1942

// Rendering
Icon 44_StuG3G
Model W44.StuG3G
ModelScale 1
Texture Skin44_StuG3G
RotateWheels True
CameraDistance 7.5

// Recipe and inventory
AddRecipeParts core 1 44_Medium_Tank_Chassis 2 44_Vehicle_Seat 2 44_Armor_Plate_Sheet 1 44_Tank_Barrel
AddRecipeParts leftTrack 1 44_Tank_Track
AddRecipeParts rightTrack 1 44_Tank_Track
AddRecipeParts frontalArmor 5 44_Reinforced_Plating
CargoSlots 20
ShellSlots 4
FuelTankSize 2000

// Paintjobs
AddDye 5 gray

// Real-world specifications
DriveType TRACKED
RealMassKg 23900
RealEnginePowerPS 265
RealMaxSpeedKmh 40
RealMaxReverseSpeedKmh 8

// Movement
Tank true
FourWheelDrive true
MaxThrottle 0.75
MaxNegativeThrottle 0.4475
ClutchBrake 0.01875
TurnLeftSpeed 0.35
TurnRightSpeed 0.35
CanRoll true
SquashMobs True

// Wheels and tracks
WheelRadius 1.0
WheelPosition 0 -32 -8 -18
WheelPosition 1 -32 -8 18
WheelPosition 2 32 -8 18
WheelPosition 3 32 -8 -18
WheelSpringStrength 0.5
TrackLinkLength 3
LeftLinkPoint [47.5,11,21.1]
LeftLinkPoint [50.5,9,21.1]
LeftLinkPoint [50.5,3,21.1]
LeftLinkPoint [35,-9,21.1]
LeftLinkPoint [-46,-9,21.1]
LeftLinkPoint [-59.5,2,21.1]
LeftLinkPoint [-59.5,9,21.1]
LeftLinkPoint [-53,14,21.1]
LeftLinkPoint [-45,14,21.1]
LeftLinkPoint [40,14,21.1]
LeftLinkPoint [43,14,21.1]
RightLinkPoint [47.5,11,-26.1]
RightLinkPoint [50.5,9,-26.1]
RightLinkPoint [50.5,3,-26.1]
RightLinkPoint [35,-9,-26.1]
RightLinkPoint [-46,-9,-26.1]
RightLinkPoint [-59.5,2,-26.1]
RightLinkPoint [-59.5,9,-26.1]
RightLinkPoint [-53,14,-26.1]
RightLinkPoint [-45,14,-26.1]
RightLinkPoint [40,14,-26.1]
RightLinkPoint [43,14,-26.1]
FixTrackLink 4
FlipLinkFix false

// Weapons
ReadWeaponsFromGunTypes true
ShootDelayPrimarySeconds 6
ShootDelay 2
ReloadTimeSecondary 100
PlaceTimePrimary 80
BulletSpread 2
BulletSpeed 9
BulletDetection 5
AllowAllAmmo false
AddAmmo 44_75APShell
AddAmmo 44_MediumHEShell
AddAmmo 44_75APCRShell
AddAmmo 44_75HEATShellB
GunOrigin 1 0 15 5
BarrelPosition 65 21 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
ShootParticlesSecondary crit 0.5 0 0

// Armour and damage
UseRealisticVehicleHealth true
ArmorFrontMm 80
ArmorSideMm 30
ArmorRearMm 30
ArmorTopMm 10
ArmorBottomMm 15
IsExplosionWhenDestroyed true

// Parts and collision
SetupPart core 2250 -47 -2 -25 100 31 46
SetupPart trailer 700 -41 -1 -34 84 24 63
SetupPart leftTrack 300 -47 -10 -29 99 22 7
SetupPart rightTrack 300 -47 -10 18 99 22 7

// Seats
Driver -13 24 -15 -6 6 -6 17
Passengers 1
Passenger 1 -15 23 6 core -25 25 -15 20 44_Mg34 PassengerGun1
RotatedDriverOffset 0 0 0
DriverAimSpeed 0.7 0.6 0
DriverYawBeforePitch false

// Optics
hasScope true
Gunsight warfare44_stug
gunsightZoom 4.5

// Sounds
StartSound TankIdle2
StartSoundLength 41
StartSoundRange 12
EngineSound Engine_MT_PzIII
EngineSoundLength 39
EngineSoundRange 50
BackSound Engine_MT_PzIII
BackSoundLength 39
BackSoundRange 25
YawSound TurretTraverse1
YawSoundLength 21
PitchSound TurretTraverse2
PitchSoundLength 20
DriverTraverseSounds false
ShootSoundPrimary Shoot_75mmDE
ShootSoundSecondary Mg34Shoot
PlaceSoundPrimary TankPlace
ReloadSoundSecondary Mg34Reload
ShootReloadSound Breach
VehicleGunReloadTick 40

// Effects
AddEmitter smoke 1 [-58,9,12] [1,1,1] [0,0.5,0] -1 1 0 1 core
AddEmitter smoke 1 [-58,9,-12] [1,1,1] [0,0.5,0] -1 1 0 1 core
AddEmitter smoke 2 [-34,26,-28] [7,1,7] [0,0.5,0] -1 1 0 0.75 core
AddEmitter smoke 2 [-34,26,20.25] [7,1,7] [0,0.5,0] -1 1 0 0.75 core
AddEmitter smoke 2 [5,43,14] [3,1,3] [0,0.5,0] -1 1 0 0.75 turret
AddEmitter largesmoke 3 [-34,26,-28] [7,1,7] [0,1,0] -1 1 0 0.5 core
AddEmitter largesmoke 3 [-34,26,20.25] [7,1,7] [0,1,0] -1 1 0 0.5 core
AddEmitter largesmoke 2 [5,43,14] [3,1,3] [0,0.5,0] -1 1 0 0.5 turret
AddEmitter largesmoke 1 [-34,26,-28] [7,1,7] [0,1.5,0] -1 1 0 0.25 core
AddEmitter largesmoke 1 [-34,26,20.25] [7,1,7] [0,1.5,0] -1 1 0 0.25 core
AddEmitter flame 1 [-34,26,-28] [5,1,5] [0,1,0] -1 1 0 0.25 core
AddEmitter flame 1 [-34,26,20.25] [5,1,5] [0,1,0] -1 1 0 0.25 core
AddEmitter largesmoke 1 [5,43,14] [3,1,3] [0,1,0] -1 1 0 0.5 turret
AddEmitter largesmoke 1 [-58,9,12] [1,1,1] [0,1.5,0] 0.02 0.07 0 1 core
AddEmitter largesmoke 1 [-58,9,-12] [1,1,1] [0,1.5,0] 0.02 0.07 0 1 core
AddEmitter explode 1 [-58,9,12] [1,1,1] [0,0.2,0] 0.05 0.2 0 1 core
AddEmitter explode 1 [-58,9,-12] [1,1,1] [0,0.2,0] 0.05 0.2 0 1 core
AddEmitter largesmoke 1 [-58,9,12] [1,1,1] [0,3,0] 0.2 0.25 0 1 core
AddEmitter largesmoke 1 [-58,9,-12] [1,1,1] [0,3,0] 0.2 0.25 0 1 core
AddEmitter explode 1 [-58,9,12] [1,1,1] [0,0.7,0] 0.2 0.5 0 1 core
AddEmitter explode 1 [-58,9,-12] [1,1,1] [0,0.7,0] 0.2 0.5 0 1 core
AddEmitter largesmoke 1 [-58,9,12] [1,1,1] [0,4,0] 0.5 0.52 0 1 core
AddEmitter largesmoke 1 [-58,9,-12] [1,1,1] [0,4,0] 0.5 0.52 0 1 core
AddEmitter flame 1 [-58,9,12] [1,1,1] [0,2,0] 0.5 0.51 0 1 core
AddEmitter flame 1 [-58,9,-12] [1,1,1] [0,2,0] 0.5 0.51 0 1 core
AddEmitter explode 1 [-58,9,12] [1,1,1] [0,0.7,0] 0.5 2 0 1 core
AddEmitter explode 1 [-58,9,-12] [1,1,1] [0,0.7,0] 0.5 2 0 1 core
AddEmitter largesmoke 3 [-58,9,12] [1,1,1] [0,0.5,0] 0.8 2 0 1 core
AddEmitter largesmoke 3 [-58,9,-12] [1,1,1] [0,0.5,0] 0.8 2 0 1 core
AddEmitter largesmoke 1 [-58,9,12] [1,1,1] [0,5,0] 0.7 0.75 0 1 core
AddEmitter largesmoke 1 [-58,9,-12] [1,1,1] [0,5,0] 0.7 0.77 0 1 core
AddEmitter flame 1 [-58,9,12] [1,1,1] [0,5,0] 0.7 0.73 0 1 core
AddEmitter flame 1 [-58,9,-12] [1,1,1] [0,5,0] 0.7 0.73 0 1 core
