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

<PropertyList>

  <fx>

    <engine>
      <name>Start</name>
      <path>turbine-start.wav</path>
      <mode>once</mode>
      <condition>
        <and>
          <greater-than>
            <!-- <property>sim/model/mi2/state</property> -->
            <property>sim/multiplay/generic/int[6]</property>
            <value>0</value>
          </greater-than>
          <!-- <not><property>sim/crashed</property></not> -->
          <not><property>sim/multiplay/generic/bool[5]</property></not>
        </and>
      </condition>
      <volume>
        <factor>0.42</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>3000</max-dist>
    </engine>

    <engine>
      <name>Turbine</name>
      <path>turbine-loop.wav</path>
      <mode>looped</mode>
      <condition>
        <and>
          <greater-than>
            <!-- <property>sim/model/mi2/state</property> -->
            <property>sim/multiplay/generic/int[6]</property>
            <value>0</value>
          </greater-than>
          <!-- <not><property>sim/crashed</property></not> -->
          <not><property>sim/multiplay/generic/bool[5]</property></not>
        </and>
      </condition>
      <volume>
        <factor>0.42</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>3000</max-dist>
    </engine>

    <rotor>
      <name>Rotor</name>
      <path>rotor-loop.wav</path>
      <mode>looped</mode>
      <condition>
        <and>
          <greater-than>
            <property>rotors/main/rpm</property>
            <value>50</value>
          </greater-than>
          <!-- <not><property>sim/crashed</property></not> -->
          <not><property>sim/multiplay/generic/bool[5]</property></not>
        </and>
      </condition>
      <volume>
        <!-- <property>rotors/gear/torque-sound-filtered</property> -->
        <property>sim/multiplay/generic/float[14]</property>
      </volume>
      <pitch>
        <property>rotors/main/rpm</property>
        <factor>0.00263</factor>
        <offset>-0.0</offset>
        <max>2.5</max>
      </pitch>
      <position>
        <x> -2 </x>
        <y>  0 </y>
        <z>  1 </z>
      </position>
      <reference-dist>100</reference-dist>
      <max-dist>3000</max-dist>
    </rotor>

    <engine>
      <name>Shutdown</name>
      <path>turbine-stop.wav</path>
      <mode>once</mode>
      <condition>
        <and>
          <greater-than>
            <!-- <property>sim/model/mi2/state</property> -->
            <property>sim/multiplay/generic/int[6]</property>
            <value>0</value>
          </greater-than>
          <!-- <not><property>sim/crashed</property></not> -->
          <not><property>sim/multiplay/generic/bool[5]</property></not>
        </and>
      </condition>
      <volume>
        <factor>0.42</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>3000</max-dist>
    </engine>

    <!-- ************************************************* -->
    <contact>
      <name>ground contact</name>
      <mode>once</mode>
      <path>wheel.wav</path>
      <condition>
        <property>gear/gear[0]/wow</property>
      </condition>
      <volume>
        <factor>0.8</factor>
      </volume>
      <pitch>
        <factor>0.01</factor>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>3000</max-dist>
    </contact>

    <contact>
      <name>ground contact</name>
      <mode>once</mode>
      <path>wheel.wav</path>
      <condition>
        <property>gear/gear[1]/wow</property>
      </condition>
      <volume>
        <factor>0.8</factor>
      </volume>
      <pitch>
        <factor>0.01</factor>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>3000</max-dist>
    </contact>

    <contact>
      <name>ground contact</name>
      <mode>once</mode>
      <path>wheel.wav</path>
      <condition>
        <property>gear/gear[2]/wow</property>
      </condition>
      <volume>
        <factor>0.8</factor>
      </volume>
      <pitch>
        <factor>0.01</factor>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>3000</max-dist>
    </contact>

    <!-- Doors sounds -->
    <door>
      <name>Open left door</name>
      <mode>once</mode>
      <path>door_open.wav</path>
      <condition>
        <greater-than>
          <!-- <property>sim/model/door-positions/crew/position-norm</property> -->
          <property>sim/multiplay/generic/float[24]</property>
          <value>0</value>
        </greater-than>
      </condition>
      <volume>
        <factor>0.3</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>3000</max-dist>
    </door>

    <door>
      <name>Close left door</name>
      <path>door_close.wav</path>
      <condition>
        <less-than>
          <!-- <property>sim/model/door-positions/crew/position-norm</property> -->
          <property>sim/multiplay/generic/float[24]</property>
          <value>0.03</value>
        </less-than>
      </condition>
      <volume>
        <factor>1</factor>
        <max>1.0</max>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>3000</max-dist>
    </door>

    <door>
      <name>Open right door</name>
      <mode>once</mode>
      <path>door_open.wav</path>
      <condition>
        <greater-than>
          <!-- <property>sim/model/door-positions/passenger/position-norm</property> -->
          <property>sim/multiplay/generic/float[25]</property>
          <value>0</value>
        </greater-than>
      </condition>
      <volume>
        <factor>0.3</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>3000</max-dist>
    </door>

    <door>
      <name>Close right door</name>
      <path>door_close.wav</path>
      <condition>
        <less-than>
          <!-- <property>sim/model/door-positions/passenger/position-norm</property> -->
          <property>sim/multiplay/generic/float[25]</property>
          <value>0.03</value>
        </less-than>
      </condition>
      <volume>
        <factor>1</factor>
        <max>1.0</max>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>3000</max-dist>
    </door>

    <door>
      <name>Open rear door</name>
      <mode>once</mode>
      <path>door_open.wav</path>
      <condition>
        <greater-than>
          <!-- <property>sim/model/door-positions/baie/position-norm</property> -->
          <property>sim/multiplay/generic/float[26]</property>
          <value>0</value>
        </greater-than>
      </condition>
      <volume>
        <factor>0.3</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>3000</max-dist>
    </door>

    <door>
      <name>Close rear door</name>
      <path>door_close.wav</path>
      <condition>
        <less-than>
          <!-- <property>sim/model/door-positions/baie/position-norm</property> -->
          <property>sim/multiplay/generic/float[26]</property>
          <value>0.03</value>
        </less-than>
      </condition>
      <volume>
        <factor>1</factor>
        <max>1.0</max>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>3000</max-dist>
    </door>

  </fx>

</PropertyList>
