- New instruments, some little changes
[fg:toms-fgdata.git] / Aircraft / DH-88 / Models / dh88.xml
1 <?xml version="1.0"?>
2
3 <PropertyList>
4
5   <path>dh88.ac</path>
6
7   <nasal>
8     <load>
9       var livery_update = aircraft.livery_update.new("Aircraft/DH-91/Models/Liveries", 10);
10     </load>
11     <unload>
12       livery_update.stop();
13     </unload>
14   </nasal>
15
16   <animation>
17     <!-- Objets opaques -->
18     <object-name>fuselage</object-name>
19     <object-name>aile</object-name>
20     <object-name>aile2</object-name>
21     <object-name>aileronG</object-name>
22     <object-name>aileronD</object-name>
23     <object-name>profondeur</object-name>
24     <object-name>derive</object-name>
25     <object-name>direction</object-name>
26     <object-name>roueG</object-name>
27     <object-name>roueD</object-name>
28     <object-name>bolG</object-name>
29     <object-name>bolD</object-name>
30     <object-name>heliceG</object-name>
31     <object-name>heliceD</object-name>
32     <object-name>tourvitre</object-name>
33     <object-name>cacheG</object-name>
34     <object-name>cacheD</object-name>
35     <object-name>pate</object-name>
36     <object-name>moteurs</object-name>
37     <object-name>axeG</object-name>
38     <object-name>axeD</object-name>
39     <object-name>axeG1</object-name>
40     <object-name>axeD1</object-name>
41     <object-name>axeG2</object-name>
42     <object-name>axeD2</object-name>
43     <object-name>echapp</object-name>
44     <object-name>pito</object-name>
45     <object-name>lamps</object-name>
46
47     <!-- Objets transparents -->
48     <object-name>vitre</object-name>
49     <object-name>nez</object-name>
50     <object-name>propdiscG</object-name>
51     <object-name>propblurG</object-name>
52     <object-name>propdiscD</object-name>
53     <object-name>propblurD</object-name>
54     <object-name>lampR</object-name>
55     <object-name>lampG</object-name>
56     <object-name>lampD</object-name>
57   </animation>
58
59   <animation>
60     <type>noshadow</type>
61     <object-name>vitre</object-name>
62     <object-name>nez</object-name>
63     <object-name>propdiscG</object-name>
64     <object-name>propblurG</object-name>
65     <object-name>propdiscD</object-name>
66     <object-name>propblurD</object-name>
67     <object-name>lampR</object-name>
68     <object-name>lampG</object-name>
69     <object-name>lampD</object-name>
70   </animation>
71
72   <animation>
73     <type>material</type>
74     <object-name>fuselage</object-name>
75     <object-name>aile</object-name>
76     <object-name>aile2</object-name>
77     <object-name>aileronG</object-name>
78     <object-name>aileronD</object-name>
79     <object-name>profondeur</object-name>
80     <object-name>derive</object-name>
81     <object-name>direction</object-name>
82     <object-name>roueG</object-name>
83     <object-name>roueD</object-name>
84     <object-name>bolG</object-name>
85     <object-name>bolD</object-name>
86     <object-name>heliceG</object-name>
87     <object-name>heliceD</object-name>
88     <object-name>tourvitre</object-name>
89     <object-name>cacheG</object-name>
90     <object-name>cacheD</object-name>
91     <object-name>pate</object-name>
92     <object-name>moteurs</object-name>
93     <object-name>axeG</object-name>
94     <object-name>axeD</object-name>
95     <object-name>axeG1</object-name>
96     <object-name>axeD1</object-name>
97     <object-name>axeG2</object-name>
98     <object-name>axeD2</object-name>
99     <object-name>echapp</object-name>
100     <object-name>pito</object-name>
101     <object-name>lamps</object-name>
102     <property-base>sim/model/livery</property-base>
103     <texture-prop>texture</texture-prop>
104     <texture>texture.png</texture>
105   </animation>
106
107   <!-- Interieur -->
108   <model>
109     <path>Aircraft/DH-88/Models/Interior/interior.xml</path>
110     <offsets>
111       <x-m>  0.044 </x-m>
112       <y-m>  0.000 </y-m>
113       <z-m>  0.307 </z-m>
114     </offsets>
115   </model>
116
117   <!-- L'hélice gauche--> 
118   <animation>
119     <name>CompleteG</name>
120     <object-name>propdiscG</object-name>
121     <object-name>propblurG</object-name>
122     <object-name>heliceG</object-name>
123     <object-name>bolG</object-name>
124   </animation>
125
126   <!-- Séléction de l'objet visible en fonction des rpm -->
127   <animation>
128     <type>select</type>
129     <object-name>propdiscG</object-name>
130     <condition>
131       <greater-than>
132         <property>engines/engine[0]/rpm</property>
133         <value>1500</value>
134       </greater-than>
135     </condition>
136   </animation>
137
138   <animation>
139     <type>select</type>
140     <object-name>propblurG</object-name>
141     <condition>
142     <and>
143       <greater-than>
144         <property>engines/engine[0]/rpm</property>
145         <value>600.000</value>
146       </greater-than>
147       <less-than>
148         <property>engines/engine[0]/rpm</property>
149         <value>1500.001</value>
150       </less-than>
151     </and>
152     </condition>
153   </animation>
154
155   <animation>
156     <type>select</type>
157     <object-name>heliceG</object-name>
158     <condition>
159       <less-than>
160         <property>engines/engine[0]/rpm</property>
161         <value>1500</value>
162       </less-than>
163     </condition>
164   </animation>
165
166   <animation>
167     <type>spin</type>
168     <object-name>CompleteG</object-name>
169     <property>engines/engine[0]/rpm</property>
170     <factor> 1 </factor>
171     <center>
172       <x-m> -3.483 </x-m>
173       <y-m> -1.468 </y-m>
174       <z-m> -0.387 </z-m>
175     </center>
176     <axis>
177       <x> -1.000 </x>
178       <y>  0.000 </y>
179       <z>  0.000 </z>
180     </axis>
181   </animation>
182
183   <!-- L'hélice droite--> 
184   <animation>
185     <name>CompleteD</name>
186     <object-name>propdiscD</object-name>
187     <object-name>propblurD</object-name>
188     <object-name>heliceD</object-name>
189     <object-name>bolD</object-name>
190   </animation>
191
192   <!-- Séléction de l'objet visible en fonction des rpm -->
193   <animation>
194     <type>select</type>
195     <object-name>propdiscD</object-name>
196     <condition>
197       <greater-than>
198         <property>engines/engine[1]/rpm</property>
199         <value>1500</value>
200       </greater-than>
201     </condition>
202   </animation>
203
204   <animation>
205     <type>select</type>
206     <object-name>propblurD</object-name>
207     <condition>
208     <and>
209       <greater-than>
210         <property>engines/engine[1]/rpm</property>
211         <value>600.000</value>
212       </greater-than>
213       <less-than>
214         <property>engines/engine[1]/rpm</property>
215         <value>1500.001</value>
216       </less-than>
217     </and>
218     </condition>
219   </animation>
220
221   <animation>
222     <type>select</type>
223     <object-name>heliceD</object-name>
224     <condition>
225       <less-than>
226         <property>engines/engine[1]/rpm</property>
227         <value>1500</value>
228       </less-than>
229     </condition>
230   </animation>
231
232   <animation>
233     <type>spin</type>
234     <object-name>CompleteD</object-name>
235     <property>engines/engine[1]/rpm</property>
236     <factor> 1 </factor>
237     <center>
238       <x-m> -3.483 </x-m>
239       <y-m>  1.468 </y-m>
240       <z-m> -0.387 </z-m>
241     </center>
242     <axis>
243       <x> 1.000 </x>
244       <y> 0.000 </y>
245       <z> 0.000 </z>
246     </axis>
247   </animation>
248
249   <!-- Gouverne de profondeur -->
250   <animation>
251     <type>rotate</type>
252     <object-name>profondeur</object-name>
253     <property>/controls/flight/elevator</property>
254     <factor>11</factor>
255     <axis>
256       <x1-m>  3.701 </x1-m>
257       <y1-m> -1.454 </y1-m>
258       <z1-m>  0.390 </z1-m>
259       <x2-m>  3.701 </x2-m>
260       <y2-m>  1.454 </y2-m>
261       <z2-m>  0.390 </z2-m>
262     </axis>
263   </animation>
264
265   <!-- Gouverne de direction -->
266   <animation>
267     <type>rotate</type>
268     <object-name>direction</object-name>
269     <property>/controls/flight/rudder</property>
270     <factor>20</factor>
271     <axis>
272       <x1-m> 3.714 </x1-m>
273       <y1-m> 0.000 </y1-m>
274       <z1-m> 0.431 </z1-m>
275       <x2-m> 3.714 </x2-m>
276       <y2-m> 0.000 </y2-m>
277       <z2-m> 1.110 </z2-m>
278     </axis>
279   </animation>
280
281   <!-- Animations des ailerons -->
282   <animation>
283     <type>rotate</type>
284     <object-name>aileronG</object-name>
285     <property>/surface-positions/left-aileron-pos-norm</property>
286     <factor>-15.0</factor>
287     <axis>
288       <x1-m> -0.923 </x1-m>
289       <y1-m> -3.819 </y1-m>
290       <z1-m> -0.152 </z1-m>
291       <x2-m> -1.035 </x2-m>
292       <y2-m> -6.274 </y2-m>
293       <z2-m> -0.060 </z2-m>
294     </axis>
295   </animation>
296
297   <animation>
298     <type>rotate</type>
299     <object-name>aileronD</object-name>
300     <property>/surface-positions/right-aileron-pos-norm</property>
301     <factor>15.0</factor>
302     <axis>
303       <x1-m> -0.923 </x1-m>
304       <y1-m>  3.819 </y1-m>
305       <z1-m> -0.152 </z1-m>
306       <x2-m> -1.035 </x2-m>
307       <y2-m>  6.274 </y2-m>
308       <z2-m> -0.060 </z2-m>
309     </axis>
310   </animation>
311
312
313   <!-- Rentré des roues -->
314   <animation>
315     <type>rotate</type>
316     <object-name>axeG2</object-name>
317     <property>/gear/gear[0]/position-norm</property>
318     <interpolation>
319       <entry>
320         <ind>   0.0</ind>
321         <dep> -35.00</dep>
322       </entry>
323       <entry>
324         <ind> 1.0</ind>
325         <dep> 0.0</dep>
326       </entry>
327     </interpolation>
328     <center>
329       <x-m> -2.053 </x-m>
330       <y-m> -1.468 </y-m>
331       <z-m> -1.222 </z-m>
332     </center>
333     <axis>
334       <x>  0.00 </x>
335       <y>  1.00 </y>
336       <z>  0.00 </z>
337     </axis>
338   </animation>
339
340   <!-- Train gauche -->
341   <animation>
342     <name>TrainG</name>
343     <object-name>roueG</object-name>
344     <object-name>cacheG</object-name>
345     <object-name>axeG</object-name>
346     <object-name>axeG1</object-name>
347     <object-name>axeG2</object-name>
348   </animation>
349
350   <animation>
351     <type>rotate</type>
352     <object-name>TrainG</object-name>
353     <property>/gear/gear[0]/position-norm</property>
354     <interpolation>
355       <entry>
356         <ind>   0.0</ind>
357         <dep> -80.00</dep>
358       </entry>
359       <entry>
360         <ind> 1.0</ind>
361         <dep> 0.0</dep>
362       </entry>
363     </interpolation>
364     <center>
365       <x-m> -2.205 </x-m>
366       <y-m> -1.468 </y-m>
367       <z-m> -0.678 </z-m>
368     </center>
369     <axis>
370       <x>  0.00 </x>
371       <y>  1.00 </y>
372       <z>  0.00 </z>
373     </axis>
374   </animation>
375
376   <animation>
377     <type>rotate</type>
378     <object-name>axeD2</object-name>
379     <property>/gear/gear[1]/position-norm</property>
380     <interpolation>
381       <entry>
382         <ind>   0.0</ind>
383         <dep> -35.00</dep>
384       </entry>
385       <entry>
386         <ind> 1.0</ind>
387         <dep> 0.0</dep>
388       </entry>
389     </interpolation>
390     <center>
391       <x-m> -2.053 </x-m>
392       <y-m>  1.468 </y-m>
393       <z-m> -1.222 </z-m>
394     </center>
395     <axis>
396       <x>  0.00 </x>
397       <y>  1.00 </y>
398       <z>  0.00 </z>
399     </axis>
400   </animation>
401
402   <!-- Train droit -->
403   <animation>
404     <name>TrainD</name>
405     <object-name>roueD</object-name>
406     <object-name>cacheD</object-name>
407     <object-name>axeD</object-name>
408     <object-name>axeD1</object-name>
409     <object-name>axeD2</object-name>
410   </animation>
411
412   <animation>
413     <type>rotate</type>
414     <object-name>TrainD</object-name>
415     <property>/gear/gear[1]/position-norm</property>
416     <interpolation>
417       <entry>
418         <ind>   0.0</ind>
419         <dep> -80.00</dep>
420       </entry>
421       <entry>
422         <ind> 1.0</ind>
423         <dep> 0.0</dep>
424       </entry>
425     </interpolation>
426     <center>
427       <x-m> -2.205 </x-m>
428       <y-m> -1.468 </y-m>
429       <z-m> -0.678 </z-m>
430     </center>
431     <axis>
432       <x>  0.00 </x>
433       <y>  1.00 </y>
434       <z>  0.00 </z>
435     </axis>
436   </animation>
437
438   <animation>
439     <name>RoueGauche</name>
440     <object-name>roueG</object-name>
441     <object-name>axeG1</object-name>
442   </animation>
443
444   <animation>
445     <type>translate</type>
446     <object-name>RoueGauche</object-name>
447     <property>gear/gear[0]/compression-norm</property>
448     <factor>0.0950</factor>
449     <axis>
450       <x> -0.018598 </x>
451       <y>  0.000000 </y>
452       <z>  0.170862 </z>
453     </axis>
454   </animation>
455
456   <animation>
457     <name>RoueDroite</name>
458     <object-name>roueD</object-name>
459     <object-name>axeD1</object-name>
460   </animation>
461
462   <animation>
463     <type>translate</type>
464     <object-name>RoueDroite</object-name>
465     <property>gear/gear[1]/compression-norm</property>
466     <factor>0.0950</factor>
467     <axis>
468       <x> -0.018598 </x>
469       <y>  0.000000 </y>
470       <z>  0.170862 </z>
471     </axis>
472   </animation>
473
474   <!-- Rotation des roues lors du roulage -->
475   <animation>
476     <type>spin</type>
477     <object-name>roueG</object-name>
478     <property>gear/gear[0]/rollspeed-ms</property>
479     <factor> 30 </factor>
480     <center>
481       <x-m> -2.043 </x-m>
482       <y-m> -1.468 </y-m>
483       <z-m> -1.304 </z-m>
484     </center>
485     <axis>
486       <x>  0.000 </x>
487       <y> -1.000 </y>
488       <z>  0.000 </z>
489     </axis>
490   </animation>
491
492   <animation>
493     <type>spin</type>
494     <object-name>roueD</object-name>
495     <property>gear/gear[1]/rollspeed-ms</property>
496     <factor> 30 </factor>
497     <center>
498       <x-m> -2.043 </x-m>
499       <y-m>  1.468 </y-m>
500       <z-m> -1.304 </z-m>
501     </center>
502     <axis>
503       <x>  0.000 </x>
504       <y> -1.000 </y>
505       <z>  0.000 </z>
506     </axis>
507   </animation>
508
509   <!-- Verrière -->
510   <animation>
511     <name>Canopy</name>
512     <object-name>tourvitre</object-name>
513     <object-name>vitre</object-name>
514   </animation>
515
516   <animation>
517     <type>rotate</type>
518     <object-name>Canopy</object-name>
519     <property>instrumentation/doors/crew/position-norm</property>
520     <factor> -85 </factor>
521     <center>
522       <x-m> 0.326 </x-m>
523       <y-m> 0.310 </y-m>
524       <z-m> 0.440 </z-m>
525     </center>
526     <axis>
527       <x> 1.000 </x>
528       <y> 0.000 </y>
529       <z> 0.000 </z>
530     </axis>
531   </animation>
532
533   <!-- Lumière rouge -->
534   <model>
535     <name>LeftLight</name>
536     <path>Aircraft/Carreidas/Models/lights/RedLight.xml</path>
537     <offsets>
538       <x-m> -2.098 </x-m>
539       <y-m> -2.782 </y-m>
540       <z-m> -0.173 </z-m>
541     </offsets>
542   </model>
543
544   <!-- Lumière verte -->
545   <model>
546     <name>RightLight</name>
547     <path>Aircraft/Carreidas/Models/lights/GreenLight.xml</path>
548     <offsets>
549       <x-m> -2.098 </x-m>
550       <y-m>  2.782 </y-m>
551       <z-m> -0.173 </z-m>
552     </offsets>
553   </model>
554
555   <!-- Beacon -->
556   <model>
557     <path>Aircraft/Carreidas/Models/lights/beacon.xml</path>
558     <offsets>
559       <x-m> -1.180 </x-m>
560       <y-m>  0.000 </y-m>
561       <z-m> -0.406 </z-m>
562     </offsets>
563   </model>
564
565 </PropertyList>
566