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

<PropertyList>

  <fx>

    <!-- Engine 1 -->
    <crank>
      <name>engstart1</name>
      <path>starter.wav</path>
      <mode>once</mode>
      <condition>
        <!-- <property>engines/engine[0]/cranking</property> -->
        <property>sim/multiplay/generic/bool[17]</property>
      </condition>
      <volume>
        <offset>0.4</offset>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </crank>

    <crank>
      <name>crank1</name>
      <path>Sounds/cranking.wav</path>
      <mode>looped</mode>
      <condition>
        <!-- <property>engines/engine[0]/cranking</property> -->
        <property>sim/multiplay/generic/bool[17]</property>
        <!-- <not><property>engines/engine[0]/running</property></not> -->
        <not><property>sim/multiplay/generic/bool[19]</property></not>
      </condition>
      <volume>
        <offset>0.5</offset>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </crank>

    <crank>
      <name>cough1</name>
      <path>Sounds/coughing.wav</path>
      <mode>looped</mode>
      <condition>
        <!-- <property>engines/engine[0]/running</property> -->
        <property>sim/multiplay/generic/bool[19]</property>
      </condition>
      <volume>
        <offset>0.3</offset>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </crank>

    <engine>
      <name>engine1_idle</name>
      <path>running.wav</path>
      <mode>looped</mode>
      <condition>
        <!-- <property>engines/engine[0]/running</property> -->
        <property>sim/multiplay/generic/bool[19]</property>
        <less-than>
          <!-- <property>engines/engine[0]/rpm</property> -->
          <property>sim/multiplay/generic/float[4]</property>
          <value>1800</value>
        </less-than>
      </condition>
      <volume>
        <offset>0.5</offset>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </engine>

    <engine>
      <name>engine1_running</name>
      <path>running.wav</path>
      <mode>looped</mode>
      <condition>
        <!-- <property>engines/engine[0]/running</property> -->
        <property>sim/multiplay/generic/bool[19]</property>
        <greater-than>
          <!-- <property>engines/engine[0]/rpm</property> -->
          <property>sim/multiplay/generic/float[4]</property>
          <value>1200</value>
        </greater-than>
      </condition>
      <volume>
        <!-- <property>engines/engine[0]/rpm</property> -->
        <property>sim/multiplay/generic/float[4]</property>
        <factor>0.00037</factor>
        <max>1.0</max>
      </volume>
      <pitch>
        <!-- <property>engines/engine[0]/rpm</property> -->
        <property>sim/multiplay/generic/float[4]</property>
        <factor>0.00037</factor>
        <min>0</min>
        <max>0.8</max>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </engine>

    <!-- Engine 2 -->
    <crank>
      <name>engstart2</name>
      <path>starter.wav</path>
      <mode>once</mode>
      <condition>
        <!-- <property>engines/engine[1]/cranking</property> -->
        <property>sim/multiplay/generic/bool[18]</property>
      </condition>
      <volume>
        <offset>0.4</offset>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </crank>

    <crank>
      <name>crank2</name>
      <path>Sounds/cranking.wav</path>
      <mode>looped</mode>
      <condition>
        <!-- <property>engines/engine[1]/cranking</property> -->
        <property>sim/multiplay/generic/bool[18]</property>
        <!-- <not><property>engines/engine[1]/running</property></not> -->
        <not><property>sim/multiplay/generic/bool[20]</property></not>
      </condition>
      <volume>
        <offset>0.5</offset>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </crank>

    <crank>
      <name>cough2</name>
      <path>Sounds/coughing.wav</path>
      <mode>looped</mode>
      <condition>
        <!-- <property>engines/engine[1]/running</property> -->
        <property>sim/multiplay/generic/bool[20]</property>
      </condition>
      <volume>
        <offset>0.3</offset>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </crank>

    <engine>
      <name>engine2_idle</name>
      <path>running.wav</path>
      <mode>looped</mode>
      <condition>
        <!-- <property>engines/engine[1]/running</property> -->
        <property>sim/multiplay/generic/bool[20]</property>
        <less-than>
          <!-- <property>engines/engine[1]/rpm</property> -->
          <property>sim/multiplay/generic/float[5]</property>
          <value>1800</value>
        </less-than>
      </condition>
      <volume>
        <offset>0.5</offset>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </engine>

    <engine>
      <name>engine2_running</name>
      <path>running.wav</path>
      <mode>looped</mode>
      <condition>
        <!-- <property>engines/engine[1]/running</property> -->
        <property>sim/multiplay/generic/bool[20]</property>
        <greater-than>
          <!-- <property>engines/engine[1]/rpm</property> -->
          <property>sim/multiplay/generic/float[5]</property>
          <value>1200</value>
        </greater-than>
      </condition>
      <volume>
        <!-- <property>engines/engine[1]/rpm</property> -->
        <property>sim/multiplay/generic/float[5]</property>
        <factor>0.00037</factor>
        <max>1.0</max>
      </volume>
      <pitch>
        <!-- <property>engines/engine[1]/rpm</property> -->
        <property>sim/multiplay/generic/float[5]</property>
        <factor>0.00037</factor>
        <min>0</min>
        <max>0.8</max>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </engine>

    <!-- ************************************************ -->
    <rumble>
      <name>rumble</name>
      <path>Sounds/rumble.wav</path>
      <mode>looped</mode>
      <condition>
        <or>
          <property>gear/gear[0]/wow</property>
          <property>gear/gear[1]/wow</property>
          <property>gear/gear[2]/wow</property>
        </or>
      </condition>
      <volume>
        <property>velocities/airspeed-kt</property>
        <type>log</type>
        <factor>0.5</factor>
      </volume>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </rumble>

    <squeal>
      <name>squeal</name>
      <path>Sounds/squeal.wav</path>
      <mode>looped</mode>
      <condition>
        <or>
          <property>gear/gear[0]/wow</property>
          <property>gear/gear[1]/wow</property>
          <property>gear/gear[2]/wow</property>
        </or>
      </condition>
      <volume>
        <property>velocities/speed-down-fps</property>
        <factor>0.05</factor>
      </volume>
      <volume>
        <property>velocities/airspeed-kt</property>
        <factor>0.01</factor>
      </volume>
      <volume>
        <internal>dt_stop</internal>
        <factor>0.05</factor>
        <max>1.0</max>
      </volume>
      <pitch>
        <property>velocities/airspeed-kt</property>
        <factor>0.0025</factor>
        <offset>1.2</offset>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </squeal>

    <wind>
      <name>wind</name>
      <path>Sounds/wind.wav</path>
      <mode>looped</mode>
      <property>velocities/airspeed-kt</property>
      <volume>
        <property>position/altitude-ft</property>
        <factor>-0.000015</factor>
        <offset>1.0</offset>
        <min>0.1</min>
        <max>0.5</max>
      </volume>
      <volume>
        <property>velocities/airspeed-kt</property>
        <factor>0.0015</factor>
        <min>0.03</min>
        <max>0.25</max>
      </volume>
      <pitch>
        <property>velocities/airspeed-kt</property>
        <factor>0.01</factor>
        <offset>1.25</offset>
      </pitch>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </wind>

    <gun>
      <name>Gun</name>
      <path>gunfire.wav</path>
      <mode>looped</mode>
      <condition>
        <or>
          <!-- Nose -->
          <and>
            <!-- <property>controls/armament/trigger0</property> -->
            <property>sim/multiplay/generic/int[10]</property>
            <equal>
              <!-- <property>ai/submodels/submodel[0]/count</property> -->
              <property>sim/multiplay/generic/int[6]</property>
              <value>-1</value>
            </equal>
            <greater-than>
              <!-- <property>ai/submodels/submodel[0]/count</property> -->
              <property>sim/multiplay/generic/int[6]</property>
              <value>0</value>
            </greater-than>
          </and>
          <!-- Turret Tail -->
          <and>
            <!-- <property>controls/armament/trigger1</property> -->
            <property>sim/multiplay/generic/int[11]</property>
            <or>
              <equal>
                <!-- <property>ai/submodels/submodel[1]/count</property> -->
                <property>sim/multiplay/generic/int[7]</property>
                <value>-1</value>
              </equal>
              <greater-than>
                <!-- <property>ai/submodels/submodel[1]/count</property> -->
                <property>sim/multiplay/generic/int[7]</property>
                <value>0</value>
              </greater-than>
            </or>
          </and>
        </or>
      </condition>
      <reference-dist>100</reference-dist>
      <max-dist>1000</max-dist>
    </gun>

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

  </fx>

</PropertyList>
