<?xml version="1.0" encoding="ISO-8859-1"?>

<PropertyList>

  <sim                            include="views.xml">

    <fuel-fraction>1</fuel-fraction>

    <startup>
      <splash-texture>Aircraft/Mil-Mi-2/mi2-splash.png</splash-texture>
    </startup>

    <sound>
      <path>Aircraft/Mil-Mi-2/Sounds/mi2-sound.xml</path>
    </sound>

    <model>
      <path                       archive="y">Aircraft/Mil-Mi-2/Models/mi2.xml</path>
      <livery>
        <file                     type="string"/>
        <specular>
          <red                    type="float"> 0.03 </red>
          <green                  type="float"> 0.03 </green>
          <blue                   type="float"> 0.03 </blue>
        </specular>
      </livery>
      <show-tanks                 type="bool"/>
      <show-copilot               type="bool"/>
      <mi2>
        <state                    type="int">0</state>
        <engine                   type="float">0.0</engine>
        <rotor-step-deg           type="float">-1</rotor-step-deg>
        <effects>
          <particles>
            <rotorwash>
              <enabled            type="bool">true</enabled>
              <redcombinedstart   type="float">0.3</redcombinedstart>
              <greencombinedstart type="float">0.3</greencombinedstart>
              <bluecombinedstart  type="float">0.3</bluecombinedstart>
              <redcombinedend     type="float">0.5</redcombinedend>
              <greencombinedend   type="float">0.5</greencombinedend>
              <bluecombinedend    type="float">0.5</bluecombinedend>
            </rotorwash>
            <enabled              type="bool">true</enabled>
            <redcombined          type="float">0</redcombined>
            <greencombined        type="float">0</greencombined>
            <bluecombined         type="float">0</bluecombined>
          </particles>
        </effects>
      </mi2>
    </model>

    <systems                      include="rules.xml"/>

    <instrumentation              include="initialisation.xml"/>
    <!--
    <submodels>
      <serviceable type="bool">true</serviceable>
      <path>Aircraft/Mil-Mi-2/Models/Effects/Weapons/release.xml</path>
    </submodels>
    -->
    <multiplay>
      <chat_display>1</chat_display>
      <generic>
        <!-- Immat -->
        <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"  alias="/sim/model/mi2/state"/>
        <!-- -->
        <bool   n="0"  alias="/sim/model/show-tanks"/>
        <bool   n="1"  alias="/controls/electric/fan"/>
        <bool   n="2"  alias="/sim/rendering/hdr/hdr-enabled"/>
        <bool   n="3"  alias="/sim/model/dauphin/effects/particles/enabled"/>
        <bool   n="5"  alias="/sim/freeze/clock"/>
        <bool   n="6"  alias="/sim/crashed"/>
        <!-- -->
        <bool   n="7"  alias="/sim/model/show-copilot"/>
        <!-- Lights -->
        <bool   n="11" alias="/controls/lighting/beacon"/>
        <bool   n="12" alias="/sim/model/lights/beacon/state"/>
        <bool   n="13" alias="/controls/lighting/strobe"/>
        <bool   n="14" alias="/sim/model/lights/sbc1/state"/>
        <bool   n="15" alias="/controls/lighting/nav-lights"/>
        <bool   n="16" alias="/controls/lighting/landing-lights"/>
        <!-- -->
        <bool   n="17" alias="/gear/gear[0]/wow"/>
        <bool   n="18" alias="/gear/gear[1]/wow"/>
        <bool   n="19" alias="/gear/gear[2]/wow"/>
        <!-- -->
        <float  n="0"  alias="/position/altitude-agl-ft"/>
        <float  n="1"  alias="/orientation/roll-deg"/>
        <float  n="2"  alias="/orientation/pitch-deg"/>
        <!-- -->
        <float  n="3"  alias="/sim/model/mi2/effects/particles/rotorwash/redcombinedstart"/>
        <float  n="4"  alias="/sim/model/mi2/effects/particles/rotorwash/greencombinedstart"/>
        <float  n="5"  alias="/sim/model/mi2/effects/particles/rotorwash/bluecombinedstart"/>
        <float  n="6"  alias="/sim/model/mi2/effects/particles/rotorwash/redcombinedend"/>
        <float  n="7"  alias="/sim/model/mi2/effects/particles/rotorwash/greencombinedend"/>
        <float  n="8"  alias="/sim/model/mi2/effects/particles/rotorwash/bluecombinedend"/>
        <!-- -->
        <float  n="9"  alias="/controls/engines/engine[0]/throttle"/>
        <float  n="10" alias="/controls/engines/engine[1]/throttle"/>
        <!-- -->
        <float  n="11" alias="/gear/gear[0]/rollspeed-ms"/>
        <float  n="12" alias="/gear/gear[1]/rollspeed-ms"/>
        <float  n="13" alias="/gear/gear[2]/rollspeed-ms"/>
        <!-- -->
        <float  n="14" alias="/rotors/gear/torque-sound-filtered"/>
        <!-- -->
        <float  n="15" alias="/rotors/main/cone1-deg"/>
        <float  n="16" alias="/rotors/main/cone2-deg"/>
        <float  n="17" alias="/rotors/main/cone3-deg"/>
        <float  n="18" alias="/rotors/main/cone4-deg"/>
        <float  n="19" alias="/rotors/main/blade[0]/incidence-deg"/>
        <float  n="20" alias="/rotors/tail/blade[0]/incidence-deg"/>
        <!-- -->
        <float  n="21" alias="/gear/gear[0]/compression-norm"/>
        <float  n="22" alias="/gear/gear[1]/compression-norm"/>
        <float  n="23" alias="/gear/gear[2]/compression-norm"/>
        <!-- Doors -->
        <float  n="24" alias="/sim/model/door-positions/crew/position-norm"/>
        <float  n="25" alias="/sim/model/door-positions/passenger/position-norm"/>
        <float  n="26" alias="/sim/model/door-positions/baie/position-norm"/>
        <!-- -->
        <string n="1"  alias="/sim/model/livery/texture"/>
        <!-- For Bombable -->
        <int    n="10" type="int" alias="controls/armament/trigger">0</int>
        <string n="9"  type="string"/>
      </generic>
    </multiplay>

    <weight             n="0">
      <name             type="string">Pilot</name>
      <weight-lb        type="double">180</weight-lb>
      <max-lb           type="double">300</max-lb>
    </weight>

    <weight             n="1">
      <name             type="string">Co-Pilot</name>
      <weight-lb        type="double">180</weight-lb>
      <max-lb           type="double">300</max-lb>
    </weight>

    <help               include="help.xml"/>

    <menubar            include="../Dialogs/mi2-menu.xml"/>

    <aircraft-data      include="aircraft-data.xml"/>

  </sim>

  <input                include="mi2-keyboard.xml"/>

  <controls             include="controls.xml"/>

  <consumables          include="consumables.xml"/>

  <instrumentation      include="instrumentation.xml">
    <gsdi>
      <serviceable      type="bool">true</serviceable>
      <enabled          type="bool">true</enabled>
    </gsdi>
  </instrumentation>

  <rotors               include="rotors.xml"/>

  <nasal>
    <rotorwash>
      <file>Aircraft/Mil-Mi-2/Nasal/rotorwash.nas</file>
    </rotorwash>
    <doors>
      <file>Aircraft/Mil-Mi-2/Nasal/doors.nas</file>
    </doors>
    <mi2>
      <file>Aircraft/Mil-Mi-2/Nasal/hdr.nas</file>
      <file>Aircraft/Mil-Mi-2/Nasal/light.nas</file>
      <file>Aircraft/Mil-Mi-2/Nasal/liveries.nas</file>
      <file>Aircraft/Mil-Mi-2/Nasal/mi2.nas</file>
      <file>Aircraft/Mil-Mi-2/Nasal/fuel.nas</file>
      <file>Aircraft/Mil-Mi-2/Nasal/convert.nas</file>
      <file>Aircraft/Mil-Mi-2/Nasal/Electrical.nas</file>
      <file>Aircraft/Mil-Mi-2/Nasal/dialogs.nas</file>
    </mi2>
    <PA>
      <file>Aircraft/Mil-Mi-2/Nasal/PA.nas</file>
    </PA>

    aircraft.data.add(
      "instrumentation/nav[0]/power-btn",
      "instrumentation/nav[0]/audio-btn",
      "instrumentation/nav[0]/frequencies/selected-mhz",
      "instrumentation/nav[0]/frequencies/standby-mhz",
      "instrumentation/nav[0]/to-flag",
      "instrumentation/nav[0]/from-flag",
      "instrumentation/nav[0]/radials/selected-deg",
      "instrumentation/nav[0]/gs-needle-deflection",
      "instrumentation/nav[0]/heading-needle-deflection",
      "instrumentation/nav[0]/in-range",
      "instrumentation/comm[0]/volume",
      "instrumentation/comm[0]/frequencies/selected-mhz",
      "instrumentation/comm[0]/frequencies/standby-mhz",
      "instrumentation/comm[0]/test-btn",

      "instrumentation/nav[1]/power-btn",
      "instrumentation/nav[1]/audio-btn",
      "instrumentation/nav[1]/frequencies/selected-mhz",
      "instrumentation/nav[1]/frequencies/standby-mhz",
      "instrumentation/nav[1]/to-flag",
      "instrumentation/nav[1]/from-flag",
      "instrumentation/nav[1]/radials/selected-deg",
      "instrumentation/nav[1]/gs-needle-deflection",
      "instrumentation/nav[1]/heading-needle-deflection",
      "instrumentation/nav[1]/in-range",
      "instrumentation/comm[1]/volume",
      "instrumentation/comm[1]/frequencies/selected-mhz",
      "instrumentation/comm[1]/frequencies/standby-mhz",
      "instrumentation/comm[1]/test-btn",
    );

  </nasal>

</PropertyList>
