Update and add flashlight
[fgdata-textures-ng:fgdata-textures-ng.git] / Aircraft / Hurricane / Models / light-green.xml
1 <?xml version="1.0"?>
2 <!-- Light - Green Flare-->
3 <PropertyList>
4
5         <path>light-green-flare.ac</path>
6
7         <animation>
8                 <type>alpha-test</type>
9                 <object-name>Green-Light-Flare</object-name>
10                 <alpha-factor>0.01</alpha-factor>
11         </animation>
12
13   <effect>
14     <inherits-from>Effects/model-transparent</inherits-from>
15     <object-name>Green-Light-Flare-0</object-name>
16     <object-name>Green-Light-Flare-1</object-name>
17     <object-name>Green-Light-Flare-2</object-name>
18   </effect>
19
20   <animation>
21     <type>noshadow</type>
22     <object-name>Green-Light-Flare</object-name>
23    </animation>
24
25         <!--<animation>
26                 <type>billboard</type>
27                 <spherical>true</spherical>
28                 <object-name>Green-Light-Flare</object-name>
29         </animation>-->
30
31   <animation>
32     <type>flash</type>
33     <object-name>Green-Light-Flare-0</object-name>
34     <offset>0.0</offset>
35     <factor>1.0</factor>
36     <power>2.0</power>
37     <two-sides type="bool">false</two-sides>
38     <min>0.0</min>
39     <max>2.0</max>
40     <center>
41       <x-m>0.0</x-m>
42       <y-m>0.0</y-m>
43       <z-m>0.0</z-m>
44     </center>
45     <axis>
46       <x>-1.0</x>
47       <y>0.25</y>
48       <z>0.0</z>
49     </axis>
50   </animation>
51
52   <animation>
53     <type>flash</type>
54     <object-name>Green-Light-Flare-1</object-name>
55     <offset>0.0</offset>
56     <factor>1.0</factor>
57     <power>2.0</power>
58     <two-sides type="bool">false</two-sides>
59     <min>0.0</min>
60     <max>2.0</max>
61     <center>
62       <x-m>0.0</x-m>
63       <y-m>0.0</y-m>
64       <z-m>0.0</z-m>
65     </center>
66     <axis>
67       <x>-0.3</x>
68       <y>1.0</y>
69       <z>0.0</z>
70     </axis>
71   </animation>
72
73   <animation>
74     <type>flash</type>
75     <object-name>Green-Light-Flare-2</object-name>
76     <offset>0.0</offset>
77     <factor>1.0</factor>
78     <power>1.0</power>
79     <two-sides type="bool">true</two-sides>
80     <min>0.0</min>
81     <max>2.0</max>
82     <center>
83       <x-m>0.0</x-m>
84       <y-m>0.0</y-m>
85       <z-m>0.0</z-m>
86     </center>
87     <axis>
88       <x>0.0</x>
89       <y>0.0</y>
90       <z>1.0</z>
91     </axis>
92   </animation>
93   
94   <!--<animation>
95     <type>flash</type>
96     <object-name>Green-Light-Flare-0</object-name>
97     <object-name>Green-Light-Flare-1</object-name>
98     <offset>0.0</offset>
99     <factor>1.0</factor>
100     <power>2.0</power>
101     <two-sides type="bool">false</two-sides>
102     <min>0.0</min>
103     <max>1.0</max>
104     <center>
105       <x-m>0.0</x-m>
106       <y-m>0.0</y-m>
107       <z-m>0.0</z-m>
108     </center>
109     <axis>
110       <x>1.0</x>
111       <y>0.0</y>
112       <z>0.0</z>
113     </axis>
114   </animation>-->
115
116
117   <animation>
118                 <type>dist-scale</type>
119                 <object-name>Green-Light-Flare</object-name>
120                 <interpolation>
121                         <entry>
122                                 <ind>0.001</ind>
123                                 <dep>1</dep>
124                         </entry>
125                         <entry>
126                                 <ind>40000</ind>
127                                 <dep>150</dep>
128                         </entry>
129                         <entry>
130                                 <ind>80000</ind>
131                                 <dep>300</dep>
132                         </entry>
133                 </interpolation>
134         </animation>
135
136         <animation>
137                 <type>scale</type>
138                 <object-name>Green-Light-Flare</object-name>
139                 <property>/sim/time/sun-angle-rad</property>
140                 <offset>-1.4</offset>
141                 <x-min>1</x-min>
142                 <y-min>1</y-min>
143                 <z-min>1</z-min>
144                 <x-factor>2</x-factor>
145                 <y-factor>2</y-factor>
146                 <z-factor>2</z-factor>
147         </animation>
148
149   <animation>
150     <type>light</type>
151     <light-type>spot</light-type>
152     <name>LightNavStbd</name>
153     <object-name>LightVolNavStbd</object-name>
154     <nopreview/>
155     <position>
156       <x> 0 </x>
157       <y> 0 </y>
158       <z> 0 </z>
159     </position>
160     <direction>
161       <x>-1.0</x>
162       <!--<y> 1.19175359</y>-->
163       <y> 1.2</y>
164       <z> 0.0</z>
165     </direction>
166     <ambient>
167       <r>0.03</r>
168       <g>0.03</g>
169       <b>0.03</b>
170       <a>1.0</a>
171     </ambient>
172     <diffuse>
173       <r>0.2</r>
174       <g>0.7</g>
175       <b>0.2</b>
176       <a>1.0</a>
177     </diffuse>
178     <specular>
179       <r>0.7</r>
180       <g>0.7</g>
181       <b>0.7</b>
182       <a>1.0</a>
183     </specular>
184     <attenuation>
185       <c>1.0</c>
186       <l>0.002</l>
187       <q>0.0005</q>
188     </attenuation>
189     <exponent>2.0</exponent>
190     <near-m>0.0001</near-m>
191     <far-m>50</far-m>
192     <cutoff>90</cutoff>
193   </animation>
194
195   <animation>
196     <type>select</type>
197     <object-name>Green-Light-Flare</object-name>
198      <condition>
199       <or>
200         <equals>
201           <property>/controls/lighting/nav-lights</property>
202           <value>1</value>
203         </equals>
204         <equals>
205           <property>/controls/lighting/nav-lights[1]</property>
206           <value>1</value>
207         </equals>
208       </or>
209     </condition>
210   </animation>
211
212   <animation>
213     <type>select</type>
214     <object-name>LightNavStbd</object-name>
215     <condition>
216       <and>
217         <or>
218           <equals>
219             <property>/controls/lighting/nav-lights</property>
220             <value>1</value>
221           </equals>
222           <equals>
223             <property>/controls/lighting/nav-lights[1]</property>
224             <value>1</value>
225           </equals>
226         </or>
227         <greater-than>
228           <property>/sim/time/sun-angle-rad</property>
229           <value>1.4</value>
230         </greater-than>
231       </and>
232     </condition>
233   </animation>
234
235   <!--    *** LoD *** 
236     <animation> 
237       <type>range</type>
238       <object-name>Green-Flare</object-name>
239       <min-m>0</min-m>
240       <max-m>5000</max-m>
241     </animation>-->
242
243 </PropertyList>