// ------------------------------------------------------ Naming ------------------------------------------------------
Name Lockheed S-3A Viking
ShortName S-3A
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon icons3a
Model usncw.s3a
Texture s3a
//Third Person Camera Distance
CameraDistance 20.0
//Resting Pitch. Set this so the plane spawns level. It will fall onto its collision boxes automatically, but this lets you start it flat
RestingPitch 0.0
HasGear True
HasDoor True
HasWing True
ModelScale 1
// ------------------------------------------------------ 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 1.7
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 2.2
TurnRightSpeed 2.2
//Pitch modifiers
LookUpSpeed 1.8
LookDownSpeed 1.8
//Roll modifiers
RollLeftSpeed 2
RollRightSpeed 2
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 0.35
//Lift
//Lift 2.5
//Wheels
NumWheels 3
WheelPosition 0 -8 -10 -34
WheelPosition 1 -8 -10 34
WheelPosition 2 119 -10 0
WheelSpringStrength 0.125
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 -66 -22 -48 leftWing metalPropeller
Propeller 1 -66 -22 48 rightWing metalPropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Bomb
Secondary None
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 10
ShootDelaySecondary 2
//Whether to alternate or fire all together
AlternatePrimary True
AlternateSecondary False
//Firing modes. One of SemiAuto, FullAuto or Minigun
ModePrimary SemiAuto
ModeSecondary FullAuto
//Add shoot origins. These are the points on your vehicle from which bullets / missiles / shells / bombs appear
ShootPointPrimary 21 9 -11 bay
ShootPointPrimary 21 9 -17 bay
ShootPointPrimary 21 9 11 bay
ShootPointPrimary 21 9 17 bay
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
BombSlots 2
MissileSlots 0
AllowAllAmmo True
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 6000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 100 29 -10
Passengers 3
Passenger 1 100 29 10 core
Passenger 2 67 29 -10 core
Passenger 3 67 29 10 core
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound PlaneA
StartSoundLength 60
PropSound JetEngine2
PropSoundLength 47
ShootSoundPrimary bomb
ShootSoundSecondary RocketFire2
// ------------------------------------------------------ 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 advancedMetalCockpit
AddRecipeParts coreWheel 2 wheel
AddRecipeParts nose 1 metalNose
AddRecipeParts rightWing 1 metalWingSmall
AddRecipeParts leftWing 1 metalWingSmall
AddRecipeParts tail 1 metalTail
AddRecipeParts rightWingWheel 1 wheel
AddRecipeParts leftWingWheel 1 wheel
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 5 white
AddDye 1 gray
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart nose 100 134 9 -18 29 32 36
SetupPart core 100 -35 6 -25 169 51 50
SetupPart tail 100 -142 10 -25 106 44 50
SetupPart tail 100 -142 48 -83 49 9 166
SetupPart tail 100 -163 54 -7 106 74 13
SetupPart leftWing 100 -41 40 -210 95 14 185
SetupPart leftWing 100 6 8 -63 66 32 29
SetupPart rightWing 100 -41 40 25 95 14 185
SetupPart rightWing 100 6 8 34 66 32 29

BulletDetection 20

//Collison Points
CollisionPoint 158 21 0 nose
CollisionPoint 96 21 0 core
CollisionPoint 57 21 0 core
CollisionPoint 18 21 0 core
CollisionPoint -33 21 0 tail
CollisionPoint -84 21 0 tail
CollisionPoint -134 92 0 tail
CollisionPoint -125 54 -76 tail
CollisionPoint -126 54 76 tail
CollisionPoint -2 45 -83 leftWing
CollisionPoint 57 22 -48 leftWing
CollisionPoint -2 45 83 rightWing
CollisionPoint 57 22 48 rightWing

HasGear True
IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.21
CollisionDamageTimes 30

AddEmitter flansmod.fmsmoke 1 [8,22,48] [1,1,1] [-1,0,0] 0.25 0.5 0 1 leftWing
AddEmitter flansmod.fmflame 1 [8,22,48] [3,3,3] [-3,0,0] 0.75 2 0 1 leftWing

AddEmitter flansmod.fmsmoke 1 [8,22,-48] [1,1,1] [-1,0,0] 0.25 0.5 0 1 rightWing
AddEmitter flansmod.fmflame 1 [8,22,-48] [3,3,3] [-3,0,0] 0.75 2 0 1 rightWing

HasFlare True
FlareDelay 50
FlareSound FlareDeploy
TimeFlareUsing 2
LockedOnSound LockonWarning
SoundTime 14
LockedOnSoundRange 5