<?xml version="1.0"?>

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

<PropertyList>

	<path>res/PW_PurePower_1100G.ac</path>
	
	<offsets>
		<heading-deg>-1</heading-deg>
		<pitch-deg>2.2</pitch-deg>
	</offsets>

	<params>
		<n1>engines/engine[3]/n1</n1>
		<on-fire>systems/failures/engine-left-fire</on-fire>
		<contrail>engines/engine[0]/contrail</contrail>
		<reverser-pos-norm>sim/multiplay/generic/float[2]</reverser-pos-norm>
	</params>

	<animation>
		<type>translate</type>
		<object-name>ReverserPW1100G</object-name>
		<property alias="../../params/reverser-pos-norm" />
		<factor>0.25</factor>
		<axis>
			<x>1</x>
			<y>0</y>
			<z>0</z>
		</axis>
	</animation>
	
	<model>
		<path>Aircraft/A320-family/Models/Engines/NEO/res/a320.pylon.cfmleapx.left.ac</path>
	</model>

	<model>
		<path>Aircraft/A320-family/Models/Effects/contrail.xml</path>
		<name>contrail</name>
		<condition>
			<property>environment/contrail</property>
		</condition>
		<overlay>
			<params>
				<contrail alias="../../../../params/contrail" />
			</params>
		</overlay>
		<offsets>
			<x-m>5.137</x-m>
			<y-m>0</y-m>
			<z-m>0</z-m>
		</offsets>
	</model>

	<!-- Takeoff/Landing Engine Moisture -->
	<model>
		<path>Aircraft/A320-family/Models/Effects/Moisture-neo.xml</path>
		<name>moisture</name>
		<condition>
			<and>
				<greater-than>
					<property>position/altitude-agl-ft</property>
					<value>1</value>
				</greater-than>
				<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[0]/n1</property>
					<value>65</value>
				</greater-than>
			</and>
		</condition>
		<offsets>
			<x-m>0</x-m>
			<y-m>0</y-m>
			<z-m>0</z-m>
			<pitch-deg>0</pitch-deg>
		</offsets>
	</model>

	<!-- Takeoff/Landing Engine spray -->
	<model>
		<path>Aircraft/A320-family/Models/Effects/engine-spray.xml</path>
		<name>engine-spray</name>
		<condition>
			<and>
				<greater-than>
					<property>position/altitude-agl-ft</property>
					<value>1</value>
				</greater-than>
				<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[0]/n1-actual</property>
					<value>65</value>
				</greater-than>
				<equals>
					<property>engines/engine[0]/reverser-pos-norm</property>
					<value>0</value>
				</equals>
			</and>
		</condition>
		<offsets>
			<x-m>5.137</x-m>
			<y-m>0</y-m>
			<z-m>-5</z-m>
		</offsets>
	</model>

	<!-- Takeoff/Landing Engine Reverse spray -->
	<model>
		<path>Aircraft/A320-family/Models/Effects/engine-spray-reverse.xml</path>
		<name>engine-spray-reverse</name>
		<condition>
			<and>
				<greater-than>
					<property>position/altitude-agl-ft</property>
					<value>1</value>
				</greater-than>
				<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[0]/n1-actual</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>0</x-m>
			<y-m>0</y-m>
			<z-m>0</z-m>
		</offsets>
	</model>

	<model>
		<name>Engine fire</name>
		<path>Aircraft/A320-family/Models/Effects/enginefire.xml</path>
		<offsets>
			<x-m>3.316</x-m>
			<y-m>0</y-m>
			<z-m>0</z-m>
		</offsets>
		<condition>
			<property alias="../../../params/on-fire" />
		</condition>
	</model>

	<animation>
		<name>Fan Animation</name>
		<type>spin</type>
		<object-name>Cone</object-name>
		<object-name>Fan</object-name>
		<factor>-67</factor>
		<property alias="../../params/n1" />
		<axis>
			<x>-1</x>
			<y>0</y>
			<z>0</z>
		</axis>
	</animation>
	
	<!-- <effect>
        <inherits-from>Aircraft/A320-family/Models/Effects/enginePW1100L</inherits-from>
        <object-name>NacellePW1100G</object-name>
        <object-name>ReverserPW1100G</object-name>
        <object-name>SpoilersPW1100G</object-name>
	</effect> -->

</PropertyList>