// 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
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 -22 30 4
GunOrigin 2 -195 25 1
GunOrigin 2 -195 25 1
GunOrigin 3 250 30 0
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