<?xml version="1.0"?>

<!-- Copyright (c) 2022 Josh Davidson (Octal450) -->

<PropertyList>
	<path>res/CFM56.ac</path>
	
	<params>
		<contrail1>engines/engine[0]/contrail</contrail1>
		<contrail2>engines/engine[1]/contrail</contrail2>
	</params>
	
	<!-- Particle Effects -->
	<model>
		<path>Aircraft/A320-family/Models/Effects/Particles/contrail.xml</path>
		<name>contrailLeft</name>
		<condition>
			<property>environment/contrail</property>
		</condition>
		<overlay>
			<params>
				<contrail alias="../../../../params/contrail1" />
			</params>
		</overlay>
		<offsets>
			<x-m> 4.51789</x-m>
			<y-m>-5.63029</y-m>
			<z-m>-2.22295</z-m>
		</offsets>
	</model>
	
	<model>
		<path>Aircraft/A320-family/Models/Effects/Particles/contrail.xml</path>
		<name>contrailRight</name>
		<condition>
			<property>environment/contrail</property>
		</condition>
		<overlay>
			<params>
				<contrail alias="../../../../params/contrail2" />
			</params>
		</overlay>
		<offsets>
			<x-m> 4.51789</x-m>
			<y-m> 5.63029</y-m>
			<z-m>-2.22295</z-m>
		</offsets>
	</model>

	<model>
		<path>Aircraft/A320-family/Models/Effects/Particles/Moisture.xml</path>
		<name>moistureLeft</name>
		<condition>
			<and>
				<greater-than>
					<property>environment/relative-humidity</property>
					<value>45</value>
				</greater-than>
				<less-than-equals>
					<property>position/altitude-agl-ft</property>
					<value>75</value>
				</less-than-equals>
				<less-than-equals>
					<property>sim/time/sun-angle-rad</property>
					<value>1.63</value>
				</less-than-equals>
				<greater-than>
					<property>engines/engine[3]/n1</property>
					<value>65</value>
				</greater-than>
			</and>
		</condition>
		<offsets>
			<x-m>-7.432</x-m>
			<y-m>-5.63029</y-m>
			<z-m>-2.46943</z-m>
			<pitch-deg>0</pitch-deg>
		</offsets>
	</model>
	
	<model>
		<path>Aircraft/A320-family/Models/Effects/Particles/Moisture.xml</path>
		<name>moistureRight</name>
		<condition>
			<and>
				<greater-than>
					<property>environment/relative-humidity</property>
					<value>45</value>
				</greater-than>
				<less-than-equals>
					<property>position/altitude-agl-ft</property>
					<value>75</value>
				</less-than-equals>
				<less-than-equals>
					<property>sim/time/sun-angle-rad</property>
					<value>1.63</value>
				</less-than-equals>
				<greater-than>
					<property>engines/engine[4]/n1</property>
					<value>65</value>
				</greater-than>
			</and>
		</condition>
		<offsets>
			<x-m>-7.432</x-m>
			<y-m> 5.63029</y-m>
			<z-m>-2.46943</z-m>
			<pitch-deg>0</pitch-deg>
		</offsets>
	</model>
	
	<model>
		<path>Aircraft/A320-family/Models/Effects/Particles/engine-spray.xml</path>
		<name>engine-spray-left</name>
		<condition>
			<and>
				<greater-than>
					<property>environment/surface/wetness</property>
					<value>0.3</value>
				</greater-than>
				<less-than-equals>
					<property>position/altitude-agl-ft</property>
					<value>15</value>
				</less-than-equals>
				<less-than-equals>
					<property>sim/time/sun-angle-rad</property>
					<value>1.63</value>
				</less-than-equals>
				<greater-than>
					<property>engines/engine[3]/n1</property>
					<value>65</value>
				</greater-than>
				<equals>
					<property>engines/engine[0]/reverser-pos-norm</property>
					<value>0</value>
				</equals>
			</and>
		</condition>
		<offsets>
			<x-m>-0.62458</x-m>
			<y-m>-5.63029</y-m>
			<z-m>-5</z-m>
		</offsets>
	</model>
	
	<model>
		<path>Aircraft/A320-family/Models/Effects/Particles/engine-spray.xml</path>
		<name>engine-spray-right</name>
		<condition>
			<and>
				<greater-than>
					<property>environment/surface/wetness</property>
					<value>0.3</value>
				</greater-than>
				<less-than-equals>
					<property>position/altitude-agl-ft</property>
					<value>15</value>
				</less-than-equals>
				<less-than-equals>
					<property>sim/time/sun-angle-rad</property>
					<value>1.63</value>
				</less-than-equals>
				<greater-than>
					<property>engines/engine[4]/n1</property>
					<value>65</value>
				</greater-than>
				<equals>
					<property>engines/engine[1]/reverser-pos-norm</property>
					<value>0</value>
				</equals>
			</and>
		</condition>
		<offsets>
			<x-m>-0.62458</x-m>
			<y-m>5.63029</y-m>
			<z-m>-5</z-m>
		</offsets>
	</model>
	
	<model>
		<path>Aircraft/A320-family/Models/Effects/Particles/engine-spray-reverse.xml</path>
		<name>engine-spray-reverse</name>
		<condition>
			<and>
				<greater-than>
					<property>environment/surface/wetness</property>
					<value>0.3</value>
				</greater-than>
				<less-than-equals>
					<property>sim/time/sun-angle-rad</property>
					<value>1.63</value>
				</less-than-equals>
				<greater-than>
					<property>engines/engine[3]/n1</property>
					<value>65</value>
				</greater-than>
				<greater-than>
					<property>engines/engine[0]/reverser-pos-norm</property>
					<value>0.75</value>
				</greater-than>
			</and>
		</condition>
		<offsets>
			<x-m>-6.62458</x-m>
			<y-m>-5.63029</y-m>
			<z-m>-5</z-m>
		</offsets>
	</model>
	
	<model>
		<path>Aircraft/A320-family/Models/Effects/Particles/engine-spray-reverse.xml</path>
		<name>engine-spray-reverse</name>
		<condition>
			<and>
				<greater-than>
					<property>environment/surface/wetness</property>
					<value>0.3</value>
				</greater-than>
				<less-than-equals>
					<property>sim/time/sun-angle-rad</property>
					<value>1.63</value>
				</less-than-equals>
				<greater-than>
					<property>engines/engine[4]/n1</property>
					<value>65</value>
				</greater-than>
				<greater-than>
					<property>engines/engine[1]/reverser-pos-norm</property>
					<value>0.75</value>
				</greater-than>
			</and>
		</condition>
		<offsets>
			<x-m>-6.62458</x-m>
			<y-m>5.63029</y-m>
			<z-m>-5</z-m>
		</offsets>
	</model>

	<model>
		<name>Engine fire left</name>
		<path>Aircraft/A320-family/Models/Effects/Particles/enginefire.xml</path>
		<offsets>
			<x-m>-3.96705</x-m>
			<y-m>-5.63029</y-m>
			<z-m>-2.22295</z-m>
		</offsets>
		<condition>
			<property>systems/failures/fire/engine-left-fire</property>
		</condition>
	</model>
	
	<model>
		<name>Engine fire right</name>
		<path>Aircraft/A320-family/Models/Effects/Particles/enginefire.xml</path>
		<offsets>
			<x-m>-3.96705</x-m>
			<y-m> 5.63029</y-m>
			<z-m>-2.22295</z-m>
		</offsets>
		<condition>
			<property>systems/failures/fire/engine-right-fire</property>
		</condition>
	</model>
	
	<!-- Animations -->
	<animation>
		<name>Fan spinning animation (slow)</name>
		<type>spin</type>
		<object-name>FanLCFM56L</object-name>
		<factor>50</factor> <!-- TCDS sourced - don't tune! -->
		<property>engines/engine[3]/n1</property>
		<axis>
			<x>-1</x>
			<y>0</y>
			<z>0</z>
		</axis>
		<center>
			<x-m>-6.66773</x-m>
			<y-m>-5.63082</y-m>
			<z-m>-2.26943</z-m>
		</center>
	</animation>
	
	<animation>
		<name>Fan spinning animation (slow)</name>
		<type>spin</type>
		<object-name>FanLCFM56R</object-name>
		<factor>50</factor>
		<property>engines/engine[4]/n1</property>
		<axis>
			<x>-1</x>
			<y>0</y>
			<z>0</z>
		</axis>
		<center>
			<x-m>-6.66773</x-m>
			<y-m> 5.62871</y-m>
			<z-m>-2.26943</z-m>
		</center>
	</animation>
	
	<animation>
		<name>Fan spinning animation (fast)</name>
		<type>spin</type>
		<object-name>FanSpinningCFM56L</object-name>
		<factor>5</factor>
		<property>engines/engine[3]/n1</property>
		<axis>
			<x>-1</x>
			<y>0</y>
			<z>0</z>
		</axis>
		<center>
			<x-m>-6.66773</x-m>
			<y-m>-5.63082</y-m>
			<z-m>-2.26943</z-m>
		</center>
	</animation>
	
	<animation>
		<name>Fan spinning animation (fast)</name>
		<type>spin</type>
		<object-name>FanSpinningCFM56R</object-name>
		<factor>5</factor>
		<property>engines/engine[4]/n1</property>
		<axis>
			<x>-1</x>
			<y>0</y>
			<z>0</z>
		</axis>
		<center>
			<x-m>-6.66773</x-m>
			<y-m> 5.62871</y-m>
			<z-m>-2.26943</z-m>
		</center>
	</animation>
	
	<animation>
		<type>select</type>
		<object-name>FanSpinningCFM56L</object-name>
		<condition>
			<greater-than>
				<property>engines/engine[3]/n1</property>
				<value>40.0</value>
			</greater-than>
		</condition>
	</animation>
	
	<animation>
		<type>select</type>
		<object-name>FanSpinningCFM56R</object-name>
		<condition>
			<greater-than>
				<property>engines/engine[4]/n1</property>
				<value>40.0</value>
			</greater-than>
		</condition>
	</animation>
	
	<animation>
		<type>select</type>
		<object-name>FanLCFM56L</object-name>
		<condition>
			<less-than-equals>
				<property>engines/engine[3]/n1</property>
				<value>40.0</value>
			</less-than-equals>
		</condition>
	</animation>
	
	<animation>
		<type>select</type>
		<object-name>FanLCFM56R</object-name>
		<condition>
			<less-than-equals>
				<property>engines/engine[4]/n1</property>
				<value>40.0</value>
			</less-than-equals>
		</condition>
	</animation>
	
	<animation>
		<name>Reverser Door LH 1</name>
		<type>rotate</type>
		<object-name>ReverserLDoor1</object-name>
		<object-name>ReverserLDoor1.Inner</object-name>
		<factor>-70</factor>
		<property>engines/engine[0]/reverser-pos-norm</property>
		<axis>
			<x1-m>-4.7738</x1-m>
			<y1-m>-6.25156</y1-m>
			<z1-m>-1.65547</z1-m>
			<x2-m>-4.77475</x2-m>
			<y2-m>-6.29771</y2-m>
			<z2-m>-1.71849</z2-m>
		</axis>
	</animation>
	
	<animation>
		<name>Reverser Door LH 2</name>
		<type>rotate</type>
		<object-name>ReverserLDoor2</object-name>
		<object-name>ReverserLDoor2.Inner</object-name>
		<factor>-70</factor>
		<property>engines/engine[0]/reverser-pos-norm</property>
		<axis>
			<x1-m>-4.77785</x1-m>
			<y1-m>-6.29253</y1-m>
			<z1-m>-2.82287</z1-m>
			<x2-m>-4.77731</x2-m>
			<y2-m>-6.2496</y2-m>
			<z2-m>-2.88363</z2-m>
		</axis>
	</animation>
	
	<animation>
		<name>Reverser Door LH 3</name>
		<type>rotate</type>
		<object-name>ReverserLDoor3</object-name>
		<object-name>ReverserLDoor3.Inner</object-name>
		<factor>70</factor>
		<property>engines/engine[0]/reverser-pos-norm</property>
		<axis>
			<x1-m>-4.7738</x1-m>
			<y1-m>-5.01022</y1-m>
			<z1-m>-1.6555</z1-m>
			<x2-m>-4.77475</x2-m>
			<y2-m>-4.96408</y2-m>
			<z2-m>-1.71852</z2-m>
		</axis>
	</animation>
	
	<animation>
		<name>Reverser Door LH 4</name>
		<type>rotate</type>
		<object-name>ReverserLDoor4</object-name>
		<object-name>ReverserLDoor4.Inner</object-name>
		<factor>70</factor>
		<property>engines/engine[0]/reverser-pos-norm</property>
		<axis>
			<x1-m>-4.778</x1-m>
			<y1-m>-4.96919</y1-m>
			<z1-m>-2.82264</z1-m>
			<x2-m>-4.77746</x2-m>
			<y2-m>-5.01209</y2-m>
			<z2-m>-2.8834</z2-m>
		</axis>
	</animation>

	<animation>
		<name>Reverser Door RH 1</name>
		<type>rotate</type>
		<object-name>ReverserRDoor1</object-name>
		<object-name>ReverserRDoor1.Inner</object-name>
		<factor>-70</factor>
		<property>engines/engine[1]/reverser-pos-norm</property>
		<axis>
			<x1-m>-4.7738</x1-m>
			<y1-m> 5.01008</y1-m>
			<z1-m>-1.65547</z1-m>
			<x2-m>-4.77475</x2-m>
			<y2-m> 4.96393</y2-m>
			<z2-m>-1.71849</z2-m>
		</axis>
	</animation>
	
	<animation>
		<name>Reverser Door RH 2</name>
		<type>rotate</type>
		<object-name>ReverserRDoor2</object-name>
		<object-name>ReverserRDoor2.Inner</object-name>
		<factor>-70</factor>
		<property>engines/engine[1]/reverser-pos-norm</property>
		<axis>
			<x1-m>-4.77785</x1-m>
			<y1-m> 4.96912</y1-m>
			<z1-m>-2.82287</z1-m>
			<x2-m>-4.77731</x2-m>
			<y2-m> 5.01204</y2-m>
			<z2-m>-2.88363</z2-m>
		</axis>
	</animation>
	
	<animation>
		<name>Reverser Door RH 3</name>
		<type>rotate</type>
		<object-name>ReverserRDoor3</object-name>
		<object-name>ReverserRDoor3.Inner</object-name>
		<factor>70</factor>
		<property>engines/engine[1]/reverser-pos-norm</property>
		<axis>
			<x1-m>-4.7738</x1-m>
			<y1-m> 6.25142</y1-m>
			<z1-m>-1.6555</z1-m>
			<x2-m>-4.77475</x2-m>
			<y2-m> 6.29756</y2-m>
			<z2-m>-1.71852</z2-m>
		</axis>
	</animation>
	
	<animation>
		<name>Reverser Door RH 4</name>
		<type>rotate</type>
		<object-name>ReverserRDoor4</object-name>
		<object-name>ReverserRDoor4.Inner</object-name>
		<factor>70</factor>
		<property>engines/engine[1]/reverser-pos-norm</property>
		<axis>
			<x1-m>-4.778</x1-m>
			<y1-m> 6.29245</y1-m>
			<z1-m>-2.82264</z1-m>
			<x2-m>-4.77746</x2-m>
			<y2-m> 6.24955</y2-m>
			<z2-m>-2.8834</z2-m>
		</axis>
	</animation>
	
	<animation>
		<name>EngineLFairing</name>
		<type>rotate</type>
		<object-name>EngineFairingL</object-name>
		<property>sim/multiplay/generic/float[12]</property>
		<interpolation>
			<entry><ind>0.0</ind><dep>0.0</dep></entry>
			<entry><ind>0.25</ind><dep>7.0</dep></entry>
			<entry><ind>0.375</ind><dep>9.5</dep></entry>
			<entry><ind>0.50</ind><dep>13.5</dep></entry>
			<entry><ind>1.0</ind><dep>22.5</dep></entry>
		</interpolation>
		<axis>
			<x1-m>-1.05276</x1-m>
			<y1-m>-5.72562</y1-m>
			<z1-m>-1.06509</z1-m>
			<x2-m>-1.05297</x2-m>
			<y2-m>-5.53733</y2-m>
			<z2-m>-1.07666</z2-m>
		</axis>
	</animation>
	
	<animation>
		<name>EngineRFairing</name>
		<type>rotate</type>
		<object-name>EngineFairingR</object-name>
		<property>sim/multiplay/generic/float[12]</property>
		<interpolation>
			<entry><ind>0.0</ind><dep>0.0</dep></entry>
			<entry><ind>0.25</ind><dep>-7.0</dep></entry>
			<entry><ind>0.375</ind><dep>-9.5</dep></entry>
			<entry><ind>0.50</ind><dep>-13.5</dep></entry>
			<entry><ind>1.0</ind><dep>-22.5</dep></entry>
		</interpolation>
		<axis>
			<x1-m>-1.05276</x1-m>
			<y1-m>5.72562</y1-m>
			<z1-m>-1.06509</z1-m>
			<x2-m>-1.05297</x2-m>
			<y2-m>5.53733</y2-m>
			<z2-m>-1.07666</z2-m>
		</axis>
	</animation>
	
	<!-- Effect -->
	<effect>
		<inherits-from>Aircraft/A320-family/Models/Effects/Model/reflection-engine-CFM</inherits-from>
		<object-name>EngineCFM56L</object-name>
		<object-name>EngineCFM56R</object-name>
		<object-name>ReverserLDoor1</object-name>
		<object-name>ReverserLDoor2</object-name>
		<object-name>ReverserLDoor3</object-name>
		<object-name>ReverserLDoor4</object-name>
		<object-name>ReverserRDoor1</object-name>
		<object-name>ReverserRDoor2</object-name>
		<object-name>ReverserRDoor3</object-name>
		<object-name>ReverserRDoor4</object-name>
	</effect>
	
	<effect>
		<inherits-from>Effects/model-transparent</inherits-from>
		<object-name>EngineCFM56R.Placards</object-name>
	</effect>
	
	<effect>
		<inherits-from>Aircraft/A320-family/Models/Effects/Model/reflection-matt-wing</inherits-from>
		<object-name>EngineFairingL</object-name>
		<object-name>EngineFairingR</object-name>
	</effect>
	
	<effect>
		<inherits-from>Aircraft/A320-family/Models/Effects/Model/reflection-matt-engine-CFM</inherits-from>
		<object-name>PylonCFM56L</object-name>
		<object-name>PylonCFM56R</object-name>
	</effect>
	
	<effect>
		<inherits-from>Aircraft/A320-family/Models/Effects/Model/reflection-chrome-engine-CFM</inherits-from>
		<object-name>IntakeCFM56L</object-name>
		<object-name>IntakeCFM56R</object-name>
	</effect>
</PropertyList>