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

<PropertyList include="PZL-P37-bombableinclude.xml">

  <path>pzlp37.ac</path>

  <animation>
    <!-- Objets opaques -->
    <object-name>pzlp37</object-name>
    <object-name>bolG</object-name>
    <object-name>bolD</object-name>
    <object-name>guns</object-name>
    <object-name>gunner</object-name>
    <object-name>partA</object-name>
    <object-name>partB</object-name>
    <object-name>portesfermees</object-name>
    <object-name>portesouvertes</object-name>

    <object-name>heliceG</object-name>
    <object-name>heliceD</object-name>
    <object-name>rouessorties</object-name>
    <object-name>rouesB</object-name>
    <object-name>rouesA</object-name>

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

  <!-- Mode P.37 A -->
  <animation>
    <type>select</type>
    <condition>
      <equals>
        <!-- <property>sim/model/mode</property> -->
        <property>/ai/models/multiplayer/sim/multiplay/generic/string[0]</property>
        <value>modeA</value>
      </equals>
    </condition>
    <object-name>partA</object-name>
    <object-name>rouesA</object-name>
  </animation>

  <!-- Mode P.37 B -->
  <animation>
    <type>select</type>
    <condition>
      <equals>
        <!-- <property>sim/model/mode</property> -->
        <property>/ai/models/multiplayer/sim/multiplay/generic/string[0]</property>
        <value>modeB</value>
      </equals>
    </condition>
    <object-name>partB</object-name>
    <object-name>rouesB</object-name>
  </animation>

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

  <model>
    <path>Effects/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>
    <center>
      <x-m> -4.74026 </x-m>
      <y-m> -2.50191 </y-m>
      <z-m>  0.24288 </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>
    <center>
      <x-m> -4.74026 </x-m>
      <y-m>  2.50191 </y-m>
      <z-m>  0.24288 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Roues sorties -->
  <animation>
    <type>select</type>
    <object-name>portesouvertes</object-name>
    <object-name>rouessorties</object-name>
    <object-name>rouesA</object-name>
    <condition>
      <and>
        <equals>
          <!-- <property>sim/model/mode</property> -->
          <property>/ai/models/multiplayer/sim/multiplay/generic/string[0]</property>
          <value>modeA</value>
        </equals>
        <less-than>
          <property>velocities/true-airspeed-kt</property>
          <value>60</value>
        </less-than>
      </and>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>portesouvertes</object-name>
    <object-name>rouessorties</object-name>
    <object-name>rouesB</object-name>
    <condition>
      <and>
        <equals>
          <!-- <property>sim/model/mode</property> -->
          <property>/ai/models/multiplayer/sim/multiplay/generic/string[0]</property>
          <value>modeB</value>
        </equals>
        <less-than>
          <property>velocities/true-airspeed-kt</property>
          <value>60</value>
        </less-than>
      </and>
    </condition>
  </animation>

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

</PropertyList>
