Update Help for UFO
[fg:toms-fgdata.git] / Aircraft / ufo / ufo-set.xml
1 <?xml version="1.0"?>
2
3 <PropertyList>
4         <sim>
5                 <description>UFO from the 'White Project' of the UNESCO</description>
6                 <author>ET</author>
7
8         <long-description>With the UFO you can place 3D objects in the FlightGear scenery, 
9             and inspect the scenery without worrying about crashing.</long-description>
10         <fr>
11             <long-description>Avec l'UFO (OVNI) vous pouvez placer des objets 3D dans les scènes de FlightGear scenery</long-description>
12         </fr>
13                 
14                 
15         <tags>
16             <tag>fictional</tag>
17             <tag>spaceship</tag>
18         </tags>
19             
20                 <flight-model>ufo</flight-model>
21
22                 <sound>
23                         <path>Aircraft/ufo/ufo-sound.xml</path>
24                 </sound>
25
26                 <panel>
27                         <visibility>false</visibility>
28                         <path>Aircraft/ufo/Instruments/panel.xml</path>
29                 </panel>
30
31                 <model>
32                         <path>Aircraft/ufo/Models/ufo.xml</path>
33                         <always-show-in-MP type="bool">false</always-show-in-MP>
34                 </model>
35
36                 <instrumentation>
37                         <path>Aircraft/ufo/Instruments/instrumentation.xml</path>
38                 </instrumentation>
39
40                 <!--current-view>
41                         <view-number>-100</view-number>
42                 </current-view-->
43
44                 <view n="0">
45                         <internal type="bool">true</internal>
46                         <config>
47                                 <limits>
48                                         <enabled type="bool">false</enabled>
49                                 </limits>
50                         </config>
51                 </view>
52
53                 <view n="100">
54                         <name>Camera View</name>
55                         <!--
56                                 same as "Cockpit View", but different index, so that it doesn't hide
57                                 parts of aircraft that are unselected for view number 0
58                         -->
59                         <enabled type="bool">false</enabled>
60                         <type>lookfrom</type>
61                         <internal type="bool">false</internal>
62                         <config>
63                                 <from-model type="bool">true</from-model>
64                                 <from-model-idx type="int">0</from-model-idx>
65                                 <ground-level-nearplane-m type="double">0.5f</ground-level-nearplane-m>
66                                 <default-field-of-view-deg type="double">55.0</default-field-of-view-deg>
67                                 <default-pitch-deg type="double">0</default-pitch-deg>
68                                 <default-heading-deg type="double">0</default-heading-deg>
69                                 <front-direction-deg type="double">0</front-direction-deg>
70                                 <front-left-direction-deg type="double">45</front-left-direction-deg>
71                                 <left-direction-deg type="double">90</left-direction-deg>
72                                 <back-left-direction-deg type="double">135</back-left-direction-deg>
73                                 <back-direction-deg type="double">180</back-direction-deg>
74                                 <back-right-direction-deg type="double">225</back-right-direction-deg>
75                                 <right-direction-deg type="double">270</right-direction-deg>
76                                 <front-right-direction-deg type="double">315</front-right-direction-deg>
77                                 <dynamic-view type="bool">true</dynamic-view>
78                         </config>
79                 </view>
80
81                 <help>
82                         <title>UFO</title>
83                         <key>
84                                 <name>joystick fire button</name>
85                                 <desc>fly backwards</desc>
86                         </key>
87                         <key>
88                                 <name>b</name>
89                                 <desc>fly backwards</desc>
90                         </key>
91                         <key>
92                                 <name>[ ]</name>
93                                 <desc>decrease/increase maximum speed</desc>
94                         </key>
95                         <key>
96                                 <name>Home</name>
97                                 <desc>Hover up</desc>
98                         </key>
99                         <key>
100                                 <name>End</name>
101                                 <desc>Hover down</desc>
102                         </key>
103                         <key>
104                                 <name>mouse click</name>
105                                 <desc>add model to scenery</desc>
106                         </key>
107                         <key>
108                                 <name>Ctrl + mouse click</name>
109                                 <desc>select nearest object</desc>
110                         </key>
111                         <key>
112                                 <name>Shift + mouse click</name>
113                                 <desc>add new object to selection</desc>
114                         </key>
115                         <key>
116                                 <name>Shift + Ctrl + mouse click</name>
117                                 <desc>add nearest object to selection</desc>
118                         </key>
119                         <key>
120                                 <name>Alt + mouse click</name>
121                                 <desc>move selected object(s) to new place</desc>
122                         </key>
123                         <key>
124                                 <name>Ctrl + Alt + mouse click</name>
125                                 <desc>Print lat/lon/alt and landclass of mouse click position</desc>
126                         </key>
127                         <key>
128                                 <name>g (gear) + click</name>
129                                 <desc>teleport to click position, looking at active object</desc>
130                         </key>
131                         <key>
132                                 <name>Ctrl + PgUp/PgDn</name>
133                                 <desc>cycle through model list</desc>
134                         </key>
135                         <key>
136                                 <name>Ctrl + cursor/arrow keys</name>
137                                 <desc>move selected object(s) away/nearer/left/right</desc>
138                         </key>
139                         <key>
140                                 <name>backspace</name>
141                                 <desc>remove selected object(s)</desc>
142                         </key>
143                         <key>
144                                 <name>d</name>
145                                 <desc>dump object data to terminal</desc>
146                         </key>
147                         <key>
148                                 <name>e</name>
149                                 <desc>export object data</desc>
150                         </key>
151                         <key>
152                                 <name>l</name>
153                                 <desc>load model file via file selector</desc>
154                         </key>
155                         <key>
156                                 <name>m</name>
157                                 <desc>toggle marker for active (= last selected) object</desc>
158                         </key>
159                         <key>
160                                 <name>n</name>
161                                 <desc>export flightplan</desc>
162                         </key>
163                         <key>
164                                 <name>P</name>
165                                 <desc>toggle radar panel (see Ctrl-C for the control areas)</desc>
166                         </key>
167                         <key>
168                                 <name>space</name>
169                                 <desc>open/close model select dialog</desc>
170                         </key>
171                         <key>
172                                 <name>=</name>
173                                 <desc>open/close cursor dialog</desc>
174                         </key>
175
176                         <line>Pre-select initial model (path relative to $FG_ROOT):</line>
177                         <line>&#32;&#32;&#45;&#45;prop:cursor=Model/path.xml</line>
178                         <line/>
179                         <line>Set directories that are scanned for models (comma separated and</line>
180                         <line>relative to $FG_ROOT; default: Models):</line>
181                         <line>&#32;&#32;&#45;&#45;prop:source=Models,Scenery/Objects</line>
182                         <line/>
183                         <line>Exported data are written to:</line>
184                         <line>&#32;&#32;~/.fgfs/Export/ufo-model-export.xml   (Unix)</line>
185                         <line>&#32;&#32;%APPDATA%\flightgear.org\Export\ufo-model-export.xml   (Microsoft Windows)</line>
186                         <line/>
187                         <line>In the adjustment dialog (= key) holding the Ctrl or Shift key down</line>
188                         <line>makes slider effects coarser/finer.</line>
189                 </help>
190         </sim>
191
192         <input>
193                 <keyboard>
194                         <key n="8">
195                                 <name>Backspace</name>
196                                 <desc>Remove selected object</desc>
197                                 <binding>
198                                         <command>nasal</command>
199                                         <script>ufo.modelmgr.remove_selected()</script>
200                                 </binding>
201                         </key>
202
203                         <key n="7">
204                                 <name>Ctrl-G</name>
205                                 <desc>Gear Up.</desc>
206                                 <binding>
207                                         <command>nasal</command>
208                                         <script>controls.gearDown(-1)</script>
209                                 </binding>
210                                 <mod-up>
211                                         <binding>
212                                                 <command>nasal</command>
213                                                 <script>controls.gearDown(0)</script>
214                                         </binding>
215                                 </mod-up>
216                         </key>
217
218                         <key n="61">
219                                 <name>=</name>
220                                 <desc>Show object adjustment dialog</desc>
221                                 <binding>
222                                         <command>nasal</command>
223                                         <script>ufo.adjust_dialog.toggle()</script>
224                                 </binding>
225                         </key>
226
227                         <key n="32">
228                                 <name>SPACE</name>
229                                 <desc>Show model select dialog</desc>
230                                 <binding>
231                                         <command>nasal</command>
232                                         <script>ufo.select_dialog.toggle()</script>
233                                 </binding>
234                         </key>
235
236                         <key n="99">
237                                 <name>c</name>
238                                 <desc>Clone selected objects</desc>
239                                 <binding>
240                                         <command>nasal</command>
241                                         <script>ufo.modelmgr.clone_selected()</script>
242                                 </binding>
243                         </key>
244
245                         <key n="100">
246                                 <name>d</name>
247                                 <desc>Dump coordinates</desc>
248                                 <binding>
249                                         <command>nasal</command>
250                                         <script>ufo.print_data()</script>
251                                 </binding>
252                         </key>
253
254                         <key n="101">
255                                 <name>e</name>
256                                 <desc>Export object data XML file</desc>
257                                 <binding>
258                                         <command>nasal</command>
259                                         <script>ufo.export_data()</script>
260                                 </binding>
261                         </key>
262
263                         <key n="108">
264                                 <name>l</name>
265                                 <desc>Open file selector</desc>
266                                 <binding>
267                                         <command>nasal</command>
268                                         <script>ufo.file_select_model()</script>
269                                 </binding>
270                         </key>
271
272                         <key n="109">
273                                 <name>m</name>
274                                 <desc>Toggle "active object" marker</desc>
275                                 <binding>
276                                         <command>nasal</command>
277                                         <script>ufo.modelmgr.toggle_marker()</script>
278                                 </binding>
279                         </key>
280
281                         <key n="110">
282                                 <name>n</name>
283                                 <desc>Export FlightPlan</desc>
284                                 <binding>
285                                         <command>nasal</command>
286                                         <script>ufo.export_flightplan()</script>
287                                 </binding>
288                         </key>
289
290                         <key n="360">
291                                 <name>PageUp</name>
292                                 <desc>Increase throttle or autopilot autothrottle.</desc>
293                                 <repeatable type="bool">true</repeatable>
294                                 <binding>
295                                         <command>nasal</command>
296                                         <script>
297                                                 if (getprop("/devices/status/keyboard/ctrl")) {
298                                                         ufo.modelmgr.cycle(1);
299                                                 } else {
300                                                         controls.incThrottle(0.01, 1.0)
301                                                 }
302                                         </script>
303                                 </binding>
304                                 <mod-shift>
305                                         <desc>Look front right.</desc>
306                                         <binding>
307                                                 <command>property-assign</command>
308                                                 <property>/sim/current-view/goal-heading-offset-deg</property>
309                                                 <property>/sim/view/config/front-right-direction-deg</property>
310                                         </binding>
311                                 </mod-shift>
312                         </key>
313
314                         <key n="361">
315                                 <name>PageDown</name>
316                                 <desc>Decrease throttle or autopilot autothrottle.</desc>
317                                 <repeatable type="bool">true</repeatable>
318                                 <binding>
319                                         <command>nasal</command>
320                                         <script>
321                                                 if (getprop("/devices/status/keyboard/ctrl")) {
322                                                         ufo.modelmgr.cycle(-1);
323                                                 } else {
324                                                         controls.incThrottle(-0.01, -1.0)
325                                                 }
326                                         </script>
327                                 </binding>
328                                 <mod-shift>
329                                         <desc>Look back right.</desc>
330                                         <binding>
331                                                 <command>property-assign</command>
332                                                 <property>/sim/current-view/goal-heading-offset-deg</property>
333                                                 <property>/sim/view/config/back-right-direction-deg</property>
334                                         </binding>
335                                 </mod-shift>
336                         </key>
337
338                         <key n="356">
339                                 <name>Left</name>
340                                 <desc>Move aileron left (or adjust AP heading.)</desc>
341                                 <repeatable type="bool">true</repeatable>
342                                 <binding>
343                                         <command>nasal</command>
344                                         <script>
345                                                 if (getprop("/devices/status/keyboard/ctrl")) {
346                                                         ufo.modelmgr.adjust("transversal", -1);
347                                                 } else {
348                                                         controls.incAileron(-0.05, -1.0);
349                                                 }
350                                         </script>
351                                 </binding>
352                                 <mod-shift>
353                                         <desc>Look left.</desc>
354                                         <binding>
355                                                 <command>nasal</command>
356                                                 <script>
357                                                         if (getprop("/devices/status/keyboard/ctrl")) {
358                                                                 ufo.modelmgr.adjust("transversal", -10);
359                                                         } else {
360                                                                 setprop("/sim/current-view/goal-heading-offset-deg",
361                                                                         getprop("/sim/view/config/left-direction-deg"));
362                                                         }
363                                                 </script>
364                                         </binding>
365                                 </mod-shift>
366                         </key>
367
368                         <key n="357">
369                                 <name>Up</name>
370                                 <desc>Increase elevator or autopilot altitude.</desc>
371                                 <repeatable type="bool">true</repeatable>
372                                 <binding>
373                                         <command>nasal</command>
374                                         <script>
375                                                 if (getprop("/devices/status/keyboard/ctrl")) {
376                                                         ufo.modelmgr.adjust("longitudinal", 1);
377                                                 } else {
378                                                         controls.incElevator(0.05, -100);
379                                                 }
380                                         </script>
381                                 </binding>
382                                 <mod-shift>
383                                         <desc>Look forward.</desc>
384                                         <binding>
385                                                 <command>nasal</command>
386                                                 <script>
387                                                         if (getprop("/devices/status/keyboard/ctrl")) {
388                                                                 ufo.modelmgr.adjust("longitudinal", 10);
389                                                         } else {
390                                                                 setprop("/sim/current-view/goal-heading-offset-deg",
391                                                                         getprop("/sim/view/config/front-direction-deg"));
392                                                         }
393                                                 </script>
394                                         </binding>
395                                 </mod-shift>
396                         </key>
397
398                         <key n="358">
399                                 <name>Right</name>
400                                 <desc>Move aileron right (or adjust AP heading.)</desc>
401                                 <repeatable type="bool">true</repeatable>
402                                 <binding>
403                                         <command>nasal</command>
404                                         <script>
405                                                 if (getprop("/devices/status/keyboard/ctrl")) {
406                                                         ufo.modelmgr.adjust("transversal", 1);
407                                                 } else {
408                                                         controls.incAileron(0.05, 1.0);
409                                                 }
410                                         </script>
411                                         <step type="double">0.05</step>
412                                 </binding>
413                                 <mod-shift>
414                                         <desc>Look right.</desc>
415                                         <binding>
416                                                 <command>nasal</command>
417                                                 <script>
418                                                         if (getprop("/devices/status/keyboard/ctrl")) {
419                                                                 ufo.modelmgr.adjust("transversal", 10);
420                                                         } else {
421                                                                 setprop("/sim/current-view/goal-heading-offset-deg",
422                                                                         getprop("/sim/view/config/right-direction-deg"));
423                                                         }
424                                                 </script>
425                                         </binding>
426                                 </mod-shift>
427                         </key>
428
429                         <key n="359">
430                                 <name>Down</name>
431                                 <desc>Decrease elevator or autopilot altitude.</desc>
432                                 <repeatable type="bool">true</repeatable>
433                                 <binding>
434                                         <command>nasal</command>
435                                         <script>
436                                                 if (getprop("/devices/status/keyboard/ctrl")) {
437                                                         ufo.modelmgr.adjust("longitudinal", -1);
438                                                 } else {
439                                                         controls.incElevator(-0.05, 100);
440                                                 }
441                                         </script>
442                                 </binding>
443                                 <mod-shift>
444                                         <desc>Look backwards.</desc>
445                                         <binding>
446                                                 <command>nasal</command>
447                                                 <script>
448                                                         if (getprop("/devices/status/keyboard/ctrl")) {
449                                                                 ufo.modelmgr.adjust("longitudinal", -10);
450                                                         } else {
451                                                                 setprop("/sim/current-view/goal-heading-offset-deg",
452                                                                         getprop("/sim/view/config/back-direction-deg"));
453                                                         }
454                                                 </script>
455                                         </binding>
456                                 </mod-shift>
457                         </key>
458
459                         <key n="362">
460                                 <name>Home</name>
461                                 <desc>Hover Up</desc>
462                                 <binding>
463                                         <command>nasal</command>
464                                         <script>ufo.up(1)</script>
465                                 </binding>
466                                 <mod-up>
467                                         <binding>
468                                                 <command>nasal</command>
469                                                 <script>ufo.up(0)</script>
470                                         </binding>
471                                 </mod-up>
472                         </key>
473
474                         <key n="363">
475                                 <name>End</name>
476                                 <desc>Hover Down</desc>
477                                 <binding>
478                                         <command>nasal</command>
479                                         <script>ufo.up(-1)</script>
480                                 </binding>
481                                 <mod-up>
482                                         <binding>
483                                                 <command>nasal</command>
484                                                 <script>ufo.up(0)</script>
485                                         </binding>
486                                 </mod-up>
487                         </key>
488
489                         <key n="311">
490                                 <name>KP7</name>
491                                 <desc>Hover Up</desc>
492                                 <binding>
493                                         <command>nasal</command>
494                                         <script>ufo.up(1)</script>
495                                 </binding>
496                                 <mod-up>
497                                         <binding>
498                                                 <command>nasal</command>
499                                                 <script>ufo.up(0)</script>
500                                         </binding>
501                                 </mod-up>
502                         </key>
503
504                         <key n="305">
505                                 <name>KP1</name>
506                                 <desc>Hover Down</desc>
507                                 <binding>
508                                         <command>nasal</command>
509                                         <script>ufo.up(-1)</script>
510                                 </binding>
511                                 <mod-up>
512                                         <binding>
513                                                 <command>nasal</command>
514                                                 <script>ufo.up(0)</script>
515                                         </binding>
516                                 </mod-up>
517                         </key>
518                 </keyboard>
519         </input>
520
521         <!-- default model -->
522         <cursor type="string">Aircraft/ufo/Models/cursor.ac</cursor>
523
524         <!-- subdirs of $FG_ROOT to search models in. Comma separated, e.g. "Models,Scenery/Objects/w130n30" -->
525         <source type="string">Models</source>
526
527         <nasal>
528                 <ufo>
529                         <file>Aircraft/ufo/ufo.nas</file>
530                 </ufo>
531
532                 <aar>
533                         <file>Aircraft/Generic/aar.nas</file>
534                 </aar>
535         </nasal>
536
537         <systems>
538                 <refuel>
539                         <type>boom</type>
540                         <type>probe</type>
541                 </refuel>
542         </systems>
543
544         <instrumentation>
545                 <radar>
546                         <serviceable type="bool">true</serviceable>
547                         <switch type="string" archive="y">on</switch>
548                         <range type="double" archive="y">40</range>
549                         <mode-control type="int" archive="y">2</mode-control>
550                         <limit-deg type="double">180</limit-deg>
551
552                         <mode type="string" archive="y">WX</mode>
553                         <lightning type="bool" archive="y">true</lightning>
554                         <display-mode type="string" archive="y">plan</display-mode>
555
556                         <display-controls>
557                                 <WX type="bool" archive="y">false</WX>
558                                 <data type="bool" archive="y">true</data>
559                                 <pos type="bool" archive="y">true</pos>
560                         </display-controls>
561                 </radar>
562                 <nav n="0">
563                         <volume type="double">0</volume>
564                 </nav>
565                 <nav n="1">
566                         <volume type="double">0</volume>
567                 </nav>
568                 <!-- mk-viii is disabled (enable in instruments.xml for testing purposes) -->
569         <mk-viii>  <!-- mk-viii configuration, see: http://wiki.flightgear.org/index.php/GPWS -->
570             <serviceable>true</serviceable>     <!-- EGPWS_ENABLE -->
571             <configuration-module>
572                 <category-1>                    <!-- AIRCRAFT_MODE_TYPE_SELECT -->
573                    255 <!-- aircraft type T1, fast turbofan -->
574                 </category-1>
575                 <category-4>                    <!-- ALTITUDE_CALLOUTS -->
576                     13 <!-- enable all altitude callouts -->
577                 </category-4>
578                 <category-8>                    <!-- RADIO_ALTITUDE_INPUT_SELECT -->
579                      2
580                 </category-8>
581                 <category-13>                   <!-- INPUT_OUTPUT_DISCRETE_TYPE_SELECT -->
582                      5 <!-- flashing warning lamp -->
583                 </category-13>
584             </configuration-module>
585             <voice>
586                 <file-prefix type="string">Sounds/mk-viii/</file-prefix>
587             </voice>
588             <inputs>                            <!-- Module I/O -->
589                 <arinc429>
590                     <!-- provide fixed value for decision height -->
591                     <decision-height-ncd> false </decision-height-ncd>
592                     <decision-height> 250 </decision-height>
593                 </arinc429>
594             </inputs>
595             <speaker>                           <!-- Speaker Configuration -->
596                 <max-dist type="double"> 200.0 </max-dist>        <!-- Max. distance where speaker is heard -->
597                 <reference-dist type="double"> 2 </reference-dist> <!-- Distance to pilot -->
598                 <volume type="double"> 0.6 </volume>          <!-- Volume at reference distance -->
599             </speaker>
600         </mk-viii>
601         </instrumentation>
602
603         <gear>
604                 <gear>
605                         <!-- hint for the route manager -->
606                         <wow type="bool">false</wow>
607                 </gear>
608         </gear>
609
610         <autopilot>
611                 <route-manager>
612                         <min-lock-altitude-agl-ft type="double">-10000</min-lock-altitude-agl-ft>
613                 </route-manager>
614         </autopilot>
615 </PropertyList>