// ------------------------------------------------------ Naming ------------------------------------------------------
Name Mitsubishi T-2
ShortName T-2
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon icont2
Model jsdf.t2
Texture t2
//Third Person Camera Distance
CameraDistance 18.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
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 8.0
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.0
//Lift
//Lift 2.5
//Wheels
NumWheels 3
WheelPosition 0 -45 -10 -30
WheelPosition 1 -45 -10 30
WheelPosition 2 73 -11 0
WheelSpringStrength 0.125
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 54 0 0 core metalPropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Gun
Secondary Missile
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 2
ShootDelaySecondary 7
//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 98 15 -13 nose minigun
ShootPointSecondary -32 29 -91 leftWing
ShootPointSecondary -32 29 91 rightWing
ShootParticlesPrimary explode 0.5 0 0
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
BombSlots 0
MissileSlots 2
AllowAllAmmo False
AddAmmo aim9
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 6000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 89 19 0
Passengers 1
Passenger 1 57 26 0 core
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound HarrierIdle
StartSoundLength 140
PropSound JetEngine2
PropSoundLength 47
ShootSoundPrimary 30mmcannon
ShootSoundSecondary MissileShoot
// ------------------------------------------------------ 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 150 81 16 -8 41 17 16
SetupPart core 400 -104 16 -15 185 32 30
SetupPart tail 150 -188 16 -8 84 32 16
SetupPart leftWing 200 -111 36 -97 93 5 83
SetupPart rightWing 200 -111 36 14 93 5 83
BulletDetection 10

BulletSpeed 5

CollisionPoint 153 22 0 nose
CollisionPoint 121 22 0 nose
CollisionPoint -28 39 -30 leftWing
CollisionPoint -93 39 -97 leftWing
CollisionPoint -117 39 -97 leftWing
CollisionPoint -105 39 -30 leftWing
CollisionPoint -28 39 30 rightWing
CollisionPoint -93 39 97 rightWing
CollisionPoint -117 39 97 rightWing
CollisionPoint -105 39 30 rightWing
CollisionPoint -188 35 0 tail

IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.21
CollisionDamageTimes 50

hasPlaneRadar true
radarPositionOffset 20
radarRange 850
radarVisible true 
radarRefreshDelay 20

ReloadSoundPrimary PG_reload
ReloadTimePrimary 80
ReloadTimeSecondary 150
ReloadSoundSecondary PlaneBomb_reload1

EngineSoundRange 1000

AddEmitter flansmod.fmsmoke 1 [-140,21,11] [1,1,1] [-3,0,0] 0.05 0.2 0 1 tail
AddEmitter flansmod.fmflame 1 [-140,21,11] [3,3,3] [3,0,0] 0.8 2 0 1 tail


AddEmitter flansmod.fmsmoke 1 [-140,21,-11] [1,1,1] [-3,0,0] 0.05 0.2 0 1 tail
AddEmitter flansmod.fmflame 1 [-140,21,-11] [3,3,3] [3,0,0] 0.8 2 0 1 tail