Major update: fixed fdm-bug (thanks to LesterBoffo!), added tutorials, added replayre...
[fg:toms-fgdata.git] / Aircraft / ec130 / Models / ec130.xml
1 <?xml version="1.0"?>
2
3 <!-- Eurocopter EC 130 Helicopter by Heiko Schulz, animation set 
4  This file is part of FlightGear, the free flight simulator
5  http://www.flightgear.org/
6
7  Copyright (C) 2009 Heiko Schulz, Heiko.H.Schulz@gmx.net
8
9  This program is free software; you can redistribute it and/or
10  modify it under the terms of the GNU General Public License as
11  published by the Free Software Foundation; either version 2 of the
12  License, or (at your option) any later version.
13
14  This program is distributed in the hope that it will be useful, but
15  WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  General Public License for more details.
18 -->
19
20 <PropertyList>
21
22
23         <path>ec130.ac</path>
24         <offsets>
25                 <z-m>0</z-m>
26                 <y-m>0</y-m>
27                 <x-m>0</x-m>
28
29                 <pitch-deg>0</pitch-deg>
30                 
31         </offsets>
32         
33 <nasal>
34         <load>
35             var livery_update = aircraft.livery_update.new(
36             "Aircraft/ec130/Models/liveries", 5,
37             func { print("ec130 livery update") });
38         </load>
39
40         <unload>
41             livery_update.stop();
42         </unload>
43     </nasal>
44         
45 <!--shader-->
46 <effect>
47                 <inherits-from>Aircraft/ec130/Models/Effects/ec130reflect-uber</inherits-from>
48                 <object-name>fuselage</object-name>
49                 <object-name>frontdoorr</object-name>
50                 <object-name>frontdoorl</object-name>
51                 <object-name>backdoorr</object-name>
52                 <object-name>backdoorl</object-name>
53                 <object-name>luggagel</object-name>
54                 <object-name>luggager</object-name>
55                 <object-name>door</object-name>
56                 <object-name>exhaust</object-name>
57                 <object-name>wirecutter</object-name>
58 </effect>
59
60 <effect>
61                 <inherits-from>Aircraft/ec130/Models/Effects/ec130reflectglas-uber</inherits-from>
62                 <object-name>windscreen</object-name>
63                 <object-name>windowl</object-name>
64                 <object-name>windowr</object-name>
65                 <object-name>windowbl</object-name>
66                 <object-name>windowbr</object-name>
67                 <object-name>fuel</object-name>
68                 
69 </effect>
70
71 <!--pilot-->
72
73 <model>
74     <name>Pilote</name>
75     <path>Aircraft/ec130/Models/pilot.xml</path>
76     <offsets>
77       <x-m> 0.0 </x-m>
78       <y-m> 0.0 </y-m>
79       <z-m> 0.0 </z-m>
80     </offsets>
81   </model>      
82   
83   <!--mobile Ground Power Unit-->
84   <model>
85     <name>MGPU</name>
86     <path>Aircraft/ec130/Models/mgpu.xml</path>
87     <offsets>
88       <x-m> 0.0 </x-m>
89       <y-m> 0.0 </y-m>
90       <z-m> 0.0 </z-m>
91     </offsets>
92   </model>      
93   
94   <!--stick
95   <animation>
96     <type>rotate</type>
97     <object-name>stickgrip</object-name>
98     <object-name>griphead</object-name>
99     <property>/controls/flight/aileron</property>
100     <factor>-8</factor>
101     <center>
102       <x-m> -4.159 </x-m>
103       <y-m>  -0.680 </y-m>
104       <z-m> -1.036 </z-m>
105     </center>
106     <axis>
107       <x> 1 </x>
108       <y> 0 </y>
109       <z> 0 </z>
110     </axis>
111   </animation>
112   
113   <animation>
114     <type>rotate</type>
115     <object-name>stickgrip</object-name>
116     <object-name>griphead</object-name>
117     <property>/controls/flight/elevator</property>
118     <factor>-8</factor>
119     <center>
120      <x-m> -4.159 </x-m>
121       <y-m>  -0.680 </y-m>
122       <z-m> -1.036 </z-m>
123     </center>
124     <axis>
125       <x> 0 </x>
126       <y> 1 </y>
127       <z> 0 </z>
128     </axis>
129   </animation>-->
130   
131 <!--panel-->
132 <model>
133                 <name>AI</name>
134                 <path>Aircraft/ec130/Models/Instruments/AI/AI.xml</path>
135
136                 <offsets>
137                         <x-m>-4.556</x-m>
138                         <y-m>-0.573</y-m>
139                         <z-m>-0.284</z-m>
140                 <pitch-deg>-10</pitch-deg>
141
142                 </offsets>
143 </model>
144
145 <model>
146                 <name>ASI</name>
147                 <path>Aircraft/ec130/Models/Instruments/ASI/asi.xml</path>
148
149                 <offsets>
150                         <x-m>-4.571</x-m>
151                         <y-m>-0.671</y-m>
152                         <z-m>-0.285</z-m>
153                 <pitch-deg>-10</pitch-deg>
154
155                 </offsets>
156 </model>
157
158 <model>
159                 <name>alt</name>
160                 <path>Aircraft/ec130/Models/Instruments/ALT/alt2-3d.xml</path>
161
162                 <offsets>
163                         <x-m>-4.57</x-m>
164                         <y-m>-0.478</y-m>
165                         <z-m>-0.281</z-m>
166                 <pitch-deg>-10</pitch-deg>
167
168                 </offsets>
169 </model>
170
171 <model>
172                 <name>kcs55</name>
173                 <path>Aircraft/ec130/Models/Instruments/kcs55/ki525a.xml</path>
174
175                 <offsets>
176                         <x-m>-4.552</x-m>
177                         <y-m>-0.574</y-m>
178                         <z-m>-0.394</z-m>
179                 <pitch-deg>-10</pitch-deg>
180
181                 </offsets>
182 </model>
183
184
185 <model>
186                 <name>VSI</name>
187                 <path>Aircraft/ec130/Models/Instruments/VSI/VSI.xml</path>
188
189                 <offsets>
190                         <x-m>-4.556</x-m>
191                         <y-m>-0.475</y-m>
192                         <z-m>-0.370</z-m>
193                 <pitch-deg>-10</pitch-deg>
194
195                 </offsets>
196 </model>
197
198 <model>
199                 <name>Turn</name>
200                 <path>Aircraft/ec130/Models/Instruments/Turn/Turn.xml</path>
201
202                 <offsets>
203                         <x-m>-4.555</x-m>
204                         <y-m>-0.671</y-m>
205                         <z-m>-0.369</z-m>
206                 <pitch-deg>-10</pitch-deg>
207
208                 </offsets>
209 </model>
210
211
212 <model>
213                 <name>Clock</name>
214                 <path>Aircraft/ec130/Models/Instruments/Clock/clock.xml</path>
215
216                 <offsets>
217                         <x-m>-4.532</x-m>
218                         <y-m>-0.672</y-m>
219                         <z-m>-0.449</z-m>
220                 <pitch-deg>-10</pitch-deg>
221
222                 </offsets>
223 </model>        
224
225 <model>
226                 <name>Warnpanel</name>
227                 <path>Aircraft/ec130/Models/Instruments/CWS/CWS.xml</path>
228
229                 <offsets>
230                         <x-m>-4.567</x-m>
231                         <y-m>-0.600</y-m>
232                         <z-m>-0.214</z-m>
233                 <pitch-deg>-10</pitch-deg>
234
235                 </offsets>
236 </model>        
237
238 <model>
239                 <name>Lighting</name>
240                 <path>Aircraft/ec130/Models/Instruments/Lighting/lighting.xml</path>
241
242                 <offsets>
243                         <x-m>-4.522</x-m>
244                         <y-m>-0.507</y-m>
245                         <z-m>-0.451</z-m>
246                 <pitch-deg>-10</pitch-deg>
247
248                 </offsets>
249 </model>        
250
251 <model>
252                 <name>VEMD</name>
253                 <path>Aircraft/ec130/Models/Instruments/VEMD/vemd.xml</path>
254
255                 <offsets>
256                         <x-m>-4.575</x-m>
257                         <y-m>-0.342</y-m>
258                         <z-m>-0.269</z-m>
259                 <pitch-deg>-10</pitch-deg>
260
261                 </offsets>
262 </model>        
263
264 <model>
265                 <name>Enginepanel</name>
266                 <path>Aircraft/ec130/Models/Instruments/Enginepanel/enginepanel.xml</path>
267
268                 <offsets>
269                         <x-m>-4.500</x-m>
270                         <y-m>-0.377</y-m>
271                         <z-m>-0.520</z-m>
272                 <pitch-deg>-21</pitch-deg>
273
274                 </offsets>
275 </model>        
276
277 <model>
278                 <name>KX155A</name>
279                 <path>Aircraft/ec130/Models/Instruments/KX155A/KX155A.xml</path>
280
281                 <offsets>
282                         <x-m>-4.425</x-m>
283                         <y-m>-0.366</y-m>
284                         <z-m>-0.590</z-m>
285                 <pitch-deg>-80</pitch-deg>
286
287                 </offsets>
288 </model>        
289
290 <model>
291                 <name>kt70</name>
292                 <path>Aircraft/ec130/Models/Instruments/kt70/kt70.xml</path>
293
294                 <offsets>
295                         <x-m>-4.377</x-m>
296                         <y-m>-0.366</y-m>
297                         <z-m>-0.591</z-m>
298                 <pitch-deg>-80</pitch-deg>
299
300                 </offsets>
301 </model>
302
303 <model>
304                 <name>RPM</name>
305                 <path>Aircraft/ec130/Models/Instruments/Tach/tach.xml</path>
306
307                 <offsets>
308                         <x-m>-4.586</x-m>
309                         <y-m>-0.475</y-m>
310                         <z-m>-0.195</z-m>
311                 <pitch-deg>-10</pitch-deg>
312
313                 </offsets>
314 </model>
315
316 <model>
317                 <name>SCU</name>
318                 <path>Aircraft/ec130/Models/Instruments/SCU/scu.xml</path>
319
320                 <offsets>
321                         <x-m>-4.298</x-m>
322                         <y-m>-0.364</y-m>
323                         <z-m>-0.694</z-m>
324                 <pitch-deg>9</pitch-deg>
325
326                 </offsets>
327 </model>
328
329 <model>
330                 <name>Breakers</name>
331                 <path>Aircraft/ec130/Models/Instruments/Breakers/breakerspanel.xml</path>
332
333                 <offsets>
334                         <x-m>-4.194</x-m>
335                         <y-m>-0.364</y-m>
336                         <z-m>-0.707</z-m>
337                 <pitch-deg>9</pitch-deg>
338
339                 </offsets>
340 </model>
341
342 <model>
343                 <name>Breakers2</name>
344                 <path>Aircraft/ec130/Models/Instruments/Breakers/breakers.xml</path>
345
346                 <offsets>
347                         <x-m>-4.127</x-m>
348                         <y-m>-0.364</y-m>
349                         <z-m>-0.719</z-m>
350                 <pitch-deg>9</pitch-deg>
351
352                 </offsets>
353 </model>
354
355
356
357 <model>
358                 <name>levers</name>
359                 <path>Aircraft/ec130/Models/Instruments/Levers/levers.xml</path>
360
361                 <offsets>
362                         <x-m>-4.018</x-m>
363                         <y-m>-0.178</y-m>
364                         <z-m>0.300</z-m>
365                 <pitch-deg>0</pitch-deg>
366
367                 </offsets>
368 </model>
369
370
371
372 <!--rotor-->    
373 <model>
374                 <name>mainrotor</name>
375                 <path>Aircraft/ec130/Models/rotor/rotoranimation.xml</path>
376
377                 <offsets>
378
379                         <x-m>-1.987</x-m>
380                         <y-m>0</y-m>
381                         <z-m>1.371</z-m>
382
383                         <pitch-deg>-2</pitch-deg>
384
385                 </offsets>
386 </model>
387
388 <!--emergency floats-->
389 <model>
390                 
391                 <path>Aircraft/ec130/Models/right_float.xml</path>
392                 <offsets>
393                         <x-m>-2.099</x-m>
394                         <y-m>1.236</y-m>
395                         <z-m>-1.626</z-m>
396                         <pitch-deg>0</pitch-deg>
397                 </offsets>
398 </model>
399
400 <model>
401                 
402                 <path>Aircraft/ec130/Models/left_float.xml</path>
403                 <offsets>
404                         <x-m>-2.099</x-m>
405                         <y-m>-1.236</y-m>
406                         <z-m>-1.626</z-m>
407                         <pitch-deg>0</pitch-deg>
408                 </offsets>
409 </model>
410 <!--model select animation-->
411 <animation>
412                 <type>select</type>
413                 <object-name>floats_deflated</object-name>
414                 <condition>
415                         <property>sim/model/ec130/emerg_floats</property>
416                 </condition>
417 </animation>
418 <animation>
419                 <type>select</type>
420                 <object-name>basket_left</object-name>
421                 <object-name>basket_mesh_left</object-name>
422                 <condition>
423                         <property>sim/model/ec130/basket_left</property>
424                 </condition>
425 </animation>
426 <animation>
427                 <type>select</type>
428                 <object-name>basket_right</object-name>
429                 <object-name>basket_mesh_right</object-name>
430                 <condition>
431                         <property>sim/model/ec130/basket_right</property>
432                 </condition>
433 </animation>
434 <animation>
435                 <type>select</type>
436                 <object-name>mirror</object-name>
437                 <condition>
438                         <property>sim/model/ec130/mirror</property>
439                 </condition>
440 </animation>
441 <animation>
442                 <type>select</type>
443                 <object-name>FLIR</object-name>
444                 <condition>
445                         <property>sim/model/ec130/FLIR</property>
446                 </condition>
447 </animation>
448 <animation>
449                 <type>select</type>
450                 <object-name>searchlight</object-name>
451                 <object-name>disk</object-name>
452                 <object-name>searchlightstrip</object-name>
453                 <condition>
454                         <property>sim/model/ec130/searchlight</property>
455                 </condition>
456 </animation>
457 <animation>
458                 <type>select</type>
459                 <object-name>wirecutter</object-name>
460                 <condition>
461                         <property>sim/model/ec130/wirecutter</property>
462                 </condition>
463 </animation>
464
465 <!--material animation-->
466 <animation>
467                 <type>material</type>
468                 <!--global type="bool">true</global-->
469                 <object-name>fuselage</object-name>
470                 <object-name>luggager</object-name>
471                 <object-name>luggagel</object-name>
472                 <object-name>frontdoorr</object-name>
473                 <object-name>frontdoorl</object-name>
474                 <object-name>backdoorr</object-name>
475                 <object-name>backdoorl</object-name>
476                 <object-name>door</object-name>
477                 <object-name>exhaust</object-name>
478                 <object-name>wirecutter</object-name>
479                 <property-base>sim/model/livery/</property-base>
480                 <texture-prop>texture</texture-prop>
481                 <texture>default.png</texture>
482         </animation>
483         
484 <!--lights-->
485 <animation>
486    <type>select</type>
487    <object-name>navlight_left</object-name>
488    <object-name>navlight_right</object-name>
489    <object-name>navlight_back</object-name>
490      <object-name>navlight_front</object-name>
491      <object-name>navlight_front2</object-name>
492       <condition>
493    <greater-than>
494      <property>sim/multiplay/generic/int[2]</property>
495      <value>24</value>
496      </greater-than>
497    </condition>
498  </animation>
499  
500  <animation>
501                 <type>flash</type>
502                 <object-name>navlight_front</object-name>
503                 <center>
504                         <x-m>-3.418</x-m>
505                         <y-m>0.395</y-m>
506                         <z-m>-1.317</z-m>
507                 </center>
508                 <axis>
509                         <x>-1</x>
510                         <y>0</y>
511                         <z>0</z>
512                 </axis>
513                 <power>5</power>
514                 <factor>1</factor>
515                 <offset>0</offset>
516                 <two-sides type="bool">false</two-sides>
517                 <min>0.01</min>
518                 <max>1</max>
519         </animation>
520         
521 <animation>
522    <type>select</type>
523    <object-name>landing_light</object-name>
524    <object-name>landing_light2</object-name>
525    
526    <condition>
527    <greater-than>
528      <property>sim/multiplay/generic/int[1]</property>
529      <value>24</value>
530      </greater-than>
531    </condition>
532  </animation>
533  
534  <animation>
535                 <type>flash</type>
536                 <object-name>landing_light</object-name>
537                 <center>
538                         <x-m>-3.410</x-m>
539                         <y-m>-0.486</y-m>
540                         <z-m>-1.295</z-m>
541                 </center>
542                 <axis>
543                         <x>-1</x>
544                         <y>0</y>
545                         <z>0</z>
546                 </axis>
547                 <power>5</power>
548                 <factor>1</factor>
549                 <offset>0</offset>
550                 <two-sides type="bool">false</two-sides>
551                 <min>0.01</min>
552                 <max>1</max>
553         </animation>
554         
555  <!--beacon-->
556  <animation>
557    <type>select</type>
558    <object-name>Plane.005X</object-name>
559     <condition>
560    <greater-than>
561      <property>sim/multiplay/generic/int[0]</property>
562      <value>24</value>
563      </greater-than>
564    </condition>
565  </animation>
566  
567  <animation>
568    <type>select</type>
569    <object-name>Plane.005X</object-name>
570    <condition>
571      <property>/sim/model/ec130/lighting/beacon-top/state</property>
572    </condition>
573  </animation>
574  
575         <animation>
576                 <type>range</type>
577                 <min-m>0</min-m>
578                 <max-m>25000</max-m>
579         </animation>
580
581         <Plane.005Xparams>
582                 <light-near>0.4</light-near>
583                 <light-med>0.8</light-med>
584                 <light-far>10</light-far>
585         </Plane.005Xparams>
586
587         
588
589         <animation>
590                 <type>alpha-test</type>
591                 <object-name>Plane.005X</object-name>
592                 <alpha-factor>0.001</alpha-factor>
593         </animation>
594
595         <animation>
596                 <type>translate</type>
597                 <object-name>Plane.005X</object-name>
598                 <offset-m>5.05421</offset-m>
599                 <axis>
600                         <x>4.677532</x>
601                         <y>0.050192</y>
602                         <z>1.913951</z>
603                 </axis>
604         </animation>
605
606         <animation>
607                 <type>billboard</type>
608                 <object-name>Plane.005X</object-name>
609                 <spherical type="bool">true</spherical>
610         </animation>
611
612         <animation>
613                 <type>dist-scale</type>
614                 <object-name>Plane.005X</object-name>
615                 <interpolation>
616                         <entry>
617                                 <ind>0</ind>
618                                 <dep alias="../../../../Plane.005Xparams/light-near"/>
619                         </entry>
620                         <entry>
621                                 <ind>500</ind>
622                                 <dep alias="../../../../Plane.005Xparams/light-med"/>
623                         </entry>
624                         <entry>
625                                 <ind>16000</ind>
626                                 <dep alias="../../../../Plane.005Xparams/light-far"/>
627                         </entry>
628                 </interpolation>
629         </animation>
630
631
632 </PropertyList>