<?xml version="1.0"?>

<PropertyList>
	
	<particlesystem>
		<name>contrail-eng2</name>
		<texture>smoke.png</texture>
		<offsets>
			<x-m>30</x-m>
			<y-m>0</y-m>
			<z-m>0</z-m>
			<pitch-deg>90</pitch-deg>
		</offsets>
		<emissive type="bool">false</emissive>
		<lighting type="bool">false</lighting>
		<condition>
			<and>
				<greater-than>
					<property>engines/engine[1]/n2-actual</property>
					<value>50</value>
				</greater-than>
				<greater-than>
					<property>/position/altitude-ft</property>
					<value>19000</value>
				</greater-than>
				<less-than>
					<property>environment/temperature-degc</property>
					<value>-30</value>
				</less-than>
				<equals>
					<property>engines/engine[1]/state</property>
					<value>3</value>
				</equals>
			</and>
		</condition>
		
		<attach>world</attach>
		
		<placer>
			<type>point</type> 
		</placer>
		
		<shooter>
			<theta-min-deg>-1.5</theta-min-deg>
			<theta-max-deg>1.5</theta-max-deg>
			<phi-min-deg>-1.5</phi-min-deg>
			<phi-max-deg>1.5</phi-max-deg>
			<speed-mps>
				<value>0</value>
				<spread>0</spread>
			</speed-mps>
			<rotation-speed>
				<x-min-deg-sec>0</x-min-deg-sec>
				<y-min-deg-sec>0</y-min-deg-sec>
				<z-min-deg-sec>0</z-min-deg-sec>
				<x-max-deg-sec>0</x-max-deg-sec>
				<y-max-deg-sec>0</y-max-deg-sec>
				<z-max-deg-sec>0</z-max-deg-sec>
			</rotation-speed>
		</shooter>
		
		<counter>
			<particles-per-sec>
			<value>50</value>
			<spread>0</spread>
			</particles-per-sec>
		</counter>
		
		<align>billboard</align>
		
		<particle>
			<start>
				<color>
					<red>
						<expression>
							<product>
								<value>0.7</value>
								<property>rendering/scene/diffuse/red</property>
							</product>
						</expression>
					</red>
					<green>
						<expression>
							<product>
								<value>0.7</value>
								<property>rendering/scene/diffuse/red</property>
							</product>
						</expression>
					</green>
					<blue>
						<expression>
							<product>
								<value>0.7</value>
								<property>rendering/scene/diffuse/red</property>
							</product>
						</expression>
					</blue>
					<alpha>
						<value>0.3</value>
					</alpha>
				</color>
				<size>
					<value>2</value>
				</size>
			</start>

			<end>
				<color>
					<red>
						<expression>
							<product>
								<value>1.0</value>
								<property>rendering/scene/diffuse/red</property>
							</product>
						</expression>
					</red>
					<green>
						<expression>
							<product>
								<value>1.0</value>
								<property>rendering/scene/diffuse/red</property>
							</product>
						</expression>
					</green>
					<blue>
						<expression>
							<product>
								<value>1.0</value>
								<property>rendering/scene/diffuse/red</property>
							</product>
						</expression>
					</blue>
					<alpha>
						<value>0.00000001</value>
					</alpha>
				</color>
				<size>
					<value>6</value>
				</size>
			</end>

			<life-sec>
				<value>10</value>
			</life-sec>

			<mass-kg>0.5</mass-kg>
			<radius-m>0.5</radius-m>
		</particle>

		<program>
			<fluid>air</fluid>
			<gravity type="bool">true</gravity>
			<wind typ="bool">true</wind>
		</program>
	</particlesystem>

</PropertyList>
