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

<!-- Based on Bo105 and Alouette 2
     Updated by Raptor
     Updated by Helijah September 2012
     Updated by Helijah      June 2021
     Updated by Helijah   January 2024
-->
<PropertyList>

  <fx>

    <engine>
      <name>Start external</name>
      <mode>once</mode>
      <path>start.wav</path>
      <condition>
        <and>
          <and>
            <greater-than>
              <property>sim/model/ch37/state</property>
              <value>0</value>
            </greater-than>
            <less-than>
              <property>sim/model/ch37/state</property>
              <value>3</value>
            </less-than>
          </and>
          <not><property>sim/current-view/internal</property></not>
        </and>
      </condition>
      <volume>
        <factor>0.7</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </engine>

    <engine>
      <name>Start internal</name>
      <mode>once</mode>
      <path>start.wav</path>
      <condition>
        <and>
          <and>
            <greater-than>
              <property>sim/model/ch37/state</property>
              <value>0</value>
            </greater-than>
            <less-than>
              <property>sim/model/ch37/state</property>
              <value>3</value>
            </less-than>
          </and>
          <property>sim/current-view/internal</property>
        </and>
      </condition>
      <volume>
        <factor>0.5</factor>
      </volume>
      <reference-dist>50</reference-dist>
      <max-dist>200</max-dist>
    </engine>

    <engine>
      <name>Turbine external</name>
      <mode>looped</mode>
      <path>running.wav</path>
      <condition>
        <and>
          <greater-than>
            <property>sim/model/ch37/state</property>
            <value>2</value>
          </greater-than>
          <not><property>sim/current-view/internal</property></not>
        </and>
      </condition>
      <volume>
        <factor>0.7</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </engine>

    <engine>
      <name>Turbine internal</name>
      <mode>looped</mode>
      <path>turbine-loop.wav</path>
      <condition>
        <and>
          <greater-than>
            <property>sim/model/ch37/state</property>
            <value>2</value>
          </greater-than>
          <property>sim/current-view/internal</property>
        </and>
      </condition>
      <volume>
        <factor>0.5</factor>
      </volume>
      <reference-dist>50</reference-dist>
      <max-dist>200</max-dist>
    </engine>

    <engine>
      <name>Shutdown external</name>
      <mode>once</mode>
      <path>shutdown.wav</path>
      <condition>
        <and>
          <and>
            <equals>
              <property>sim/model/ch37/state</property>
              <value>0</value>
            </equals>
            <greater-than>
              <property>rotors/main/rpm</property>
              <value>50</value>
            </greater-than>
          </and>
          <not><property>sim/current-view/internal</property></not>
        </and>
      </condition>
      <volume>
        <factor>0.7</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </engine>

    <engine>
      <name>Shutdown internal</name>
      <mode>once</mode>
      <path>shutdown.wav</path>
      <condition>
        <and>
          <and>
            <equals>
              <property>sim/model/ch37/state</property>
              <value>0</value>
            </equals>
            <greater-than>
              <property>rotors/main/rpm</property>
              <value>50</value>
            </greater-than>
          </and>
          <property>sim/current-view/internal</property>
        </and>
      </condition>
      <volume>
        <factor>0.5</factor>
      </volume>
      <reference-dist>50</reference-dist>
      <max-dist>200</max-dist>
    </engine>

    <rotor>
      <name>Rotor external</name>
      <mode>looped</mode>
      <path>rotor-loop.wav</path>
      <condition>
        <and>
          <greater-than>
            <property>sim/model/ch37/state</property>
            <value>2</value>
          </greater-than>
          <not><property>sim/current-view/internal</property></not>
        </and>
      </condition>
      <volume>
        <factor>0.7</factor>
      </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>1000</max-dist>
    </rotor>

    <rotor>
      <name>Rotor internal</name>
      <mode>looped</mode>
      <path>rotor-loop.wav</path>
      <condition>
        <and>
          <greater-than>
            <property>sim/model/ch37/state</property>
            <value>2</value>
          </greater-than>
          <property>sim/current-view/internal</property>
        </and>
      </condition>
      <volume>
        <factor>0.5</factor>
      </volume>
      <pitch>
        <property>rotors/main/rpm</property>
        <factor>0.004255</factor>
        <offset>-0.0</offset>
        <max>2.5</max>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </rotor>

    <!-- ************************************************* -->
    <gear>
      <name>gear0</name>
      <mode>in-transit</mode>
      <path>gear.wav</path>
      <property>gear/gear[0]/position-norm</property>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </gear>

    <gear>
      <name>gear1</name>
      <mode>in-transit</mode>
      <path>gear.wav</path>
      <property>gear/gear[1]/position-norm</property>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </gear>

    <contact>
      <name>ground contact0</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>5.0</reference-dist>
      <max-dist>10.0</max-dist>
    </contact>

    <contact>
      <name>ground contact1</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>5.0</reference-dist>
      <max-dist>10.0</max-dist>
    </contact>

    <contact>
      <name>ground contact2</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>5.0</reference-dist>
      <max-dist>10.0</max-dist>
    </contact>

    <wind>
      <name>wind</name>
      <mode>looped</mode>
      <path>Sounds/wind.wav</path>
      <condition>
        <and>
          <property>velocities/airspeed-kt</property>
          <not>
            <property>sim/crashed</property>
          </not>
        </and>
      </condition>
      <volume>
        <property>velocities/airspeed-kt</property>
        <factor>0.0015</factor>
        <min>0.00</min>
        <max>0.25</max>
      </volume>
      <pitch>
        <property>velocities/airspeed-kt</property>
        <factor>0.01</factor>
        <offset>1.25</offset>
      </pitch>
      <reference-dist>10.0</reference-dist>
      <max-dist>20.0</max-dist>
    </wind>

    <crash>
      <name>intense ground contact</name>
      <mode>once</mode>
      <path>Sounds/crash.wav</path>
      <property>sim/crashed</property>
      <volume>
        <factor>1</factor>
      </volume>
      <pitch>
        <factor>0.1</factor>
      </pitch>
    </crash>

    <door>
      <name>Door Open</name>
      <path>DoorOpen.wav</path>
      <condition>
        <greater-than>
          <!-- <property>sim/model/door-positions/crew/position-norm</property> -->
          <property>sim/multiplay/generic/float[11]</property>
          <value>0.1</value>
        </greater-than>
      </condition>
      <volume>
        <factor>0.8</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>

    <door>
      <name>Door Close</name>
      <path>DoorClosed.wav</path>
      <condition>
        <equals>
          <!-- <property>sim/model/door-positions/crew/position-norm</property> -->
          <property>sim/multiplay/generic/float[11]</property>
          <value>0</value>
        </equals>
      </condition>
      <volume>
        <factor>1</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>

    <cargo>
      <name>canopy slide0</name>
      <mode>in-transit</mode>
      <path>canopy_slide.wav</path>
      <!-- <property>sim/model/door-positions/passengerA/position-norm</property> -->
      <property>sim/multiplay/generic/float[12]</property>
      <volume>
        <factor>0.3</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </cargo>

    <cargo>
      <name>canopy slide1</name>
      <mode>in-transit</mode>
      <path>canopy_slide.wav</path>
      <!-- <property>sim/model/door-positions/passengerB/position-norm</property> -->
      <property>sim/multiplay/generic/float[13]</property>
      <volume>
        <factor>0.3</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </cargo>

    <rain>
      <name>rain</name>
      <mode>looped</mode>
      <path>rain.wav</path>
      <condition>
        <greater-than>
          <property>environment/rain-norm</property>
          <value>0.2</value>
        </greater-than>
      </condition>
      <volume>
        <property>environment/rain-norm</property>
        <factor>1.00</factor>
        <offset>0.00</offset>
        <min>0.4</min>
        <max>0.9</max>
      </volume>
      <pitch>
        <property>velocities/airspeed-kt</property>
        <factor>0.001</factor>
        <offset>1.0</offset>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </rain>

  </fx>

</PropertyList>
