<?xml version="1.0"?>

<PropertyList>
  <sim>

    <description>British Aerospace Harrier (YASim)</description>
    <author>Andy Ross(FDM), Steve Havlir(3d Model, Panel)</author>

    <flight-model>yasim</flight-model>
    <aero>harrier</aero>
    
    <fuel-fraction>0.5</fuel-fraction>
    
    <startup>
      <splash-texture>Aircraft/harrier/harrier-splash.rgb</splash-texture>
    </startup>
    
    <sound>
      <path>Aircraft/harrier/Sound/harrier-sound.xml</path>
    </sound>  
    
    <hud>
      <path n="1">Aircraft/harrier/Panel/Hud/NTPS.xml</path>
      <visibility n="0" type="bool">false</visibility>
      <visibility n="1" type="bool">true</visibility>
      <current-color>0</current-color>
      <color>
	<transparent type="bool">true</transparent>
	<antialiased type="bool">true</antialiased>
	<brightness type="float">1.0</brightness>
	<alpha type="float">0.70</alpha>
      </color>
      <palette>
	<color n="0">
	  <red type="float">0.50</red>
	  <green type="float">1.0</green>
	  <blue type="float">0.00</blue>
	</color>
	<color n="1">
	  <red type="float">1.0</red>
	  <green type="float">0.0</green>
	  <blue type="float">0.0</blue>
	</color>
      </palette>
    </hud>

    <submodels>
    	<serviceable type="bool">true</serviceable>
	<path>Aircraft/harrier/Models/submodels.xml</path>
    </submodels>

    <model>
      <path>Aircraft/harrier/Models/harrier-model.xml</path>
    </model>
    
	
   <flaps>
    <setting>0.0</setting>
    <setting>0.2</setting>
    <setting>0.4</setting>
    <setting>0.6</setting>
    <setting>0.8</setting>
    <setting>1.00</setting>
   </flaps>
    
    <view n="0">
      <internal archive="y">true</internal>
      <config>
	<!-- x/y/z == right/up/back -->
	<x-offset-m archive="y">0.00</x-offset-m>
	<y-offset-m archive="y">0.68</y-offset-m>
	<z-offset-m archive="y">3.98</z-offset-m>
	<pitch-offset-deg archive="y">-11</pitch-offset-deg>
      </config>
    </view>
    <view n="1">
      <config>
	<!-- x/y/z == right/up/back -->
	<target-z-offset-m archive="y">8</target-z-offset-m>
	<pitch-offset-deg archive="y">10</pitch-offset-deg>     
      </config>
    </view>  
    <view n="2">
      <config>
	<!-- x/y/z == right/up/back -->
	<target-z-offset-m archive="y">8</target-z-offset-m>
	<pitch-offset-deg archive="y">10</pitch-offset-deg>     
      </config>
    </view>   
    <view n="3">
      <config>
	<!-- x/y/z == right/up/back -->
	<target-z-offset-m archive="y">8</target-z-offset-m>
	<pitch-offset-deg archive="y">10</pitch-offset-deg>     
      </config>
    </view>   
    <view n="4">
      <config>
	<!-- x/y/z == right/up/back -->
	<target-z-offset-m archive="y">8</target-z-offset-m>
	<pitch-offset-deg archive="y">10</pitch-offset-deg>     
      </config>
    </view>   
    <view n="5">
      <config>
	<!-- x/y/z == right/up/back -->
	<target-z-offset-m archive="y">8</target-z-offset-m>
	<pitch-offset-deg archive="y">10</pitch-offset-deg>     
      </config>
    </view>  
    <view n="6">
      <config>
	<!-- x/y/z == right/up/back -->
	<target-z-offset-m archive="y">8</target-z-offset-m>
	<pitch-offset-deg archive="y">10</pitch-offset-deg>     
      </config>
    </view>   
    
    <help>
      <title>British Aerospace Harrier</title>
      <key>
	<name>m/M</name>
	<desc>Thrust Vector</desc>
      </key>
      <key>
	<name>j/k</name>
	<desc>Decrease/Increase Air Brake</desc>
      </key>
      <text>
	Tips:
	____Horizontal Take Off____
	Disengage the parking brake. Keep the stick pulled back while steering down the runway.
	_____Vertical Take Off_____
	Set the thrust vector to about 75 degrees. When you have gained about a hundred feet in altitude and are stable, slowly decrease the thrust vector back down to 0.  As you pick up speed, your wings will keep you airborne.  Do not decrease the thrust vector too quickly.
	____Vertical Landing____
	This is very difficult. Increase the thrust vector to about 85 degrees fairly early. You may use greater than 90 degree thrust vector to slow down, but don't forget about it, or else you may end up flying backwards(bad!). Flaps and air brake are optional. As you lose speed, your wings will no longer be able to support your weight. Keep your hand close to the throttle, and if you ever feel yourself dropping like a rock, slam the throttle to 100% right away.  The slower you go, the more vertical thrust you will need.  Once you are under 100 kts, your throttle will remain at about 80% or above.  Find a good decent rate that isn't too fast and be patient. Right before you hit the ground, point the nose upwards to about 8 degrees to accomodate the front landing gear being longer.

      </text>
    </help>
  <!--  <systems>
      <autopilot>
        <path>Aircraft/harrier/harrier-autopilot.xml</path>
      </autopilot>
    </systems> -->

    <weight n="0">
      <name>Left Outboard</name>
      <weight-lb>0</weight-lb>
      <selected>none</selected>
      <opt><name>none</name><lbs>0</lbs></opt>
      <opt><name>AIM-9L Sidewinder</name>   <lbs>155.2</lbs></opt>
      <opt><name>2x AIM-9L Sidewinder</name><lbs>330</lbs></opt>
      <opt><name>AIM-120 AMRAAM</name>      <lbs>335</lbs></opt>
    </weight>
    <weight n="1">
      <name>Left Inboard</name>
      <tank>1</tank> <!-- FDM tank index on this pylon -->
      <weight-lb>0</weight-lb>
      <selected>none</selected>
      <opt><name>none</name>                          <lbs>0</lbs>  </opt>
      <opt><name>AIM-9L Sidewinder</name>           <lbs>155.2</lbs></opt>
      <opt><name>AIM-120 AMRAAM</name>              <lbs>335</lbs>  </opt>
      <opt><name>ALARM Anti-radar Missile</name>    <lbs>590</lbs>  </opt>
      <opt><name>500lb Laser Guided Bomb</name>     <lbs>606</lbs>  </opt>
      <opt>
	<name>190 Gallon Fuel Tank</name>
        <lbs>150</lbs>
	<gals>230</gals>
      </opt>
    </weight>
    <weight n="2">
      <name>Left Fuselage</name>
      <weight-lb>0</weight-lb>
      <selected>none</selected>
      <opt><name>none</name>                          <lbs>0</lbs>  </opt>
      <opt><name>ADEN 30mm Cannon</name>                 <lbs>192</lbs>  </opt>
      <opt><name>AIM-120 AMRAAM</name>              <lbs>335</lbs>  </opt>
    </weight>
    <weight n="3">
      <name>Center Fuselage</name>
      <weight-lb>0</weight-lb>
      <selected>none</selected>
      <opt><name>none</name>                          <lbs>0</lbs>  </opt>
      <opt><name>1000lb Laser Guided Bomb</name>   <lbs>1092</lbs>  </opt>
      <opt><name>Sea Eagle Anti-ship Missile</name><lbs>1323</lbs>  </opt>
    </weight>
    <weight n="4">
      <name>Right Fuselage</name>
      <weight-lb>0</weight-lb>
      <selected>none</selected>
      <opt><name>none</name>                         <lbs>0</lbs>  </opt>
      <opt><name>ADEN 30mm Cannon</name>           <lbs>192</lbs>  </opt>
      <opt><name>AIM-120 AMRAAM</name>             <lbs>335</lbs>  </opt>
    </weight>
    <weight n="5">
      <name>Right Inboard</name>
      <tank>2</tank> <!-- FDM tank index on this pylon -->
      <weight-lb>0</weight-lb>
      <selected>none</selected>
      <opt><name>none</name>                          <lbs>0</lbs>  </opt>
      <opt><name>AIM-9L Sidewinder</name>           <lbs>155.2</lbs></opt>
      <opt><name>AIM-120 AMRAAM</name>              <lbs>335</lbs>  </opt>
      <opt><name>ALARM Anti-radar Missile</name>    <lbs>590</lbs>  </opt>
      <opt><name>500lb Laser Guided Bomb</name>     <lbs>606</lbs>  </opt>
      <opt>
	<name>190 Gallon Fuel Tank</name>
        <lbs>150</lbs>
	<gals>230</gals>
      </opt>
    </weight>
    <weight n="6">
      <name>Right Outboard</name>
      <weight-lb>0</weight-lb>
      <selected>none</selected>
      <opt><name>none</name><lbs>0</lbs></opt>
      <opt><name>AIM-9L Sidewinder</name><lbs>155.2</lbs></opt>
      <opt><name>2x AIM-9L Sidewinder</name><lbs>330</lbs></opt>
      <opt><name>AIM-120 AMRAAM</name>      <lbs>335</lbs></opt>
    </weight>
    <weight n="7">
      <name>Refueling Boom</name>
      <weight-lb>0</weight-lb>
      <selected>none</selected>
      <opt><name>none</name><lbs>0</lbs></opt>
      <opt><name>Refueling Boom Attached</name><lbs>60</lbs></opt>
    </weight>
