// ------------------------------------------------------ Naming ------------------------------------------------------
Name Attacker_O-2 SkyMaster
ShortName attacker_0-2skymaster
ItemID 11231
Description MAX HP:125_CargoSlots 8_FlareDelay 300_TimeFlareUsing 5s_PlaneAmmo ZuniRocket
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon O2_SkyMaster
Model miyabi.O2_SkyMaster
Texture Skin_Plane_O2_SkyMaster
//Third Person Camera Distance
CameraDistance 7.5
//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 5.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 0.75
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 0.6
TurnRightSpeed 0.6
//Pitch modifiers
LookUpSpeed 0.65
LookDownSpeed 0.65
//Roll modifiers
RollLeftSpeed 1.6
RollRightSpeed 1.6
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 0.45
//Wheels
NumWheels 3
WheelPosition 0 -4 -24 -24
WheelPosition 1 -4 -24 24
WheelPosition 2 33 -24 0
WheelSpringStrength 0.125
//Propeller Positions
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 61 -12 0 nose parts_metalpropeller
Propeller 1 -27 -3 0 nose parts_metalpropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Missile
Secondary None
//Time between shots in 1/20ths of seconds
PlaceTimePrimary 260
ShootDelayPrimary 15
ReloadTimePrimary 260
PlaceTimeSecondary 
ShootDelaySecondary 
ReloadTimeSecondary 
BulletSpeed 5.00
BulletSpread 2.00
//Whether to alternate or fire all together
AlternatePrimary True
AlternateSecondary False
//Firing modes. One of SemiAuto, FullAuto or Minigun
ModePrimary FullAuto
ModeSecondary FullAuto
//Add shoot origins. These are the points on your vehicle from which bullets / missiles / shells / bombs appear
ShootPointPrimary 9 -3 32 nose 
ShootPointPrimary 9 -3 -31 nose 
ShootParticlesPrimary cloud 1 0 0
ShootParticlesPrimary cloud -1 0 0
ShootParticlesPrimary explode -1 0 0
ShootParticlesPrimary flame -1 0 0
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 8
BombSlots 0
MissileSlots 8
AllowAllAmmo False
AddAmmo planeammo_zunirocket
AddAmmo dummyammo
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 4000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 20 -16 0
Passengers 1
//Passenger <ID> <x> <y> <z> <part> [minYaw] [maxYaw] [minPitch] [maxPitch] [gunType] [gunModelName]
Passenger 1 -5 -16 0 core -360 360 -89 89 dummygun DummyGun
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound Camel_StartSound
StartSoundLength 20
PropSound Camel_PropSound
PropSoundLength 40
StartSoundRange 100
EngineSoundRange 1000
PlaceSoundPrimary A6M2_PlaceSound
ShootSoundPrimary PG_Hydra
ReloadSoundPrimary PlaneBomb_reload1
PlaceSoundSecondary None
ShootSoundSecondary None
ReloadSoundSecondary None
LockedOnSound Lock
SoundTime 8
LockedOnSoundRange 15
// ------------------------------------------------------ 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 nose 1 parts_metalcockpit 7 iron 1 parts_metalnose 3 parts_smallwheel 1 parts_metalwingsmall
AddRecipeParts rightWing 1 parts_metalwingsmall
AddRecipeParts tail 1 parts_metaltail
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
//AddDye 0 gray
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart core 125 -26 -23 -11 86 25 21
SetupPart rightWing 90 -13 1 -75 22 7 149
SetupPart tail 90 -88 -1 -30 28 7 58
HasGear False
BulletDetection 5
//Collision points for breaking wings etc. upon crashing
//Core
CollisionPoint 60 3 0 core
CollisionPoint -3 -5 9 core
CollisionPoint -3 -5 -10 core
CollisionPoint 34 -5 9 core
CollisionPoint 34 -5 -10 core
CollisionPoint 31 17 9 core
CollisionPoint 31 17 -10 core
CollisionPoint -3 18 16 core
CollisionPoint -3 18 -17 core
CollisionPoint -26 12 0 core
//LeftWing
CollisionPoint -1 18 -25 leftWing
CollisionPoint 0 21 -50 leftWing
CollisionPoint 0 24 -74 leftWing
CollisionPoint -1 18 24 leftWing
CollisionPoint 0 21 49 leftWing
CollisionPoint 0 24 73 leftWing
CollisionPoint -1 11 -32 leftWing
CollisionPoint -1 11 32 leftWing
//Tail
CollisionPoint -80 20 -27 tail
CollisionPoint -47 20 -27 tail
CollisionPoint -80 20 27 tail
CollisionPoint -47 20 27 tail
CollisionPoint -68 20 -1 tail
IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.21
CollisionDamageTimes 0
HasFlare True
FlareDelay 300
FlareSound Flare
TimeFlareUsing 5