// ------------------------------------------------------ Naming ------------------------------------------------------
Name Vought F4U-4 Corsair
ShortName F4U-4
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconf4u4
Model usncw.f4u4
Texture f4u4
//Third Person Camera Distance
HasGear True
HasWing True
CameraDistance 10.0
// ------------------------------------------------------ Movement ------------------------------------------------------
//Mode : One of Plane, Heli or VTOL. The VTOL has a toggle button that switches some model aesthetics and the flight mode
Mode Plane
//Throttle
MaxThrottle 2.5
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 2
TurnRightSpeed 2
//Pitch modifiers
LookUpSpeed 2
LookDownSpeed 2
//Roll modifiers
RollLeftSpeed 2
RollRightSpeed 2
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 1
//Wheels
NumWheels 3
WheelPosition 0 51 -35 -34
WheelPosition 1 51 -35 34
WheelPosition 2 -71 -10 0
WheelSpringStrength 0.125
//Propeller Positions
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 -95 -37 0 nose metalPropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Gun
Secondary Bomb
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 1
ShootDelaySecondary 10
//Whether to alternate or fire all together
AlternatePrimary False
AlternateSecondary True
//Firing modes. One of SemiAuto, FullAuto or Minigun
ModePrimary FullAuto
ModeSecondary SemiAuto
//Add shoot origins. These are the points on your vehicle from which bullets / missiles / shells / bombs appear
ShootPointPrimary 55 -2 -47 leftWing browning
ShootPointPrimary 55 -1 -50 leftWing browning
ShootPointPrimary 55 -1 -53 leftWing browning
ShootPointPrimary 55 -2 47 rightWing browning
ShootPointPrimary 55 -1 50 rightWing browning
ShootPointPrimary 55 -1 53 rightWing browning
ShootPointSecondary 28 -16 -45 leftWing
ShootPointSecondary 28 -15 -53 leftWing
ShootPointSecondary 28 -14 -60 leftWing
ShootPointSecondary 28 -13 -67 leftWing
ShootPointSecondary 28 -16 45 rightWing
ShootPointSecondary 28 -15 53 rightWing
ShootPointSecondary 28 -14 60 rightWing
ShootPointSecondary 28 -13 67 rightWing
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
BombSlots 8
MissileSlots 0
AllowAllAmmo True
AddAmmo largeBomb
AddAmmo smallBomb
AddAmmo napalm
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 5000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 0 13 0
Passengers 0
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound propStart
StartSoundLength 20
PropSound propSound
PropSoundLength 30
ShootSoundPrimary PlaneShoot
ShootSoundSecondary bomb
// ------------------------------------------------------ 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 core 1 metalCockpit
AddRecipeParts coreWheel 2 wheel
AddRecipeParts nose 1 metalNose
AddRecipeParts rightWing 1 metalWingSmall
AddRecipeParts leftWing 1 metalWingSmall
AddRecipeParts bay 1 bombBay
AddRecipeParts tail 1 metalTail
AddRecipeParts tailWheel 1 wheel
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 6 green
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart core 200 -78 20 -13 136 31 26
SetupPart tail 150 -115 20 -6 36 49 10
SetupPart nose 100 58 20 -13 7 26 26
SetupPart rightWing 100 -23 20 13 53 11 107
SetupPart leftWing 100 -23 20 -120 53 11 107
SetupPart leftWingWheel 50 22 -10 -38 15 28 7
SetupPart rightWingWheel 50 22 -10 31 15 28 7
SetupPart tailWheel 50 -96 11 -2 7 13 4
CollisionPoint 61 34 0 nose
CollisionPoint -80 34 0 tail
CollisionPoint -96 34 0 tail
CollisionPoint -112 34 0 tail
CollisionPoint 10 26 16 rightWing
CollisionPoint 10 19 32 rightWing
CollisionPoint 10 21 48 rightWing
CollisionPoint 10 24 64 rightWing
CollisionPoint 10 26 80 rightWing
CollisionPoint 10 29 96 rightWing
CollisionPoint 10 31 112 rightWing
CollisionPoint 10 26 -16 leftWing
CollisionPoint 10 19 -32 leftWing
CollisionPoint 10 21 -48 leftWing
CollisionPoint 10 24 -64 leftWing
CollisionPoint 10 26 -80 leftWing
CollisionPoint 10 29 -96 leftWing
CollisionPoint 10 31 -112 leftWing
//Collision points for breaking wings etc. upon crashing

IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.21
CollisionDamageTimes 30

AddEmitter flansmod.fmsmoke 1 [58,15,13] [1,1,1] [-1,0,0] 0.25 0.5 0 1 core
AddEmitter flansmod.fmsmoke 1 [58,15,-13] [1,1,1] [-1,0,0] 0.25 0.5 0 1 core