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

<!-- thanks to the SAR simulation (GPL) for the helicopter sounds,
     and the Urban game (LGPL) for the weapon sounds
     +x = aft
     +y = left
     +z = up
-->
<PropertyList>

  <fx>

    <engine>
      <name>engine-start-outside</name>
      <mode>once</mode>
      <path>starter-out.wav</path>
      <condition>
        <and>
          <greater-than>
            <property>sim/model/jetranger/state</property>
            <value>0</value>
          </greater-than>
          <not><property>sim/crashed</property></not>
          <and>
            <not>
              <equals>
                <property>sim/current-view/view-number</property>
                <value>0</value> <!-- Pilote view -->
              </equals>
            </not>
            <not>
              <equals>
                <property>sim/current-view/view-number</property>
                <value>8</value> <!-- Copilote view -->
              </equals>
            </not>
          </and>
        </and>
      </condition>
      <volume>
        <factor>0.12</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </engine>

    <engine>
      <name>engine-start-inside</name>
      <mode>once</mode>
      <path>starter-in.wav</path>
      <condition>
        <and>
          <greater-than>
            <property>sim/model/jetranger/state</property>
            <value>0</value>
          </greater-than>
          <not><property>sim/crashed</property></not>
          <or>
            <equals>
              <property>sim/current-view/view-number</property>
              <value>0</value> <!-- Pilote view -->
            </equals>
            <equals>
              <property>sim/current-view/view-number</property>
              <value>8</value> <!-- Copilote view -->
            </equals>
          </or>
        </and>
      </condition>
      <volume>
        <factor>0.12</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </engine>

    <rotor>
      <name>rotor</name>
      <mode>looped</mode>
      <path>rotor-out.wav</path>
      <condition>
        <and>
          <or>
            <greater-than>
              <property>rotors/main/rpm</property>
              <value>50</value>
            </greater-than>
            <greater-than>
              <property>sim/model/alouette/state</property>
              <value>1</value>
            </greater-than>
          </or>
          <not><property>sim/crashed</property></not>
          <not><property>sim/current-view/internal</property></not>
        </and>
      </condition>
      <volume>
        <property>rotors/gear/torque-sound-filtered</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>1000</max-dist>
    </rotor>

    <rotor>
      <name>rotorinside</name>
      <mode>looped</mode>
      <path>rotor-in.wav</path>
      <condition>
        <and>
          <or>
            <greater-than>
              <property>rotors/main/rpm</property>
              <value>50</value>
            </greater-than>
            <greater-than>
              <property>sim/model/alouette/state</property>
              <value>1</value>
            </greater-than>
          </or>
          <not><property>sim/crashed</property></not>
          <property>sim/current-view/internal</property>
        </and>
      </condition>
      <volume>
        <property>rotors/gear/torque-sound-filtered</property>
      </volume>
      <pitch>
        <property>rotors/main/rpm</property>
        <factor>0.00263</factor>
        <offset>-0.0</offset>
        <max>2.5</max>
      </pitch>
    </rotor>

    <rotor>
      <name>tail_rotor</name>
      <mode>looped</mode>
      <path>tail-rotor.wav</path>
      <condition>
        <and>
          <or>
            <greater-than>
              <property>rotors/main/rpm</property>
              <value>50</value>
            </greater-than>
            <greater-than>
              <property>sim/model/alouette/state</property>
              <value>1</value>
            </greater-than>
          </or>
          <not><property>sim/crashed</property></not>
          <not><property>sim/current-view/internal</property></not>
        </and>
      </condition>
      <volume>
        <property>rotors/gear/torque-sound-filtered</property>
        <factor>0.75</factor>
      </volume>
      <pitch>
        <property>rotors/tail/rpm</property>
        <factor>0.0023</factor>
        <offset>-0.0</offset>
        <max>2.5</max>
      </pitch>
      <position>
        <x> 4.0 </x>
        <y> 0.0 </y>
        <z> 0.2 </z>
      </position>
      <orientation>
        <x> 1.0 </x>
        <y> 0.2 </y>
        <z> 0.0 </z>
        <inner-angle>50</inner-angle>
        <outer-angle>100</outer-angle>
        <outer-gain>0.1</outer-gain>
      </orientation>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </rotor>

    <rotor>
      <name>engine</name>
      <mode>looped</mode>
      <path>engine-out.wav</path>
      <condition>
        <and>
          <or>
            <greater-than>
              <property>rotors/main/rpm</property>
              <value>50</value>
            </greater-than>
            <greater-than>
              <property>sim/model/alouette/state</property>
              <value>1</value>
            </greater-than>
          </or>
          <not><property>sim/crashed</property></not>
          <not><property>sim/current-view/internal</property></not>
        </and>
      </condition>
      <volume>
        <property>rotors/gear/torque-sound-filtered</property>
      </volume>
      <pitch>
        <property>rotors/main/rpm</property>
        <factor>0.00263</factor>
        <offset>-0.0</offset>
        <max>1.5</max>
      </pitch>
      <position>
        <x> 0 </x>
        <y> 0 </y>
        <z> 0.3 </z>
      </position>
      <orientation>
        <x> 1 </x>
        <y> 0 </y>
        <z> 0 </z>
        <inner-angle>50</inner-angle>
        <outer-angle>100</outer-angle>
        <outer-gain>0.2</outer-gain>
      </orientation>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </rotor>

    <rotor>
      <name>rotorinside2</name>
      <mode>looped</mode>
      <path>engine-in.wav</path>
      <condition>
        <and>
          <or>
            <greater-than>
              <property>rotors/main/rpm</property>
              <value>50</value>
            </greater-than>
            <greater-than>
              <property>sim/model/alouette/state</property>
              <value>1</value>
            </greater-than>
          </or>
          <not><property>sim/crashed</property></not>
          <property>sim/current-view/internal</property>
        </and>
      </condition>
      <volume>
        <property>rotors/gear/torque-sound-filtered2</property>
      </volume>
      <pitch>
        <property>rotors/main/rpm</property>
        <factor>0.00263</factor>
        <offset>-0.0</offset>
        <max>2.5</max>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </rotor>

    <overspeed>
      <name>overspeed</name>
      <mode>looped</mode>
      <path>Sounds/overspeed.wav</path>
      <condition>
        <greater-than>
          <property>velocities/airspeed-kt</property>
          <value>146</value>
        </greater-than>
      </condition>
      <volume>
        <factor>0.2</factor>
      </volume>
      <pitch>
        <factor>0.1</factor>
      </pitch>
      <reference-dist>1.0</reference-dist>
      <max-dist>2.0</max-dist>
    </overspeed>

    <!-- ****************************************** -->
    <contact>
      <name>ground contact</name>
      <mode>once</mode>
      <path>TC1.wav</path>
      <condition>
        <property>gear/gear[0]/wow</property>
        <property>gear/gear[1]/wow</property>
        <property>gear/gear[2]/wow</property>
        <property>gear/gear[3]/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>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </crash>

    <!-- Doors sounds -->
    <door>
      <name>CrewGdoorOpen</name>
      <mode>once</mode>
      <path>DoorOpen.wav</path>
      <condition>
        <greater-than>
          <!-- <property>sim/model/door-positions/crewG/position-norm</property> -->
          <property>sim/multiplay/generic/float[30]</property>
          <value>0</value>
        </greater-than>
      </condition>
      <volume>
        <factor>0.3</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>

    <door>
      <name>CrewGdoorClose</name>
      <mode>once</mode>
      <path>DoorClosed.wav</path>
      <condition>
        <less-than>
          <!-- <property>sim/model/door-positions/crewG/position-norm</property> -->
          <property>sim/multiplay/generic/float[30]</property>
          <value>1</value>
        </less-than>
      </condition>
      <volume>
        <factor>0.3</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>

    <door>
      <name>CrewDdoorOpen</name>
      <mode>once</mode>
      <path>DoorOpen.wav</path>
      <condition>
        <greater-than>
          <!-- <property>sim/model/door-positions/crewD/position-norm</property> -->
          <property>sim/multiplay/generic/float[31]</property>
          <value>0</value>
        </greater-than>
      </condition>
      <volume>
        <factor>0.3</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>

    <door>
      <name>CrewDdoorClose</name>
      <mode>once</mode>
      <path>DoorClosed.wav</path>
      <condition>
        <less-than>
          <!-- <property>sim/model/door-positions/crewD/position-norm</property> -->
          <property>sim/multiplay/generic/float[31]</property>
          <value>1</value>
        </less-than>
      </condition>
      <volume>
        <factor>0.3</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>

    <door>
      <name>RearGdoorOpen</name>
      <mode>once</mode>
      <path>DoorOpen.wav</path>
      <condition>
        <greater-than>
          <!-- <property>sim/model/door-positions/rearG/position-norm</property> -->
          <property>sim/multiplay/generic/float[32]</property>
          <value>0</value>
        </greater-than>
      </condition>
      <volume>
        <factor>0.3</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>

    <door>
      <name>RearGdoorClose</name>
      <mode>once</mode>
      <path>DoorClosed.wav</path>
      <condition>
        <less-than>
          <!-- <property>sim/model/door-positions/rearG/position-norm</property> -->
          <property>sim/multiplay/generic/float[32]</property>
          <value>1</value>
        </less-than>
      </condition>
      <volume>
        <factor>0.3</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>

    <door>
      <name>RearDdoorOpen</name>
      <mode>once</mode>
      <path>DoorOpen.wav</path>
      <condition>
        <greater-than>
          <!-- <property>sim/model/door-positions/rearD/position-norm</property> -->
          <property>sim/multiplay/generic/float[33]</property>
          <value>0</value>
        </greater-than>
      </condition>
      <volume>
        <factor>0.3</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>

    <door>
      <name>RearDdoorClose</name>
      <mode>once</mode>
      <path>DoorClosed.wav</path>
      <condition>
        <less-than>
          <!-- <property>sim/model/door-positions/rearD/position-norm</property> -->
          <property>sim/multiplay/generic/float[33]</property>
          <value>1</value>
        </less-than>
      </condition>
      <volume>
        <factor>0.3</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </door>

    <rain>
      <name>rain</name>
      <mode>looped</mode>
      <path>rain_canopy.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>
    </rain>

  </fx>

</PropertyList>
