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

<PropertyList include="Gloster-Gladiator-bombableinclude.xml">

  <path>gladiator.ac</path>

  <animation>
    <!-- Objets opaques -->
    <object-name>gladiator</object-name>
    <object-name>bol</object-name>

    <object-name>helice</object-name>

    <object-name>propdisc</object-name>
    <object-name>propblur</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>gladiator</object-name>
    <object-name>bol</object-name>
    <object-name>helice</object-name>
    <object-name>propdisc</object-name>
    <object-name>propblur</object-name>

    <property-base>sim/model/livery</property-base>
    <texture-prop>texture</texture-prop>
    <texture>texture.png</texture>
    <specular>
      <red-prop>specular/red</red-prop>
      <green-prop>specular/green</green-prop>
      <blue-prop>specular/blue</blue-prop>
    </specular>
  </animation>

  <effect>
    <inherits-from>AI/Aircraft/Gloster-Gladiator/Models/Effects/Bump/bumpspec</inherits-from>
    <object-name>gladiator</object-name>
    <object-name>bol</object-name>
  </effect>

  <effect>
    <inherits-from>Effects/model-transparent</inherits-from>
    <object-name>propdisc</object-name>
    <object-name>propblur</object-name>
  </effect>

  <!-- L'hélice -->
  <animation>
    <name>HeliceComplete</name>
    <object-name>helice</object-name>
    <object-name>bol</object-name>
    <object-name>propdisc</object-name>
    <object-name>propblur</object-name>
  </animation>

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

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

  <animation>
    <type>select</type>
    <object-name>propblur</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>helice</object-name>
    <condition>
      <less-than>
        <property>velocities/true-airspeed-kt</property>
        <value>101</value>
      </less-than>
    </condition>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>HeliceComplete</object-name>
    <property>velocities/true-airspeed-kt</property>
    <factor> 1 </factor>
    <center>
      <x-m> -3.85389 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m>  0.17718 </z-m>
    </center>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

</PropertyList>
