// Identity
Name S-100 Schnellboot
ShortName S100
Description German Torpedo PT Boat

// Item and rendering
Icon S100
Model ww2.S100
Texture s100
AddDye 20 gray
AddDye 5 red
ModelScale 1

// Recipe
AddRecipeParts core 1 boatBody 4 vehicleSeat

// Inventory
FuelTankSize 2000
CargoSlots 10
ShellSlots 2
AllowAllAmmo False
AddAmmo Torpedo

// Real-world physics
RealDisplacementT 117
RealEnginePowerPS 7500
RealMaxSpeedKn 43.5
DriveType MARINE
RealMaxReverseSpeedKn 10
RealDraftM 1.7

// Movement
MaxThrottle 0.45
MaxNegativeThrottle 0.25
TurnLeftSpeed 0.25
TurnRightSpeed 0.25
RealTurnRateDegPerSec 13.11
WheelRadius 1.0
WheelSpringStrength 0.5
FourWheelDrive true
Tank false
Boat
PlaceableOnLand False
PlaceableOnWater True
FloatOnWater True
WheelStepHeight 1
Buoyancy 0.08

// Weaponry
BarrelPosition 250 0 -20
BarrelPosition 250 0 20
GunOrigin 1 -22 30 0
GunOrigin 1 10 25.9 -1
GunOrigin 2 -195 25 1
GunOrigin 2 -150.5 26.7 11
GunOrigin 3 281 23.4 7
ShootDelay 1
ShellDelay 70
ShootDelayPrimarySeconds 5
ReadWeaponsFromGunTypes true

// Health and armour
SetupPart core 8000 -247 -25 -42 561 86 84
BulletDetection 7
ArmorFrontMm 0
ArmorSideMm 0
ArmorRearMm 0
ArmorTopMm 0
ArmorBottomMm 0
ArmorConningTowerMm 12
UseRealisticVehicleHealth true

// Seats and geometry
CameraDistance 25
WheelPosition 0 -150 10 -18
WheelPosition 1 -150 10 18
WheelPosition 2 150 10 18
WheelPosition 3 150 10 -18
Driver 120 47 -8 -360 360 -10 45
RotatedDriverOffset 0 0 0
Passengers 3
Passenger 1 -22 36 -1 core -360 360 0 25 Flak38 PassengerGun1
Passenger 2 -195 35 0 core -360 360 -2 89 Flak42 PassengerGun2
Passenger 3 250 32 0 core -360 360 -2 55 Flak38 PassengerGun3

// Sounds and particles
StartSound ptboatidle
StartSoundLength 10
EngineSound ptboatmove
EngineSoundLength 10
ShootSoundPrimary rocketfire1
ShootSoundSecondary BrenShoot

ShootParticlesPassenger 1 flansmod.fmflame 0.58 0 0
ShootParticlesPassenger 1 flansmod.fmflame 0.34 0.04 0.025
ShootParticlesPassenger 1 flansmod.fmflame 0.3 -0.035 -0.03
ShootParticlesPassenger 1 smoke 0.2 0.035 -0.04
ShootParticlesPassenger 1 smoke 0.18 -0.03 0.045
ShootParticlesPassenger 1 crit 0.38 0.01 0
ShootParticlesPassenger 2 explode 0.55 0 0
ShootParticlesPassenger 2 flansmod.fmflame 0.72 0 0
ShootParticlesPassenger 2 flansmod.fmflame 0.38 0.06 0.04
ShootParticlesPassenger 2 flansmod.fmflame 0.34 -0.05 -0.05
ShootParticlesPassenger 2 smoke 0.24 0.05 -0.06
ShootParticlesPassenger 2 smoke 0.21 -0.045 0.06
ShootParticlesPassenger 3 flansmod.fmflame 0.58 0 0
ShootParticlesPassenger 3 flansmod.fmflame 0.34 0.04 0.025
ShootParticlesPassenger 3 flansmod.fmflame 0.3 -0.035 -0.03
ShootParticlesPassenger 3 smoke 0.2 0.035 -0.04
ShootParticlesPassenger 3 smoke 0.18 -0.03 0.045
ShootParticlesPassenger 3 crit 0.38 0.01 0
