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

<PropertyList include="Savoia-Marchetti-SM-79-bombableinclude.xml">

  <path>SM-79.ac</path>

  <animation>
    <!-- Objets opaques -->
    <object-name>SM-79</object-name>
    <object-name>modeA</object-name>
    <object-name>modeB</object-name>
    <object-name>portesfermees</object-name>
    <object-name>portesouvertes</object-name>
    <object-name>bolG</object-name>
    <object-name>bolC</object-name>
    <object-name>bolD</object-name>

    <object-name>guns</object-name>
    <object-name>frontgun</object-name>
    <object-name>heliceG</object-name>
    <object-name>heliceC</object-name>
    <object-name>heliceD</object-name>
    <object-name>rouessorties</object-name>
    <object-name>rouesrentrees</object-name>
    <object-name>pylonG</object-name>
    <object-name>pylonD</object-name>
    <object-name>TorpedoG</object-name>
    <object-name>TorpedoD</object-name>

    <object-name>propblurG</object-name>
    <object-name>propdiscG</object-name>
    <object-name>propblurC</object-name>
    <object-name>propdiscC</object-name>
    <object-name>propblurD</object-name>
    <object-name>propdiscD</object-name>
  </animation>

  <!-- -->
  <animation>
    <type>select</type>
    <condition>
      <!-- <property>sim/model/modelT</property> -->
      <property>/ai/models/multiplayer/sim/multiplay/generic/bool[0]</property>
    </condition>
    <object-name>modeB</object-name>
    <object-name>guns</object-name>
  </animation>

  <animation>
    <type>select</type>
    <condition>
      <!-- <not><property>sim/model/modelT</property></not> -->
      <not><property>/ai/models/multiplayer/sim/multiplay/generic/bool[0]</property></not>
    </condition>
    <object-name>modeA</object-name>
  </animation>

  <animation>
    <type>select</type>
    <object-name>frontgun</object-name>
    <condition>
      <!-- <not><property>sim/model/modelT</property></not> -->
      <not><property>/ai/models/multiplayer/sim/multiplay/generic/bool[0]</property></not>
      <!-- <property>sim/model/show-FrontGun</property> -->
      <property>/ai/models/multiplayer/sim/multiplay/generic/bool[1]</property>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>pylonG</object-name>
    <condition>
      <!-- <not><property>sim/model/modelT</property></not> -->
      <not><property>/ai/models/multiplayer/sim/multiplay/generic/bool[0]</property></not>
      <!-- <property>sim/model/show-TorpedoL</property> -->
      <property>/ai/models/multiplayer/sim/multiplay/generic/bool[6]</property>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>pylonD</object-name>
    <condition>
      <!-- <not><property>sim/model/modelT</property></not> -->
      <not><property>/ai/models/multiplayer/sim/multiplay/generic/bool[0]</property></not>
      <!-- <property>sim/model/show-TorpedoR</property> -->
      <property>/ai/models/multiplayer/sim/multiplay/generic/bool[7]</property>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>TorpedoG</object-name>
    <condition>
      <and>
        <!-- <not><property>sim/model/modelT</property></not> -->
        <not><property>/ai/models/multiplayer/sim/multiplay/generic/bool[0]</property></not>
        <!-- <not><property>controls/signal1</property></not> -->
        <not><property>/ai/models/multiplayer/sim/multiplay/generic/int[11]</property></not>
        <!-- <property>sim/model/show-TorpedoL</property> -->
        <property>/ai/models/multiplayer/sim/multiplay/generic/bool[6]</property>
      </and>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>TorpedoD</object-name>
    <condition>
      <and>
        <!-- <not><property>sim/model/modelT</property></not> -->
        <not><property>/ai/models/multiplayer/sim/multiplay/generic/bool[0]</property></not>
        <!-- <not><property>controls/signal2</property></not> -->
        <not><property>/ai/models/multiplayer/sim/multiplay/generic/int[12]</property></not>
        <!-- <property>sim/model/show-TorpedoR</property> -->
        <property>/ai/models/multiplayer/sim/multiplay/generic/bool[7]</property>
      </and>
    </condition>
  </animation>

  <model>
    <path>engines/all-engines.xml</path>
  </model>

  <model>
    <path>Effects/light/all-lights.xml</path>
  </model>

  <!-- Les hélices -->
  <animation>
    <name>HeliceCompleteG</name>
    <object-name>propdiscG</object-name>
    <object-name>propblurG</object-name>
    <object-name>heliceG</object-name>
    <object-name>bolG</object-name>
  </animation>

  <!-- Séléction de l'objet visible en fonction des rpm -->
  <animation>
    <type>select</type>
    <object-name>propdiscG</object-name>
    <condition>
      <greater-than>
        <property>velocities/true-airspeed-kt</property>
        <value>14</value>
      </greater-than>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>propblurG</object-name>
    <condition>
      <and>
        <greater-than>
          <property>velocities/true-airspeed-kt</property>
          <value>60</value>
        </greater-than>
        <less-than>
          <property>velocities/true-airspeed-kt</property>
          <value>101</value>
        </less-than>
      </and>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>heliceG</object-name>
    <condition>
      <less-than>
        <property>velocities/true-airspeed-kt</property>
        <value>101</value>
      </less-than>
    </condition>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>HeliceCompleteG</object-name>
    <property>velocities/true-airspeed-kt</property>
    <factor> -10 </factor>
    <axis>
      <x1-m> -5.91922 </x1-m>
      <y1-m> -2.55930 </y1-m>
      <z1-m> -0.40632 </z1-m>
      <x2-m> -5.50647 </x2-m>
      <y2-m> -2.55930 </y2-m>
      <z2-m> -0.43518 </z2-m>
    </axis>
  </animation>

  <animation>
    <name>HeliceCompleteC</name>
    <object-name>propdiscC</object-name>
    <object-name>propblurC</object-name>
    <object-name>heliceC</object-name>
    <object-name>bolC</object-name>
  </animation>

  <!-- Séléction de l'objet visible en fonction des rpm -->
  <animation>
    <type>select</type>
    <object-name>propdiscC</object-name>
    <condition>
      <greater-than>
        <property>velocities/true-airspeed-kt</property>
        <value>14</value>
      </greater-than>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>propblurC</object-name>
    <condition>
      <and>
        <greater-than>
          <property>velocities/true-airspeed-kt</property>
          <value>60</value>
        </greater-than>
        <less-than>
          <property>velocities/true-airspeed-kt</property>
          <value>101</value>
        </less-than>
      </and>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>heliceC</object-name>
    <condition>
      <less-than>
        <property>velocities/true-airspeed-kt</property>
        <value>101</value>
      </less-than>
    </condition>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>HeliceCompleteC</object-name>
    <property>velocities/true-airspeed-kt</property>
    <factor> -10 </factor>
    <center>
      <x-m> -7.44462 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m>  0.12390 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <name>HeliceCompleteD</name>
    <object-name>propdiscD</object-name>
    <object-name>propblurD</object-name>
    <object-name>heliceD</object-name>
    <object-name>bolD</object-name>
  </animation>

  <!-- Séléction de l'objet visible en fonction des rpm -->
  <animation>
    <type>select</type>
    <object-name>propdiscD</object-name>
    <condition>
      <greater-than>
        <property>velocities/true-airspeed-kt</property>
        <value>14</value>
      </greater-than>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>propblurD</object-name>
    <condition>
      <and>
        <greater-than>
          <property>velocities/true-airspeed-kt</property>
          <value>60</value>
        </greater-than>
        <less-than>
          <property>velocities/true-airspeed-kt</property>
          <value>101</value>
        </less-than>
      </and>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>heliceD</object-name>
    <condition>
      <less-than>
        <property>velocities/true-airspeed-kt</property>
        <value>101</value>
      </less-than>
    </condition>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>HeliceCompleteD</object-name>
    <property>velocities/true-airspeed-kt</property>
    <factor> -10 </factor>
    <axis>
      <x1-m> -5.91922 </x1-m>
      <y1-m>  2.55930 </y1-m>
      <z1-m> -0.40632 </z1-m>
      <x2-m> -5.50647 </x2-m>
      <y2-m>  2.55930 </y2-m>
      <z2-m> -0.43518 </z2-m>
    </axis>
  </animation>

  <!-- Roues sorties -->
  <animation>
    <type>select</type>
    <object-name>rouessorties</object-name>
    <object-name>portesouvertes</object-name>
    <condition>
      <less-than>
        <property>velocities/true-airspeed-kt</property>
        <value>60</value>
      </less-than>
    </condition>
  </animation>

  <!-- Roues rentrée -->
  <animation>
    <type>select</type>
    <object-name>rouesrentrees</object-name>
    <object-name>portesfermees</object-name>
    <condition>
      <greater-than>
        <property>velocities/true-airspeed-kt</property>
        <value>59</value>
      </greater-than>
    </condition>
  </animation>

</PropertyList>