<!--    <weight n="8">
      <name>Pilot</name>
      <weight-lb>180</weight-lb>
      <max-lb>300</max-lb>
    </weight> -->
 
 <multiplay>
    <generic>
     <int n="0" type="int">0</int>
     <int n="1" type="int">0</int>
     <int n="2" type="int">0</int>
     <int n="3" type="int">0</int>
     <int n="4" type="int">0</int>
     <int n="5" type="int">0</int>
     <int n="6" type="int">0</int>
     <int n="7" type="int">0</int>
     <int n="8" type="int">0</int>
     <int n="9" type="int">0</int>
     <int n="10" type="int">0</int>
     <int n="11" type="int">0</int>
     <int n="12" type="int">0</int>
     <float n="0" alias="/gear/gear[0]/sprayspeed-ms"/>
     <float n="1" alias="/gear/gear[1]/sprayspeed-ms"/>
     <float n="2" alias="/gear/gear[2]/sprayspeed-ms"/>
     <float n="3" alias="/gear/gear[0]/spray-density"/>
     <float n="4" alias="/gear/gear[1]/spray-density"/>
     <float n="5" alias="/gear/gear[2]/spray-density"/>
     </generic>
  </multiplay>


  </sim>
  <gear>
		<gear n="0">
			<tyre-smoke type="int">0</tyre-smoke>
			<sprayspeed-ms type="double">0</sprayspeed-ms>
			<spray-density type="double">0</spray-density>
		</gear>
		<gear n="1">
			<tyre-smoke type="int">0</tyre-smoke>
			<sprayspeed-ms type="double">0</sprayspeed-ms>
			<spray-density type="double">0</spray-density>
		</gear>
		<gear n="2">
			<tyre-smoke type="int">0</tyre-smoke>
			<sprayspeed-ms type="double">0</sprayspeed-ms>
			<spray-density type="double">0</spray-density>
		</gear>
	</gear>
  <!-- set a few properties -->
  <instrumentation>
    <enav><selected type="int">3</selected></enav>
    <radar>
      <range type="int" archive="y">40</range>
      <range-factor type="double" archive="n">0.001888</range-factor>
      <minimized type="bool" archive="y">false</minimized>
      <selected type="int">3</selected>
    </radar>
  </instrumentation>
  
  <systems>
    <refuel><type>probe</type>
      <serviceable type="bool">true</serviceable>
    </refuel>
  </systems>

  <!-- keyboard-->
  <input> 
    <keyboard> 
      <key n="104">
	<name>h</name>
	<desc>toggle HUD</desc>
	<binding>
	  <command>property-toggle</command>
	  <property>sim/hud/visibility[1]</property>
	</binding>
      </key>
          <key n="101">
     <name>e</name>
     <desc>Gun Trigger</desc> 
     <binding>
      <command>property-assign</command>
      <property>controls/armament/trigger</property>
      <value>true</value>
     </binding>
     <mod-up>
      <binding>
       <command>property-assign</command>
       <property>controls/armament/trigger</property>
       <value>false</value>
      </binding> 
     </mod-up>
    </key>
    </keyboard>
  </input>

  <consumables>
    <fuel>
      <tank n="0">
	<name>Internal</name>
      </tank>
      <tank n="1">
	<name>Left External</name>
      </tank>
      <tank n="2">
	<name>Right External</name>
      </tank>
    </fuel>
  </consumables>

  <!-- load nasal scripts -->
  <nasal>
    <aar> 
      <file>Aircraft/Generic/aar.nas</file>
    </aar>
    <controls> 
      <file>Aircraft/harrier/controls.nas</file>
    </controls>
    <enav>
      <file>Aircraft/harrier/Panel/enav/enav.nas</file>
    </enav>
    <radar>
      <file>Aircraft/harrier/Panel/radar/radar.nas</file>
    </radar>
    <hud>
      <file>Aircraft/harrier/Panel/Hud/hud.nas</file>
    </hud>
    <effects>
      <file>Aircraft/Generic/Effects/effects.nas</file>
    </effects>
  </nasal>
  
</PropertyList>
