Use latest effects
[fg:toms-fgdata.git] / Aircraft / seahawk / seahawk-set.xml
1 <?xml version="1.0"?>
2 <!--
3 ************************************************************************
4 Hawker Sea Hawk simulation config.
5
6 2002-12-26 Lee Elliott  leee-fgfs@spatial.freeserve.co.uk
7
8 2004-03-12 additions by Vivian Meazza vivian.meazza at lineone.net
9            to include keyboard bindings for carrier operations
10 ************************************************************************
11 -->
12 <PropertyList>
13
14         <!-- *************** set properties **********************-->
15         <!--parking brake ON -->
16         <!-- nosewheel lock OFF -->
17         <controls>
18                 <armament>
19                         <trigger type="bool">0</trigger>
20                 </armament>
21                 <engines>
22                         <engine n="0">
23                                 <fuel-cock>
24                                         <lever type="double">1</lever>
25                                 </fuel-cock>
26                                 <throttle>0</throttle>
27                         </engine>
28                 </engines>
29                 <gear>
30                         <brake-parking>1</brake-parking>
31                         <tailwheel-lock>true</tailwheel-lock>
32                         <launchbar>
33                                 <acceleration-norm type="float">0.4</acceleration-norm>
34                         </launchbar>
35                         <lashings type ="bool">false</lashings>
36                 </gear>
37                 <flight>
38                         <flaps-alternate-extension type="double">1</flaps-alternate-extension>
39                         <speedbrake-lever type="bool">false</speedbrake-lever>
40                         <flaps-lever type="double">0</flaps-lever>
41                 </flight>
42                 <lighting>
43                         <nav-lights type="bool">false</nav-lights>
44                 </lighting>
45                 <armament>
46                         <station>
47                                 <jettison-all type="bool">false</jettison-all>
48                         </station>
49                         <station>
50                                 <jettison-all type="bool">false</jettison-all>
51                         </station>
52                 </armament>
53         </controls>
54
55         <gear>
56                 <gear n="0">
57                         <tyre-smoke type="int">0</tyre-smoke>
58                         <sprayspeed-ms type="double">0</sprayspeed-ms>
59                         <spray-density type="double">0</spray-density>
60                         <caster-angle-deg-damped type="double">0</caster-angle-deg-damped>
61                 </gear>
62                 <gear n="1">
63                         <tyre-smoke type="int">0</tyre-smoke>
64                         <sprayspeed-ms type="double">0</sprayspeed-ms>
65                         <spray-density type="double">0</spray-density>
66                 </gear>
67                 <gear n="2">
68                         <tyre-smoke type="int">0</tyre-smoke>
69                         <sprayspeed-ms type="double">0</sprayspeed-ms>
70                         <spray-density type="double">0</spray-density>
71                 </gear>
72                 <tailhook>
73                         <position-norm type="double">0</position-norm>
74                 </tailhook>
75         </gear>
76
77         <engines>
78                 <engine n="0">
79                         <running type="bool">0</running>
80                 </engine>
81         </engines>
82
83         <position>
84                 <altitude-agl-ft type="double">0</altitude-agl-ft>
85         </position>
86
87         <sim>
88                 <author type="string">Lee Elliott, Vivian Meazza</author>
89                 <description type="string">Hawker Seahawk FGA6</description>
90                 <status type="string">early-production</status>
91                 <flight-model>yasim</flight-model>
92                 <aero>seahawk-3d-yasim</aero>
93                 <systems>
94                         <electrical>
95                                 <path>Aircraft/seahawk/Systems/seahawk-electrical.xml</path>
96                         </electrical>
97                 </systems>
98
99                 <stores>
100                         <load-tanks type="bool">false</load-tanks>
101                         <load-tanks type="bool">false</load-tanks>
102                 </stores>
103
104                 <instrumentation>
105                         <path>Aircraft/seahawk/Systems/seahawk-instrumentation.xml</path>
106                 </instrumentation>
107
108                 <hud>
109                         <path n="1">Aircraft/seahawk/Systems/seahawk-sight.xml</path>
110                         <visibility n="1">true</visibility>
111                         <font>
112                                 <size type="float">10.0</size>
113                         </font>
114                 </hud>
115
116                 <ai>
117                         <aircraft>
118                                 <exhaust type="bool">false</exhaust>
119                         </aircraft>
120                         <submodels>
121                                 <contrails type="bool">false</contrails>
122                         </submodels>
123                         <!--<ballistic>
124                                 <force-lb type="double">3000</force-lb>
125                                 <force-azimuth-deg>0</force-azimuth-deg>
126                                 <force-elevation-deg>45</force-elevation-deg>
127                         </ballistic>-->
128                 </ai>
129
130                 <submodels>
131                         <serviceable type="bool">true</serviceable>
132                         <path type="string">Aircraft/seahawk/Models/seahawk-submodels.xml</path>
133                 </submodels>
134
135                 <sound>
136                         <path>Aircraft/seahawk/Sounds/seahawk-sound.xml</path>
137                 </sound>
138
139                 <!-- hide the 2D panel -->
140                 <panel>
141                         <visibility archive="n">false</visibility>
142                 </panel>
143
144                 <!-- no HUD -->
145                 <!--<hud>
146                         <path>Huds/Default/default.xml</path>
147                         <visibility>false</visibility>
148                 </hud>-->
149
150                 <model>
151                         <path>Aircraft/seahawk/Models/seahawk-3d-model.xml</path>
152                 </model>
153
154                 <view n="0">
155                         <internal archive="y">true</internal>
156                         <config>
157                                 <x-offset-m archive="y">0</x-offset-m>
158                                 <y-offset-m archive="y">0.6579</y-offset-m>
159                                 <z-offset-m archive="y">-3.1675</z-offset-m>
160                                 <pitch-offset-deg>-15</pitch-offset-deg>
161                                 <default-field-of-view-deg>60</default-field-of-view-deg>
162                                 <limits>
163                                         <enabled type="bool">true</enabled>
164                                 </limits>
165                         </config>
166                 </view>
167                 <view n="1">
168                         <config>
169                                 <target-z-offset-m archive="y"
170                                                                                                          type="double">0</target-z-offset-m>
171                         </config>
172                 </view>
173                 <view n="2">
174                         <config>
175                                 <target-z-offset-m archive="y"
176                                                                                                          type="double">0</target-z-offset-m>
177                         </config>
178                 </view>
179                 <view n="3">
180                         <config>
181                                 <target-z-offset-m archive="y"
182                                                                                                          type="double">0</target-z-offset-m>
183                         </config>
184                 </view>
185                 <view n="4">
186                         <config>
187                                 <target-z-offset-m archive="y"
188                                                                                                          type="double">0</target-z-offset-m>
189                         </config>
190                 </view>
191                 <view n="5">
192                         <config>
193                                 <target-z-offset-m archive="y"
194                                                                                                          type="double">0</target-z-offset-m>
195                         </config>
196                 </view>
197                 <view n="6">
198                         <config>
199                                 <target-z-offset-m archive="y"
200                                                                                                          type="double">0</target-z-offset-m>
201                         </config>
202                 </view>
203                 <help>
204                         <key>
205                                 <name>Ctrl-B</name>
206                                 <desc>toggle speedbrake</desc>
207                         </key>
208                         <key>
209                                 <name>C</name>
210                                 <desc>catapult launch command</desc>
211                         </key>
212                         <key>
213                                 <name>f/F</name>
214                                 <desc>wing fold up/down</desc>
215                         </key>
216                         <key>
217                                 <name>Ctrl-F</name>
218                                 <desc>emergency flap lowering</desc>
219                         </key>
220                         <key>
221                                 <name>Ctrl-J</name>
222                                 <desc>jettison droptanks</desc>
223                         </key>
224                         <key>
225                                 <name>L</name>
226                                 <desc>launch-bar engage</desc>
227                         </key>
228                         <key>
229                                 <name>o/O</name>
230                                 <desc>hook up/down</desc>
231                         </key>
232                         <key>
233                                 <name>u/U</name>
234                                 <desc>seat up/down</desc>
235                         </key>
236                         <key>
237                                 <name>Ctrl-U</name>
238                                 <desc>seat default</desc>
239                         </key>
240                 </help>
241
242                 <flaps>
243                         <setting>0.00</setting>
244                         <setting>0.36</setting>
245                         <setting>1.00</setting>
246                 </flaps>
247
248                 <multiplay>
249                         <generic>
250                                 <string n="0"
251                                                                 alias="/sim/submodels/path"/>
252                                 <int n="0"
253                                                  alias="/engines/engine[0]/running"/>
254                                 <int n="1"
255                                                  alias="/gear/gear[0]/tyre-smoke"/>
256                                 <int n="2"
257                                                  alias="/gear/gear[1]/tyre-smoke"/>
258                                 <int n="3"
259                                                  alias="/gear/gear[2]/tyre-smoke"/>
260                                 <int n="4"
261                                                  alias="/controls/lighting/nav-lights"/>
262                                 <int n="5"
263                                                  alias="/controls/armament/trigger"/>
264                                 <float n="0"
265                                                          alias="/gear/gear[0]/sprayspeed-ms"/>
266                                 <float n="1"
267                                                          alias="/gear/gear[1]/sprayspeed-ms"/>
268                                 <float n="2"
269                                                          alias="/gear/gear[2]/sprayspeed-ms"/>
270                                 <float n="3"
271                                                          alias="/gear/gear[0]/spray-density"/>
272                                 <float n="4"
273                                                          alias="/gear/gear[1]/spray-density"/>
274                                 <float n="5"
275                                                          alias="/gear/gear[2]/spray-density"/>
276                                 <float n="6"
277                                                          alias="/position/altitude-agl-ft"/>
278                                 <float n="7"
279                                                          alias="/gear/gear/caster-angle-deg-damped"/>
280                                 <float n="8"
281                                                          alias="/controls/engines/engine[0]/throttle"/>
282                         </generic>
283                 </multiplay>
284
285                 <menubar>
286                         <default>
287                                 <menu n="10">
288                                         <label>Seahawk</label>
289                                         <enabled type="bool">true</enabled>
290                                         <item>
291                                                 <label>Toggle pilot model</label>
292                                                 <binding>
293                                                         <command>property-toggle</command>
294                                                         <property>sim/model/seahawk/show-pilot</property>
295                                                 </binding>
296                                         </item>
297                                 </menu>
298                         </default>
299                 </menubar>
300                 <seahawk>
301                         <show-pilot archive="y"
302                                                                         type="bool">true</show-pilot>
303                 </seahawk>
304
305                 <aim>
306                         <active type="bool">false</active>
307                         <tachy type="bool">true</tachy>
308                         <align type="bool">false</align>
309                         <radius type="float">1</radius>
310                         <speed-fps type="float">2755.9</speed-fps>
311                         <range-yds type="float">550</range-yds>
312                         <arc>
313                                 <start-deg type="float">10</start-deg>
314                                 <stop-deg type="float">270</stop-deg>
315                         </arc>
316                         <offsets>
317                                 <x type="float">0</x>
318                                 <y type="float">0</y>
319                         </offsets>
320                         <compression type ="float">2</compression>
321                 </aim>
322                 
323                 <environment>
324                         <rain-norm type="float">0</rain-norm>
325                 </environment>
326
327         </sim>
328
329         <consumables>
330                 <fuel>
331                         <tank n="0">
332                                 <name type="string">Fwd</name>
333                                 <level-gal_us>300</level-gal_us>
334                                 <selected type="bool">1</selected>
335                         </tank>
336                         <tank n="1">
337                                 <name type="string">Aft</name>
338                                 <level-gal_us>300</level-gal_us>
339                                 <selected type="bool">1</selected>
340                         </tank>
341                         <tank n="2">
342                                 <name type="string">Saddle</name>
343                                 <level-gal_us>180</level-gal_us>
344                                 <selected type="bool">0</selected>
345                         </tank>
346                         <!--<tank n="3">
347                                 <name type="string">Droptank Stbd</name>
348                                 <level-gal_us>0</level-gal_us>
349                                 <selected type="bool">0</selected>
350                         </tank>
351                         <tank n="4">
352                                 <name type="string">Droptank Port</name>
353                                 <level-gal_us>0</level-gal_us>
354                                 <selected type="bool">0</selected>
355                         </tank>-->
356                 </fuel>
357         </consumables>
358
359         <!-- ************Instrumentation ************************* -->
360         <instrumentation>
361                 <path>Aircraft/seahawk/Systems/seahawk-instrumentation.xml</path>
362                 <tacan n="0">
363                         <serviceable type="bool"
364                                                                          archive="y">true</serviceable>
365                         <switch-position type="int"
366                                                                                          archive="y">1</switch-position>
367                 </tacan>
368                 <!-- hsi heading bug and source select-->
369                 <heading-indicator>
370                         <heading-bug-deg type="double">95</heading-bug-deg>
371                         <heading-source type="bool">true</heading-source>
372                 </heading-indicator>
373         </instrumentation>
374
375         <!-- **************** map keyboard input ********************** -->
376         <input>
377                 <keyboard include="../../Input/Keyboard/carrier-bindings.xml">
378                         <key n="2">
379                                 <name>Ctrl-B</name>
380                                 <desc>Toggle speedbrake.</desc>
381                                 <binding>
382                                         <command>nasal</command>
383                                         <script>
384                                                 seahawk.toggleAirbrakeLever();
385                                         </script>
386                                 </binding>
387                         </key>
388
389                         <!-- map keys for emergency flap lowering -->
390                         <key n="6">
391                                 <name>Ctrl-F</name>
392                                 <desc>Emergency Flap Lowering.</desc>
393                                 <binding>
394                                         <command>property-assign</command>
395                                         <property>controls/flight/flaps-alternate-extension</property>
396                                         <value type="double">0</value>
397                                 </binding>
398                                 <binding>
399                                         <command>property-assign</command>
400                                         <property>controls/flight/flaps</property>
401                                         <value type="double">1</value>
402                                 </binding>
403                         </key>
404
405                         <!-- map keys for no action -->
406                         <key n="72">
407                                 <name>H</name>
408                                 <desc>Null.</desc>
409                                 <binding>
410                                         <command>property-assign</command>
411                                         <property>null</property>
412                                         <value type="double">0</value>
413                                 </binding>
414                         </key>
415                         <key n="104">
416                                 <name>h</name>
417                                 <desc>Null.</desc>
418                                 <binding>
419                                         <command>property-assign</command>
420                                         <property>null</property>
421                                         <value type="double">0</value>
422                                 </binding>
423                         </key>
424                         <key n="107">
425                                 <name>k</name>
426                                 <desc>Null.</desc>
427                                 <binding>
428                                         <command>property-assign</command>
429                                         <property>null</property>
430                                         <value type="double">0</value>
431                                 </binding>
432                         </key>
433                         <key n="108">
434                                 <name>l</name>
435                                 <desc>Null.</desc>
436                                 <binding>
437                                         <command>property-assign</command>
438                                         <property>null</property>
439                                         <value type="double">0</value>
440                                 </binding>
441                         </key>
442
443                         <!-- map keys for seat vertical adjust -->
444                         <key n="21">
445                                 <name>CTRL-U</name>
446                                 <desc>Seat Default.</desc>
447                                 <binding>
448                                         <command>property-assign</command>
449                                         <property>controls/seat/vertical-adjust</property>
450                                         <value type="double">0</value>
451                                 </binding>
452                                 <binding>
453                                         <command>property-assign</command>
454                                         <property>sim/aim/offsets/y</property>
455                                         <value type="double">0</value>
456                                 </binding>
457                                 <binding>
458                                         <condition>
459                                                 <equals>
460                                                         <property>sim/current-view/view-number</property>
461                                                         <value>0</value>
462                                                 </equals>
463                                         </condition>
464                                         <command>property-assign</command>
465                                         <property>sim/current-view/y-offset-m</property>
466                                         <value type="double">0.6579</value>
467                                 </binding>
468                         </key>
469                         <key n="85">
470                                 <name>U</name>
471                                 <desc>Seat Down.</desc>
472                                 <binding>
473                                         <command>property-adjust</command>
474                                         <property>controls/seat/vertical-adjust</property>
475                                         <step type="double">-0.01</step>
476                                         <min type="double">-0.1</min>
477                                         <max type="double">0.1</max>
478                                 </binding>
479                                 <binding>
480                                         <condition>
481                                                 <equals>
482                                                         <property>sim/current-view/view-number</property>
483                                                         <value>0</value>
484                                                 </equals>
485                                         </condition>
486                                         <command>property-adjust</command>
487                                         <property>sim/current-view/y-offset-m</property>
488                                         <step type="double">-0.01</step>
489                                         <min type="double">0.5579</min>
490                                         <max type="double">0.7579</max>
491                                 </binding>
492                         </key>
493                         <key n="117">
494                                 <name>u</name>
495                                 <desc>Seat Up.</desc>
496                                 <binding>
497                                         <command>property-adjust</command>
498                                         <property>controls/seat/vertical-adjust</property>
499                                         <step type="double">0.01</step>
500                                         <min type="double">-0.1</min>
501                                         <max type="double">0.1</max>
502                                 </binding>
503                                 <binding>
504                                         <condition>
505                                                 <equals>
506                                                         <property>sim/current-view/view-number</property>
507                                                         <value>0</value>
508                                                 </equals>
509                                         </condition>
510                                         <command>property-adjust</command>
511                                         <property>sim/current-view/y-offset-m</property>
512                                         <step type="double">0.01</step>
513                                         <min type="double">0.6576</min>
514                                         <max type="double">0.7579</max>
515                                 </binding>
516                         </key>
517
518                         <!-- map keys for flap lever -->
519                         <key n="91">
520                                 <name>[</name>
521                                 <desc>Decrease flap lever.</desc>
522                                 <binding>
523                                         <command>nasal</command>
524                                         <script>
525                                                 <!--seahawk.adjustFlaps(0);-->
526                                                 controls.flapsDown(-1)
527                                         </script>
528                                 </binding>
529                                 <mod-up>
530                                         <binding>
531                                                 <command>nasal</command>
532                                                 <script>controls.flapsDown(0)</script>
533                                         </binding>
534                                 </mod-up>
535                         </key>
536                         <key n="93">
537                                 <name>]</name>
538                                 <desc>Increase flap lever.</desc>
539                                 <binding>
540                                         <command>nasal</command>
541                                         <script>
542                                                 <!--seahawk.adjustFlaps(1);-->
543                                                 controls.flapsDown(1)
544                                         </script>
545                                 </binding>
546                                 <mod-up>
547                                         <binding>
548                                                 <command>nasal</command>
549                                                 <script>controls.flapsDown(0)</script>
550                                         </binding>
551                                 </mod-up>
552                         </key>
553                         <key n="10">
554                                 <name>Ctrl-J</name>
555                                 <desc>Jettison Inner and Outer Pylon Stores.</desc>
556                                 <!-- port inner -->
557                                 <binding>
558                                         <command>property-assign</command>
559                                         <property>controls/armament/station[0]/jettison-all</property>
560                                         <value type="bool">1</value>
561                                 </binding>
562                                 <binding>
563                                         <command>property-assign</command>
564                                         <property>yasim/weights/tank-100gal-lbs[0]</property>
565                                         <value type="double">0.0</value>
566                                 </binding>
567                                 <binding>
568                                         <command>property-assign</command>
569                                         <property>controls/armament/station[1]/jettison-all</property>
570                                         <value type="bool">1</value>
571                                 </binding>
572                                 <binding>
573                                         <command>property-assign</command>
574                                         <property>yasim/weights/tank-100gal-lbs[1]</property>
575                                         <value type="double">0.0</value>
576                                 </binding>
577                         </key>
578                 </keyboard>
579         </input>
580
581         <!-- weights -->
582         <yasim>
583                 <weights>
584                         <pilot-lb type="double">200</pilot-lb>
585                         <tank-100gal-lbs type="double">0</tank-100gal-lbs>
586                         <tank-100gal-lbs type="double">0</tank-100gal-lbs>
587                 </weights>
588         </yasim>
589
590         <nasal>
591                 <seahawk>
592                         <file>Aircraft/seahawk/Nasal/seahawk.nas</file>
593                 </seahawk>
594                 <seahawk-fuel>
595                         <module>fuel</module>
596                         <file>Aircraft/seahawk/Nasal/fuel-cocks.nas</file>
597                 </seahawk-fuel>
598                 <recoil>
599                         <file>Aircraft/seahawk/Nasal/recoil.nas</file>
600                 </recoil>
601                 <!--<rain>
602                         <file>Aircraft/seahawk/Nasal/rain.nas</file>
603                 </rain>-->
604         </nasal>
605
606         <environment>
607                 <params>
608                         <contrail-altitude>50000</contrail-altitude>
609                 </params>
610         </environment>
611
612 </PropertyList>