first commit

This commit is contained in:
Meir Michanie 2016-07-04 11:38:07 +03:00
commit c903aa556c
119 changed files with 239342 additions and 0 deletions

3
Engines/Direct.xml Normal file
View File

@ -0,0 +1,3 @@
<?xml version="1.0"?>
<direct name="Direct">
</direct>

106
Engines/Propeller.xml Normal file
View File

@ -0,0 +1,106 @@
<?xml version="1.0"?>
<!-- Generated by Aero-Matic v 1.1
Inputs:
horsepower: 900
pitch: variable
max engine rpm: 2000
prop diameter (ft): 8.8587
Outputs:
max prop rpm: 2118.03
gear ratio: 0.94
Cp0: 0.086736
Ct0: 0.202095
static thrust (lbs): 3688.16
-->
<propeller name="prop">
<ixx> 17.16 </ixx>
<diameter unit="IN"> 106.3 </diameter>
<numblades> 4 </numblades>
<gearratio> 0.94 </gearratio>
<p_factor> 8.40 </p_factor>
<minpitch> 12 </minpitch>
<maxpitch> 45 </maxpitch>
<minrpm> 1800 </minrpm>
<maxrpm> 2118 </maxrpm>
<!-- thrust coefficient as a function of advance ratio and blade angle -->
<table name="C_THRUST" type="internal">
<tableData>
-10 0 15 25 35 45 55 65 90
-0.2 -0.0986 0.0556 0.2021 0.2476 0.2728 0.2880 0.2654 0.2274 0.0000
0.0 -0.1465 0.0000 0.2021 0.2476 0.2728 0.2906 0.2716 0.2274 0.0000
0.2 -0.1643 -0.0505 0.1744 0.2425 0.2690 0.2906 0.2716 0.2274 0.0000
0.4 -0.1643 -0.1174 0.1314 0.2401 0.2639 0.2880 0.2716 0.2274 0.0000
0.6 -0.1643 -0.1643 0.0695 0.2160 0.2526 0.2805 0.2678 0.2274 0.0000
0.8 -0.1643 -0.1643 0.0038 0.1617 0.2451 0.2704 0.2678 0.2274 0.0000
1.0 -0.1643 -0.1643 -0.0657 0.0986 0.2350 0.2565 0.2654 0.2274 0.0000
1.2 -0.1643 -0.1643 -0.1352 0.0303 0.1932 0.2476 0.2654 0.2274 0.0000
1.4 -0.1643 -0.1643 -0.1643 -0.0443 0.1390 0.2437 0.2603 0.2274 0.0000
1.6 -0.1643 -0.1643 -0.1643 -0.1124 0.0758 0.2350 0.2552 0.2274 0.0000
1.8 -0.1643 -0.1643 -0.1643 -0.1643 0.0127 0.2021 0.2476 0.2274 0.0000
2.0 -0.1643 -0.1643 -0.1643 -0.1643 -0.0505 0.1578 0.2466 0.2274 0.0000
2.2 -0.1643 -0.1643 -0.1643 -0.1643 -0.1138 0.1138 0.2425 0.2274 0.0000
2.4 -0.1643 -0.1643 -0.1643 -0.1643 -0.1643 0.0606 0.1981 0.2274 0.0000
2.6 -0.1643 -0.1643 -0.1643 -0.1643 -0.1643 0.0077 0.1253 0.2021 0.0000
2.8 -0.1643 -0.1643 -0.1643 -0.1643 -0.1643 -0.0455 0.0821 0.1643 0.0000
3.0 -0.1643 -0.1643 -0.1643 -0.1643 -0.1643 -0.0986 0.0430 0.1263 0.0000
3.2 -0.1643 -0.1643 -0.1643 -0.1643 -0.1643 -0.1516 0.0038 0.0885 0.0000
3.4 -0.1643 -0.1643 -0.1643 -0.1643 -0.1643 -0.1643 -0.0354 0.0505 0.0000
3.6 -0.1643 -0.1643 -0.1643 -0.1643 -0.1643 -0.1643 -0.0746 0.0127 0.0000
3.8 -0.1643 -0.1643 -0.1643 -0.1643 -0.1643 -0.1643 -0.1138 -0.0253 0.0000
4.0 -0.1643 -0.1643 -0.1643 -0.1643 -0.1643 -0.1643 -0.1528 -0.0633 0.0000
6.0 -0.1643 -0.1643 -0.1643 -0.1643 -0.1643 -0.1643 -0.1643 -0.1643 0.0000
</tableData>
</table>
<!-- power coefficient as a function of advance ratio and blade angle -->
<table name="C_POWER" type="internal">
<tableData>
-10 0 15 25 35 45 55 65 90
-0.2 0.0145 0.0289 0.1012 0.2299 0.3964 0.5638 0.6505 0.7199 0.7199
0.0 0.0579 0.0145 0.0867 0.2142 0.3790 0.5638 0.6531 0.7199 0.7199
0.2 0.0824 0.0232 0.0839 0.1995 0.3626 0.5638 0.6531 0.7199 0.7199
0.4 0.1110 0.0506 0.0723 0.1839 0.3443 0.5638 0.6531 0.7199 0.7199
0.6 0.1362 0.0766 0.0477 0.1709 0.3227 0.5525 0.6505 0.7199 0.7199
0.8 0.1605 0.1026 0.0145 0.1448 0.3036 0.5274 0.6505 0.7199 0.7199
1.0 0.1847 0.1275 0.0145 0.1015 0.2862 0.5005 0.6479 0.7199 0.7199
1.2 0.2099 0.1019 -0.0477 0.0390 0.2533 0.4797 0.6436 0.7199 0.7199
1.4 0.2342 0.1761 -0.0720 -0.0289 0.1952 0.4727 0.6358 0.7199 0.7199
1.6 0.2585 0.2012 -0.0841 -0.0867 0.1232 0.4597 0.6219 0.6939 0.7199
1.8 0.2836 0.2255 -0.0867 -0.1448 0.0362 0.4077 0.6028 0.6791 0.7199
2.0 0.3079 0.2498 -0.1110 -0.2021 -0.0434 0.3469 0.5742 0.6653 0.7199
2.2 0.3322 0.2750 -0.1362 -0.2602 -0.1301 0.2819 0.5568 0.6358 0.7199
2.4 0.3574 0.2992 -0.1605 -0.3183 -0.2168 0.2012 0.5404 0.6219 0.7199
2.6 0.3816 0.3235 -0.1847 -0.3756 -0.2750 0.0841 0.5274 0.6002 0.7199
2.8 0.4059 0.3487 -0.2099 -0.4337 -0.3296 -0.0286 0.5161 0.5924 0.7199
3.0 0.4311 0.3730 -0.2342 -0.4918 -0.3903 -0.1301 0.4987 0.5924 0.7199
3.2 0.4554 0.3973 -0.2585 -0.5490 -0.4484 -0.2316 0.4666 0.5785 0.7199
3.4 0.4797 0.4224 -0.2836 -0.6072 -0.5057 -0.3322 0.3617 0.5638 0.7199
3.6 0.5048 0.4467 -0.3079 -0.6653 -0.5638 -0.4337 0.2541 0.5490 0.7199
3.8 0.5291 0.4710 -0.3322 -0.7199 -0.6219 -0.5352 0.1414 0.5317 0.7199
4.0 0.5534 0.4961 -0.3574 -0.7199 -0.7199 -0.6358 0.0286 0.4918 0.7199
6.0 0.7199 0.7199 -0.7199 -0.7199 -0.7199 -0.7199 -0.7199 -0.4337 0.7199
</tableData>
</table>
<!-- thrust effects of helical tip Mach -->
<table name="CT_MACH" type="internal">
<tableData>
0.85 1.0
1.05 0.8
</tableData>
</table>
<!-- power-required effects of helical tip Mach -->
<table name="CP_MACH" type="internal">
<tableData>
0.85 1.0
1.05 1.8
2.00 1.4
</tableData>
</table>
</propeller>

58
Engines/TPE331-10.xml Normal file
View File

@ -0,0 +1,58 @@
<?xml version="1.0"?>
<!--
File: TPE331-10.xml
Author: Aero-Matic v 0.82
Inputs:
name: TPE331-10
type: turboprop
power: 900.0 hp
augmented? no
injected? yes
-->
<turbine_engine name="TPE331-10">
<milthrust> 2016.0 </milthrust>
<bypassratio> 0.0 </bypassratio>
<tsfc> 0.55 </tsfc>
<bleed> 0.03 </bleed>
<idlen1> 30.0 </idlen1>
<idlen2> 60.0 </idlen2>
<maxn1> 100.0 </maxn1>
<maxn2> 100.0 </maxn2>
<augmented> 0 </augmented>
<injected> 0 </injected>
<function name="IdleThrust">
<table>
<independentVar lookup="row">velocities/mach</independentVar>
<independentVar lookup="column">atmosphere/density-altitude</independentVar>
<tableData>
-10000 0 10000 20000 30000 40000 50000
0.0 0.0430 0.0488 0.0528 0.0694 0.0899 0.1183 0.0
0.2 0.0500 0.0501 0.0335 0.0544 0.0797 0.1049 0.0
0.4 0.0040 0.0047 0.0020 0.0272 0.0595 0.0891 0.0
0.6 0.0 0.0 0.0 0.0276 0.0718 0.0430 0.0
0.8 0.0 0.0 0.0 0.0 0.0174 0.0086 0.0
1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
</tableData>
</table>
</function>
<function name="MilThrust">
<table>
<independentVar lookup="row">velocities/mach</independentVar>
<independentVar lookup="column">atmosphere/density-altitude</independentVar>
<tableData>
-10000 0 10000 20000 30000 40000 50000
0.0 1.1260 1.0000 0.7400 0.5340 0.3720 0.2410 0.0
0.2 1.1000 0.9340 0.6970 0.5060 0.3550 0.2310 0.0
0.4 1.0000 0.6410 0.6120 0.4060 0.3570 0.2330 0.0
0.6 0.4430 0.3510 0.2710 0.2020 0.1780 0.1020 0.0
0.8 0.0240 0.0200 0.0160 0.0130 0.0110 0.0100 0.0
1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
</tableData>
</table>
</function>
</turbine_engine>

244
HUD.xml Executable file
View File

@ -0,0 +1,244 @@
<?xml version="1.0"?>
<PropertyList>
<name>HUD</name>
<enable3d>false</enable3d>
<tape>
<name>Pitch</name>
<x>65</x>
<y>-30</y>
<width>25</width>
<height>40</height>
<input>
<property>/orientation/pitch-deg</property>
<factor>1.0</factor>
</input>
<label-gap-width>0</label-gap-width>
<major-divisions>10</major-divisions>
<minor-divisions>5</minor-divisions>
<display-span>50</display-span>
<format>%.0f</format>
<option>right</option>
<option>vertical</option>
<tick-bottom>false</tick-bottom>
<tick-top>false</tick-top>
<tick-right>false</tick-right>
<tick-left>false</tick-left>
<cap-bottom>false</cap-bottom>
<cap-top>false</cap-top>
<cap-right>false</cap-right>
<cap-left>false</cap-left>
<marker-offset>0</marker-offset>
<enable-pointer>true</enable-pointer>
<pointer-type>fixed</pointer-type>
<tick-type>line</tick-type>
<tick-length>variable</tick-length>
</tape>
<tape>
<name>Compass</name>
<x>-45</x>
<y>45</y>
<width>100</width>
<height>25</height>
<input>
<property>/orientation/heading-deg</property>
<factor>0.1</factor>
</input>
<label-gap-width>0</label-gap-width>
<major-divisions>1</major-divisions>
<minor-divisions>0.5</minor-divisions>
<display-span>6</display-span>
<format>%.0f</format>
<option>top</option>
<option>horizontal</option>
<tick-bottom>false</tick-bottom>
<tick-top>false</tick-top>
<tick-right>false</tick-right>
<tick-left>false</tick-left>
<cap-bottom>true</cap-bottom>
<cap-top>false</cap-top>
<cap-right>false</cap-right>
<cap-left>false</cap-left>
<marker-offset>0</marker-offset>
<enable-pointer>true</enable-pointer>
<pointer-type>fixed</pointer-type>
<tick-type>line</tick-type>
<tick-length>variable</tick-length>
</tape>
<tape>
<name>IASmarkers</name>
<x>-65</x>
<y>-60</y>
<width>0</width>
<height>100</height>
<input>
<property>/velocities/airspeed-kt</property>
<factor>0.01</factor>
<max>25</max>
<min>0</min>
</input>
<label-gap-width>0</label-gap-width>
<format>%.0f</format>
<major-divisions>5</major-divisions>
<minor-divisions>1</minor-divisions>
<display-span>25</display-span>
<option>left</option>
<option>vertical</option>
<tick-bottom>false</tick-bottom>
<tick-top>false</tick-top>
<tick-right>false</tick-right>
<tick-left>false</tick-left>
<cap-bottom>false</cap-bottom>
<cap-top>false</cap-top>
<cap-right>false</cap-right>
<cap-left>false</cap-left>
<marker-offset>0</marker-offset>
<enable-pointer>true</enable-pointer>
<pointer-type>moving</pointer-type>
</tape>
<gauge>
<name>IAS</name>
<x>-75</x>
<y>-60</y>
<width>20</width>
<height>100</height>
<option>notext</option>
<input>
<property>/velocities/airspeed-kt</property>
<factor>0.01852</factor>
<max>25</max>
<min>0</min>
</input>
<label-gap-width>10</label-gap-width>
<major-divisions>5</major-divisions>
<minor-divisions>1</minor-divisions>
<display-span>25</display-span>
<option>left</option>
<option>vertical</option>
<tick-bottom>true</tick-bottom>
<tick-top>true</tick-top>
<tick-right>false</tick-right>
<tick-left>false</tick-left>
<cap-bottom>false</cap-bottom>
<cap-top>false</cap-top>
<cap-right>true</cap-right>
<cap-left>false</cap-left>
<marker-offset>0</marker-offset>
<enable-pointer>true</enable-pointer>
<pointer-type>moving</pointer-type>
</gauge>
<ladder>
<name>Pitch Ladder</name>
<type>pitch</type>
<!-- <type>climb-dive</type> -->
<x>5</x>
<y>5</y>
<width>0</width>
<height>0</height>
<roll-input>
<property>/orientation/roll-deg</property>
</roll-input>
<pitch-input>
<property>/orientation/pitch-deg</property>
</pitch-input>
<compression-factor>11</compression-factor>
<display-span>0.0</display-span>
<divisions>360.0</divisions>
<screen-hole>50</screen-hole>
<zero-bar-overlength>0</zero-bar-overlength>
<tick-length>0</tick-length>
<enable-dive-bar-angle>true</enable-dive-bar-angle>
<lbl-pos>0</lbl-pos>
<glide-slope>0.0</glide-slope>
<enable-dynamic-origin>true</enable-dynamic-origin>
<enable-zenith>true</enable-zenith>
<enable-nadir>true</enable-nadir>
<enable-fuselage-ref-line>false</enable-fuselage-ref-line>
<enable-target-spot>false</enable-target-spot>
<enable-target-markers>true</enable-target-markers>
<enable-velocity-vector>false</enable-velocity-vector>
<enable-drift-marker>false</enable-drift-marker>
<enable-alpha-bracket>false</enable-alpha-bracket>
<enable-energy-marker>false</enable-energy-marker>
<enable-climb-dive-marker>false</enable-climb-dive-marker>
<enable-glide-slope-marker>false</enable-glide-slope-marker>
<enable-energy-worm>false</enable-energy-worm>
<enable-waypoint-marker>false</enable-waypoint-marker>
</ladder>
<label>
<name>IAS</name>
<x>-55</x>
<y>50</y>
<width>1</width>
<height>1</height>
<input>
<property>/velocities/airspeed-kt</property>
<factor>1.852</factor>
</input>
<format>%4.0f</format>
<halign>right</halign>
</label>
<label>
<name>Altitude</name>
<x>85</x>
<y>50</y>
<width>1</width>
<height>1</height>
<input>
<property>/position/altitude-ft</property>
<factor>0.3048</factor>
</input>
<format>%5.0f</format>
<halign>right</halign>
</label>
<label>
<name>Acceleration</name>
<x>75</x>
<y>-55</y>
<width>1</width>
<height>1</height>
<input>
<property>/accelerations/pilot-gdamped</property>
</input>
<format>%2.1f</format>
<halign>right</halign>
</label>
<label>
<name>Mach</name>
<x>-30</x>
<y>-55</y>
<width>1</width>
<height>1</height>
<input>
<property>/velocities/mach</property>
</input>
<format>%1.2f</format>
<halign>right</halign>
</label>
<aiming-reticle>
<x>5</x>
<y>0</y>
<width>10</width> <!-- defines the diameter of the constant/inner circle -->
<height>10</height>
<!-- <active-condition> -->
<!-- <property>/aim/active</property> -->
<!-- </active-condition> -->
<!-- <diameter-input> -->
<!-- defines the diameter of the adjustable/outer circle -->
<!-- <property>2</property> -->
<!-- </diameter-input> -->
</aiming-reticle>
</PropertyList>

339
License Normal file
View File

@ -0,0 +1,339 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.

488
MQ-9-JSBSim-set.xml Executable file
View File

@ -0,0 +1,488 @@
<?xml version="1.0"?>
<PropertyList include="Aircraft/Generic/Human/Include/walker-include.xml">
<sim>
<description>General Atomics MQ-9 Reaper bombable</description>
<aircraft-version>1.2</aircraft-version>
<author>Petar Jedvaj</author>
<status>Alpha</status>
<rating>
<FDM type="int">1</FDM>
<systems type="int">1</systems>
<cockpit type="int">1</cockpit>
<model type="int">1</model>
</rating>
<flight-model>jsb</flight-model>
<aero>MQ-9-JSBSim</aero>
<startup>
<splash-texture>Aircraft/MQ-9/Splash.png</splash-texture>
</startup>
<model>
<path>Aircraft/MQ-9/Models/MQ-9.xml</path>
<livery>
<file type="string"/>
</livery>
<turret n="0">
<heading>0</heading>
<pitch>10</pitch>
</turret>
<walker>
<gender>1</gender>
<altitude-ft>-5.0</altitude-ft>
</walker>
<map>
<default_exit>
<x-offset-m type="float">-0.35</x-offset-m>
<y-offset-m type="float">-0.84</y-offset-m>
</default_exit>
</map>
</model>
<submodels>
<serviceable type="bool">1</serviceable>
<path>Aircraft/MQ-9/Models/Submodels.xml</path>
</submodels>
<sound>
<path>Aircraft/MQ-9/Sounds/Sounds.xml</path>
</sound>
<systems>
<electrical>
<path>Aircraft/Generic/generic-electrical.xml</path>
</electrical>
</systems>
<mp-systems>
<radar-enabled type="bool">true</radar-enabled>
<ecm-rwr-enabled type="bool">true</ecm-rwr-enabled>
<combat-enabled type="bool">true</combat-enabled>
</mp-systems>
<instrumentation>
<radar-altimeter>
<limit-bug type="double">250</limit-bug>
</radar-altimeter>
<warnings>
<master-caution type="bool">0</master-caution>
</warnings>
</instrumentation>
<!-- HUD -->
<hud>
<path n="1">Aircraft/MQ-9/HUD.xml</path>
<visibility n="1">true</visibility>
<palette>
<color n="0">
<alpha type="float">0.85</alpha>
<antialiased type="bool">true</antialiased>
<brightness type="float">0.85</brightness>
<transparent type="bool">true</transparent>
<red type="float">0.38</red>
<green type="float">1.0</green>
<blue type="float">0.22</blue>
</color>
<color n="1">
<alpha type="float">0.85</alpha>
<antialiased type="bool">true</antialiased>
<brightness type="float">0.85</brightness>
<transparent type="bool">true</transparent>
<red type="float">1.0</red>
<green type="float">0.2</green>
<blue type="float">0.0</blue>
</color>
</palette>
</hud>
<!-- View -->
<view n="100">
<name>Sensor View</name>
<type>lookfrom</type>
<internal archive="y">true</internal>
<config>
<from-model type="bool">true</from-model>
<from-model-idx type="int">0</from-model-idx>
<ground-level-nearplane-m type="double">0.01f</ground-level-nearplane-m>
<pitch-offset-deg>-28</pitch-offset-deg>
<x-offset-m archive="y"> 0.0000 </x-offset-m>
<y-offset-m archive="y"> -0.2792 </y-offset-m>
<z-offset-m archive="y"> -4.3564 </z-offset-m>
<default-field-of-view-deg> 70 </default-field-of-view-deg>
<limits>
<left>
<heading-max-deg>-179</heading-max-deg>
<x-offset-threshold-deg>0</x-offset-threshold-deg>
<x-offset-max-m>0</x-offset-max-m>
</left>
<right>
<heading-max-deg>179</heading-max-deg>
<x-offset-threshold-deg>0</x-offset-threshold-deg>
<x-offset-max-m>0</x-offset-max-m>
</right>
<enabled>1</enabled>
</limits>
</config>
</view>
<!-- Menu -->
<menubar>
<default>
<menu n="100">
<label>MQ-9</label>
<enabled type="bool">true</enabled>
<item>
<label>Autostart</label>
<binding>
<command>property-toggle</command>
<property>controls/engines/start1</property>
</binding>
<binding>
<command>property-toggle</command>
<property>controls/engines/run1</property>
</binding>
<binding>
<command>property-toggle</command>
<property>controls/engines/abort1</property>
</binding>
<mod-up>
<binding>
<command>null</command>
</binding>
</mod-up>
</item>
<item>
<label>Select Livery</label>
<binding>
<command>nasal</command>
<script>aircraft.livery.dialog.toggle()</script>
</binding>
</item>
</menu>
</default>
</menubar>
<!-- Help -->
<help>
<title>General Atomics MQ-9 Reaper</title>
<key>
<name>1/2/3/4/5/6</name>
<desc>Select station</desc>
</key>
<key>
<name>d</name>
<desc>Deselect all stations</desc>
</key>
<key>
<name>f</name>
<desc>Release selected station</desc>
</key>
<line>MQ-9 > Autostart</line>
<line>MQ-9 > Select Livery</line>
<line>Move sensors with RMB in Sensor View</line>
<line>HUD will follow view</line>
<line>Parking brake is on</line>
</help>
</sim>
<!-- Armament -->
<fdm>
<jsbsim>
<systems>
<armament>
<station1>
<selected type="double">0</selected>
</station1>
<station2>
<selected type="double">0</selected>
</station2>
<station3>
<selected type="double">0</selected>
</station3>
<station4>
<selected type="double">0</selected>
</station4>
<station5>
<selected type="double">0</selected>
</station5>
<station6>
<selected type="double">0</selected>
</station6>
</armament>
</systems>
</jsbsim>
</fdm>
<!-- Keyboard -->
<input>
<keyboard>
<key n="49">
<name>1</name>
<desc>Station 1</desc>
<binding>
<command>property-assign</command>
<property>fdm/jsbsim/systems/armament/station1/selected</property>
<value>1</value>
</binding>
</key>
<key n="50">
<name>2</name>
<desc>Station 2</desc>
<binding>
<command>property-assign</command>
<property>fdm/jsbsim/systems/armament/station2/selected</property>
<value>1</value>
</binding>
</key>
<key n="51">
<name>3</name>
<desc>Station 3</desc>
<binding>
<command>property-assign</command>
<property>fdm/jsbsim/systems/armament/station3/selected</property>
<value>1</value>
</binding>
</key>
<key n="52">
<name>4</name>
<desc>Station 4</desc>
<binding>
<command>property-assign</command>
<property>fdm/jsbsim/systems/armament/station4/selected</property>
<value>1</value>
</binding>
</key>
<key n="53">
<name>5</name>
<desc>Station 5</desc>
<binding>
<command>property-assign</command>
<property>fdm/jsbsim/systems/armament/station5/selected</property>
<value>1</value>
</binding>
</key>
<key n="54">
<name>6</name>
<desc>Station 6</desc>
<binding>
<command>property-assign</command>
<property>fdm/jsbsim/systems/armament/station6/selected</property>
<value>1</value>
</binding>
</key>
<key n="100">
<name>d</name>
<desc>Deselect all stations</desc>
<binding>
<command>property-assign</command>
<property>fdm/jsbsim/systems/armament/station1/selected</property>
<value type="int">0</value>
</binding>
<binding>
<command>property-assign</command>
<property>fdm/jsbsim/systems/armament/station2/selected</property>
<value type="int">0</value>
</binding>
<binding>
<command>property-assign</command>
<property>fdm/jsbsim/systems/armament/station3/selected</property>
<value type="int">0</value>
</binding>
</key>
<key n="102">
<name>f</name>
<desc>Release selected store</desc>
<binding>
<command>property-assign</command>
<property>fdm/jsbsim/systems/armament/release</property>
<value>1</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>fdm/jsbsim/systems/armament/release</property>
<value>0</value>
</binding>
</mod-up>
</key>
</keyboard>
</input>
<!-- Engine -->
<controls>
<engines>
<run1 type="bool">true</run1>
<start1 type="bool">false</start1>
<abort1 type="bool">false</abort1>
</engines>
<gear>
<brake-parking type="double">1</brake-parking>
</gear>
</controls>
<!-- Systems -->
<systems>
<electrical>
<outputs>
<comm n="0" type="float">28</comm>
<comm n="1" type="float">28</comm>
</outputs>
</electrical>
</systems>
<!-- Instrumentation -->
<instrumentation>
<enav>
<selected type="int">3</selected>
</enav>
<radar>
<range type="int" archive="y">20</range>
<range-factor type="double" archive="n">0.001888</range-factor>
<minimized type="bool" archive="y">false</minimized>
<selected type="int">3</selected>
<enabled type="bool">true</enabled>
<az-field type="double">120</az-field>
<range type="double">150</range>
<range-selected type="double">50</range-selected>
<radar2-range type="double">150</radar2-range>
<display-rdr type="bool">true</display-rdr>
<radar-standby type="int">3</radar-standby>
<mode>
<rws type="bool">true</rws>
<tws-auto type="bool">false</tws-auto>
</mode>
</radar>
<radar2>
<sweep-width-m type="double">0.0844</sweep-width-m>
<range-width-m type="double">0.0846</range-width-m>
<radius-ppi-display-m type="double">0.0846</radius-ppi-display-m>
<hud-eye-dist-m type="double">0.766</hud-eye-dist-m>
<hud-radius-m type="double">0.071</hud-radius-m>
<hud-vertical-offset-m type="double">-0.025</hud-vertical-offset-m>
</radar2>
<rwr>
<display-lighting-intens type="double">0.4</display-lighting-intens>
<symbology-lighting-intens type="double">1</symbology-lighting-intens>
</rwr>
</instrumentation>
<!-- Enviroment -->
<environment>
<turbulence>
<use-cloud-turbulence>true</use-cloud-turbulence>
</turbulence>
</environment>
<gear>
<gear n="0">
<tyre-smoke type="int">0</tyre-smoke>
<sprayspeed-ms type="double">0</sprayspeed-ms>
<spray-density type="double">0</spray-density>
<caster-angle-deg-damped type="double">0</caster-angle-deg-damped>
</gear>
<gear n="1">
<tyre-smoke type="int">0</tyre-smoke>
<sprayspeed-ms type="double">0</sprayspeed-ms>
<spray-density type="double">0</spray-density>
</gear>
<gear n="2">
<tyre-smoke type="int">0</tyre-smoke>
<sprayspeed-ms type="double">0</sprayspeed-ms>
<spray-density type="double">0</spray-density>
</gear>
</gear>
<!-- Nasal -->
<nasal>
<Liveries>
<file>Aircraft/MQ-9/Nasal/Liveries.nas</file>
</Liveries>
<Engine>
<file>Aircraft/MQ-9/Nasal/Engine.nas</file>
<module>MQ-9</module>
</Engine>
<Lights>
<file>Aircraft/MQ-9/Nasal/Lights.nas</file>
</Lights>
<HUD>
<file>Aircraft/MQ-9/Nasal/HUD.nas</file>
</HUD>
<Tyresmoke>
<file>Aircraft/MQ-9/Nasal/Tyresmoke.nas</file>
</Tyresmoke>
<Crash>
<file>Aircraft/MQ-9/Nasal/Crash.nas</file>
</Crash>
<Turret>
<file>Aircraft/MQ-9/Nasal/Turret.nas</file>
</Turret>
<rwr>
<file>Aircraft/Instruments-3d/rwr/rwr.nas</file>
</rwr>
<radar2>
<file>Aircraft/Instruments-3d/radar2/radar2.nas</file>
</radar2>
<Radar>
<file>Aircraft/MQ-9/Nasal/Radar.nas</file>
</Radar>
<ENAV>
<file>Aircraft/MQ-9/Nasal/ENAV.nas</file>
</ENAV>
</nasal>
</PropertyList>

843
MQ-9-JSBSim.xml Normal file
View File

@ -0,0 +1,843 @@
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="http://jsbsim.sourceforge.net/JSBSim.xsl"?>
<fdm_config name="MQ-9 Reaper" version="2.0" release="ALPHA"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd">
<fileheader>
<author> Petar Jedvaj </author>
<filecreationdate>2016-06-29</filecreationdate>
<version>$Revision: 1.15 $</version>
<description> General Atomics MQ-9 Reaper. </description>
</fileheader>
<!--
File: MQ-9 Reaper.xml
Inputs:
name: MQ-9 Reaper
type: WWII fighter, subsonic sport, aerobatic
max weight: 10495.8 lb
wing span: 65.62 ft
length: 36.091 ft
wing area: 257.2825679 sq-ft
gear type: tricycle
retractable?: yes
# engines: 1
engine type: turboprop
engine layout: aft fuselage
yaw damper? yes
Outputs:
wing loading: 40.79 lb/sq-ft
payload: 4313.6 lbs
CL-alpha: 4.5 per radian
CL-0: 0.17
CL-max: 1.2
CD-0: 0.02
K: 0.06
-->
<metrics>
<wingarea unit="FT2"> 257.28 </wingarea>
<wingspan unit="FT" > 65.62 </wingspan>
<wing_incidence> 2.00 </wing_incidence>
<chord unit="FT" > 3.92 </chord>
<htailarea unit="FT2"> 32.29 </htailarea>
<htailarm unit="FT" > 21.65 </htailarm>
<vtailarea unit="FT2"> 10.76 </vtailarea>
<vtailarm unit="FT" > 21.65 </vtailarm>
<location name="AERORP" unit="IN">
<x> 173.24 </x>
<y> 0.00 </y>
<z> 0.00 </z>
</location>
<location name="EYEPOINT" unit="IN">
<x> 121.27 </x>
<y> 0.00 </y>
<z> 40.00 </z>
</location>
<location name="VRP" unit="IN">
<x>0</x>
<y>0</y>
<z>0</z>
</location>
</metrics>
<mass_balance>
<ixx unit="SLUG*FT2"> 11946 </ixx>
<iyy unit="SLUG*FT2"> 6424 </iyy>
<izz unit="SLUG*FT2"> 17362 </izz>
<emptywt unit="LBS" > 4902 </emptywt>
<location name="CG" unit="IN">
<x> 173.24 </x>
<y> 0.00 </y>
<z> -10.83 </z>
</location>
<pointmass name="Payload">
<description> 4314 LBS + full (1280 LBS) fuel should bring model up to entered max weight</description>
<weight unit="LBS"> 2156.8 </weight>
<location name="POINTMASS" unit="IN">
<x> 173.24 </x>
<y> 0.00 </y>
<z> -10.83 </z>
</location>
</pointmass>
<pointmass name="station1">
<weight unit="LBS"> 100 </weight>
<location name="POINTMASS" unit="IN">
<x> 173 </x>
<y> -89 </y>
<z> -3 </z>
</location>
</pointmass>
<pointmass name="station2">
<weight unit="LBS"> 100 </weight>
<location name="POINTMASS" unit="IN">
<x> 173 </x>
<y> -74 </y>
<z> -3 </z>
</location>
</pointmass>
<pointmass name="station3">
<weight unit="LBS"> 510 </weight>
<location name="POINTMASS" unit="IN">
<x> 173 </x>
<y> -48 </y>
<z> -3 </z>
</location>
</pointmass>
<pointmass name="station4">
<weight unit="LBS"> 510 </weight>
<location name="POINTMASS" unit="IN">
<x> 173 </x>
<y> 48 </y>
<z> -3 </z>
</location>
</pointmass>
<pointmass name="station5">
<weight unit="LBS"> 100 </weight>
<location name="POINTMASS" unit="IN">
<x> 173 </x>
<y> 74 </y>
<z> -3 </z>
</location>
</pointmass>
<pointmass name="station6">
<weight unit="LBS"> 100 </weight>
<location name="POINTMASS" unit="IN">
<x> 173 </x>
<y> 89 </y>
<z> -3 </z>
</location>
</pointmass>
</mass_balance>
<ground_reactions>
<contact type="BOGEY" name="NOSE">
<location unit="IN">
<x> 56.30 </x>
<y> 0.00 </y>
<z> -51.97 </z>
</location>
<static_friction> 0.80 </static_friction>
<dynamic_friction> 0.50 </dynamic_friction>
<rolling_friction> 0.02 </rolling_friction>
<spring_coeff unit="LBS/FT"> 3148.74 </spring_coeff>
<damping_coeff unit="LBS/FT/SEC"> 5247.90 </damping_coeff>
<max_steer unit="DEG"> 5.00 </max_steer>
<brake_group>NONE</brake_group>
<retractable>1</retractable>
</contact>
<contact type="BOGEY" name="LEFT_MAIN">
<location unit="IN">
<x> 180.17 </x>
<y> -118.12 </y>
<z> -51.97 </z>
</location>
<static_friction> 0.80 </static_friction>
<dynamic_friction> 0.50 </dynamic_friction>
<rolling_friction> 0.02 </rolling_friction>
<spring_coeff unit="LBS/FT"> 10495.80 </spring_coeff>
<damping_coeff unit="LBS/FT/SEC"> 5247.90 </damping_coeff>
<max_steer unit="DEG">0</max_steer>
<brake_group>LEFT</brake_group>
<retractable>1</retractable>
</contact>
<contact type="BOGEY" name="RIGHT_MAIN">
<location unit="IN">
<x> 180.17 </x>
<y> 118.12 </y>
<z> -51.97 </z>
</location>
<static_friction> 0.80 </static_friction>
<dynamic_friction> 0.50 </dynamic_friction>
<rolling_friction> 0.02 </rolling_friction>
<spring_coeff unit="LBS/FT"> 10495.80 </spring_coeff>
<damping_coeff unit="LBS/FT/SEC"> 5247.90 </damping_coeff>
<max_steer unit="DEG">0</max_steer>
<brake_group>RIGHT</brake_group>
<retractable>1</retractable>
</contact>
<contact type="STRUCTURE" name="LEFT_WING">
<location unit="IN">
<x> 173.24 </x>
<y> -32.81 </y>
<z> -10.83 </z>
</location>
<static_friction> 1.00 </static_friction>
<dynamic_friction> 1.00 </dynamic_friction>
<spring_coeff unit="LBS/FT"> 10495.80 </spring_coeff>
<damping_coeff unit="LBS/FT/SEC"> 10495.80 </damping_coeff>
</contact>
<contact type="STRUCTURE" name="RIGHT_WING">
<location unit="IN">
<x> 173.24 </x>
<y> 32.81 </y>
<z> -10.83 </z>
</location>
<static_friction> 1.00 </static_friction>
<dynamic_friction> 1.00 </dynamic_friction>
<spring_coeff unit="LBS/FT"> 10495.80 </spring_coeff>
<damping_coeff unit="LBS/FT/SEC"> 10495.80 </damping_coeff>
</contact>
</ground_reactions>
<propulsion>
<engine file="TPE331-10">
<location unit="IN">
<x> 373.09 </x>
<y> 0.00 </y>
<z> 0.00 </z>
</location>
<orient unit="DEG">
<pitch> 0.00 </pitch>
<roll> 0.00 </roll>
<yaw> 0.00 </yaw>
</orient>
<feed>0</feed>
<thruster file="Direct">
<location unit="IN">
<x> 373.09 </x>
<y> 0.00 </y>
<z> 0.00 </z>
</location>
<orient unit="DEG">
<pitch> 0.00 </pitch>
<roll> 0.00 </roll>
<yaw> 0.00 </yaw>
</orient>
</thruster>
</engine>
<tank type="FUEL" number="0">
<location unit="IN">
<x> 173.24 </x>
<y> 0.00 </y>
<z> -10.83 </z>
</location>
<capacity unit="LBS"> 2000.00 </capacity>
<contents unit="LBS"> 1000.00 </contents>
</tank>
<tank type="FUEL" number="1">
<location unit="IN">
<x> 173.24 </x>
<y> 0.00 </y>
<z> -10.83 </z>
</location>
<capacity unit="LBS"> 2000.00 </capacity>
<contents unit="LBS"> 1000.00 </contents>
</tank>
</propulsion>
<system file="Armament"/>
<system file="Particles"/>
<flight_control name="FCS: MQ-9 Reaper">
<channel name="Pitch">
<summer name="Pitch Trim Sum">
<input>fcs/elevator-cmd-norm</input>
<input>fcs/pitch-trim-cmd-norm</input>
<clipto>
<min> -1 </min>
<max> 1 </max>
</clipto>
</summer>
<aerosurface_scale name="Elevator Control">
<input>fcs/pitch-trim-sum</input>
<range>
<min> -0.35 </min>
<max> 0.35 </max>
</range>
<output>fcs/elevator-pos-rad</output>
</aerosurface_scale>
<aerosurface_scale name="elevator normalization">
<input>fcs/elevator-pos-rad</input>
<domain>
<min> -0.35 </min>
<max> 0.35 </max>
</domain>
<range>
<min> -1 </min>
<max> 1 </max>
</range>
<output>fcs/elevator-pos-norm</output>
</aerosurface_scale>
</channel>
<channel name="Roll">
<summer name="Roll Trim Sum">
<input>fcs/aileron-cmd-norm</input>
<input>fcs/roll-trim-cmd-norm</input>
<clipto>
<min> -1 </min>
<max> 1 </max>
</clipto>
</summer>
<aerosurface_scale name="Left Aileron Control">
<input>fcs/roll-trim-sum</input>
<range>
<min> -0.35 </min>
<max> 0.35 </max>
</range>
<output>fcs/left-aileron-pos-rad</output>
</aerosurface_scale>
<aerosurface_scale name="Right Aileron Control">
<input>fcs/roll-trim-sum</input>
<range>
<min> -0.35 </min>
<max> 0.35 </max>
</range>
<output>fcs/right-aileron-pos-rad</output>
</aerosurface_scale>
<aerosurface_scale name="left aileron normalization">
<input>fcs/left-aileron-pos-rad</input>
<domain>
<min> -0.35 </min>
<max> 0.35 </max>
</domain>
<range>
<min> -1 </min>
<max> 1 </max>
</range>
<output>fcs/left-aileron-pos-norm</output>
</aerosurface_scale>
<aerosurface_scale name="right aileron normalization">
<input>fcs/right-aileron-pos-rad</input>
<domain>
<min> -0.35 </min>
<max> 0.35 </max>
</domain>
<range>
<min> -1 </min>
<max> 1 </max>
</range>
<output>fcs/right-aileron-pos-norm</output>
</aerosurface_scale>
</channel>
<property value="1">fcs/yaw-damper-enable</property>
<channel name="Yaw">
<summer name="Rudder Command Sum">
<input>fcs/rudder-cmd-norm</input>
<input>fcs/yaw-trim-cmd-norm</input>
<clipto>
<min> -1 </min>
<max> 1 </max>
</clipto>
</summer>
<scheduled_gain name="Yaw Damper Rate">
<input>velocities/r-aero-rad_sec</input>
<table>
<independentVar lookup="row">velocities/ve-kts</independentVar>
<tableData>
30 0.00
60 2.00
</tableData>
</table>
<gain>fcs/yaw-damper-enable</gain>
</scheduled_gain>
<summer name="Rudder Sum">
<input>fcs/rudder-command-sum</input>
<input>fcs/yaw-damper-rate</input>
<clipto>
<min> -1.1 </min>
<max> 1.1 </max>
</clipto>
</summer>
<aerosurface_scale name="Rudder Control">
<input>fcs/rudder-sum</input>
<domain>
<min> -1.1 </min>
<max> 1.1 </max>
</domain>
<range>
<min> -0.35 </min>
<max> 0.35 </max>
</range>
<output>fcs/rudder-pos-rad</output>
</aerosurface_scale>
<aerosurface_scale name="rudder normalization">
<input>fcs/rudder-pos-rad</input>
<domain>
<min> -0.35 </min>
<max> 0.35 </max>
</domain>
<range>
<min> -1 </min>
<max> 1 </max>
</range>
<output>fcs/rudder-pos-norm</output>
</aerosurface_scale>
</channel>
<channel name="Flaps">
<kinematic name="Flaps Control">
<input>fcs/flap-cmd-norm</input>
<traverse>
<setting>
<position> 0 </position>
<time> 0 </time>
</setting>
<setting>
<position> 15 </position>
<time> 4 </time>
</setting>
<setting>
<position> 30 </position>
<time> 3 </time>
</setting>
</traverse>
<output>fcs/flap-pos-deg</output>
</kinematic>
<aerosurface_scale name="flap normalization">
<input>fcs/flap-pos-deg</input>
<domain>
<min> 0 </min>
<max> 30 </max>
</domain>
<range>
<min> 0 </min>
<max> 1 </max>
</range>
<output>fcs/flap-pos-norm</output>
</aerosurface_scale>
</channel>
<channel name="Landing Gear">
<kinematic name="Gear Control">
<input>gear/gear-cmd-norm</input>
<traverse>
<setting>
<position> 0 </position>
<time> 0 </time>
</setting>
<setting>
<position> 1 </position>
<time> 5 </time>
</setting>
</traverse>
<output>gear/gear-pos-norm</output>
</kinematic>
</channel>
<channel name="Speedbrake">
<kinematic name="Speedbrake Control">
<input>fcs/speedbrake-cmd-norm</input>
<traverse>
<setting>
<position> 0 </position>
<time> 0 </time>
</setting>
<setting>
<position> 1 </position>
<time> 1 </time>
</setting>
</traverse>
<output>fcs/speedbrake-pos-norm</output>
</kinematic>
</channel>
</flight_control>
<aerodynamics>
<axis name="LIFT">
<function name="aero/force/Lift_alpha">
<description>Lift due to alpha</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<table>
<independentVar lookup="row">aero/alpha-rad</independentVar>
<tableData>
-0.20 -0.730
0.00 0.170
0.23 1.200
0.60 0.582
</tableData>
</table>
</product>
</function>
<function name="aero/force/Lift_flap">
<description>Delta Lift due to flaps</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>fcs/flap-pos-deg</property>
<value> 0.01000 </value>
</product>
</function>
<function name="aero/force/Lift_speedbrake">
<description>Delta Lift due to speedbrake</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>fcs/speedbrake-pos-norm</property>
<value>0</value>
</product>
</function>
<function name="aero/force/Lift_elevator">
<description>Lift due to Elevator Deflection</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>fcs/elevator-pos-rad</property>
<value>0.2</value>
</product>
</function>
</axis>
<axis name="DRAG">
<function name="aero/force/Drag_basic">
<description>Drag at zero lift</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<table>
<independentVar lookup="row">aero/alpha-rad</independentVar>
<tableData>
-1.57 1.500
-0.26 0.026
0.00 0.020
0.26 0.026
1.57 1.500
</tableData>
</table>
</product>
</function>
<function name="aero/force/Drag_induced">
<description>Induced drag</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>aero/cl-squared</property>
<value>0.06</value>
</product>
</function>
<function name="aero/force/Drag_mach">
<description>Drag due to mach</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<table>
<independentVar lookup="row">velocities/mach</independentVar>
<tableData>
0.00 0.000
0.75 0.000
1.10 0.023
1.80 0.015
</tableData>
</table>
</product>
</function>
<function name="aero/force/Drag_flap">
<description>Drag due to flaps</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>fcs/flap-pos-deg</property>
<value> 0.00133 </value>
</product>
</function>
<function name="aero/force/Drag_gear">
<description>Drag due to gear</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>gear/gear-pos-norm</property>
<value>0.03</value>
</product>
</function>
<function name="aero/force/Drag_speedbrake">
<description>Drag due to speedbrakes</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>fcs/speedbrake-pos-norm</property>
<value>0.02</value>
</product>
</function>
<function name="aero/force/Drag_beta">
<description>Drag due to sideslip</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<table>
<independentVar lookup="row">aero/beta-rad</independentVar>
<tableData>
-1.57 1.230
-0.26 0.050
0.00 0.000
0.26 0.050
1.57 1.230
</tableData>
</table>
</product>
</function>
<function name="aero/force/Drag_elevator">
<description>Drag due to Elevator Deflection</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<abs><property>fcs/elevator-pos-norm</property></abs>
<value>0.04</value>
</product>
</function>
</axis>
<axis name="SIDE">
<function name="aero/force/Side_beta">
<description>Side force due to beta</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>aero/beta-rad</property>
<value>-1</value>
</product>
</function>
</axis>
<axis name="ROLL">
<function name="aero/moment/Roll_beta">
<description>Roll moment due to beta</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/bw-ft</property>
<property>aero/beta-rad</property>
<value>-0.1</value>
</product>
</function>
<function name="aero/moment/Roll_damp">
<description>Roll moment due to roll rate</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/bw-ft</property>
<property>aero/bi2vel</property>
<property>velocities/p-aero-rad_sec</property>
<value>-0.4</value>
</product>
</function>
<function name="aero/moment/Roll_yaw">
<description>Roll moment due to yaw rate</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/bw-ft</property>
<property>aero/bi2vel</property>
<property>velocities/r-aero-rad_sec</property>
<value>0.15</value>
</product>
</function>
<function name="aero/moment/Roll_aileron">
<description>Roll moment due to aileron</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/bw-ft</property>
<property>fcs/left-aileron-pos-rad</property>
<value>0.18</value>
</product>
</function>
<function name="aero/moment/Roll_rudder">
<description>Roll moment due to rudder</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/bw-ft</property>
<property>fcs/rudder-pos-rad</property>
<value>0.01</value>
</product>
</function>
</axis>
<axis name="PITCH">
<function name="aero/moment/Pitch_alpha">
<description>Pitch moment due to alpha</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/cbarw-ft</property>
<property>aero/alpha-rad</property>
<value>-0.5</value>
</product>
</function>
<function name="aero/moment/Pitch_elevator">
<description>Pitch moment due to elevator</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/cbarw-ft</property>
<property>fcs/elevator-pos-rad</property>
<table>
<independentVar lookup="row">velocities/mach</independentVar>
<tableData>
0.0 -1.000
2.0 -0.250
</tableData>
</table>
</product>
</function>
<function name="aero/moment/Pitch_damp">
<description>Pitch moment due to pitch rate</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/cbarw-ft</property>
<property>aero/ci2vel</property>
<property>velocities/q-aero-rad_sec</property>
<value>-15</value>
</product>
</function>
<function name="aero/moment/Pitch_alphadot">
<description>Pitch moment due to alpha rate</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/cbarw-ft</property>
<property>aero/ci2vel</property>
<property>aero/alphadot-rad_sec</property>
<value>-7</value>
</product>
</function>
</axis>
<axis name="YAW">
<function name="aero/moment/Yaw_beta">
<description>Yaw moment due to beta</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/bw-ft</property>
<property>aero/beta-rad</property>
<value>0.12</value>
</product>
</function>
<function name="aero/moment/Yaw_damp">
<description>Yaw moment due to yaw rate</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/bw-ft</property>
<property>aero/bi2vel</property>
<property>velocities/r-aero-rad_sec</property>
<value>-0.15</value>
</product>
</function>
<function name="aero/moment/Yaw_rudder">
<description>Yaw moment due to rudder</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/bw-ft</property>
<property>fcs/rudder-pos-rad</property>
<value>-0.1</value>
</product>
</function>
<function name="aero/moment/Yaw_aileron">
<description>Adverse yaw</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/bw-ft</property>
<property>fcs/left-aileron-pos-rad</property>
<value>-0.003</value>
</product>
</function>
</axis>
</aerodynamics>
<external_reactions>
</external_reactions>
</fdm_config>

342
MQ-9-JSBSim2-set.xml Executable file
View File

@ -0,0 +1,342 @@
<?xml version="1.0"?>
<PropertyList include="Aircraft/Generic/Human/Include/walker-include.xml">
<sim>
<description>General Atomics MQ-9 Reaper</description>
<aircraft-version>1.2</aircraft-version>
<author>Petar Jedvaj</author>
<status>Alpha</status>
<rating>
<FDM type="int">1</FDM>
<systems type="int">1</systems>
<cockpit type="int">1</cockpit>
<model type="int">1</model>
</rating>
<flight-model>jsb</flight-model>
<aero>MQ-9-JSBSim2</aero>
<startup>
<splash-texture>Aircraft/MQ-9/Splash2.png</splash-texture>
</startup>
<model>
<path>Aircraft/MQ-9/Models/MQ-9-2.xml</path>
<livery>
<file type="string"/>
</livery>
<turret n="0">
<heading>0</heading>
<pitch>10</pitch>
</turret>
<walker>
<gender>1</gender>
<altitude-ft>-5.0</altitude-ft>
</walker>
<map>
<default_exit>
<x-offset-m type="float">-0.35</x-offset-m>
<y-offset-m type="float">-0.84</y-offset-m>
</default_exit>
</map>
</model>
<sound>
<path>Aircraft/MQ-9/Sounds/Sounds.xml</path>
</sound>
<systems>
<electrical>
<path>Aircraft/Generic/generic-electrical.xml</path>
</electrical>
</systems>
<mp-systems>
<radar-enabled type="bool">true</radar-enabled>
<ecm-rwr-enabled type="bool">true</ecm-rwr-enabled>
<combat-enabled type="bool">true</combat-enabled>
</mp-systems>
<instrumentation>
<radar-altimeter>
<limit-bug type="double">250</limit-bug>
</radar-altimeter>
<warnings>
<master-caution type="bool">0</master-caution>
</warnings>
</instrumentation>
<!-- HUD -->
<hud>
<path n="1">Aircraft/MQ-9/HUD.xml</path>
<visibility n="1">true</visibility>
<palette>
<color n="0">
<alpha type="float">0.85</alpha>
<antialiased type="bool">true</antialiased>
<brightness type="float">0.85</brightness>
<transparent type="bool">true</transparent>
<red type="float">0.38</red>
<green type="float">1.0</green>
<blue type="float">0.22</blue>
</color>
<color n="1">
<alpha type="float">0.85</alpha>
<antialiased type="bool">true</antialiased>
<brightness type="float">0.85</brightness>
<transparent type="bool">true</transparent>
<red type="float">1.0</red>
<green type="float">0.2</green>
<blue type="float">0.0</blue>
</color>
</palette>
</hud>
<!-- View -->
<view n="100">
<name>Sensor View</name>
<type>lookfrom</type>
<internal archive="y">true</internal>
<config>
<from-model type="bool">true</from-model>
<from-model-idx type="int">0</from-model-idx>
<ground-level-nearplane-m type="double">0.01f</ground-level-nearplane-m>
<pitch-offset-deg>-28</pitch-offset-deg>
<x-offset-m archive="y"> 0.0000 </x-offset-m>
<y-offset-m archive="y"> -0.2792 </y-offset-m>
<z-offset-m archive="y"> -4.3564 </z-offset-m>
<default-field-of-view-deg> 70 </default-field-of-view-deg>
<limits>
<left>
<heading-max-deg>-179</heading-max-deg>
<x-offset-threshold-deg>0</x-offset-threshold-deg>
<x-offset-max-m>0</x-offset-max-m>
</left>
<right>
<heading-max-deg>179</heading-max-deg>
<x-offset-threshold-deg>0</x-offset-threshold-deg>
<x-offset-max-m>0</x-offset-max-m>
</right>
<enabled>1</enabled>
</limits>
</config>
</view>
<!-- Menu -->
<menubar>
<default>
<menu n="100">
<label>MQ-9</label>
<enabled type="bool">true</enabled>
<item>
<label>Autostart</label>
<binding>
<command>property-toggle</command>
<property>controls/engines/start1</property>
</binding>
<binding>
<command>property-toggle</command>
<property>controls/engines/run1</property>
</binding>
<binding>
<command>property-toggle</command>
<property>controls/engines/abort1</property>
</binding>
<mod-up>
<binding>
<command>null</command>
</binding>
</mod-up>
</item>
<item>
<label>Select Livery</label>
<binding>
<command>nasal</command>
<script>aircraft.livery.dialog.toggle()</script>
</binding>
</item>
</menu>
</default>
</menubar>
<!-- Help -->
<help>
<title>General Atomics MQ-9 Reaper</title>
<line>MQ-9 > Autostart</line>
<line>MQ-9 > Select Livery</line>
<line>Move sensors with RMB in Sensor View</line>
<line>HUD will follow view</line>
<line>Parking brake is on</line>
</help>
</sim>
<!-- Keyboard -->
<input>
<keyboard>
</keyboard>
</input>
<!-- Engine -->
<controls>
<engines>
<run1 type="bool">true</run1>
<start1 type="bool">false</start1>
<abort1 type="bool">false</abort1>
</engines>
<gear>
<brake-parking type="double">1</brake-parking>
</gear>
</controls>
<!-- Systems -->
<systems>
<electrical>
<outputs>
<comm n="0" type="float">28</comm>
<comm n="1" type="float">28</comm>
</outputs>
</electrical>
</systems>
<!-- Instrumentation -->
<instrumentation>
<enav>
<selected type="int">3</selected>
</enav>
<radar>
<range type="int" archive="y">20</range>
<range-factor type="double" archive="n">0.001888</range-factor>
<minimized type="bool" archive="y">false</minimized>
<selected type="int">3</selected>
<enabled type="bool">true</enabled>
<az-field type="double">120</az-field>
<range type="double">150</range>
<range-selected type="double">50</range-selected>
<radar2-range type="double">150</radar2-range>
<display-rdr type="bool">true</display-rdr>
<radar-standby type="int">3</radar-standby>
<mode>
<rws type="bool">true</rws>
<tws-auto type="bool">false</tws-auto>
</mode>
</radar>
<radar2>
<sweep-width-m type="double">0.0844</sweep-width-m>
<range-width-m type="double">0.0846</range-width-m>
<radius-ppi-display-m type="double">0.0846</radius-ppi-display-m>
<hud-eye-dist-m type="double">0.766</hud-eye-dist-m>
<hud-radius-m type="double">0.071</hud-radius-m>
<hud-vertical-offset-m type="double">-0.025</hud-vertical-offset-m>
</radar2>
<rwr>
<display-lighting-intens type="double">0.4</display-lighting-intens>
<symbology-lighting-intens type="double">1</symbology-lighting-intens>
</rwr>
</instrumentation>
<!-- Enviroment -->
<environment>
<turbulence>
<use-cloud-turbulence>true</use-cloud-turbulence>
</turbulence>
</environment>
<gear>
<gear n="0">
<tyre-smoke type="int">0</tyre-smoke>
<sprayspeed-ms type="double">0</sprayspeed-ms>
<spray-density type="double">0</spray-density>
<caster-angle-deg-damped type="double">0</caster-angle-deg-damped>
</gear>
<gear n="1">
<tyre-smoke type="int">0</tyre-smoke>
<sprayspeed-ms type="double">0</sprayspeed-ms>
<spray-density type="double">0</spray-density>
</gear>
<gear n="2">
<tyre-smoke type="int">0</tyre-smoke>
<sprayspeed-ms type="double">0</sprayspeed-ms>
<spray-density type="double">0</spray-density>
</gear>
</gear>
<!-- Nasal -->
<nasal>
<Liveries>
<file>Aircraft/MQ-9/Nasal/Liveries.nas</file>
</Liveries>
<Engine>
<file>Aircraft/MQ-9/Nasal/Engine.nas</file>
<module>MQ-9</module>
</Engine>
<Lights>
<file>Aircraft/MQ-9/Nasal/Lights.nas</file>
</Lights>
<HUD>
<file>Aircraft/MQ-9/Nasal/HUD.nas</file>
</HUD>
<Tyresmoke>
<file>Aircraft/MQ-9/Nasal/Tyresmoke.nas</file>
</Tyresmoke>
<Crash>
<file>Aircraft/MQ-9/Nasal/Crash.nas</file>
</Crash>
<Turret>
<file>Aircraft/MQ-9/Nasal/Turret.nas</file>
</Turret>
<rwr>
<file>Aircraft/Instruments-3d/rwr/rwr.nas</file>
</rwr>
<radar2>
<file>Aircraft/Instruments-3d/radar2/radar2.nas</file>
</radar2>
<Radar>
<file>Aircraft/MQ-9/Nasal/Radar.nas</file>
</Radar>
<ENAV>
<file>Aircraft/MQ-9/Nasal/ENAV.nas</file>
</ENAV>
</nasal>
</PropertyList>

787
MQ-9-JSBSim2.xml Normal file
View File

@ -0,0 +1,787 @@
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="http://jsbsim.sourceforge.net/JSBSim.xsl"?>
<fdm_config name="MQ-9 Reaper" version="2.0" release="ALPHA"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd">
<fileheader>
<author> Petar Jedvaj </author>
<filecreationdate>2016-06-29</filecreationdate>
<version>$Revision: 1.15 $</version>
<description> General Atomics MQ-9 Reaper. </description>
</fileheader>
<!--
File: MQ-9 Reaper.xml
Inputs:
name: MQ-9 Reaper
type: WWII fighter, subsonic sport, aerobatic
max weight: 10495.8 lb
wing span: 65.62 ft
length: 36.091 ft
wing area: 257.2825679 sq-ft
gear type: tricycle
retractable?: yes
# engines: 1
engine type: turboprop
engine layout: aft fuselage
yaw damper? yes
Outputs:
wing loading: 40.79 lb/sq-ft
payload: 4313.6 lbs
CL-alpha: 4.5 per radian
CL-0: 0.17
CL-max: 1.2
CD-0: 0.02
K: 0.06
-->
<metrics>
<wingarea unit="FT2"> 257.28 </wingarea>
<wingspan unit="FT" > 65.62 </wingspan>
<wing_incidence> 2.00 </wing_incidence>
<chord unit="FT" > 3.92 </chord>
<htailarea unit="FT2"> 32.29 </htailarea>
<htailarm unit="FT" > 21.65 </htailarm>
<vtailarea unit="FT2"> 10.76 </vtailarea>
<vtailarm unit="FT" > 21.65 </vtailarm>
<location name="AERORP" unit="IN">
<x> 173.24 </x>
<y> 0.00 </y>
<z> 0.00 </z>
</location>
<location name="EYEPOINT" unit="IN">
<x> 121.27 </x>
<y> 0.00 </y>
<z> 40.00 </z>
</location>
<location name="VRP" unit="IN">
<x>0</x>
<y>0</y>
<z>0</z>
</location>
</metrics>
<mass_balance>
<ixx unit="SLUG*FT2"> 11946 </ixx>
<iyy unit="SLUG*FT2"> 6424 </iyy>
<izz unit="SLUG*FT2"> 17362 </izz>
<emptywt unit="LBS" > 4902 </emptywt>
<location name="CG" unit="IN">
<x> 173.24 </x>
<y> 0.00 </y>
<z> -10.83 </z>
</location>
<pointmass name="Payload">
<description> 4314 LBS + full (1280 LBS) fuel should bring model up to entered max weight</description>
<weight unit="LBS"> 2156.8 </weight>
<location name="POINTMASS" unit="IN">
<x> 173.24 </x>
<y> 0.00 </y>
<z> -10.83 </z>
</location>
</pointmass>
</mass_balance>
<ground_reactions>
<contact type="BOGEY" name="NOSE">
<location unit="IN">
<x> 56.30 </x>
<y> 0.00 </y>
<z> -51.97 </z>
</location>
<static_friction> 0.80 </static_friction>
<dynamic_friction> 0.50 </dynamic_friction>
<rolling_friction> 0.02 </rolling_friction>
<spring_coeff unit="LBS/FT"> 3148.74 </spring_coeff>
<damping_coeff unit="LBS/FT/SEC"> 5247.90 </damping_coeff>
<max_steer unit="DEG"> 5.00 </max_steer>
<brake_group>NONE</brake_group>
<retractable>1</retractable>
</contact>
<contact type="BOGEY" name="LEFT_MAIN">
<location unit="IN">
<x> 180.17 </x>
<y> -118.12 </y>
<z> -51.97 </z>
</location>
<static_friction> 0.80 </static_friction>
<dynamic_friction> 0.50 </dynamic_friction>
<rolling_friction> 0.02 </rolling_friction>
<spring_coeff unit="LBS/FT"> 10495.80 </spring_coeff>
<damping_coeff unit="LBS/FT/SEC"> 5247.90 </damping_coeff>
<max_steer unit="DEG">0</max_steer>
<brake_group>LEFT</brake_group>
<retractable>1</retractable>
</contact>
<contact type="BOGEY" name="RIGHT_MAIN">
<location unit="IN">
<x> 180.17 </x>
<y> 118.12 </y>
<z> -51.97 </z>
</location>
<static_friction> 0.80 </static_friction>
<dynamic_friction> 0.50 </dynamic_friction>
<rolling_friction> 0.02 </rolling_friction>
<spring_coeff unit="LBS/FT"> 10495.80 </spring_coeff>
<damping_coeff unit="LBS/FT/SEC"> 5247.90 </damping_coeff>
<max_steer unit="DEG">0</max_steer>
<brake_group>RIGHT</brake_group>
<retractable>1</retractable>
</contact>
<contact type="STRUCTURE" name="LEFT_WING">
<location unit="IN">
<x> 173.24 </x>
<y> -32.81 </y>
<z> -10.83 </z>
</location>
<static_friction> 1.00 </static_friction>
<dynamic_friction> 1.00 </dynamic_friction>
<spring_coeff unit="LBS/FT"> 10495.80 </spring_coeff>
<damping_coeff unit="LBS/FT/SEC"> 10495.80 </damping_coeff>
</contact>
<contact type="STRUCTURE" name="RIGHT_WING">
<location unit="IN">
<x> 173.24 </x>
<y> 32.81 </y>
<z> -10.83 </z>
</location>
<static_friction> 1.00 </static_friction>
<dynamic_friction> 1.00 </dynamic_friction>
<spring_coeff unit="LBS/FT"> 10495.80 </spring_coeff>
<damping_coeff unit="LBS/FT/SEC"> 10495.80 </damping_coeff>
</contact>
</ground_reactions>
<propulsion>
<engine file="TPE331-10">
<location unit="IN">
<x> 373.09 </x>
<y> 0.00 </y>
<z> 0.00 </z>
</location>
<orient unit="DEG">
<pitch> 0.00 </pitch>
<roll> 0.00 </roll>
<yaw> 0.00 </yaw>
</orient>
<feed>0</feed>
<thruster file="Direct">
<location unit="IN">
<x> 373.09 </x>
<y> 0.00 </y>
<z> 0.00 </z>
</location>
<orient unit="DEG">
<pitch> 0.00 </pitch>
<roll> 0.00 </roll>
<yaw> 0.00 </yaw>
</orient>
</thruster>
</engine>
<tank type="FUEL" number="0">
<location unit="IN">
<x> 173.24 </x>
<y> 0.00 </y>
<z> -10.83 </z>
</location>
<capacity unit="LBS"> 2000.00 </capacity>
<contents unit="LBS"> 1000.00 </contents>
</tank>
<tank type="FUEL" number="1">
<location unit="IN">
<x> 173.24 </x>
<y> 0.00 </y>
<z> -10.83 </z>
</location>
<capacity unit="LBS"> 2000.00 </capacity>
<contents unit="LBS"> 1000.00 </contents>
</tank>
</propulsion>
<system file="Particles"/>
<flight_control name="FCS: MQ-9 Reaper">
<channel name="Pitch">
<summer name="Pitch Trim Sum">
<input>fcs/elevator-cmd-norm</input>
<input>fcs/pitch-trim-cmd-norm</input>
<clipto>
<min> -1 </min>
<max> 1 </max>
</clipto>
</summer>
<aerosurface_scale name="Elevator Control">
<input>fcs/pitch-trim-sum</input>
<range>
<min> -0.35 </min>
<max> 0.35 </max>
</range>
<output>fcs/elevator-pos-rad</output>
</aerosurface_scale>
<aerosurface_scale name="elevator normalization">
<input>fcs/elevator-pos-rad</input>
<domain>
<min> -0.35 </min>
<max> 0.35 </max>
</domain>
<range>
<min> -1 </min>
<max> 1 </max>
</range>
<output>fcs/elevator-pos-norm</output>
</aerosurface_scale>
</channel>
<channel name="Roll">
<summer name="Roll Trim Sum">
<input>fcs/aileron-cmd-norm</input>
<input>fcs/roll-trim-cmd-norm</input>
<clipto>
<min> -1 </min>
<max> 1 </max>
</clipto>
</summer>
<aerosurface_scale name="Left Aileron Control">
<input>fcs/roll-trim-sum</input>
<range>
<min> -0.35 </min>
<max> 0.35 </max>
</range>
<output>fcs/left-aileron-pos-rad</output>
</aerosurface_scale>
<aerosurface_scale name="Right Aileron Control">
<input>fcs/roll-trim-sum</input>
<range>
<min> -0.35 </min>
<max> 0.35 </max>
</range>
<output>fcs/right-aileron-pos-rad</output>
</aerosurface_scale>
<aerosurface_scale name="left aileron normalization">
<input>fcs/left-aileron-pos-rad</input>
<domain>
<min> -0.35 </min>
<max> 0.35 </max>
</domain>
<range>
<min> -1 </min>
<max> 1 </max>
</range>
<output>fcs/left-aileron-pos-norm</output>
</aerosurface_scale>
<aerosurface_scale name="right aileron normalization">
<input>fcs/right-aileron-pos-rad</input>
<domain>
<min> -0.35 </min>
<max> 0.35 </max>
</domain>
<range>
<min> -1 </min>
<max> 1 </max>
</range>
<output>fcs/right-aileron-pos-norm</output>
</aerosurface_scale>
</channel>
<property value="1">fcs/yaw-damper-enable</property>
<channel name="Yaw">
<summer name="Rudder Command Sum">
<input>fcs/rudder-cmd-norm</input>
<input>fcs/yaw-trim-cmd-norm</input>
<clipto>
<min> -1 </min>
<max> 1 </max>
</clipto>
</summer>
<scheduled_gain name="Yaw Damper Rate">
<input>velocities/r-aero-rad_sec</input>
<table>
<independentVar lookup="row">velocities/ve-kts</independentVar>
<tableData>
30 0.00
60 2.00
</tableData>
</table>
<gain>fcs/yaw-damper-enable</gain>
</scheduled_gain>
<summer name="Rudder Sum">
<input>fcs/rudder-command-sum</input>
<input>fcs/yaw-damper-rate</input>
<clipto>
<min> -1.1 </min>
<max> 1.1 </max>
</clipto>
</summer>
<aerosurface_scale name="Rudder Control">
<input>fcs/rudder-sum</input>
<domain>
<min> -1.1 </min>
<max> 1.1 </max>
</domain>
<range>
<min> -0.35 </min>
<max> 0.35 </max>
</range>
<output>fcs/rudder-pos-rad</output>
</aerosurface_scale>
<aerosurface_scale name="rudder normalization">
<input>fcs/rudder-pos-rad</input>
<domain>
<min> -0.35 </min>
<max> 0.35 </max>
</domain>
<range>
<min> -1 </min>
<max> 1 </max>
</range>
<output>fcs/rudder-pos-norm</output>
</aerosurface_scale>
</channel>
<channel name="Flaps">
<kinematic name="Flaps Control">
<input>fcs/flap-cmd-norm</input>
<traverse>
<setting>
<position> 0 </position>
<time> 0 </time>
</setting>
<setting>
<position> 15 </position>
<time> 4 </time>
</setting>
<setting>
<position> 30 </position>
<time> 3 </time>
</setting>
</traverse>
<output>fcs/flap-pos-deg</output>
</kinematic>
<aerosurface_scale name="flap normalization">
<input>fcs/flap-pos-deg</input>
<domain>
<min> 0 </min>
<max> 30 </max>
</domain>
<range>
<min> 0 </min>
<max> 1 </max>
</range>
<output>fcs/flap-pos-norm</output>
</aerosurface_scale>
</channel>
<channel name="Landing Gear">
<kinematic name="Gear Control">
<input>gear/gear-cmd-norm</input>
<traverse>
<setting>
<position> 0 </position>
<time> 0 </time>
</setting>
<setting>
<position> 1 </position>
<time> 5 </time>
</setting>
</traverse>
<output>gear/gear-pos-norm</output>
</kinematic>
</channel>
<channel name="Speedbrake">
<kinematic name="Speedbrake Control">
<input>fcs/speedbrake-cmd-norm</input>
<traverse>
<setting>
<position> 0 </position>
<time> 0 </time>
</setting>
<setting>
<position> 1 </position>
<time> 1 </time>
</setting>
</traverse>
<output>fcs/speedbrake-pos-norm</output>
</kinematic>
</channel>
</flight_control>
<aerodynamics>
<axis name="LIFT">
<function name="aero/force/Lift_alpha">
<description>Lift due to alpha</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<table>
<independentVar lookup="row">aero/alpha-rad</independentVar>
<tableData>
-0.20 -0.730
0.00 0.170
0.23 1.200
0.60 0.582
</tableData>
</table>
</product>
</function>
<function name="aero/force/Lift_flap">
<description>Delta Lift due to flaps</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>fcs/flap-pos-deg</property>
<value> 0.01000 </value>
</product>
</function>
<function name="aero/force/Lift_speedbrake">
<description>Delta Lift due to speedbrake</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>fcs/speedbrake-pos-norm</property>
<value>0</value>
</product>
</function>
<function name="aero/force/Lift_elevator">
<description>Lift due to Elevator Deflection</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>fcs/elevator-pos-rad</property>
<value>0.2</value>
</product>
</function>
</axis>
<axis name="DRAG">
<function name="aero/force/Drag_basic">
<description>Drag at zero lift</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<table>
<independentVar lookup="row">aero/alpha-rad</independentVar>
<tableData>
-1.57 1.500
-0.26 0.026
0.00 0.020
0.26 0.026
1.57 1.500
</tableData>
</table>
</product>
</function>
<function name="aero/force/Drag_induced">
<description>Induced drag</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>aero/cl-squared</property>
<value>0.06</value>
</product>
</function>
<function name="aero/force/Drag_mach">
<description>Drag due to mach</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<table>
<independentVar lookup="row">velocities/mach</independentVar>
<tableData>
0.00 0.000
0.75 0.000
1.10 0.023
1.80 0.015
</tableData>
</table>
</product>
</function>
<function name="aero/force/Drag_flap">
<description>Drag due to flaps</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>fcs/flap-pos-deg</property>
<value> 0.00133 </value>
</product>
</function>
<function name="aero/force/Drag_gear">
<description>Drag due to gear</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>gear/gear-pos-norm</property>
<value>0.03</value>
</product>
</function>
<function name="aero/force/Drag_speedbrake">
<description>Drag due to speedbrakes</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>fcs/speedbrake-pos-norm</property>
<value>0.02</value>
</product>
</function>
<function name="aero/force/Drag_beta">
<description>Drag due to sideslip</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<table>
<independentVar lookup="row">aero/beta-rad</independentVar>
<tableData>
-1.57 1.230
-0.26 0.050
0.00 0.000
0.26 0.050
1.57 1.230
</tableData>
</table>
</product>
</function>
<function name="aero/force/Drag_elevator">
<description>Drag due to Elevator Deflection</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<abs><property>fcs/elevator-pos-norm</property></abs>
<value>0.04</value>
</product>
</function>
</axis>
<axis name="SIDE">
<function name="aero/force/Side_beta">
<description>Side force due to beta</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>aero/beta-rad</property>
<value>-1</value>
</product>
</function>
</axis>
<axis name="ROLL">
<function name="aero/moment/Roll_beta">
<description>Roll moment due to beta</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/bw-ft</property>
<property>aero/beta-rad</property>
<value>-0.1</value>
</product>
</function>
<function name="aero/moment/Roll_damp">
<description>Roll moment due to roll rate</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/bw-ft</property>
<property>aero/bi2vel</property>
<property>velocities/p-aero-rad_sec</property>
<value>-0.4</value>
</product>
</function>
<function name="aero/moment/Roll_yaw">
<description>Roll moment due to yaw rate</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/bw-ft</property>
<property>aero/bi2vel</property>
<property>velocities/r-aero-rad_sec</property>
<value>0.15</value>
</product>
</function>
<function name="aero/moment/Roll_aileron">
<description>Roll moment due to aileron</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/bw-ft</property>
<property>fcs/left-aileron-pos-rad</property>
<value>0.18</value>
</product>
</function>
<function name="aero/moment/Roll_rudder">
<description>Roll moment due to rudder</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/bw-ft</property>
<property>fcs/rudder-pos-rad</property>
<value>0.01</value>
</product>
</function>
</axis>
<axis name="PITCH">
<function name="aero/moment/Pitch_alpha">
<description>Pitch moment due to alpha</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/cbarw-ft</property>
<property>aero/alpha-rad</property>
<value>-0.5</value>
</product>
</function>
<function name="aero/moment/Pitch_elevator">
<description>Pitch moment due to elevator</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/cbarw-ft</property>
<property>fcs/elevator-pos-rad</property>
<table>
<independentVar lookup="row">velocities/mach</independentVar>
<tableData>
0.0 -1.000
2.0 -0.250
</tableData>
</table>
</product>
</function>
<function name="aero/moment/Pitch_damp">
<description>Pitch moment due to pitch rate</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/cbarw-ft</property>
<property>aero/ci2vel</property>
<property>velocities/q-aero-rad_sec</property>
<value>-15</value>
</product>
</function>
<function name="aero/moment/Pitch_alphadot">
<description>Pitch moment due to alpha rate</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/cbarw-ft</property>
<property>aero/ci2vel</property>
<property>aero/alphadot-rad_sec</property>
<value>-7</value>
</product>
</function>
</axis>
<axis name="YAW">
<function name="aero/moment/Yaw_beta">
<description>Yaw moment due to beta</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/bw-ft</property>
<property>aero/beta-rad</property>
<value>0.12</value>
</product>
</function>
<function name="aero/moment/Yaw_damp">
<description>Yaw moment due to yaw rate</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/bw-ft</property>
<property>aero/bi2vel</property>
<property>velocities/r-aero-rad_sec</property>
<value>-0.15</value>
</product>
</function>
<function name="aero/moment/Yaw_rudder">
<description>Yaw moment due to rudder</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/bw-ft</property>
<property>fcs/rudder-pos-rad</property>
<value>-0.1</value>
</product>
</function>
<function name="aero/moment/Yaw_aileron">
<description>Adverse yaw</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/bw-ft</property>
<property>fcs/left-aileron-pos-rad</property>
<value>-0.003</value>
</product>
</function>
</axis>
</aerodynamics>
<external_reactions>
</external_reactions>
</fdm_config>

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -0,0 +1,23 @@
<?xml version="1.0"?>
<PropertyList>
<submodel>
<name>Impact</name>
<model>Aircraft/MQ-9/Models/Effects/Bomb/Impact.xml</model>
<speed>0</speed>
<repeat>false</repeat>
<delay>0</delay>
<count>1</count>
<x-offset>0</x-offset>
<y-offset>0</y-offset>
<z-offset>0</z-offset>
<yaw-offset>0</yaw-offset>
<pitch-offset>0</pitch-offset>
<eda>10</eda>
<wind>false</wind>
<buoyancy>32.1</buoyancy>
<life>40</life>
</submodel>
</PropertyList>

View File

@ -0,0 +1,105 @@
<PropertyList>
<particlesystem>
<name>Fire</name>
<texture>Puff.png</texture>
<emissive>true</emissive>
<lighting>false</lighting>
<offsets>
<x-m>0</x-m>
<y-m>0</y-m>
<z-m>0</z-m>
<pitch-deg>0</pitch-deg>
<roll-deg>90</roll-deg>
</offsets>
<attach>world</attach>
<placer>
<type>point</type>
</placer>
<shooter>
<theta-min-deg>65</theta-min-deg>
<theta-max-deg>115</theta-max-deg>
<phi-min-deg>0</phi-min-deg>
<phi-max-deg>0</phi-max-deg>
<speed>
<value>25</value>
<spread>50</spread>
</speed>
<rotation-speed>
<x-min-deg-sec>0</x-min-deg-sec>
<y-min-deg-sec>0</y-min-deg-sec>
<z-min-deg-sec>0</z-min-deg-sec>
<x-max-deg-sec>0</x-max-deg-sec>
<y-max-deg-sec>0</y-max-deg-sec>
<z-max-deg-sec>0</z-max-deg-sec>
</rotation-speed>
</shooter>
<counter>
<particles-per-sec>
<value>25</value>
<spread>150</spread>
</particles-per-sec>
</counter>
<align>billboard</align>
<particle>
<start>
<color>
<red>
<value>0.6</value>
</red>
<green>
<value>0.6</value>
</green>
<blue>
<value>0.6</value>
</blue>
<alpha>
<value>0.4</value>
</alpha>
</color>
<size>
<value>1.2</value>
</size>
</start>
<end>
<color>
<red>
<value>0</value>
</red>
<green>
<value>0</value>
</green>
<blue>
<value>0</value>
</blue>
<alpha>
<value>0</value>
</alpha>
</color>
<size>
<value>4.0</value>
</size>
</end>
<life-sec>
<value>2.0</value>
</life-sec>
<mass-kg>1.3</mass-kg>
<radius-m>0.03</radius-m>
</particle>
<program>
<fluid>air</fluid>
<gravity type="bool">false</gravity>
<wind type="bool">true</wind>
</program>
</particlesystem>
</PropertyList>

View File

@ -0,0 +1,322 @@
AC3Db
MATERIAL "ac3dmat1" rgb 1 1 1 amb 1 1 1 emis 0 0 0 spec 0.2 0.2 0.2 shi 128 trans 0
OBJECT world
kids 1
OBJECT poly
name "puff-black2"
loc -0.0389099 -0.0594611 0
texture "BlackPuff.png"
crease 45.000000
numvert 46
-0.171162 4.87098 0
-0.542012 4.54292 0
-1.18387 4.48586 0
-2.08246 4.69982 0
-2.41052 3.6871 0
-2.63874 3.4161 0
-3.67998 2.77424 0
-3.26634 2.33208 0
-4.05082 1.7758 0
-4.2933 0.991312 0
-4.2933 0.563408 0
-4.62136 0.306664 0
-4.47874 -0.263874 0
-4.83532 -0.791622 0
-4.43594 -1.66169 0
-4.40742 -1.96123 0
-4.66416 -2.43192 0
-3.42324 -3.07378 0
-3.49456 -4.05796 0
-2.4961 -4.11502 0
-2.2251 -4.67128 0
-1.25519 -4.87098 0
-0.584802 -4.4288 0
0.570538 -4.67128 0
1.26945 -4.54292 0
1.31224 -3.7299 0
1.78293 -3.37332 0
3.03812 -3.85826 0
3.62292 -3.2592 0
4.09362 -3.4589 0
4.07936 -2.66014 0
4.73548 -1.86138 0
4.53578 -1.20526 0
3.85114 -0.763096 0
4.16494 -0.420772 0
4.42168 0.263874 0
4.1364 0.606198 0
4.25052 1.29084 0
4.83532 1.81859 0
4.57858 2.95968 0
3.83688 3.63006 0
3.48028 3.35904 0
2.6958 4.57144 0
2.23936 4.5857 0
1.75441 4.27192 0
1.26945 4.84246 0
numsurf 44
SURF 0x10
mat 0
refs 3
14 0.0846238 0.376864
12 0.0806935 0.501039
13 0.0479403 0.454157
SURF 0x10
mat 0
refs 3
5 0.2497 0.827949
6 0.154061 0.77093
7 0.192054 0.73165
SURF 0x10
mat 0
refs 3
17 0.177643 0.251422
15 0.0872441 0.350255
16 0.0636618 0.308441
SURF 0x10
mat 0
refs 3
15 0.0872441 0.350255
17 0.177643 0.251422
10 0.0977251 0.574531
SURF 0x10
mat 0
refs 3
10 0.0977251 0.574531
17 0.177643 0.251422
9 0.0977251 0.612544
SURF 0x10
mat 0
refs 3
9 0.0977251 0.612544
17 0.177643 0.251422
8 0.119997 0.682234
SURF 0x10
mat 0
refs 3
8 0.119997 0.682234
17 0.177643 0.251422
7 0.192054 0.73165
SURF 0x10
mat 0
refs 3
12 0.0806935 0.501039
10 0.0977251 0.574531
11 0.0675922 0.551723
SURF 0x10
mat 0
refs 3
10 0.0977251 0.574531
12 0.0806935 0.501039
14 0.0846238 0.376864
SURF 0x10
mat 0
refs 3
10 0.0977251 0.574531
14 0.0846238 0.376864
15 0.0872441 0.350255
SURF 0x10
mat 0
refs 3
19 0.262801 0.158924
17 0.177643 0.251422
18 0.171092 0.163993
SURF 0x10
mat 0
refs 3
17 0.177643 0.251422
19 0.262801 0.158924
7 0.192054 0.73165
SURF 0x10
mat 0
refs 3
7 0.192054 0.73165
19 0.262801 0.158924
5 0.2497 0.827949
SURF 0x10
mat 0
refs 3
5 0.2497 0.827949
19 0.262801 0.158924
4 0.270662 0.852024
SURF 0x10
mat 0
refs 3
4 0.270662 0.852024
19 0.262801 0.158924
20 0.287693 0.109507
SURF 0x10
mat 0
refs 3
4 0.270662 0.852024
20 0.287693 0.109507
3 0.300795 0.941988
SURF 0x10
mat 0
refs 3
3 0.300795 0.941988
20 0.287693 0.109507
21 0.376782 0.0917682
SURF 0x10
mat 0
refs 3
3 0.300795 0.941988
21 0.376782 0.0917682
2 0.392504 0.933118
SURF 0x10
mat 0
refs 3
2 0.392504 0.933118
21 0.376782 0.0917682
22 0.438358 0.131048
SURF 0x10
mat 0
refs 3
2 0.392504 0.933118
22 0.438358 0.131048
1 0.442288 0.92805
SURF 0x10
mat 0
refs 3
1 0.442288 0.92805
22 0.438358 0.131048
23 0.544478 0.109507
SURF 0x10
mat 0
refs 3
1 0.442288 0.92805
23 0.544478 0.109507
0 0.476352 0.957193
SURF 0x10
mat 0
refs 3
0 0.476352 0.957193
23 0.544478 0.109507
45 0.608674 0.954659
SURF 0x10
mat 0
refs 3
45 0.608674 0.954659
23 0.544478 0.109507
24 0.608674 0.120911
SURF 0x10
mat 0
refs 3
45 0.608674 0.954659
24 0.608674 0.120911
25 0.612605 0.193136
SURF 0x10
mat 0
refs 3
45 0.608674 0.954659
25 0.612605 0.193136
44 0.66501 0.900174
SURF 0x10
mat 0
refs 3
44 0.66501 0.900174
25 0.612605 0.193136
26 0.655839 0.224813
SURF 0x10
mat 0
refs 3
44 0.66501 0.900174
26 0.655839 0.224813
43 0.697763 0.931851
SURF 0x10
mat 0
refs 3
43 0.697763 0.931851
26 0.655839 0.224813
27 0.77113 0.181732
SURF 0x10
mat 0
refs 3
43 0.697763 0.931851
27 0.77113 0.181732
42 0.739687 0.930584
SURF 0x10
mat 0
refs 3
42 0.739687 0.930584
27 0.77113 0.181732
41 0.811744 0.822881
SURF 0x10
mat 0
refs 3
41 0.811744 0.822881
27 0.77113 0.181732
28 0.824845 0.23495
SURF 0x10
mat 0
refs 3
41 0.811744 0.822881
28 0.824845 0.23495
40 0.844497 0.846956
SURF 0x10
mat 0
refs 3
40 0.844497 0.846956
28 0.824845 0.23495
33 0.845807 0.456691
SURF 0x10
mat 0
refs 3
33 0.845807 0.456691
28 0.824845 0.23495
29 0.868079 0.21721
SURF 0x10
mat 0
refs 3
33 0.845807 0.456691
29 0.868079 0.21721
30 0.866769 0.288168
SURF 0x10
mat 0
refs 3
30 0.866769 0.288168
32 0.908693 0.417411
33 0.845807 0.456691
SURF 0x10
mat 0
refs 3
32 0.908693 0.417411
30 0.866769 0.288168
31 0.927035 0.359125
SURF 0x10
mat 0
refs 3
34 0.87463 0.487101
36 0.87201 0.578332
33 0.845807 0.456691
SURF 0x10
mat 0
refs 3
36 0.87201 0.578332
34 0.87463 0.487101
35 0.898212 0.547922
SURF 0x10
mat 0
refs 3
40 0.844497 0.846956
37 0.882491 0.639152
39 0.912624 0.787402
SURF 0x10
mat 0
refs 3
37 0.882491 0.639152
40 0.844497 0.846956
33 0.845807 0.456691
SURF 0x10
mat 0
refs 3
37 0.882491 0.639152
33 0.845807 0.456691
36 0.87201 0.578332
SURF 0x10
mat 0
refs 3
39 0.912624 0.787402
37 0.882491 0.639152
38 0.936206 0.686035
kids 0

View File

@ -0,0 +1,78 @@
<?xml version="1.0"?>
<PropertyList>
<path>Impact.ac</path>
<animation>
<enable-hot type="bool">false</enable-hot>
</animation>
<animation>
<type>billboard</type>
<object-name>puff-black2</object-name>
<spherical>true</spherical>
</animation>
<animation>
<type>scale</type>
<object-name>puff-black2</object-name>
<property>sim/time/elapsed-sec</property>
<x-min>0</x-min>
<y-min>0</y-min>
<z-min>0</z-min>
<x-max>3</x-max>
<y-max>3</y-max>
<z-max>3</z-max>
<x-factor>1</x-factor>
<y-factor>1</y-factor>
<z-factor>1</z-factor>
</animation>
<animation>
<type>dist-scale</type>
<object-name>puff-black2</object-name>
<interpolation>
<entry><ind>0</ind><dep>1</dep></entry>
<entry><ind>3000</ind><dep>4</dep></entry>
</interpolation>
</animation>
<animation>
<type>material</type>
<object-name>puff-black2</object-name>
<emission>
<red>0.5</red>
<green>0.5</green>
<blue>0.5</blue>
</emission>
</animation>
<model>
<path>Aircraft/MQ-9/Models/Effects/Bomb/Fire.xml</path>
<offsets>
<x-m> 2.00</x-m>
<y-m> 0.00</y-m>
<z-m> 0.00</z-m>
</offsets>
</model>
<model>
<path>Aircraft/MQ-9/Models/Effects/Bomb/Fire.xml</path>
<offsets>
<x-m>-0.88</x-m>
<y-m> 0.00</y-m>
<z-m> 1.77</z-m>
</offsets>
</model>
<model>
<path>Aircraft/MQ-9/Models/Effects/Bomb/Fire.xml</path>
<offsets>
<x-m>-0.82</x-m>
<y-m> 0.00</y-m>
<z-m>-1.72</z-m>
</offsets>
</model>
</PropertyList>

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

View File

@ -0,0 +1,83 @@
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<!-- Effects -->
<model>
<name>Fire</name>
<path>Aircraft/MQ-9/Models/Effects/Engine/Fire.xml</path>
<condition>
<equals>
<property>sim/crashed</property>
<value type="bool">true</value>
</equals>
</condition>
<offsets>
<x-m> 4.00</x-m>
<y-m> 0.00</y-m>
<z-m> 1.20</z-m>
<heading-deg>0</heading-deg>
<roll-deg>0</roll-deg>
<pitch-deg>0</pitch-deg>
</offsets>
</model>
<model>
<path>Aircraft/MQ-9/Models/Effects/Engine/Smoke.xml</path>
<offsets>
<x-m> 3.9541</x-m>
<y-m> 0.0000</y-m>
<z-m> 1.1657</z-m>
</offsets>
</model>
<model>
<path>Aircraft/MQ-9/Models/Effects/Wing/Condensation.xml</path>
<offsets>
<x-m> 0.7973</x-m>
<y-m>11.6233</y-m>
<z-m> 0.4397</z-m>
</offsets>
</model>
<model>
<path>Aircraft/MQ-9/Models/Effects/Wing/Condensation.xml</path>
<offsets>
<x-m> 0.7973</x-m>
<y-m>-11.6233</y-m>
<z-m> 0.4397</z-m>
</offsets>
</model>
<model>
<path>Aircraft/Generic/Effects/tyre-smoke-nose.xml</path>
<name>tyre-smoke-n</name>
<offsets>
<x-m>-3.9170</x-m>
<y-m> 0.0000</y-m>
<z-m>-1.3097</z-m>
</offsets>
</model>
<model>
<path>Aircraft/Generic/Effects/tyre-smoke-port.xml</path>
<name>tyre-smoke-p</name>
<offsets>
<x-m> 0.2121</x-m>
<y-m>-1.3425</y-m>
<z-m>-1.3323</z-m>
</offsets>
</model>
<model>
<path>Aircraft/Generic/Effects/tyre-smoke-stbd.xml</path>
<name>tyre-smoke-s</name>
<offsets>
<x-m> 0.2121</x-m>
<y-m> 1.3425</y-m>
<z-m>-1.3323</z-m>
</offsets>
</model>
</PropertyList>

105
Models/Effects/Engine/Fire.xml Executable file
View File

@ -0,0 +1,105 @@
<PropertyList>
<particlesystem>
<name>Fire</name>
<texture>Puff.png</texture>
<emissive>true</emissive>
<lighting>false</lighting>
<offsets>
<x-m>0</x-m>
<y-m>0</y-m>
<z-m>0</z-m>
<pitch-deg>0</pitch-deg>
<roll-deg>90</roll-deg>
</offsets>
<attach>world</attach>
<placer>
<type>point</type>
</placer>
<shooter>
<theta-min-deg>65</theta-min-deg>
<theta-max-deg>115</theta-max-deg>
<phi-min-deg>0</phi-min-deg>
<phi-max-deg>0</phi-max-deg>
<speed>
<value>25</value>
<spread>15</spread>
</speed>
<rotation-speed>
<x-min-deg-sec>0</x-min-deg-sec>
<y-min-deg-sec>0</y-min-deg-sec>
<z-min-deg-sec>0</z-min-deg-sec>
<x-max-deg-sec>0</x-max-deg-sec>
<y-max-deg-sec>0</y-max-deg-sec>
<z-max-deg-sec>0</z-max-deg-sec>
</rotation-speed>
</shooter>
<counter>
<particles-per-sec>
<value>25</value>
<spread>15</spread>
</particles-per-sec>
</counter>
<align>billboard</align>
<particle>
<start>
<color>
<red>
<value>0.6</value>
</red>
<green>
<value>0.6</value>
</green>
<blue>
<value>0.6</value>
</blue>
<alpha>
<value>0.4</value>
</alpha>
</color>
<size>
<value>1.2</value>
</size>
</start>
<end>
<color>
<red>
<value>0</value>
</red>
<green>
<value>0</value>
</green>
<blue>
<value>0</value>
</blue>
<alpha>
<value>0</value>
</alpha>
</color>
<size>
<value>4.0</value>
</size>
</end>
<life-sec>
<value>2.0</value>
</life-sec>
<mass-kg>1.3</mass-kg>
<radius-m>0.03</radius-m>
</particle>
<program>
<fluid>air</fluid>
<gravity type="bool">false</gravity>
<wind type="bool">true</wind>
</program>
</particlesystem>
</PropertyList>

BIN
Models/Effects/Engine/Puff.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

BIN
Models/Effects/Engine/Smoke.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

96
Models/Effects/Engine/Smoke.xml Executable file
View File

@ -0,0 +1,96 @@
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<particlesystem>
<name>smoke</name>
<offsets>
<x-m> 0 </x-m>
<y-m> 0 </y-m>
<z-m> 0 </z-m>
<roll-deg> 0 </roll-deg>
<pitch-deg> 0 </pitch-deg>
<heading-deg> 0 </heading-deg>
</offsets>
<texture>Smoke.png</texture>
<condition>
<property>/engines/engine/cranking</property>
</condition>
<emissive>false</emissive>
<lighting>false</lighting>
<align>billboard</align>
<attach>world</attach>
<placer>
<type>point</type>
</placer>
<shooter>
<theta-min-deg>10</theta-min-deg>
<theta-max-deg>86</theta-max-deg>
<phi-min-deg>-1.5</phi-min-deg>
<phi-max-deg>8</phi-max-deg>
<speed-mps>
<value>5</value>
<spread>2.5</spread>
</speed-mps>
<rotation-speed>
<x-min-deg-sec>5</x-min-deg-sec>
<y-min-deg-sec>5</y-min-deg-sec>
<z-min-deg-sec>5</z-min-deg-sec>
<x-max-deg-sec>60</x-max-deg-sec>
<y-max-deg-sec>60</y-max-deg-sec>
<z-max-deg-sec>60</z-max-deg-sec>
</rotation-speed>
</shooter>
<counter>
<particles-per-sec>
<value>15</value>
<spread>1</spread>
</particles-per-sec>
</counter>
<particle>
<start>
<color>
<red><value>0.5</value></red>
<green><value>0.5</value></green>
<blue><value>0.5</value></blue>
<alpha><value>0.02</value></alpha>
</color>
<size>
<value>2</value>
</size>
</start>
<end>
<color>
<red><value>0.5</value></red>
<green><value>0.5</value></green>
<blue><value>0.5</value></blue>
<alpha><value>0.001</value></alpha>
</color>
<size>
<value>20.0</value>
</size>
</end>
<life-sec>
<value>10</value>
</life-sec>
<mass-kg>4</mass-kg>
<radius-m>1.0</radius-m>
</particle>
<program>
<fluid>air</fluid>
<gravity>true</gravity>
<wind>true</wind>
</program>
</particlesystem>
</PropertyList>

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -0,0 +1,105 @@
<PropertyList>
<particlesystem>
<name>MissileFire</name>
<texture>Puff.png</texture>
<emissive>true</emissive>
<lighting>false</lighting>
<offsets>
<x-m>0</x-m>
<y-m>0</y-m>
<z-m>0</z-m>
<pitch-deg>0</pitch-deg>
<roll-deg>90</roll-deg>
</offsets>
<attach>world</attach>
<placer>
<type>point</type>
</placer>
<shooter>
<theta-min-deg>65</theta-min-deg>
<theta-max-deg>115</theta-max-deg>
<phi-min-deg>0</phi-min-deg>
<phi-max-deg>0</phi-max-deg>
<speed>
<value>25</value>
<spread>50</spread>
</speed>
<rotation-speed>
<x-min-deg-sec>0</x-min-deg-sec>
<y-min-deg-sec>0</y-min-deg-sec>
<z-min-deg-sec>0</z-min-deg-sec>
<x-max-deg-sec>0</x-max-deg-sec>
<y-max-deg-sec>0</y-max-deg-sec>
<z-max-deg-sec>0</z-max-deg-sec>
</rotation-speed>
</shooter>
<counter>
<particles-per-sec>
<value>25</value>
<spread>150</spread>
</particles-per-sec>
</counter>
<align>billboard</align>
<particle>
<start>
<color>
<red>
<value>0.6</value>
</red>
<green>
<value>0.6</value>
</green>
<blue>
<value>0.6</value>
</blue>
<alpha>
<value>0.4</value>
</alpha>
</color>
<size>
<value>1.2</value>
</size>
</start>
<end>
<color>
<red>
<value>0</value>
</red>
<green>
<value>0</value>
</green>
<blue>
<value>0</value>
</blue>
<alpha>
<value>0</value>
</alpha>
</color>
<size>
<value>4.0</value>
</size>
</end>
<life-sec>
<value>2.0</value>
</life-sec>
<mass-kg>1.3</mass-kg>
<radius-m>0.03</radius-m>
</particle>
<program>
<fluid>air</fluid>
<gravity type="bool">false</gravity>
<wind type="bool">true</wind>
</program>
</particlesystem>
</PropertyList>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,102 @@
<?xml version="1.0"?>
<PropertyList>
<path>Impact.ac</path>
<animation>
<enable-hot type="bool">false</enable-hot>
</animation>
<animation>
<type>scale</type>
<object-name>sphere</object-name>
<property>sim/time/elapsed-sec</property>
<x-min>0</x-min>
<y-min>0</y-min>
<z-min>0</z-min>
<x-max>2</x-max>
<y-max>2</y-max>
<z-max>2</z-max>
<x-factor>4</x-factor>
<y-factor>4</y-factor>
</animation>
<animation>
<type>blend</type>
<object-name>sphere</object-name>
<property>sim/time/elapsed-sec</property>
<factor>0.01</factor>
<min>0</min>
<max>1</max>
</animation>
<animation>
<type>dist-scale</type>
<object-name>sphere</object-name>
<interpolation>
<entry><ind>0</ind><dep>1</dep></entry>
<entry><ind>3000</ind><dep>4</dep></entry>
</interpolation>
</animation>
<animation>
<type>material</type>
<object-name>sphere</object-name>
<emission>
<red>1</red>
<green>1</green>
<blue>1</blue>
</emission>
</animation>
<animation>
<type>billboard</type>
<object-name>puff-black2</object-name>
<spherical>true</spherical>
</animation>
<animation>
<type>scale</type>
<object-name>puff-black2</object-name>
<property>sim/time/elapsed-sec</property>
<x-min>0</x-min>
<y-min>0</y-min>
<z-min>0</z-min>
<x-max>3</x-max>
<y-max>3</y-max>
<z-max>3</z-max>
<x-factor>1</x-factor>
<y-factor>1</y-factor>
<z-factor>1</z-factor>
</animation>
<animation>
<type>dist-scale</type>
<object-name>puff-black2</object-name>
<interpolation>
<entry><ind>0</ind><dep>1</dep></entry>
<entry><ind>3000</ind><dep>4</dep></entry>
</interpolation>
</animation>
<animation>
<type>material</type>
<object-name>puff-black2</object-name>
<emission>
<red>0.5</red>
<green>0.5</green>
<blue>0.5</blue>
</emission>
</animation>
<model>
<path>Aircraft/MQ-9/Models/Effects/Missile/Explosion.xml</path>
<offsets>
<x-m> 2.0 </x-m>
<y-m> 0.0 </y-m>
<z-m> 0 </z-m>
</offsets>
</model>
</PropertyList>

View File

@ -0,0 +1,23 @@
<?xml version="1.0"?>
<PropertyList>
<submodel>
<name>Impact</name>
<model>Aircraft/MQ-9/Models/Effects/Impact.xml</model>
<speed>0</speed>
<repeat>false</repeat>
<delay>0</delay>
<count>1</count>
<x-offset>0</x-offset>
<y-offset>0</y-offset>
<z-offset>0</z-offset>
<yaw-offset>0</yaw-offset>
<pitch-offset>0</pitch-offset>
<eda>10</eda>
<wind>false</wind>
<buoyancy>32</buoyancy>
<life>50</life>
</submodel>
</PropertyList>

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

118
Models/Effects/Missile/Smoke.xml Executable file
View File

@ -0,0 +1,118 @@
<?xml version="1.0"?>
<PropertyList>
<particlesystem>
<name>smoke</name>
<offsets>
<x-m>0</x-m>
<y-m>0</y-m>
<z-m>0</z-m>
<roll-deg>0</roll-deg>
<pitch-deg>0</pitch-deg>
<heading-deg>0</heading-deg>
</offsets>
<texture>Smoke.png</texture>
<emissive>false</emissive>
<lighting>false</lighting>
<align>billboard</align>
<attach>world</attach>
<placer>
<type>point</type>
</placer>
<shooter>
<theta-min-deg>10</theta-min-deg>
<theta-max-deg>86</theta-max-deg>
<phi-min-deg>-1.5</phi-min-deg>
<phi-max-deg>8</phi-max-deg>
<speed-mps>
<value>10</value>
<spread>2.5</spread>
</speed-mps>
<rotation-speed>
<x-min-deg-sec>5</x-min-deg-sec>
<y-min-deg-sec>5</y-min-deg-sec>
<z-min-deg-sec>5</z-min-deg-sec>
<x-max-deg-sec>60</x-max-deg-sec>
<y-max-deg-sec>60</y-max-deg-sec>
<z-max-deg-sec>60</z-max-deg-sec>
</rotation-speed>
</shooter>
<counter>
<particles-per-sec>
<value>100</value>
<spread>1</spread>
</particles-per-sec>
</counter>
<particle>
<start>
<color>
<red>
<value>1</value>
</red>
<green>
<value>1</value>
</green>
<blue>
<value>1</value>
</blue>
<alpha>
<value>0.3</value>
</alpha>
</color>
<size>
<value>0.5</value>
</size>
</start>
<end>
<color>
<red>
<value>1</value>
</red>
<green>
<value>1</value>
</green>
<blue>
<value>1</value>
</blue>
<alpha>
<value>0.001</value>
</alpha>
</color>
<size>
<value>10.0</value>
</size>
</end>
<life-sec>
<value>8</value>
</life-sec>
<mass-kg>0.0001</mass-kg>
<radius-m>0.1</radius-m>
</particle>
<program>
<fluid>air</fluid>
<gravity>false</gravity>
<wind>true</wind>
</program>
</particlesystem>
</PropertyList>

18
Models/Effects/Normal.eff Executable file
View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<PropertyList>
<name>Aircraft/MQ-9/Models/Effects/Normal</name>
<inherits-from>Effects/bumpspec</inherits-from>
<parameters>
<texture n="2">
<image>Aircraft/MQ-9/Models/Effects/Normal.jpg</image>
<filter>linear-mipmap-linear</filter>
<wrap-s>repeat</wrap-s>
<wrap-t>repeat</wrap-t>
<internal-format>normalized</internal-format>
</texture>
</parameters>
</PropertyList>

BIN
Models/Effects/Normal.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

18
Models/Effects/Specular.eff Executable file
View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<PropertyList>
<name>Aircraft/MQ-9/Models/Effects/Specular</name>
<inherits-from>Effects/model-default</inherits-from>
<parameters>
<texture n="2">
<!--lightmap image -->
<image>Aircraft/MQ-9/Effects/Specular.jpg</image>
<filter>linear-mipmap-linear</filter>
<wrap-s>repeat</wrap-s>
<wrap-t>repeat</wrap-t>
<internal-format>normalized</internal-format>
</texture>
</parameters>
</PropertyList>

BIN
Models/Effects/Specular.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

View File

@ -0,0 +1,103 @@
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<particlesystem>
<name>condensation-left</name>
<offsets>
<x-m> 0.000 </x-m>
<y-m> 0.000 </y-m>
<z-m> -0.000 </z-m>
<roll-deg> 0.000 </roll-deg>
<pitch-deg> 0.000 </pitch-deg>
<heading-deg> 0.000 </heading-deg>
</offsets>
<texture>Smoke.png</texture>
<condition>
<property>sim/multiplay/generic/int[4]</property>
<not-equals>
<property>fdm/jsbsim/systems/crash-detect/crashed</property>
<value>1</value>
</not-equals>
</condition>
<emissive>true</emissive>
<lighting>false</lighting>
<align>billboard</align> <!-- billboard / fixed -->
<attach>world</attach> <!-- world / local-->
<placer>
<type>point</type> <!-- sector / segments / point -->
</placer>
<shooter>
<theta-min-deg>10</theta-min-deg>
<theta-max-deg>86</theta-max-deg>
<phi-min-deg>-1.5</phi-min-deg>
<phi-max-deg>8</phi-max-deg>
<speed-mps>
<value>10</value>
<spread>2.5</spread>
</speed-mps>
<rotation-speed>
<x-min-deg-sec>5</x-min-deg-sec>
<y-min-deg-sec>5</y-min-deg-sec>
<z-min-deg-sec>5</z-min-deg-sec>
<x-max-deg-sec>60</x-max-deg-sec>
<y-max-deg-sec>60</y-max-deg-sec>
<z-max-deg-sec>60</z-max-deg-sec>
</rotation-speed>
</shooter>
<counter>
<particles-per-sec>
<value>100</value>
<spread>1</spread>
</particles-per-sec>
</counter>
<particle>
<start>
<color>
<red><value>1</value></red>
<green><value>1</value></green>
<blue><value>1</value></blue>
<alpha><value>0.1</value></alpha>
</color>
<size>
<value>0.1</value>
</size>
</start>
<end>
<color>
<red><value>1</value></red>
<green><value>1</value></green>
<blue><value>1</value></blue>
<alpha><value>0.0001</value></alpha>
</color>
<size>
<value>1.0</value>
</size>
</end>
<life-sec>
<value>1.5</value>
</life-sec>
<mass-kg>0.0001</mass-kg>
<radius-m>0.1</radius-m>
</particle>
<program>
<fluid>air</fluid>
<gravity>false</gravity>
<wind>true</wind>
</program>
</particlesystem>
</PropertyList>

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

27
Models/Lights/Beacon.xml Normal file
View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<model>
<name>BeaconFlare</name>
<path>Aircraft/MQ-9/Models/Lights/Flares/Beacon-flare.xml</path>
</model>
<model>
<name>BeaconRemb</name>
<path>Aircraft/MQ-9/Models/Lights/Rembrandt/Beacon-remb.xml</path>
</model>
<animation>
<type>select</type>
<object-name>BeaconFlare</object-name>
<object-name>BeaconRemb</object-name>
<condition>
<and>
<property>lightpack/beacon-state/state</property>
<not><property>sim/crashed</property></not>
</and>
</condition>
</animation>
</PropertyList>

View File

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<path>RedLight-flat.ac</path>
<animation>
<type>blend</type>
<expression>
<sum>
<product>
<product>
<property>lightpack/beacon-state/state</property>
<value>-1</value>
</product>
<sum>
<max>
<product>
<pow>
<cos><property>/sim/time/sun-angle-rad</property></cos>
<value>0.3</value>
</pow>
<value>0.5</value> <!-- by tuning this, you specify how much to fade during full daylight -->
</product>
<value>0</value>
</max>
<value>-1</value>
</sum>
<value>-1</value>
</product>
<value>1</value>
</sum>
</expression>
</animation>
<effect>
<inherits-from>Effects/model-transparent</inherits-from>
<condition>
<property>/sim/rendering/rembrandt/enabled</property>
</condition>
<object-name>Light</object-name>
</effect>
<animation>
<type>billboard</type>
<object-name>Light</object-name>
<spherical type="bool">true</spherical>
</animation>
<animation>
<type>noshadow</type>
<object-name>Light</object-name>
</animation>
<animation>
<type>alpha-test</type>
<alpha-factor>0.01</alpha-factor>
</animation>
<animation>
<type>material</type>
<object-name>Light</object-name>
<emission>
<red> 1.0 </red>
<green> 1.0 </green>
<blue> 1.0 </blue>
</emission>
</animation>
<animation>
<type>dist-scale</type>
<object-name>Light</object-name>
<interpolation>
<entry><ind> 0 </ind><dep> 0.50 </dep></entry>
<entry><ind> 20 </ind><dep> 1.00 </dep></entry>
<entry><ind> 1500 </ind><dep> 10.00 </dep></entry>
</interpolation>
</animation>
</PropertyList>

View File

@ -0,0 +1,85 @@
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<path>GreenLight-flat.ac</path>
<animation>
<type>blend</type>
<expression>
<sum>
<product>
<product>
<property>lightpack/nav-lights-intensity</property>
<value>-1</value>
</product>
<sum>
<max>
<product>
<pow>
<cos><property>/sim/time/sun-angle-rad</property></cos>
<value>0.3</value>
</pow>
<value>0.8</value> <!-- by tuning this, you specify how much to fade during full daylight -->
</product>
<value>0</value>
</max>
<value>-1</value>
</sum>
<value>-1</value>
</product>
<value>1</value>
</sum>
</expression>
</animation>
<effect>
<inherits-from>Effects/model-transparent</inherits-from>
<condition>
<property>/sim/rendering/rembrandt/enabled</property>
</condition>
<object-name>Light</object-name>
</effect>
<animation>
<type>noshadow</type>
<object-name>Light</object-name>
</animation>
<animation>
<type>alpha-test</type>
<alpha-factor>0.01</alpha-factor>
</animation>
<animation>
<type>billboard</type>
<object-name>Light</object-name>
<spherical type="bool">true</spherical>
</animation>
<animation>
<type>material</type>
<object-name>Light</object-name>
<emission>
<red> 1.0 </red>
<green> 1.0 </green>
<blue> 1.0 </blue>
</emission>
</animation>
<animation>
<type>dist-scale</type>
<object-name>Light</object-name>
<interpolation>
<entry><ind> 0 </ind><dep> 0.25 </dep></entry>
<entry><ind> 20 </ind><dep> 0.50 </dep></entry>
<entry><ind> 1500 </ind><dep> 5.00 </dep></entry>
</interpolation>
<center> <!-- prevent the light from moving forward, obscuring eg. landing lights (the model is offset from center) -->
<x-m>0</x-m>
<y-m>-0.24</y-m>
<z-m>0</z-m>
</center>
</animation>
</PropertyList>

View File

@ -0,0 +1,25 @@
AC3Db
MATERIAL "DefaultWhite" rgb 1.0000 1.0000 1.0000 amb 0.2000 0.2000 0.2000 emis 0.0000 0.0000 0.0000 spec 0.5000 0.5000 0.5000 shi 10 trans 0.0000
MATERIAL "DefaultWhite" rgb 1.0000 1.0000 1.0000 amb 1.0000 1.0000 1.0000 emis 0.0000 0.0000 0.0000 spec 0.0800 0.0800 0.0800 shi 50 trans 0.0000
OBJECT world
name "Blender_export__GreenLight-flat2.ac"
kids 1
OBJECT poly
name "Light"
loc 0.0154000 0.0000000 0.2400000
texture "lights.png"
texrep 1 1
numvert 4
0.5000000 0.5000000 0.0000000
-0.5000000 0.5000000 0.0000000
-0.5000000 -0.5000000 0.0000000
0.5000000 -0.5000000 0.0000000
numsurf 1
SURF 0X20
mat 1
refs 4
0 0.948961 0.442462
1 0.563538 0.442462
2 0.563538 0.057039
3 0.948961 0.057039
kids 0

View File

@ -0,0 +1,87 @@
<?xml version="1.0"?>
<PropertyList>
<path>Light-flash.ac</path>
<animation>
<object-name>flash</object-name>
<attach>world</attach>
<placer>
<type>point</type>
</placer>
</animation>
<effect>
<inherits-from>Effects/model-transparent</inherits-from>
<condition>
<property>/sim/rendering/rembrandt/enabled</property>
</condition>
<object-name>flash</object-name>
</effect>
<animation>
<type>noshadow</type>
<object-name>flash</object-name>
</animation>
<animation>
<type>flash</type>
<object-name>flash</object-name>
<center>
<x-m> 0.000 </x-m>
<y-m> 0.000 </y-m>
<z-m> 0.000 </z-m>
</center>
<axis>
<x> -1.0 </x>
<y> 0.0 </y>
<z> -0.1 </z><!-- make sure to keep this equivalent to the Rembrandt light cone pitch setting! set here tan(pitch) -->
</axis>
<power>15</power>
<factor>0.8</factor>
<offset>0</offset>
<two-sides type="bool">false</two-sides>
<min>0.0</min>
<max>1</max>
</animation>
<animation>
<type>scale</type>
<object-name>flash</object-name>
<property>lightpack/landing-lights-intensity</property>
</animation>
<animation>
<type>material</type>
<object-name>flash</object-name>
<emission>
<red> 1.0 </red>
<green> 1.0 </green>
<blue> 0.75 </blue>
</emission>
</animation>
<animation>
<type>dist-scale</type>
<object-name>flash</object-name>
<interpolation>
<entry>
<ind>0</ind><dep>2</dep>
</entry>
<entry>
<ind>20</ind><dep>2</dep>
</entry>
<entry>
<ind>1500</ind><dep>4</dep>
</entry>
</interpolation>
<center> <!-- prevent light model from obscuring the flare on larger distances -->
<x-m>0.3</x-m>
<y-m>0</y-m>
<z-m>0</z-m>
</center>
</animation>
</PropertyList>

View File

@ -0,0 +1,26 @@
AC3Db
MATERIAL "DefaultWhite" rgb 1 1 1 amb 1 1 1 emis 0 0 0 spec 0.5 0.5 0.5 shi 64 trans 0
MATERIAL "lit" rgb 1 0.97912 0.97912 amb 1 0.97912 0.97912 emis 1 1 0.82 spec 0 0 0 shi 49 trans 0
OBJECT world
kids 1
OBJECT poly
name "flash"
data 5
flash
texture "lights.png"
texrep 1 1
crease 30.000000
numvert 4
0 0.6 0.6
0 -0.6 0.6
0 -0.6 -0.6
0 0.6 -0.599999
numsurf 1
SURF 0x00
mat 1
refs 4
0 0.52999997139 0.97000002861
3 0.97000002861 0.97000002861
2 0.97000002861 0.52999997139
1 0.52999997139 0.52999997139
kids 0

View File

@ -0,0 +1,81 @@
<?xml version="1.0"?>
<PropertyList>
<path>Light-flash.ac</path>
<effect>
<inherits-from>Effects/model-transparent</inherits-from>
<condition>
<property>/sim/rendering/rembrandt/enabled</property>
</condition>
<object-name>flash</object-name>
</effect>
<animation>
<object-name>flash</object-name>
<attach>world</attach>
<placer>
<type>point</type>
</placer>
</animation>
<animation>
<type>noshadow</type>
<object-name>flash</object-name>
</animation>
<animation>
<type>flash</type>
<object-name>flash</object-name>
<center>
<x-m> 0.000 </x-m>
<y-m> 0.000 </y-m>
<z-m> 0.000 </z-m>
</center>
<axis>
<x> -1 </x>
<y> 0 </y>
<z> 0 </z>
</axis>
<power>6</power>
<factor>0.04</factor>
<offset>0</offset>
<two-sides type="bool">false</two-sides>
<min>0.0</min>
<max>0.1</max>
</animation>
<animation>
<type>scale</type>
<object-name>flash</object-name>
<property>lightpack/probe-light-intensity</property>
</animation>
<animation>
<type>material</type>
<object-name>flash</object-name>
<emission>
<red> 1.0 </red>
<green> 1.0 </green>
<blue> 0.75 </blue>
</emission>
</animation>
<animation>
<type>dist-scale</type>
<object-name>flash</object-name>
<interpolation>
<entry>
<ind>0</ind><dep>4</dep>
</entry>
<entry>
<ind>20</ind><dep>4</dep>
</entry>
<entry>
<ind>1500</ind><dep>8</dep>
</entry>
</interpolation>
</animation>
</PropertyList>

View File

@ -0,0 +1,85 @@
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<path>RedLight-flat.ac</path>
<animation>
<type>blend</type>
<expression>
<sum>
<product>
<product>
<property>lightpack/nav-lights-intensity</property>
<value>-1</value>
</product>
<sum>
<max>
<product>
<pow>
<cos><property>/sim/time/sun-angle-rad</property></cos>
<value>0.3</value>
</pow>
<value>0.8</value> <!-- by tuning this, you specify how much to fade during full daylight -->
</product>
<value>0</value>
</max>
<value>-1</value>
</sum>
<value>-1</value>
</product>
<value>1</value>
</sum>
</expression>
</animation>
<effect>
<inherits-from>Effects/model-transparent</inherits-from>
<condition>
<property>/sim/rendering/rembrandt/enabled</property>
</condition>
<object-name>Light</object-name>
</effect>
<animation>
<type>noshadow</type>
<object-name>Light</object-name>
</animation>
<animation>
<type>alpha-test</type>
<alpha-factor>0.01</alpha-factor>
</animation>
<animation>
<type>billboard</type>
<object-name>Light</object-name>
<spherical type="bool">true</spherical>
</animation>
<animation>
<type>material</type>
<object-name>Light</object-name>
<emission>
<red> 1.0 </red>
<green> 1.0 </green>
<blue> 1.0 </blue>
</emission>
</animation>
<animation>
<type>dist-scale</type>
<object-name>Light</object-name>
<interpolation>
<entry><ind> 0 </ind><dep> 0.25 </dep></entry>
<entry><ind> 20 </ind><dep> 0.50 </dep></entry>
<entry><ind> 1500 </ind><dep> 5.00 </dep></entry>
</interpolation>
<center> <!-- prevent the light from moving forward, obscuring eg. landing lights (the model is offset from center) -->
<x-m>0</x-m>
<y-m>-0.24</y-m>
<z-m>0</z-m>
</center>
</animation>
</PropertyList>

View File

@ -0,0 +1,25 @@
AC3Db
MATERIAL "DefaultWhite" rgb 1.0000 1.0000 1.0000 amb 0.2000 0.2000 0.2000 emis 0.0000 0.0000 0.0000 spec 0.5000 0.5000 0.5000 shi 10 trans 0.0000
MATERIAL "DefaultWhite" rgb 1.0000 1.0000 1.0000 amb 1.0000 1.0000 1.0000 emis 0.0000 0.0000 0.0000 spec 0.0800 0.0800 0.0800 shi 50 trans 0.0000
OBJECT world
name "Blender_export__RedLight2.ac"
kids 1
OBJECT poly
name "Light"
loc 0.0154000 0.0000000 0.2400000
texture "lights.png"
texrep 1 1
numvert 4
0.5000000 0.5000000 0.0000000
-0.5000000 0.5000000 0.0000000
-0.5000000 -0.5000000 0.0000000
0.5000000 -0.5000000 0.0000000
numsurf 1
SURF 0X20
mat 1
refs 4
0 0.448961 0.442462
1 0.063538 0.442462
2 0.063538 0.057039
3 0.448961 0.057039
kids 0

View File

@ -0,0 +1,85 @@
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<path>WhiteLight-flat.ac</path>
<animation>
<type>blend</type>
<expression>
<sum>
<product>
<product>
<property>lightpack/strobe-state/state</property>
<value>-1</value>
</product>
<sum>
<max>
<product>
<pow>
<cos><property>/sim/time/sun-angle-rad</property></cos>
<value>0.3</value>
</pow>
<value>0.5</value> <!-- by tuning this, you specify how much to fade during full daylight -->
</product>
<value>0</value>
</max>
<value>-1</value>
</sum>
<value>-1</value>
</product>
<value>1</value>
</sum>
</expression>
</animation>
<effect>
<inherits-from>Effects/model-transparent</inherits-from>
<condition>
<property>/sim/rendering/rembrandt/enabled</property>
</condition>
<object-name>Light</object-name>
</effect>
<animation>
<type>noshadow</type>
<object-name>Light</object-name>
</animation>
<animation>
<type>alpha-test</type>
<alpha-factor>0.01</alpha-factor>
</animation>
<animation>
<type>billboard</type>
<object-name>Light</object-name>
<spherical type="bool">true</spherical>
</animation>
<animation>
<type>material</type>
<object-name>Light</object-name>
<emission>
<red> 1.0 </red>
<green> 1.0 </green>
<blue> 1.0 </blue>
</emission>
</animation>
<animation>
<type>dist-scale</type>
<object-name>Light</object-name>
<interpolation>
<entry><ind> 0 </ind><dep> 0.50 </dep></entry>
<entry><ind> 20 </ind><dep> 1.00 </dep></entry>
<entry><ind> 1500 </ind><dep> 10.00 </dep></entry>
</interpolation>
<center> <!-- prevent the light from moving forward, obscuring eg. landing lights (the model is offset from center) -->
<x-m>0</x-m>
<y-m>-0.24</y-m>
<z-m>0</z-m>
</center>
</animation>
</PropertyList>

View File

@ -0,0 +1,81 @@
<?xml version="1.0"?>
<PropertyList>
<path>Light-flash.ac</path>
<effect>
<inherits-from>Effects/model-transparent</inherits-from>
<condition>
<property>/sim/rendering/rembrandt/enabled</property>
</condition>
<object-name>flash</object-name>
</effect>
<animation>
<object-name>flash</object-name>
<attach>world</attach>
<placer>
<type>point</type>
</placer>
</animation>
<animation>
<type>noshadow</type>
<object-name>flash</object-name>
</animation>
<animation>
<type>flash</type>
<object-name>flash</object-name>
<center>
<x-m> 0.000 </x-m>
<y-m> 0.000 </y-m>
<z-m> 0.000 </z-m>
</center>
<axis>
<x> -1 </x>
<y> 0 </y>
<z> 0 </z>
</axis>
<power>15</power>
<factor>0.3</factor>
<offset>0</offset>
<two-sides type="bool">false</two-sides>
<min>0.0</min>
<max>1</max>
</animation>
<animation>
<type>scale</type>
<object-name>flash</object-name>
<property>lightpack/taxi-light-intensity</property>
</animation>
<animation>
<type>material</type>
<object-name>flash</object-name>
<emission>
<red> 1.0 </red>
<green> 1.0 </green>
<blue> 0.75 </blue>
</emission>
</animation>
<animation>
<type>dist-scale</type>
<object-name>flash</object-name>
<interpolation>
<entry>
<ind>0</ind><dep>2</dep>
</entry>
<entry>
<ind>20</ind><dep>2</dep>
</entry>
<entry>
<ind>1500</ind><dep>4</dep>
</entry>
</interpolation>
</animation>
</PropertyList>

View File

@ -0,0 +1,89 @@
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<path>WhiteLight-flat.ac</path>
<offsets>
<heading-deg>-90</heading-deg>
</offsets>
<animation>
<type>blend</type>
<expression>
<sum>
<product>
<product>
<property>lightpack/white-light-intensity</property>
<value>-1</value>
</product>
<sum>
<max>
<product>
<pow>
<cos><property>/sim/time/sun-angle-rad</property></cos>
<value>0.3</value>
</pow>
<value>0.8</value> <!-- by tuning this, you specify how much to fade during full daylight -->
</product>
<value>0</value>
</max>
<value>-1</value>
</sum>
<value>-1</value>
</product>
<value>1</value>
</sum>
</expression>
</animation>
<effect>
<inherits-from>Effects/model-transparent</inherits-from>
<condition>
<property>/sim/rendering/rembrandt/enabled</property>
</condition>
<object-name>Light</object-name>
</effect>
<animation>
<type>noshadow</type>
<object-name>Light</object-name>
</animation>
<animation>
<type>alpha-test</type>
<alpha-factor>0.01</alpha-factor>
</animation>
<animation>
<type>billboard</type>
<object-name>Light</object-name>
<spherical type="bool">true</spherical>
</animation>
<animation>
<type>material</type>
<object-name>Light</object-name>
<emission>
<red> 1.0 </red>
<green> 1.0 </green>
<blue> 1.0 </blue>
</emission>
</animation>
<animation>
<type>dist-scale</type>
<object-name>Light</object-name>
<interpolation>
<entry><ind> 0 </ind><dep> 0.375 </dep></entry>
<entry><ind> 20 </ind><dep> 0.75 </dep></entry>
<entry><ind> 1500 </ind><dep> 3.00 </dep></entry>
</interpolation>
<center> <!-- prevent the light from moving forward, obscuring eg. landing lights (the model is offset from center) -->
<x-m>0</x-m>
<y-m>-0.24</y-m>
<z-m>0</z-m>
</center>
</animation>
</PropertyList>

View File

@ -0,0 +1,25 @@
AC3Db
MATERIAL "DefaultWhite" rgb 1.0000 1.0000 1.0000 amb 0.2000 0.2000 0.2000 emis 0.0000 0.0000 0.0000 spec 0.5000 0.5000 0.5000 shi 10 trans 0.0000
MATERIAL "DefaultWhite" rgb 1.0000 1.0000 1.0000 amb 1.0000 1.0000 1.0000 emis 0.0000 0.0000 0.0000 spec 0.0800 0.0800 0.0800 shi 50 trans 0.0000
OBJECT world
name "Blender_export__GreenLight-flat2.ac"
kids 1
OBJECT poly
name "Light"
loc 0.0154000 0.0000000 0.2400000
texture "lights.png"
texrep 1 1
numvert 4
0.5000000 0.5000000 0.0000000
-0.5000000 0.5000000 0.0000000
-0.5000000 -0.5000000 0.0000000
0.5000000 -0.5000000 0.0000000
numsurf 1
SURF 0X20
mat 1
refs 4
0 0.448961 0.948961
1 0.063538 0.948961
2 0.063538 0.557538
3 0.448961 0.557538
kids 0

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<model>
<name>GreenLightFlare</name>
<path>Aircraft/MQ-9/Models/Lights/Flares/GreenLight-flare.xml</path>
</model>
<model>
<name>GreenLightRemb</name>
<path>Aircraft/MQ-9/Models/Lights/Rembrandt/GreenLight-remb.xml</path>
</model>
<animation>
<type>select</type>
<object-name>GreenLightFlare</object-name>
<object-name>GreenLightRemb</object-name>
<condition>
<and>
<property>lightpack/nav-lights-intensity</property>
<not><property>sim/crashed</property></not>
</and>
</condition>
</animation>
</PropertyList>

View File

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<model>
<name>LandingLightFlash</name>
<path>Aircraft/MQ-9/Models/Lights/Flares/LandingLight-flash.xml</path>
</model>
<model>
<name>LandingLightRemb</name>
<path>Aircraft/MQ-9/Models/Lights/Rembrandt/LandingLight-remb.xml</path>
</model>
<!--><model>
<name>LandingLightCone</name>
<path>Aircraft/MQ-9/Models/Lights/LightCone/LandingLight-cone.xml</path>
</model><--> <!-- uncomment for fake non-rembrandt cones -->
<animation>
<type>select</type>
<object-name>LandingLightFlash</object-name>
<object-name>LandingLightRemb</object-name>
<!--><object-name>LandingLightCone</object-name><--> <!-- uncomment for fake non-rembrandt cones -->
<condition>
<and>
<property>lightpack/landing-lights-intensity</property>
<not><property>sim/crashed</property></not>
</and>
</condition>
</animation>
</PropertyList>

View File

@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<path>LightCone.ac</path>
<animation>
<type>blend</type>
<expression>
<sum>
<product>
<product>
<property>lightpack/landing-lights-intensity</property>
<value>-1</value>
</product>
<sum>
<max>
<pow>
<cos><property>/sim/time/sun-angle-rad</property></cos>
<value>0.3</value>
</pow>
<value>0</value>
</max>
<value>-1.8</value>
</sum>
<value>-0.2</value>
</product>
<value>1</value>
</sum>
</expression>
</animation>
<effect>
<inherits-from>Effects/light-cone</inherits-from>
<object-name>Cone</object-name>
</effect>
<animation>
<type>select</type>
<object-name>Cone</object-name>
<object-name>Cone-texture</object-name>
<object-name>Light</object-name>
<condition>
<not><property>/sim/rendering/rembrandt/enabled</property></not>
</condition>
</animation>
</PropertyList>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<path>LightCone.ac</path>
<animation>
<type>blend</type>
<expression>
<sum>
<product>
<product>
<property>lightpack/taxi-light-intensity</property>
<value>-1</value>
</product>
<sum>
<max>
<pow>
<cos><property>/sim/time/sun-angle-rad</property></cos>
<value>0.3</value>
</pow>
<value>0</value>
</max>
<value>-1.8</value>
</sum>
<value>-0.2</value>
</product>
<value>1</value>
</sum>
</expression>
</animation>
<effect>
<inherits-from>Effects/light-cone</inherits-from>
<object-name>Cone</object-name>
</effect>
<animation>
<type>select</type>
<object-name>Cone</object-name>
<object-name>Cone-texture</object-name>
<object-name>Light</object-name>
<condition>
<not><property>/sim/rendering/rembrandt/enabled</property></not>
</condition>
</animation>
</PropertyList>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

157
Models/Lights/LightPack.xml Normal file
View File

@ -0,0 +1,157 @@
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<!-- nav lights -->
<!-- green and red navigation lights, usually mounted on the wingtips -->
<!-- note: default orientation is up -->
<model>
<name>GreenLight</name>
<path>Aircraft/MQ-9/Models/Lights/GreenLight.xml</path>
<offsets>
<x-m> 0.2146</x-m>
<y-m> 9.2889</y-m>
<z-m> 0.4382</z-m>
<roll-deg>-90</roll-deg>
<pitch-deg>-5</pitch-deg> <!-- due to roll, this tunes heading - I want it to point 5 deg more forward -->
</offsets>
</model>
<model>
<name>RedLight</name>
<path>Aircraft/MQ-9/Models/Lights/RedLight.xml</path>
<offsets>
<x-m> 0.2146</x-m>
<y-m>-9.2889</y-m>
<z-m> 0.4382</z-m>
<roll-deg>90</roll-deg>
<pitch-deg>-5</pitch-deg> <!-- due to roll, this tunes heading - I want it to point 5 deg more forward -->
</offsets>
</model>
<!-- beacon -->
<!-- bright red flashing light -->
<!-- note: default orientation is up -->
<model>
<name>Beacon1</name>
<path>Aircraft/MQ-9/Models/Lights/Beacon.xml</path>
<offsets>
<x-m>2.9797</x-m>
<y-m>0.0000</y-m>
<z-m>1.4505</z-m>
<pitch-deg>6</pitch-deg>
</offsets>
</model>
<!-- landing lights -->
<!-- a powerful front facing spotlight -->
<!--
<model>
<name>LandingLight1</name>
<path>Aircraft/MQ-9/Models/Lights/LandingLight.xml</path>
<offsets>
<x-m>-1.7680</x-m>
<y-m>4.7054</y-m>
<z-m>-0.7316</z-m>
<pitch-deg>-5.7</pitch-deg>
</offsets>
</model>
<model>
<name>LandingLight2</name>
<path>Aircraft/MQ-9/Models/Lights/LandingLight.xml</path>
<offsets>
<x-m>-1.7680</x-m>
<y-m>-4.688</y-m>
<z-m>-0.7293</z-m>
<pitch-deg>-5.7</pitch-deg>
</offsets>
</model>
-->
<!-- taxi light -->
<!-- a weaker front facing spotlight, often mounted on the front gear -->
<!--
<model>
<name>TaxiLight</name>
<path>Aircraft/MQ-9/Models/Lights/TaxiLight.xml</path>
<offsets>
<x-m>-4.5571</x-m>
<y-m>0.01601</y-m>
<z-m>-1.6480</z-m>
<pitch-deg>-1.5</pitch-deg>
</offsets>
</model>
-->
<!-- front gear turning: include TaxiLight in the list of animated objects in the rotate animation of the gear in the top-level model XML file -->
<!-- retracted gear makes it dissapear - use only if mounted on front gear -->
<!--
<animation>
<type>select</type>
<object-name>TaxiLight</object-name>
<condition>
<equals>
<property>gear/gear[0]/position-norm</property>
<value>1</value>
</equals>
</condition>
</animation>
-->
<!-- probe light -->
<!-- this is best included in the probe model xml file, not here - just an example -->
<!-- if you have an extendable/optional fuel probe, including this in its own model file makes sure the light moves/disappears together with the probe -->
<!-- in case of extendable probe, you might want to add a select animation (to turn off the light when not fully extended), similar as for the taxi light on the front gear -->
<!--><model>
<path>Aircraft/MQ-9/Models/Lights/ProbeLight.xml</path>
<offsets>
<x-m>-4.4867</x-m>
<y-m>0.4922</y-m>
<z-m>-0.4929</z-m>
</offsets>
</model><-->
<!-- strobes -->
<!-- a bright briefly flashing white light -->
<!-- note: default orientation is up -->
<model>
<name>Strobe1</name>
<path>Aircraft/MQ-9/Models/Lights/Strobe.xml</path>
<offsets>
<x-m> 0.3993</x-m>
<y-m> 9.3400</y-m>
<z-m> 0.4433</z-m>
<roll-deg>-90</roll-deg>
<pitch-deg>-3</pitch-deg> <!-- due to roll, this tunes heading - I want it to point 3 deg more forward -->
</offsets>
</model>
<model>
<name>Strobe2</name>
<path>Aircraft/MQ-9/Models/Lights/Strobe.xml</path>
<offsets>
<x-m> 0.3993</x-m>
<y-m>-9.3400</y-m>
<z-m> 0.4433</z-m>
<roll-deg>90</roll-deg>
<pitch-deg>-3</pitch-deg> <!-- due to roll, this tunes heading - I want it to point 3 deg more forward -->
</offsets>
</model>
<!-- white light -->
<!-- a white stable light, usually used as a visibility feature on the tail -->
<!-- note: default orientation is up -->
<!--
<model>
<name>WhiteLight</name>
<path>Aircraft/MQ-9/Models/Lights/WhiteLight.xml</path>
<offsets>
<x-m>5.81421</x-m>
<y-m>0.00868</y-m>
<z-m>2.78899</z-m>
<pitch-deg>93</pitch-deg>
</offsets>
</model>
-->
</PropertyList>

View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<model>
<name>ProbeLightFlash</name>
<path>Aircraft/MQ-9/Models/Lights/Flares/ProbeLight-flash.xml</path>
</model>
<model>
<name>ProbeLightRemb</name>
<path>Aircraft/MQ-9/Models/Lights/Rembrandt/ProbeLight-remb.xml</path>
</model>
<animation>
<type>select</type>
<object-name>ProbeLightFlash</object-name>
<object-name>ProbeLightRemb</object-name>
<condition>
<and>
<property>lightpack/probe-light-intensity</property>
<not><property>sim/crashed</property></not>
</and>
</condition>
</animation>
</PropertyList>

155
Models/Lights/README.txt Normal file
View File

@ -0,0 +1,155 @@
=== COMBINED REMBRANDT/NON REMBRANDT LIGHTING KIT ===
by FGUK.eu
This lighting kit lets you easily add both Rembrandt and non Rembrandt external lighting to an aircraft only by including the base pack XML and editing the coordinates there. This pack heavily depends on the Nasal script which is included both as a standalone script file (for direct inclusion in the aircrafts -set.xml file) and also in the multiplayer code inside the aircraft model xml file (in the <nasal></nasal> tags).
The XML files contained in this archive contain an auto switching code to change between Rembrandt and non Rembrandt lighting. Fake non Rembrandt light cones are included, but commented out by default (see files Lights/LandingLight.xml and Lights/TaxiLight.xml).
Flares, fake cones and Rembrandt lights properly fade out in daylight.
IMPORTANT NOTE: once applied to an aircraft, it will be compatible with FlightGear versions 2.11+ only.
Some of the Rembrandt light features show only with the light shader being set high enough (landing, taxi >0, nav lights, beacon and other external lights >1).
=== INSTRUCTIONS ===
IMPORTANT: You don't need to go through any other files than explicitly mentioned in this readme. Multiplayer support is handled by Nasal code mirroring the multiplayer transferred properties to their original counterparts. Don't include any properties like sim/multiplay/generic/int[3] anywhere else than in the variables specially designed for this in the Nasal code. All the output properties (written to by Nasal) are placed in the node "/lightpack" and are not supposed to be changed.
You only need to embed one xml file in your aircraft model xml: LightPack.xml
Most further editing will take place in that file. Include it in your aircraft model file like this:
<!-- LIGHTS -->
<model>
<name>LightPack</name>
<path>Aircraft/YOURAIRCRAFT/Models/Lights/LightPack.xml</path>
</model>
In this file, all the light files (which are themselves including the Rembrandt, flare, etc. model files) are referenced.
Modify the coordinates of placement of the lights here. Follow any instructions in comments.
Place the folder "Lights" in the folder "Models" in your aircraft base folder. The capital letter on the start (both Lights and Models) matters - if you change the letter case, all the xml files will fail to load on other systems than Windows (Windows does not have case sensitive paths, other systems usually have).
If you already have your Models folder with lowercase m (or any other name change), you will need to change this in all the paths where you changed the YOURAIRCRAFT string to the aircraft base folder name (list of the files follows later in this readme).
Note that this pack cannot handle material animations on your aircraft parts (reflectors of landing lights, nav lights models etc.). If desired, you need to include them in your aircraft's model file. Chances are you already have these done, in this case you only need to change the properties they depend on. The properties for this are:
lightpack/nav-lights-intensity
lightpack/beacon-state/state
lightpack/strobe-state/state
lightpack/landing-lights-intensity
lightpack/taxi-light-intensity
lightpack/probe-light-intensity
lightpack/white-light-intensity
The names are self-explanatory. Use these properties, not the switch properties - these properties are nicely interpolated when turned on/off etc.
As will be explained later, they are also the only properties that guarantee multiplayer support (they are manipulated exclusively by Nasal).
You will need to replace all occurrences of YOURAIRCRAFT string in paths with your aircraft base folder name. This needs to be done in the following files:
TaxiLight.xml
RedLight.xml
LandingLight.xml
WhiteLight.xml
Strobe.xml
LightPack.xml
Beacon.xml
ProbeLight.xml
GreenLight.xml
Those are just all the files in the base folder, there is no other file where you need to do this. You can easily use mass search and replace with your favorite text editor.
You need to add the file Lights.nas to your aircraft's folder with Nasal scripts and reference it in your Aircraft-set.xml file, like this:
<nasal>
<!-- other Nasal includes -->
<lights>
<file>Aircraft/YOURAIRCRAFT/Nasal/Lights.nas</file>
</lights>
<!-- other Nasal includes -->
</nasal>
You need to edit some simple property bindings in this file. On the beginning of the file, you will see these lines:
#list of switches for lights - if you don't intend to use some light, assign it nil value instead, like whateverSwitch = nil; and you don't need to care about anything else
var navSwitch = "/controls/lighting/nav-lights-switch";
var beaconSwitch = "/controls/lighting/beacon-switch";
var strobeSwitch = "/controls/lighting/strobe-switch";
var landingSwitch = "/controls/lighting/landing-lights-switch";
var taxiSwitch = "/controls/lighting/taxi-light-switch";
var probeSwitch = "/controls/lighting/probe-light-switch";
var whiteSwitch = "/controls/lighting/white-light-switch";
Edit those property bindings. They are used as a boolean on/off switch and are supposed to be MP transferred by binding them to the MP trasferred integers. You can set those properties as you wish, according to your current switch setup.
If you don't want to use some of the lights provided at all, just assign a nil value here instead of the string:
var whateverSwitch = nil;
The code handles this properly and doesn't create the output property for it. It's not entirely necessary, but preferred to delete/comment out any of the unused lights in the file LightPack.xml
Now you are one last step from the finish. All that is left is to add a multiplayer support.
As mentioned in the Nasal part, the on/off switch properties are expected to be bound to MP transferred properties. You need to embed a Nasal code in your aircraft's model xml file, between the <nasal></nasal> tags. The code is too long to be included here (>90% is the same as in Lights.nas), find the code in the file YOURAIRCRAFT.xml
You will find there part very similar to the previous switches bindings in the local Nasal:
#list of switches for lights - if you don't intend to use some light, assign it nil value instead, like whateverSwitch = nil; and you don't need to care about anything else
#IMPORTANT: don't put / on the start of the string, it's already included in the mpPath property
var navSwitch = mpPath~"controls/lighting/nav-lights-switch";
var beaconSwitch = mpPath~"controls/lighting/beacon-switch";
var strobeSwitch = mpPath~"controls/lighting/strobe-switch";
var landingSwitch = mpPath~"controls/lighting/landing-lights-switch";
var taxiSwitch = mpPath~"controls/lighting/taxi-light-switch";
var probeSwitch = mpPath~"controls/lighting/probe-light-switch";
var whiteSwitch = mpPath~"controls/lighting/white-light-switch";
You need to put there the same property paths as before, but now the string is appended to a previously generated MP prefix. Don't include the leading slash, it is in the prefix already. It is crucial those bindings are the same as in the local Nasal.
You also need to specify the MP properties used for transfer, so Nasal knows which MP property should be watched and mirrored to which original property. Look for a chunk of code looking like this:
#init any property copy object needed in this array (anything you need to transfer over MP, but you are using the original paths in your xmls)
#also used for properties you are using a listener on, or properties which you maybe want to manipulate during the <unload>
#if you're just using the pack, change the values according to the MP bindings in the -set.xml file
#you don't need to delete the entries if the path is nil - it gets skipped automatically and the MP path is just ignored
var mirrorValues = [
mpVar.new(mpPath~"sim/multiplay/generic/int[7]", mpPath~"sim/crashed"),
mpVar.new(mpPath~"sim/multiplay/generic/int[0]", navSwitch),
mpVar.new(mpPath~"sim/multiplay/generic/int[1]", beaconSwitch),
mpVar.new(mpPath~"sim/multiplay/generic/int[1]", strobeSwitch),
mpVar.new(mpPath~"sim/multiplay/generic/int[2]", landingSwitch),
mpVar.new(mpPath~"sim/multiplay/generic/int[3]", taxiSwitch),
mpVar.new(mpPath~"sim/multiplay/generic/int[3]", probeSwitch),
mpVar.new(mpPath~"sim/multiplay/generic/int[0]", whiteSwitch),
];
Here you see the previously assembled strings. You don't need to care about those at all - just change the number in the square brackets to whatever is the index of the MP property that represents the property on the right. It is essential that this is paired in exactly the same way as the properties are assigned in your -set file.
If you assigned nil to some switch, you don't need to care about the line where it is used. It just gets ignored, so the index doesn't matter.
If you want to add any light unrelated property to the copy mechanism, just add a new line in the array, following the same pattern.
And that's it, you just got yourself a brand new and awesome lighting effects :)
=== FURTHER TUNING ===
If you want to have the navigation lights use nice periodically fading behavior instead of being continuously on when the switch is on, change the line just below the switch property path assignments in the file Lights.nas:
#switch this from 1 to 0 if you want to use advanced cyclical fading animation of the the nav lights instead of being stable on when the switch is on
navStillOn = 1;
This doesn't mean they are on all the time, they still depend on the switch property. They just don't perform periodical fade-in-out animation when the value is 1.
Change it in the MP support Nasal code in your aircraft model xml file as well.
In case you use the fading animation, you can easily change the duration of the phases just after line 80 in Lights.nas. Of course equivalent change needs to be done in the MP code as well.
If you want the landing and taxi lights switches bound to the landing gear, change this line below the switch property path assignments in the file Lights.nas:
#switch this from 0 to 1 if you want to bind the landing and taxi lights to the landing gear
gearBind = 0;
This again handles the nil values correctly if you're not using one of the lights.
If you want to tune the lights, like setting custom animation times, read through the Nasal, there are comments explaining the variables. The code uses object-oriented approach - don't edit the class implementation! Only assign the values to the members of the created objects. You will need to do this in both the local and the model-embedded Nasal code, but don't be afraid, thanks to a good design they are identical (except for the first few lines needed to set up the environment).

View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<model>
<name>RedLightFlare</name>
<path>Aircraft/MQ-9/Models/Lights/Flares/RedLight-flare.xml</path>
</model>
<model>
<name>RedLightRemb</name>
<path>Aircraft/MQ-9/Models/Lights/Rembrandt/RedLight-remb.xml</path>
</model>
<animation>
<type>select</type>
<object-name>RedLightFlare</object-name>
<object-name>RedLightRemb</object-name>
<condition>
<and>
<property>lightpack/nav-lights-intensity</property>
<not><property>sim/crashed</property></not>
</and>
</condition>
</animation>
</PropertyList>

View File

@ -0,0 +1,86 @@
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<path>HalfSphere.ac</path>
<animation>
<type>select</type>
<object-name>Sphere</object-name>
<condition>
<and>
<property>/sim/rendering/rembrandt/enabled</property>
<greater-than>
<property>/sim/rendering/shaders/lights</property>
<value>1</value>
</greater-than>
</and>
</condition>
</animation>
<animation>
<type>light</type>
<light-type>spot</light-type>
<name>BeaconR</name>
<object-name>Sphere</object-name>
<nopreview/>
<position>
<x>0.0</x>
<y>0.0</y>
<z>0.0</z>
</position>
<direction>
<x>0.0</x>
<y>0.0</y>
<z>1.0</z>
</direction>
<ambient>
<r>0.03</r>
<g>0.01</g>
<b>0.01</b>
<a>1.0</a>
</ambient>
<diffuse>
<r>0.80</r>
<g>0.10</g>
<b>0.10</b>
<a>1.0</a>
</diffuse>
<specular>
<r>1.00</r>
<g>0.20</g>
<b>0.20</b>
<a>1.0</a>
</specular>
<dim-factor>
<expression>
<product>
<value>-1</value>
<sum>
<product>
<max>
<pow>
<cos><property>/sim/time/sun-angle-rad</property></cos>
<value>0.3</value>
</pow>
<value>0</value>
</max>
<value>0.6</value>
</product>
<value>-1</value>
</sum>
</product>
</expression>
</dim-factor>
<attenuation>
<c>1.0</c>
<l>0.05</l>
<q>0.1</q>
</attenuation>
<exponent>0.5</exponent>
<cutoff>90</cutoff>
<near-m>0.001</near-m>
<far-m>30</far-m>
</animation>
</PropertyList>

View File

@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<path>HalfSphere.ac</path>
<animation>
<type>select</type>
<object-name>Sphere</object-name>
<condition>
<and>
<property>/sim/rendering/rembrandt/enabled</property>
<greater-than>
<property>/sim/rendering/shaders/lights</property>
<value>1</value>
</greater-than>
</and>
</condition>
</animation>
<animation>
<type>light</type>
<light-type>spot</light-type>
<name>GreenLightR</name>
<object-name>Sphere</object-name>
<nopreview/>
<position>
<x>0.0</x>
<y>0.0</y>
<z>0.0</z>
</position>
<direction>
<x>0.0</x>
<y>0.0</y>
<z>1.0</z>
</direction>
<ambient>
<r>0.01</r>
<g>0.03</g>
<b>0.01</b>
<a>1.0</a>
</ambient>
<diffuse>
<r>0.20</r>
<g>0.80</g>
<b>0.20</b>
<a>1.0</a>
</diffuse>
<specular>
<r>0.30</r>
<g>1.00</g>
<b>0.30</b>
<a>1.0</a>
</specular>
<dim-factor>
<expression>
<product>
<property>lightpack/nav-lights-intensity</property>
<value>-0.35</value>
<sum>
<product>
<max>
<pow>
<cos><property>/sim/time/sun-angle-rad</property></cos>
<value>0.3</value>
</pow>
<value>0</value>
</max>
<value>1.2</value>
</product>
<value>-1</value>
</sum>
</product>
</expression>
</dim-factor>
<attenuation>
<c>1.0</c>
<l>0.05</l>
<q>0.01</q>
</attenuation>
<exponent>0.65</exponent>
<cutoff>90</cutoff>
<near-m>0.001</near-m>
<far-m>30</far-m>
</animation>
</PropertyList>

View File

@ -0,0 +1,326 @@
AC3Db
MATERIAL "DefaultWhite" rgb 1.0000 1.0000 1.0000 amb 0.2000 0.2000 0.2000 emis 0.0000 0.0000 0.0000 spec 0.5000 0.5000 0.5000 shi 10 trans 0.0000
MATERIAL "DefaultWhite" rgb 1.0000 1.0000 1.0000 amb 0.2000 0.2000 0.2000 emis 0.0000 0.0000 0.0000 spec 0.0500 0.0500 0.0500 shi 50 trans 0.0000
OBJECT world
name "Blender_export__HalfSphere.ac"
kids 1
OBJECT poly
name "Sphere"
loc 0.0000000 0.0000000 0.0000000
numvert 26
8.2916403 13.4165955 25.5194778
20.6456814 15.7720861 14.9999075
4.8736668 25.5196304 14.9998579
-7.8860645 15.7721291 24.2703495
17.6335678 0.0000000 24.2705002
15.7718935 25.5195503 0.0000000
-12.7596807 25.5196247 9.2703419
0.0000000 0.0000000 29.9999981
28.5317364 0.0000000 9.2703791
0.0000000 30.0000000 0.0000000
26.8327866 13.4164686 0.0000000
-21.7082195 13.4165859 15.7717590
-17.6335678 0.0000000 24.2705002
4.8736668 25.5196304 -14.9998579
20.6456814 15.7720861 -14.9999075
-12.7596807 25.5196247 -9.2703419
-25.5194359 15.7720776 0.0000000
28.5317364 0.0000000 -9.2703791
-28.5317364 0.0000000 9.2703791
8.2916403 13.4165955 -25.5194778
-7.8860645 15.7721291 -24.2703495
17.6335678 0.0000000 -24.2705002
-21.7082195 13.4165859 -15.7717590
-28.5317364 0.0000000 -9.2703791
0.0000000 0.0000000 -29.9999981
-17.6335678 0.0000000 -24.2705002
numsurf 48
SURF 0X0
mat 1
refs 3
0 0 0
1 0 0
2 0 0
SURF 0X0
mat 1
refs 3
3 0 0
0 0 0
2 0 0
SURF 0X0
mat 1
refs 3
4 0 0
1 0 0
0 0 0
SURF 0X0
mat 1
refs 3
2 0 0
1 0 0
5 0 0
SURF 0X0
mat 1
refs 3
6 0 0
3 0 0
2 0 0
SURF 0X0
mat 1
refs 3
7 0 0
0 0 0
3 0 0
SURF 0X0
mat 1
refs 3
7 0 0
4 0 0
0 0 0
SURF 0X0
mat 1
refs 3
4 0 0
8 0 0
1 0 0
SURF 0X0
mat 1
refs 3
2 0 0
5 0 0
9 0 0
SURF 0X0
mat 1
refs 3
1 0 0
10 0 0
5 0 0
SURF 0X0
mat 1
refs 3
6 0 0
2 0 0
9 0 0
SURF 0X0
mat 1
refs 3
11 0 0
3 0 0
6 0 0
SURF 0X0
mat 1
refs 3
12 0 0
7 0 0
3 0 0
SURF 0X0
mat 1
refs 3
8 0 0
10 0 0
1 0 0
SURF 0X0
mat 1
refs 3
5 0 0
13 0 0
9 0 0
SURF 0X0
mat 1
refs 3
10 0 0
14 0 0
5 0 0
SURF 0X0
mat 1
refs 3
15 0 0
6 0 0
9 0 0
SURF 0X0
mat 1
refs 3
16 0 0
11 0 0
6 0 0
SURF 0X0
mat 1
refs 3
12 0 0
3 0 0
11 0 0
SURF 0X0
mat 1
refs 3
8 0 0
17 0 0
10 0 0
SURF 0X0
mat 1
refs 3
5 0 0
14 0 0
13 0 0
SURF 0X0
mat 1
refs 3
13 0 0
15 0 0
9 0 0
SURF 0X0
mat 1
refs 3
17 0 0
14 0 0
10 0 0
SURF 0X0
mat 1
refs 3
15 0 0
16 0 0
6 0 0
SURF 0X0
mat 1
refs 3
18 0 0
11 0 0
16 0 0
SURF 0X0
mat 1
refs 3
18 0 0
12 0 0
11 0 0
SURF 0X0
mat 1
refs 3
14 0 0
19 0 0
13 0 0
SURF 0X0
mat 1
refs 3
13 0 0
20 0 0
15 0 0
SURF 0X0
mat 1
refs 3
17 0 0
21 0 0
14 0 0
SURF 0X0
mat 1
refs 3
22 0 0
16 0 0
15 0 0
SURF 0X0
mat 1
refs 3
23 0 0
18 0 0
16 0 0
SURF 0X0
mat 1
refs 3
21 0 0
19 0 0
14 0 0
SURF 0X0
mat 1
refs 3
19 0 0
20 0 0
13 0 0
SURF 0X0
mat 1
refs 3
20 0 0
22 0 0
15 0 0
SURF 0X0
mat 1
refs 3
23 0 0
16 0 0
22 0 0
SURF 0X0
mat 1
refs 3
21 0 0
24 0 0
19 0 0
SURF 0X0
mat 1
refs 3
24 0 0
20 0 0
19 0 0
SURF 0X0
mat 1
refs 3
25 0 0
22 0 0
20 0 0
SURF 0X0
mat 1
refs 3
25 0 0
23 0 0
22 0 0
SURF 0X0
mat 1
refs 3
24 0 0
25 0 0
20 0 0
SURF 0X0
mat 1
refs 3
8 0 0
4 0 0
17 0 0
SURF 0X0
mat 1
refs 3
4 0 0
7 0 0
12 0 0
SURF 0X0
mat 1
refs 3
12 0 0
18 0 0
23 0 0
SURF 0X0
mat 1
refs 3
23 0 0
25 0 0
24 0 0
SURF 0X0
mat 1
refs 3
24 0 0
21 0 0
17 0 0
SURF 0X0
mat 1
refs 3
4 0 0
12 0 0
17 0 0
SURF 0X0
mat 1
refs 3
12 0 0
23 0 0
24 0 0
SURF 0X0
mat 1
refs 3
12 0 0
24 0 0
17 0 0
kids 0

View File

@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<path>LandingLightCone.ac</path>
<animation>
<type>select</type>
<object-name>light</object-name>
<condition>
<and>
<property>/sim/rendering/rembrandt/enabled</property>
<greater-than>
<property>/sim/rendering/shaders/lights</property>
<value>0</value>
</greater-than>
</and>
</condition>
</animation>
<animation>
<type>light</type>
<light-type>spot</light-type>
<name>LandingR</name>
<object-name>light</object-name>
<nopreview/>
<position>
<x>0.0</x>
<y>0.0</y>
<z>0.0</z>
</position>
<direction>
<x>-1.0</x>
<y>0.0</y>
<z>0.0</z>
</direction>
<ambient>
<r>0.03</r>
<g>0.03</g>
<b>0.03</b>
<a>1.0</a>
</ambient>
<diffuse>
<r>0.80</r>
<g>0.80</g>
<b>0.70</b>
<a>1.0</a>
</diffuse>
<specular>
<r>1.00</r>
<g>0.75</g>
<b>0.75</b>
<a>1.0</a>
</specular>
<dim-factor>
<expression>
<product>
<value>-1</value>
<sum>
<product>
<max>
<pow>
<cos><property>/sim/time/sun-angle-rad</property></cos>
<value>0.3</value>
</pow>
<value>0</value>
</max>
<value>1.0</value>
</product>
<value>-1</value>
</sum>
<property>lightpack/landing-lights-intensity</property>
</product>
</expression>
</dim-factor>
<attenuation>
<c>0.08</c>
<l>0.002</l>
<q>0.0001</q>
</attenuation>
<exponent>80</exponent>
<cutoff>45</cutoff>
<near-m>0.01</near-m>
<far-m>550</far-m>
</animation>
</PropertyList>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,88 @@
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<path>ProbeLightCone.ac</path>
<animation>
<type>select</type>
<object-name>light</object-name>
<condition>
<and>
<property>/sim/rendering/rembrandt/enabled</property>
<greater-than>
<property>/sim/rendering/shaders/lights</property>
<value>1</value>
</greater-than>
</and>
</condition>
</animation>
<animation>
<type>light</type>
<light-type>spot</light-type>
<name>ProbeR</name>
<object-name>light</object-name>
<nopreview/>
<position>
<x>0.0</x>
<y>0.0</y>
<z>0.0</z>
</position>
<direction>
<x>-1.0</x>
<y>0.0</y>
<z>0.0</z>
</direction>
<ambient>
<r>0.03</r>
<g>0.03</g>
<b>0.03</b>
<a>1.0</a>
</ambient>
<diffuse>
<r>0.80</r>
<g>0.80</g>
<b>0.70</b>
<a>1.0</a>
</diffuse>
<specular>
<r>1.00</r>
<g>0.75</g>
<b>0.75</b>
<a>1.0</a>
</specular>
<dim-factor>
<expression>
<product>
<value>-1</value>
<sum>
<product>
<max>
<pow>
<cos><property>/sim/time/sun-angle-rad</property></cos>
<value>0.3</value>
</pow>
<value>0</value>
</max>
<value>1.0</value>
</product>
<value>-1</value>
</sum>
<property>lightpack/probe-light-intensity</property>
</product>
</expression>
</dim-factor>
<attenuation>
<c>0.1</c>
<l>0.002</l>
<q>0.008</q>
</attenuation>
<exponent>6</exponent>
<cutoff>70</cutoff>
<near-m>0.04</near-m>
<far-m>130</far-m>
</animation>
</PropertyList>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<path>HalfSphere.ac</path>
<animation>
<type>select</type>
<object-name>Sphere</object-name>
<condition>
<and>
<property>/sim/rendering/rembrandt/enabled</property>
<greater-than>
<property>/sim/rendering/shaders/lights</property>
<value>1</value>
</greater-than>
</and>
</condition>
</animation>
<animation>
<type>light</type>
<light-type>spot</light-type>
<name>RedLightRemb</name>
<object-name>Sphere</object-name>
<nopreview/>
<position>
<x>0.0</x>
<y>0.0</y>
<z>0.0</z>
</position>
<direction>
<x>0.0</x>
<y>0.0</y>
<z>1.0</z>
</direction>
<ambient>
<r>0.03</r>
<g>0.01</g>
<b>0.01</b>
<a>1.0</a>
</ambient>
<diffuse>
<r>0.80</r>
<g>0.20</g>
<b>0.20</b>
<a>1.0</a>
</diffuse>
<specular>
<r>1.00</r>
<g>0.30</g>
<b>0.30</b>
<a>1.0</a>
</specular>
<dim-factor>
<expression>
<product>
<property>lightpack/nav-lights-intensity</property>
<value>-0.35</value>
<sum>
<product>
<max>
<pow>
<cos><property>/sim/time/sun-angle-rad</property></cos>
<value>0.3</value>
</pow>
<value>0</value>
</max>
<value>1.2</value>
</product>
<value>-1</value>
</sum>
</product>
</expression>
</dim-factor>
<attenuation>
<c>1.0</c>
<l>0.05</l>
<q>0.01</q>
</attenuation>
<exponent>0.65</exponent>
<cutoff>90</cutoff>
<near-m>0.001</near-m>
<far-m>30</far-m>
</animation>
</PropertyList>

View File

@ -0,0 +1,86 @@
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<path>HalfSphere.ac</path>
<animation>
<type>select</type>
<object-name>Sphere</object-name>
<condition>
<and>
<property>/sim/rendering/rembrandt/enabled</property>
<greater-than>
<property>/sim/rendering/shaders/lights</property>
<value>1</value>
</greater-than>
</and>
</condition>
</animation>
<animation>
<type>light</type>
<light-type>spot</light-type>
<name>StrobeR</name>
<object-name>Sphere</object-name>
<nopreview/>
<position>
<x>0.0</x>
<y>0.0</y>
<z>0.0</z>
</position>
<direction>
<x>0.0</x>
<y>0.0</y>
<z>1.0</z>
</direction>
<ambient>
<r>0.08</r>
<g>0.08</g>
<b>0.08</b>
<a>1.0</a>
</ambient>
<diffuse>
<r>0.80</r>
<g>0.80</g>
<b>0.80</b>
<a>1.0</a>
</diffuse>
<specular>
<r>1.00</r>
<g>1.00</g>
<b>1.10</b>
<a>1.0</a>
</specular>
<dim-factor>
<expression>
<product>
<value>-1</value>
<sum>
<product>
<max>
<pow>
<cos><property>/sim/time/sun-angle-rad</property></cos>
<value>0.3</value>
</pow>
<value>0</value>
</max>
<value>0.6</value>
</product>
<value>-1</value>
</sum>
</product>
</expression>
</dim-factor>
<attenuation>
<c>1.0</c>
<l>0.05</l>
<q>0.1</q>
</attenuation>
<exponent>0.6</exponent>
<cutoff>90</cutoff>
<near-m>0.001</near-m>
<far-m>30</far-m>
</animation>
</PropertyList>

View File

@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<path>TaxiLightCone.ac</path>
<animation>
<type>select</type>
<object-name>light</object-name>
<condition>
<and>
<property>/sim/rendering/rembrandt/enabled</property>
<greater-than>
<property>/sim/rendering/shaders/lights</property>
<value>0</value>
</greater-than>
</and>
</condition>
</animation>
<animation>
<type>light</type>
<light-type>spot</light-type>
<name>TaxiR</name>
<object-name>light</object-name>
<nopreview/>
<position>
<x>0.0</x>
<y>0.0</y>
<z>0.0</z>
</position>
<direction>
<x>-1.0</x>
<y>0.0</y>
<z>0.0</z>
</direction>
<ambient>
<r>0.03</r>
<g>0.03</g>
<b>0.03</b>
<a>1.0</a>
</ambient>
<diffuse>
<r>0.80</r>
<g>0.80</g>
<b>0.70</b>
<a>1.0</a>
</diffuse>
<specular>
<r>1.00</r>
<g>0.75</g>
<b>0.75</b>
<a>1.0</a>
</specular>
<dim-factor>
<expression>
<product>
<value>-1</value>
<sum>
<product>
<max>
<pow>
<cos><property>/sim/time/sun-angle-rad</property></cos>
<value>0.3</value>
</pow>
<value>0</value>
</max>
<value>1.0</value>
</product>
<value>-1</value>
</sum>
<property>lightpack/taxi-light-intensity</property>
</product>
</expression>
</dim-factor>
<attenuation>
<c>0.005</c>
<l>0.002</l>
<q>0.002</q>
</attenuation>
<exponent>70</exponent>
<cutoff>45</cutoff>
<near-m>0.01</near-m>
<far-m>250</far-m>
</animation>
</PropertyList>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<path>HalfSphere.ac</path>
<animation>
<type>select</type>
<object-name>Sphere</object-name>
<condition>
<and>
<property>/sim/rendering/rembrandt/enabled</property>
<greater-than>
<property>/sim/rendering/shaders/lights</property>
<value>1</value>
</greater-than>
</and>
</condition>
</animation>
<animation>
<type>light</type>
<light-type>spot</light-type>
<name>WhiteR</name>
<object-name>Sphere</object-name>
<nopreview/>
<position>
<x>0.0</x>
<y>0.0</y>
<z>0.0</z>
</position>
<direction>
<x>0.0</x>
<y>0.0</y>
<z>1.0</z>
</direction>
<ambient>
<r>0.08</r>
<g>0.08</g>
<b>0.08</b>
<a>1.0</a>
</ambient>
<diffuse>
<r>0.80</r>
<g>0.80</g>
<b>0.80</b>
<a>1.0</a>
</diffuse>
<specular>
<r>1.00</r>
<g>1.00</g>
<b>1.10</b>
<a>1.0</a>
</specular>
<dim-factor>
<expression>
<product>
<value>-1</value>
<sum>
<product>
<max>
<pow>
<cos><property>/sim/time/sun-angle-rad</property></cos>
<value>0.3</value>
</pow>
<value>0</value>
</max>
<value>0.6</value>
</product>
<value>-1</value>
</sum>
<property>lightpack/white-light-intensity</property>
</product>
</expression>
</dim-factor>
<attenuation>
<c>1.0</c>
<l>0.05</l>
<q>0.1</q>
</attenuation>
<exponent>0.6</exponent>
<cutoff>90</cutoff>
<near-m>0.001</near-m>
<far-m>30</far-m>
</animation>
</PropertyList>

27
Models/Lights/Strobe.xml Normal file
View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<model>
<name>BeaconFlare</name>
<path>Aircraft/MQ-9/Models/Lights/Flares/Strobe-flare.xml</path>
</model>
<model>
<name>BeaconRemb</name>
<path>Aircraft/MQ-9/Models/Lights/Rembrandt/Strobe-remb.xml</path>
</model>
<animation>
<type>select</type>
<object-name>BeaconFlare</object-name>
<object-name>BeaconRemb</object-name>
<condition>
<and>
<property>lightpack/strobe-state/state</property>
<not><property>sim/crashed</property></not>
</and>
</condition>
</animation>
</PropertyList>

View File

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<model>
<name>TaxiLightFlash</name>
<path>Aircraft/MQ-9/Models/Lights/Flares/TaxiLight-flash.xml</path>
</model>
<model>
<name>TaxiLightRemb</name>
<path>Aircraft/MQ-9/Models/Lights/Rembrandt/TaxiLight-remb.xml</path>
</model>
<!--><model>
<name>TaxiLightCone</name>
<path>Aircraft/MQ-9/Models/Lights/LightCone/TaxiLight-cone.xml</path>
</model><--> <!-- uncomment for fake non-rembrandt cones -->
<animation>
<type>select</type>
<object-name>TaxiLightFlash</object-name>
<object-name>TaxiLightRemb</object-name>
<!--><object-name>TaxiLightCone</object-name><--> <!-- uncomment for fake non-rembrandt cones -->
<condition>
<and>
<property>lightpack/taxi-light-intensity</property>
<not><property>sim/crashed</property></not>
</and>
</condition>
</animation>
</PropertyList>

View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<model>
<name>WhiteLightFlare</name>
<path>Aircraft/MQ-9/Models/Lights/Flares/WhiteLight-flare.xml</path>
</model>
<model>
<name>WhiteLightRemb</name>
<path>Aircraft/MQ-9/Models/Lights/Rembrandt/WhiteLight-remb.xml</path>
</model>
<animation>
<type>select</type>
<object-name>WhiteLightFlare</object-name>
<object-name>WhiteLightRemb</object-name>
<condition>
<and>
<property>lightpack/white-light-intensity</property>
<not><property>sim/crashed</property></not>
</and>
</condition>
</animation>
</PropertyList>

BIN
Models/Liveries/Blur.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

BIN
Models/Liveries/Default.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 KiB

BIN
Models/Liveries/Disk.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

BIN
Models/Liveries/Test.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1018 KiB

16
Models/Liveries/Test.xml Executable file
View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<sim>
<model>
<livery>
<name type="string">Test</name>
<texture>Liveries/Test.jpg</texture>
</livery>
</model>
</sim>
</PropertyList>

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<sim>
<model>
<livery>
<name type="string">United States Air Force</name>
<texture>Liveries/Default.jpg</texture>
</livery>
</model>
</sim>
</PropertyList>

781
Models/MQ-9-2.xml Normal file
View File

@ -0,0 +1,781 @@
<?xml version="1.0"?>
<PropertyList>
<!-- Model -->
<path>MQ-9.ac</path>
<offsets>
<pitch-deg>-3</pitch-deg>
<heading-deg>0</heading-deg>
<roll-deg>0</roll-deg>
<x-m>0</x-m>
<y-m>0</y-m>
<z-m>0</z-m>
</offsets>
<!-- Invisible -->
<animation>
<type>select</type>
<object-name>Sensor</object-name>
<object-name>SensorMount1</object-name>
<condition>
<not>
<property>sim/current-view/internal</property>
</not>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>HellfirePylonL</object-name>
<object-name>HellfirePylonR</object-name>
<object-name>PylonL1</object-name>
<object-name>PylonR1</object-name>
<object-name>PylonL2</object-name>
<object-name>PylonR2</object-name>
</animation>
<!-- Multiplayer sounds -->
<sound>
<path>Aircraft/MQ-9/Sounds/MP-Sounds.xml</path>
</sound>
<!-- Rembrandt transparent -->
<effect>
<inherits-from>Effects/model-transparent</inherits-from>
<condition>
<greater-than>
<property>sim/multiplay/generic/float[6]</property>
<value>9</value>
</greater-than>
<property>/sim/rendering/rembrandt/enabled</property>
</condition>
<object-name>Disk</object-name>
<object-name>BladesBlur</object-name>
</effect>
<!-- Effects -->
<model>
<path>Aircraft/MQ-9/Models/Effects/Effects.xml</path>
</model>
<!-- Lights -->
<model>
<path>Aircraft/MQ-9/Models/Lights/LightPack.xml</path>
</model>
<nasal>
<load><![CDATA[
var root = cmdarg();
var rootindex = root.getIndex();
var mpPath = "/ai/models/multiplayer["~ rootindex ~"]/";
var lightsPath = mpPath~"lightpack/"; #path to the property node, where all internal values are placed
props.globals.initNode(mpPath~"sim/is-MP-Aircraft", 1, "BOOL");
srand();
#wherever you want to add randomization of time, use something like: + rand()*0.05-0.025 (included by default where appropriate)
#list of switches for lights - if you don't intend to use some light, assign it nil value instead, like whateverSwitch = nil; and you don't need to care about anything else
#IMPORTANT: don't put / on the start of the string, it's already included in the mpPath property
var navSwitch = mpPath~"controls/lighting/nav-lights-switch";
var beaconSwitch = mpPath~"controls/lighting/beacon-switch";
var strobeSwitch = mpPath~"controls/lighting/strobe-switch";
var landingSwitch = mpPath~"controls/lighting/landing-lights-switch";
var taxiSwitch = mpPath~"controls/lighting/taxi-light-switch";
var probeSwitch = mpPath~"controls/lighting/probe-light-switch";
var whiteSwitch = mpPath~"controls/lighting/white-light-switch";
#switch this from 1 to 0 if you want to use advanced cyclical fading animation of the the nav lights instead of being stable on when the switch is on
navStillOn = 1;
#I need to set listener on some MP transferred properties; this doesn't seem to work well sometimes, so I mirror them to the original location on any change
#This also simplifies work as I can use almost the same code for MP as is the local Nasal. Furthermore, I can use meaningful property names in the model XML files instead of referencing the MP properties.
var mpVar = {
new: func(propIn, propOut) {
var m = { parents: [mpVar] };
m.propIn = propIn;
m.propOut = propOut;
if(propIn==nil) return m;
m.value = getprop(propIn);
setprop(propOut, m.value);
return m;
},
check: func {
if(me.propIn==nil) return;
var newValue = getprop(me.propIn);
if(newValue != me.value) {
setprop(me.propOut, newValue);
me.value = newValue;
#print("value of "~me.propOut~" changed: "~newValue);
}
},
};
#init any property copy object needed in this array (anything you need to transfer over MP, but you are using the original paths in your xmls)
#also used for properties you are using a listener on, or properties which you maybe want to manipulate during the <unload>
#if you're just using the pack, change the values according to the MP bindings in the -set.xml file
#you don't need to delete the entries if the path is nil - it gets skipped automatically and the MP path is just ignored
var mirrorValues = [
mpVar.new(mpPath~"sim/multiplay/generic/int[7]", mpPath~"sim/crashed"),
mpVar.new(mpPath~"sim/multiplay/generic/int[0]", navSwitch),
mpVar.new(mpPath~"sim/multiplay/generic/int[1]", beaconSwitch),
mpVar.new(mpPath~"sim/multiplay/generic/int[1]", strobeSwitch),
mpVar.new(mpPath~"sim/multiplay/generic/int[2]", landingSwitch),
mpVar.new(mpPath~"sim/multiplay/generic/int[3]", taxiSwitch),
mpVar.new(mpPath~"sim/multiplay/generic/int[3]", probeSwitch),
mpVar.new(mpPath~"sim/multiplay/generic/int[0]", whiteSwitch),
];
#loop at the default MP transfer frequency (10Hz)
var mirrorTimer = maketimer(0.1, func {
foreach(var mir; mirrorValues) {
mir.check();
}
});
mirrorTimer.start();
#### NAV LIGHTS ####
#class for a periodic fade in/out animation - for flashing, use rather standard aircraft.light.new(), as in Beacon and Strobe section
var lightCycle = {
#constructor
new: func(propSwitch, propOut) {
m = { parents: [lightCycle] };
props.globals.initNode(propOut, 0, "DOUBLE");
props.globals.initNode(propSwitch, 1, "BOOL");
m.fadeIn = 0.4 + rand()*0.05-0.025; #fade in time
m.fadeOut = 0.4 + rand()*0.05-0.025; #fade out time
m.stayOn = 1.5 + rand()*0.05-0.025; #stable on period
m.stayOff = 1 + rand()*0.05-0.025; #stable off period
m.turnOff = 0.12; #fade out time when turned off
m.phase = 0; #phase to be run on next timer call: 0 -> fade in, 1 -> stay on, 2 -> fade out, 3 -> stay off
m.cycleTimer = maketimer(0.1, func {
if(getprop(propSwitch)) {
if(m.phase == 0) {
interpolate(propOut, 1, m.fadeIn);
m.phase = 1;
m.cycleTimer.restart(m.fadeIn);
}
else if(m.phase == 1){
m.phase = 2;
m.cycleTimer.restart(m.stayOn);
}
else if(m.phase == 2){
interpolate(propOut, 0, m.fadeOut);
m.phase = 3;
m.cycleTimer.restart(m.fadeOut);
}
else if(m.phase == 3){
m.phase = 0;
m.cycleTimer.restart(m.stayOff);
}
}
else {
interpolate(propOut, 0, m.turnOff); #kills any currently ongoing interpolation
m.phase = 0;
}
});
m.cycleTimer.singleShot = 1;
if(propSwitch==nil) {
m.listen = nil;
return m;
}
m.listen = setlistener(propSwitch, func{m.cycleTimer.restart(0);}); #handle switch changes
m.cycleTimer.restart(0); #start the looping
return m;
},
#destructor
del: func {
if(me.listen!=nil) removelistener(me.listen);
me.cycleTimer.stop();
},
};
#By default, the switch property is initialized to 1 (only if no value is already assigned). Don't change the class implementation! To override this, set the property manually. You don't need to care if any other code already does it for you.
var navLights = nil;
if(!navStillOn) {
navLights = lightCycle.new(navSwitch, lightsPath~"nav-lights-intensity");
### Uncomment and tune those to customize times ###
#navLights.fadeIn = 0.4; #fade in time
#navLights.fadeOut = 0.4; #fade out time
#navLights.stayOn = 3 + rand()*0.05-0.025; #stable on period
#navLights.stayOff = 0.6; #stable off period
#navLights.turnOff = 0.12; #fade out time when turned off
}
### BEACON ###
var beacon = nil;
if(beaconSwitch!=nil) {
props.globals.initNode(beaconSwitch, 1, "BOOL");
beacon = aircraft.light.new(lightsPath~"beacon-state",
[0.0, 1.0 + rand()*0.05-0.025], beaconSwitch);
}
### STROBE ###
var strobe = nil;
if(strobeSwitch!=nil) {
props.globals.initNode(strobeSwitch, 1, "BOOL");
strobe = aircraft.light.new(lightsPath~"strobe-state",
[0.0, 0.87 + rand()*0.05-0.025], strobeSwitch);
}
### LIGHT FADING ###
#class for controlling fade in/out behavior - propIn is a control property (handled as a boolean) and propOut is interpolated
#all light brightness animations in xmls depend on propOut (Rembrandt brightness, material emission, flares transparency, ...)
var lightFadeInOut = {
#constructor
new: func(propSwitch, propOut) {
m = { parents: [lightFadeInOut] };
m.fadeIn = 0.3; #some sane defaults
m.fadeOut = 0.4;
if(propSwitch==nil) {
m.listen = nil;
return m;
}
props.globals.initNode(propSwitch, 1, "BOOL");
m.isOn = getprop(propSwitch);
props.globals.initNode(propOut, m.isOn, "DOUBLE");
m.listen = setlistener(propSwitch,
func {
if(m.isOn and !getprop(propSwitch)) {
interpolate(propOut, 0, m.fadeOut);
m.isOn = 0;
}
if(!m.isOn and getprop(propSwitch)) {
interpolate(propOut, 1, m.fadeIn);
m.isOn = 1;
}
}
);
return m;
},
#destructor
del: func {
if(me.listen!=nil) removelistener(me.listen);
},
};
fadeLanding = lightFadeInOut.new(landingSwitch, lightsPath~"landing-lights-intensity");
fadeTaxi = lightFadeInOut.new(taxiSwitch, lightsPath~"taxi-light-intensity");
fadeProbe = lightFadeInOut.new(probeSwitch, lightsPath~"probe-light-intensity");
fadeWhite = lightFadeInOut.new(whiteSwitch, lightsPath~"white-light-intensity");
if(navStillOn) {
navLights = lightFadeInOut.new(navSwitch, lightsPath~"nav-lights-intensity");
navLights.fadeIn = 0.1;
navLights.fadeOut = 0.12;
}
#manipulate times if defaults don't fit your needs:
#fadeLanding.fadeIn = 0.5;
#fadeLanding.fadeOut = 0.8;
### the rest of your model load embedded Nasal code ###
]]>
</load>
<unload>
stopFire();
disintegrated = 0;
removelistener(listenCrash);
#prevent multiple timers and listeners from running and fighting on next connect
#cleanly destroy MP property mirroring
mirrorTimer.stop();
mirrorTimer = nil;
mirrorValues = nil;
#cleanly destroy nav lights
if(navStillOn) {
navLights.del();
}
else {
if(navSwitch!=nil) setprop(navSwitch, 0);
navLights.del();
if(navSwitch!=nil) navLights.cycleTimer = nil;
navLights = nil;
}
#cleanly destroy beacon
if(beaconSwitch!=nil) setprop(beaconSwitch, 0);
beacon.del();
beacon = nil;
#cleanly destroy strobe
if(strobeSwitch!=nil) setprop(strobeSwitch, 0);
strobe.del();
strobe = nil;
#cleanly destroy light fade in/out animation objects
fadeLanding.del();
fadeTaxi.del();
fadeProbe.del();
fadeWhite.del();
### the rest of your model unload embedded Nasal code ###
</unload>
</nasal>
<!-- Normal Map -->
<effect>
<inherits-from>Aircraft/MQ-9/Models/Effects/Normal</inherits-from>
<object-name>MQ-9</object-name>
</effect>
<!-- Specular Map -->
<effect>
<inherits-from>Aircraft/MQ-9/Models/Effects/Specular</inherits-from>
<object-name>MQ-9</object-name>
</effect>
<!-- Liveries -->
<nasal>
<load>
var livery_update = aircraft.livery_update.new("Aircraft/MQ-9/Models/Liveries");
</load>
<unload>
livery_update.stop();
</unload>
</nasal>
<animation>
<type>material</type>
<object-name>MQ-9</object-name>
<property-base>sim/model/livery</property-base>
<texture-prop>texture</texture-prop>
<texture>Aircraft/MQ-9/Models/Liveries/Default.jpg</texture>
</animation>
<animation>
<type>material</type>
<object-name>Disk</object-name>
<texture-prop>texture</texture-prop>
<texture>Aircraft/MQ-9/Models/Liveries/Disk.png</texture>
</animation>
<animation>
<type>material</type>
<object-name>BladesBlur</object-name>
<texture-prop>texture</texture-prop>
<texture>Aircraft/MQ-9/Models/Liveries/Disk.png</texture>
</animation>
<!-- Animations -->
<!-- Ailerons -->
<animation>
<type>rotate</type>
<object-name>AileronR</object-name>
<property>surface-positions/left-aileron-pos-norm</property>
<factor>20</factor>
<axis>
<x1-m> 0.6977</x1-m>
<y1-m> 5.5070</y1-m>
<z1-m> 0.4481</z1-m>
<x2-m> 0.6255</x2-m>
<y2-m> 8.8878</y2-m>
<z2-m> 0.4392</z2-m>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>AileronL</object-name>
<property>surface-positions/left-aileron-pos-norm</property>
<factor>20</factor>
<axis>
<x1-m> 0.6977</x1-m>
<y1-m> -5.5070</y1-m>
<z1-m> 0.4481</z1-m>
<x2-m> 0.6255</x2-m>
<y2-m> -8.8878</y2-m>
<z2-m> 0.4392</z2-m>
</axis>
</animation>
<!-- Flaps -->
<animation>
<type>rotate</type>
<object-name>FlapR2</object-name>
<property>surface-positions/flap-pos-norm</property>
<factor>40</factor>
<axis>
<x1-m> 0.7273</x1-m>
<y1-m> 2.5708</y1-m>
<z1-m> 0.4576</z1-m>
<x2-m> 0.6968</x2-m>
<y2-m> 5.5070</y2-m>
<z2-m> 0.4495</z2-m>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>FlapL2</object-name>
<property>surface-positions/flap-pos-norm</property>
<factor>-40</factor>
<axis>
<x1-m> 0.7273</x1-m>
<y1-m> -2.5708</y1-m>
<z1-m> 0.4576</z1-m>
<x2-m> 0.6968</x2-m>
<y2-m> -5.5070</y2-m>
<z2-m> 0.4495</z2-m>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>FlapR1</object-name>
<property>surface-positions/flap-pos-norm</property>
<factor>40</factor>
<axis>
<x1-m> 0.7302</x1-m>
<y1-m> 0.7240</y1-m>
<z1-m> 0.4589</z1-m>
<x2-m> 0.7196</x2-m>
<y2-m> 2.5708</y2-m>
<z2-m> 0.4545</z2-m>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>FlapL1</object-name>
<property>surface-positions/flap-pos-norm</property>
<factor>-40</factor>
<axis>
<x1-m> 0.7302</x1-m>
<y1-m> -0.7240</y1-m>
<z1-m> 0.4589</z1-m>
<x2-m> 0.7196</x2-m>
<y2-m> -2.5708</y2-m>
<z2-m> 0.4545</z2-m>
</axis>
</animation>
<!-- Elevators -->
<animation>
<type>rotate</type>
<object-name>ElevatorR</object-name>
<property>surface-positions/elevator-pos-norm</property>
<factor>-20</factor>
<axis>
<x1-m> 3.4018</x1-m>
<y1-m> 0.4181</y1-m>
<z1-m> 0.6136</z1-m>
<x2-m> 3.5428</x2-m>
<y2-m> 2.9323</y2-m>
<z2-m> 2.3741</z2-m>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>ElevatorL</object-name>
<property>surface-positions/elevator-pos-norm</property>
<factor>20</factor>
<axis>
<x1-m> 3.4018</x1-m>
<y1-m>-0.4181</y1-m>
<z1-m> 0.6136</z1-m>
<x2-m> 3.5428</x2-m>
<y2-m>-2.9323</y2-m>
<z2-m> 2.3741</z2-m>
</axis>
</animation>
<!-- Rudder -->
<animation>
<type>rotate</type>
<object-name>Rudder</object-name>
<property>surface-positions/rudder-pos-norm</property>
<factor>20</factor>
<axis>
<x1-m> 3.3652</x1-m>
<y1-m> 0.0000</y1-m>
<z1-m> 0.2360</z1-m>
<x2-m> 3.4900</x2-m>
<y2-m> 0.0000</y2-m>
<z2-m>-0.7541</z2-m>
</axis>
</animation>
<!-- Landing gear -->
<animation>
<type>rotate</type>
<object-name>WheelN</object-name>
<object-name>JawN</object-name>
<property>surface-positions/rudder-pos-norm</property>
<factor>-20</factor>
<center>
<x-m>-2.9145</x-m>
<y-m> 0.0000</y-m>
<z-m>-1.2683</z-m>
</center>
<axis>
<x>0.0</x>
<y>0.0</y>
<z>1.0</z>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>WheelN</object-name>
<object-name>JawN</object-name>
<object-name>Strut1N</object-name>
<object-name>Strut2N</object-name>
<object-name>Scissor1N</object-name>
<object-name>Scissor2N</object-name>
<property>gear/gear[1]/position-norm</property>
<factor>130</factor>
<offset-deg>-130</offset-deg>
<center>
<x-m>-2.0705</x-m>
<y-m> 0.0000</y-m>
<z-m> 0.1760</z-m>
</center>
<axis>
<x>0.0</x>
<y>1.0</y>
<z>0.0</z>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>WheelL</object-name>
<object-name>StrutL</object-name>
<property>gear/gear[1]/position-norm</property>
<factor>98</factor>
<offset-deg>-98</offset-deg>
<axis>
<x1-m> 0.0559</x1-m>
<y1-m>-0.3306</y1-m>
<z1-m> 0.3248</z1-m>
<x2-m> 0.0559</x2-m>
<y2-m>-0.2413</y2-m>
<z2-m> 0.2317</z2-m>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>WheelR</object-name>
<object-name>StrutR</object-name>
<property>gear/gear[2]/position-norm</property>
<factor>-98</factor>
<offset-deg>98</offset-deg>
<axis>
<x1-m> 0.0559</x1-m>
<y1-m> 0.3306</y1-m>
<z1-m> 0.3248</z1-m>
<x2-m> 0.0559</x2-m>
<y2-m> 0.2413</y2-m>
<z2-m> 0.2317</z2-m>
</axis>
</animation>
<!-- Gear Compression -->
<animation>
<type>translate</type>
<object-name>WheelN</object-name>
<object-name>JawN</object-name>
<object-name>Scissor1N</object-name>
<object-name>Scissor2N</object-name>
<object-name>Strut1N</object-name>
<property>gear/gear[0]/compression-norm[0]</property>
<factor>0.60</factor>
<axis>
<x1-m>-2.7232</x1-m>
<y1-m> 0.0000</y1-m>
<z1-m>-0.6690</z1-m>
<x2-m>-2.5221</x2-m>
<y2-m> 0.0000</y2-m>
<z2-m>-0.4077</z2-m>
</axis>
</animation>
<animation>
<type>translate</type>
<object-name>WheelR</object-name>
<object-name>StrutR</object-name>
<property>gear/gear[2]/compression-norm[0]</property>
<factor>0.1</factor>
<axis>
<x1-m>-0.0728</x1-m>
<y1-m> 1.7594</y1-m>
<z1-m>-1.0981</z1-m>
<x2-m>-0.0728</x2-m>
<y2-m> 1.7594</y2-m>
<z2-m>-0.8998</z2-m>
</axis>
</animation>
<animation>
<type>translate</type>
<object-name>WheelL</object-name>
<object-name>StrutL</object-name>
<property>gear/gear[1]/compression-norm[0]</property>
<factor>0.1</factor>
<axis>
<x1-m>-0.0728</x1-m>
<y1-m>-1.7594</y1-m>
<z1-m>-1.0981</z1-m>
<x2-m>-0.0728</x2-m>
<y2-m>-1.7594</y2-m>
<z2-m>-0.8998</z2-m>
</axis>
</animation>
<!-- Propeller -->
<animation>
<type>spin</type>
<object-name>Propeller</object-name>
<object-name>Blades</object-name>
<property>engines/engine[0]/n2</property>
<factor>3</factor>
<center>
<x-m>4.4823</x-m>
<y-m>0.0000</y-m>
<z-m>0.7577</z-m>
</center>
<axis>
<x>1.0</x>
<y>0.0</y>
<z>0.0</z>
</axis>
</animation>
<animation>
<type>select</type>
<object-name>Blades</object-name>
<condition>
<less-than>
<property>engines/engine[0]/n2</property>
<value>50.0001</value>
</less-than>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>BladesFlat</object-name>
<condition>
<greater-than>
<property>engines/engine[0]/n2</property>
<value>50.000</value>
</greater-than>
<less-than>
<property>engines/engine[0]/n2</property>
<value>70.0001</value>
</less-than>
</condition>
</animation>
<animation>
<type>spin</type>
<object-name>BladesFlat</object-name>
<property>engines/engine[0]/n2</property>
<center>
<x-m>4.4823</x-m>
<y-m>0.0000</y-m>
<z-m>0.7577</z-m>
</center>
<axis>
<x>1.0</x>
<y>0.0</y>
<z>0.0</z>
</axis>
</animation>
<animation>
<type>select</type>
<object-name>Disk</object-name>
<condition>
<greater-than>
<property>engines/engine[0]/n2</property>
<value>70.0000</value>
</greater-than>
</condition>
</animation>
<animation>
<type>spin</type>
<object-name>Disk</object-name>
<property>engines/engine[0]/n2</property>
<factor>.5</factor>
<center>
<x-m>4.4823</x-m>
<y-m>0.0000</y-m>
<z-m>0.7577</z-m>
</center>
<axis>
<x>1.0</x>
<y>0.0</y>
<z>0.0</z>
</axis>
</animation>
<!-- Sensor -->
<animation>
<type>rotate</type>
<object-name>Sensor</object-name>
<object-name>SensorMount1</object-name>
<property>sim/model/turret[0]/heading</property>
<axis>
<x> 0</x>
<y> 0</y>
<z>-1</z>
</axis>
<center>
<x-m>-4.1425</x-m>
<y-m> 0.0000</y-m>
<z-m>-0.0697</z-m>
</center>
</animation>
<animation>
<type>rotate</type>
<object-name>Sensor</object-name>
<property>sim/model/turret[0]/pitch</property>
<offset-deg>0</offset-deg>
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
<center>
<x-m>-4.1425</x-m>
<y-m> 0.0000</y-m>
<z-m>-0.0697</z-m>
</center>
</animation>
</PropertyList>

307
Models/MQ-9-bombableinclude.xml Executable file
View File

@ -0,0 +1,307 @@
<?xml version="1.0"?>
<PropertyList>
<nasal>
<load>
<![CDATA[
print("Loading MQ-9", cmdarg().getPath());
var nodeName = cmdarg().getPath();
##checks whether it has been initialized already; if so, just return
if ( bombable.check_overall_initialized (nodeName) ) return;
############################################
#MQ-9 INITIALIZER
var object_init = func() {
# Datas of this object are under: cmdarg().getPath()
var thisNodeName = cmdarg().getPath();
var thisNode = props.globals.getNode(thisNodeName);
# Add some useful nodes
########################################################################
########################################################################
# INITIALIZE BOMBABLE
#
# Initialize constants and main routines for maintaining altitude
# relative to ground-level, relocating after file/reset, and
# creating bombable/shootable objects.
#
# These routines are found in FG/nasal/bombable.nas
#
########################################################################
# INITIALIZE BOMBABLE Object
# This object will be slurped in the object's node as a child
# node named "bombable".
# All distances are specified in meters.
# All altitudes are relative to current ground level at the object's
# location
#
thisNodeName = cmdarg().getPath();
var bombableObject = {
objectNodeName : thisNodeName,
objectNode : props.globals.getNode(thisNodeName),
updateTime_s : 1/3, #time, in seconds, between the updates that
#keep the object at its AGL. Tradeoff is high-speed updates look more
#realistic but slow down the framerate/cause jerkiness. Faster-moving
#objects will need more frequent updates to look realistic.
#update time faster than about 1/3 seems to have a noticeable effect
#on frame rate
#########################################
# ALTITUDE DEFINITIONS
#
altitudes : {
wheelsOnGroundAGL_m : 1 , #altitude correction to add to your aircraft or ship that is needed to put wheels on ground (or, for a ship, make it float in the water at the correct level). For most objects this is 0 but some models need a small correction to place them exactly at ground level
minimumAGL_m : 1, #minimum altitude above ground level this object is allowed to fly
maximumAGL_m : 15240, #maximum altitude AGL this object is allowed to fly, ie, operational ceiling
crashedAGL_m : -0.1, #altitude AGL when crashed. Ships will sink to this level, aircraft or vehicles will sink into the ground as landing gear collapses or tires deflate. Should be negative, even just -0.001.
},
#
#########################################
# VELOCITIES DEFINITIONS
#
velocities : {
maxSpeedReduce_percent : 0.5, #max % to reduce speed, per step, when damaged
minSpeed_kt : 60, #minimum speed to reduce to when damaged. Ground vehicles and ships might stop completely when damaged but aircraft will need a minimum speed so they keep moving until they hit the ground.
cruiseSpeed_kt : 169, #cruising speed, typical/optimal cruising speed, V C for aircraft
attackSpeed_kt : 200, #typical/optimal speed when aggressively attacking or evading, in
#level flight for aircraft
maxSpeed_kt : 260 , #Maximum possible speed under dive or downhill conditions, V NE for aircraft
damagedAltitudeChangeMaxRate_meterspersecond : 30, #max rate to sink or fly downwards when damaged, in meters/second
#The terminal velocities are calculated by opening the 'real' AC
#in FG, level flight, full throttle, then putting
#the AC at different angles of attack with the autopilot,
#and noting the terminal airspeed & vertical speed velocities.
#For best results, do it near sea level, under 5000 feet altitude.
#One or two each of climb & dive velocities are probably sufficient.
#However if you do more we may be able to use the more precise
#data in the future.
#
#Note that these are intended to be true airspeed whereas FG's
#/velocities/airspeed-kt reports indicated airspeed, so some
#conversion or reference to groundspeed-kt is needed.
#
#In FG /velocities/groundspeed-kt is equal (or close
#to equal, except for wind . . .) true airspeed when pitch=0
#but as pitch increases or decreases that will change.
#
diveTerminalVelocities: {
point1: { airspeed_kt : 447.6, vertical_speed_fps : - 74.4},
point2: { airspeed_kt : 498.4, vertical_speed_fps : - 167.1},
point3: { airspeed_kt : 535, vertical_speed_fps : - 255.0},
point4: { airspeed_kt : 556, vertical_speed_fps : - 343.9},
},
climbTerminalVelocities: {
point1: { airspeed_kt : 331.2, vertical_speed_fps : 34.3},
point2: { airspeed_kt : 266.7, vertical_speed_fps : 59.4},
point3: { airspeed_kt : 169.7, vertical_speed_fps : 73.1},
},
},
#
#########################################
# EVASION DEFINITIONS
#
# The evasion system makes the AI aircraft dodge when they come under
# fire.
evasions : {
dodgeDelayMax_sec : 15, #max time to delay/wait between dodges
dodgeDelayMin_sec : 5, #minimum time to delay/wait between dodges
dodgeMax_deg : 75, #Max amount to turn when dodging
#90 degrees = instant turn, unrealistic
#up to 80 is usually OK, somewhere in 80-85 starts to be unrealistically fast
#>85 is usually very unrealistic. You must test this in your scenario, however.
dodgeMin_deg : 57, #minimum amount to turn when dodging
rollRateMax_degpersec : 110, #you can figure this out by rolling the corresponding FG aircraft and timing a 180 or 360 deg roll
dodgeROverLPreference_percent : 50, # Preference for right turns vs. left when dodging. 90% means 90% right turns, 50% means 50% right turns.
dodgeAltMin_m : -5000, #Aircraft will begin to move up or down
dodgeAltMax_m : 5000, #Max & Min are relative to current alt
dodgeVertSpeedClimb_mps : 100, #Max speed to climb when evading
dodgeVertSpeedDive_mps : 200, #Max speed to dive when evading
},
#
#########################################
# ATTACK DEFINITIONS
#
# The attack system makes the AI aircraft turn and fly towards
# other aircraft
attacks : {
maxDistance_m : 14000, #max distance to turn & attack main aircraft
minDistance_m : 2500, #min distance to turn & attack main aircraft, ie, fly away this far before turning to attack again
continueAttackAngle_deg : 20, #when within minDistance_m, the aircraft will continue to turn towards the main aircraft and attack *if* if the angle is less than this amount from dead ahead
altitudeHigherCutoff_m : 13000, # will attack the main aircraft unless this amount higher than it or more
altitudeLowerCutoff_m : 5000, # will attack the main aircraft unless this amount lower than it or more
climbPower : 6000, # How powerful the aircraft is when climbing during an attack; 4000 would be typical for, say a Zero--scale accordingly for others; higher is stronger
divePower : 9000, # How powerful the aircraft is when diving during and attack; 6000 typical of a Zero--could be much more than climbPower if the aircraft is a weak climber but a strong diver
rollMin_deg : 58, #when turning on attack, roll to this angle min
rollMax_deg : 75, #when turning on attack, roll to this angle max
#90 degrees = instant turn, unrealistic
#up to 80 might be OK, depending on aircraft & speed; somewhere in 80-85 starts to be unrealistically fast
#>85 is usually very unrealistic. You must test this in your scenario, however.
rollRateMax_degpersec : 110, #you can figure this out by rolling the corresponding FG aircraft and timing a 180 or 360 deg roll
attackCheckTime_sec : 10, # check for need to attack/correct course this often
attackCheckTimeEngaged_sec : 0.7, # once engaged with enemy, check/update course this frequently
},
#
#########################################
# WEAPONS DEFINITIONS
#
# The weapons system makes the AI aircraft fire on the main aircraft
# You can define any number of weapons--just enclose each in curly brackets
# and separate with commas (,).
weapons : {
front_gun : #internal name - this can be any name you want; must be a valid nasal variable name
{
name : "AGM-114", # name presented to users, ie in on-screen messages
maxDamage_percent : 80, # maximum percentage damage one hit from the aircraft's main weapon/machine guns will do to an opponent
maxDamageDistance_m : 8000, # maximum distance at which the aircrafts main weapon/maching guns will be able to damage an opponent
weaponAngle_deg : { heading: 0, elevation: 0 }, # direction the aircraft's main weapon is aimed.
# 0,0 = straight ahead, 90,0=directly right, 0,90=directly up, 0,180=directly back, etc.
weaponOffset_m : {x:2.5, y:0, z:0}, # Offset of the weapon from the main aircraft center
weaponSize_m : {start:.30, end:.30}, # Visual size of the weapon's projectile, in meters, at start & end of its path
},
},
#
#########################################
# DIMENSION DEFINITIONS
#
dimensions : {
width_m : 20.00, #width of your object, ie, for aircraft, wingspan
length_m : 11.00, #length of your object, ie, for aircraft, distance nose to tail
height_m : 3.80, #height of your object, ie, for aircraft ground to highest point when sitting on runway
damageRadius_m : 10, #typically 1/2 the longest dimension of the object. Hits within this distance of the
#center of object have some possibility of damage
vitalDamageRadius_m : 1, #typically the radius of the fuselage or cockpit or other most
# vital area at the center of the object. Always smaller than damageRadius_m
crashRadius_m : 5, #It's a crash if the main aircraft hits in this area.
},
#
#########################################
# VULNERABILITIES DEFINITIONS
#
vulnerabilities : {
damageVulnerability : 10, #Vulnerability to damage from armament, 1=normal M1 tank; higher to make objects easier to kill and lower to make them more difficult. This is a multiplier, so 5 means 5X easier to kill than an M1, 1/5 means 5X harder to kill.
engineDamageVulnerability_percent : 9, #Chance that a small-caliber machine-gun round will damage the engine.
fireVulnerability_percent : 7, #Vulnerability to catching on fire. 100% means even the slightest impact will set it on fire; 20% means quite difficult to set on fire; 0% means set on fire only when completely damaged; -1% means never set on fire.
fireDamageRate_percentpersecond : .5, #Amount of damage to add, per second, when on fire. 100%=completely damaged. Warthog is relatively damage-resistant.
fireExtinguishMaxTime_seconds : 80, #Once a fire starts, for this many seconds there is a chance to put out the fire; fires lasting longer than this won't be put out until the object burns out.
fireExtinguishSuccess_percentage : 20, #Chance of the crew putting out the fire within the MaxTime above. Warthoge is relatively damage-resistant.
explosiveMass_kg : 9000 , #mass of the object in KG, but give at least a 2-10X bonus to anything carrying flammables or high explosives.
},
#
#########################################
# LIVERY DEFINITIONS
#
# Path to livery files to use at different damage levels.
# Path is relative to the AI aircraft's directory.
# The object will start with the first livery listed and
# change to succeeding liveries as the damage
# level increases. The final livery should indicate full damage/
# object destroyed.
#
# If you don't want to specify any special liveries simply set
# damageLivery : nil and the object's normal livery will be used.
#
damageLiveries : {
damageLivery : [ ]
},
};
#########################################
# INITIALIZE ROUTINES
#
# OVERALL INITIALIZER: Needed to make all the others work
bombable.initialize ( bombableObject );
#
# LOCATION: Relocate object to maintain its position after file/reset
# (best not used for airplanes)
# bombable.location_init ( thisNodeName );
#
# GROUND: Keep object at altitude relative to ground level
bombable.ground_init ( thisNodeName );
#
# ATTACK: Make the object attack the main aircraft
bombable.attack_init ( thisNodeName );
#
# WEAPONS: Make the object shoot the main aircraft
bombable.weapons_init ( thisNodeName );
#
# BOMBABLE: Make the object bombable/damageable
bombable.bombable_init ( thisNodeName );
#
# SMOKE/CONTRAIL: Start a flare, contrail, smoke trail, or exhaust
# trail for the object.
# Smoke types available: flare, jetcontrail, pistonexhaust, smoketrail,
# damagedengine
bombable.startSmoke("jetcontrail", thisNodeName );
#
# END INITIALIZE BOMBABLE
########################################################################
########################################################################
}
object_init();
]]>
</load>
<unload>
<![CDATA[
print("Unload MQ-9");
var nodeName= cmdarg().getPath();
bombable.de_overall_initialize( nodeName );
bombable.initialize_del( nodeName );
bombable.ground_del( nodeName );
bombable.location_del (nodeName);
bombable.bombable_del( nodeName );
bombable.attack_del( nodeName );
bombable.weapons_del (nodeName);
# </unload>
]]>
</unload>
</nasal>
</PropertyList>

211843
Models/MQ-9.ac Normal file

File diff suppressed because it is too large Load Diff

778
Models/MQ-9.xml Normal file
View File

@ -0,0 +1,778 @@
<?xml version="1.0"?>
<PropertyList include="MQ-9-bombableinclude.xml">
<!-- Model -->
<path>MQ-9.ac</path>
<offsets>
<pitch-deg>-3</pitch-deg>
<heading-deg>0</heading-deg>
<roll-deg>0</roll-deg>
<x-m>0</x-m>
<y-m>0</y-m>
<z-m>0</z-m>
</offsets>
<!-- Invisible -->
<animation>
<type>select</type>
<object-name>Sensor</object-name>
<object-name>SensorMount1</object-name>
<condition>
<not>
<property>sim/current-view/internal</property>
</not>
</condition>
</animation>
<!-- Stores -->
<model>
<name>Stores</name>
<path>Aircraft/MQ-9/Models/Stores/Stores.xml</path>
</model>
<!-- Multiplayer sounds -->
<sound>
<path>Aircraft/MQ-9/Sounds/MP-Sounds.xml</path>
</sound>
<!-- Rembrandt transparent -->
<effect>
<inherits-from>Effects/model-transparent</inherits-from>
<condition>
<greater-than>
<property>sim/multiplay/generic/float[6]</property>
<value>9</value>
</greater-than>
<property>/sim/rendering/rembrandt/enabled</property>
</condition>
<object-name>Disk</object-name>
<object-name>BladesBlur</object-name>
</effect>
<!-- Effects -->
<model>
<path>Aircraft/MQ-9/Models/Effects/Effects.xml</path>
</model>
<!-- Lights -->
<model>
<path>Aircraft/MQ-9/Models/Lights/LightPack.xml</path>
</model>
<nasal>
<load><![CDATA[
var root = cmdarg();
var rootindex = root.getIndex();
var mpPath = "/ai/models/multiplayer["~ rootindex ~"]/";
var lightsPath = mpPath~"lightpack/"; #path to the property node, where all internal values are placed
props.globals.initNode(mpPath~"sim/is-MP-Aircraft", 1, "BOOL");
srand();
#wherever you want to add randomization of time, use something like: + rand()*0.05-0.025 (included by default where appropriate)
#list of switches for lights - if you don't intend to use some light, assign it nil value instead, like whateverSwitch = nil; and you don't need to care about anything else
#IMPORTANT: don't put / on the start of the string, it's already included in the mpPath property
var navSwitch = mpPath~"controls/lighting/nav-lights-switch";
var beaconSwitch = mpPath~"controls/lighting/beacon-switch";
var strobeSwitch = mpPath~"controls/lighting/strobe-switch";
var landingSwitch = mpPath~"controls/lighting/landing-lights-switch";
var taxiSwitch = mpPath~"controls/lighting/taxi-light-switch";
var probeSwitch = mpPath~"controls/lighting/probe-light-switch";
var whiteSwitch = mpPath~"controls/lighting/white-light-switch";
#switch this from 1 to 0 if you want to use advanced cyclical fading animation of the the nav lights instead of being stable on when the switch is on
navStillOn = 1;
#I need to set listener on some MP transferred properties; this doesn't seem to work well sometimes, so I mirror them to the original location on any change
#This also simplifies work as I can use almost the same code for MP as is the local Nasal. Furthermore, I can use meaningful property names in the model XML files instead of referencing the MP properties.
var mpVar = {
new: func(propIn, propOut) {
var m = { parents: [mpVar] };
m.propIn = propIn;
m.propOut = propOut;
if(propIn==nil) return m;
m.value = getprop(propIn);
setprop(propOut, m.value);
return m;
},
check: func {
if(me.propIn==nil) return;
var newValue = getprop(me.propIn);
if(newValue != me.value) {
setprop(me.propOut, newValue);
me.value = newValue;
#print("value of "~me.propOut~" changed: "~newValue);
}
},
};
#init any property copy object needed in this array (anything you need to transfer over MP, but you are using the original paths in your xmls)
#also used for properties you are using a listener on, or properties which you maybe want to manipulate during the <unload>
#if you're just using the pack, change the values according to the MP bindings in the -set.xml file
#you don't need to delete the entries if the path is nil - it gets skipped automatically and the MP path is just ignored
var mirrorValues = [
mpVar.new(mpPath~"sim/multiplay/generic/int[7]", mpPath~"sim/crashed"),
mpVar.new(mpPath~"sim/multiplay/generic/int[0]", navSwitch),
mpVar.new(mpPath~"sim/multiplay/generic/int[1]", beaconSwitch),
mpVar.new(mpPath~"sim/multiplay/generic/int[1]", strobeSwitch),
mpVar.new(mpPath~"sim/multiplay/generic/int[2]", landingSwitch),
mpVar.new(mpPath~"sim/multiplay/generic/int[3]", taxiSwitch),
mpVar.new(mpPath~"sim/multiplay/generic/int[3]", probeSwitch),
mpVar.new(mpPath~"sim/multiplay/generic/int[0]", whiteSwitch),
];
#loop at the default MP transfer frequency (10Hz)
var mirrorTimer = maketimer(0.1, func {
foreach(var mir; mirrorValues) {
mir.check();
}
});
mirrorTimer.start();
#### NAV LIGHTS ####
#class for a periodic fade in/out animation - for flashing, use rather standard aircraft.light.new(), as in Beacon and Strobe section
var lightCycle = {
#constructor
new: func(propSwitch, propOut) {
m = { parents: [lightCycle] };
props.globals.initNode(propOut, 0, "DOUBLE");
props.globals.initNode(propSwitch, 1, "BOOL");
m.fadeIn = 0.4 + rand()*0.05-0.025; #fade in time
m.fadeOut = 0.4 + rand()*0.05-0.025; #fade out time
m.stayOn = 1.5 + rand()*0.05-0.025; #stable on period
m.stayOff = 1 + rand()*0.05-0.025; #stable off period
m.turnOff = 0.12; #fade out time when turned off
m.phase = 0; #phase to be run on next timer call: 0 -> fade in, 1 -> stay on, 2 -> fade out, 3 -> stay off
m.cycleTimer = maketimer(0.1, func {
if(getprop(propSwitch)) {
if(m.phase == 0) {
interpolate(propOut, 1, m.fadeIn);
m.phase = 1;
m.cycleTimer.restart(m.fadeIn);
}
else if(m.phase == 1){
m.phase = 2;
m.cycleTimer.restart(m.stayOn);
}
else if(m.phase == 2){
interpolate(propOut, 0, m.fadeOut);
m.phase = 3;
m.cycleTimer.restart(m.fadeOut);
}
else if(m.phase == 3){
m.phase = 0;
m.cycleTimer.restart(m.stayOff);
}
}
else {
interpolate(propOut, 0, m.turnOff); #kills any currently ongoing interpolation
m.phase = 0;
}
});
m.cycleTimer.singleShot = 1;
if(propSwitch==nil) {
m.listen = nil;
return m;
}
m.listen = setlistener(propSwitch, func{m.cycleTimer.restart(0);}); #handle switch changes
m.cycleTimer.restart(0); #start the looping
return m;
},
#destructor
del: func {
if(me.listen!=nil) removelistener(me.listen);
me.cycleTimer.stop();
},
};
#By default, the switch property is initialized to 1 (only if no value is already assigned). Don't change the class implementation! To override this, set the property manually. You don't need to care if any other code already does it for you.
var navLights = nil;
if(!navStillOn) {
navLights = lightCycle.new(navSwitch, lightsPath~"nav-lights-intensity");
### Uncomment and tune those to customize times ###
#navLights.fadeIn = 0.4; #fade in time
#navLights.fadeOut = 0.4; #fade out time
#navLights.stayOn = 3 + rand()*0.05-0.025; #stable on period
#navLights.stayOff = 0.6; #stable off period
#navLights.turnOff = 0.12; #fade out time when turned off
}
### BEACON ###
var beacon = nil;
if(beaconSwitch!=nil) {
props.globals.initNode(beaconSwitch, 1, "BOOL");
beacon = aircraft.light.new(lightsPath~"beacon-state",
[0.0, 1.0 + rand()*0.05-0.025], beaconSwitch);
}
### STROBE ###
var strobe = nil;
if(strobeSwitch!=nil) {
props.globals.initNode(strobeSwitch, 1, "BOOL");
strobe = aircraft.light.new(lightsPath~"strobe-state",
[0.0, 0.87 + rand()*0.05-0.025], strobeSwitch);
}
### LIGHT FADING ###
#class for controlling fade in/out behavior - propIn is a control property (handled as a boolean) and propOut is interpolated
#all light brightness animations in xmls depend on propOut (Rembrandt brightness, material emission, flares transparency, ...)
var lightFadeInOut = {
#constructor
new: func(propSwitch, propOut) {
m = { parents: [lightFadeInOut] };
m.fadeIn = 0.3; #some sane defaults
m.fadeOut = 0.4;
if(propSwitch==nil) {
m.listen = nil;
return m;
}
props.globals.initNode(propSwitch, 1, "BOOL");
m.isOn = getprop(propSwitch);
props.globals.initNode(propOut, m.isOn, "DOUBLE");
m.listen = setlistener(propSwitch,
func {
if(m.isOn and !getprop(propSwitch)) {
interpolate(propOut, 0, m.fadeOut);
m.isOn = 0;
}
if(!m.isOn and getprop(propSwitch)) {
interpolate(propOut, 1, m.fadeIn);
m.isOn = 1;
}
}
);
return m;
},
#destructor
del: func {
if(me.listen!=nil) removelistener(me.listen);
},
};
fadeLanding = lightFadeInOut.new(landingSwitch, lightsPath~"landing-lights-intensity");
fadeTaxi = lightFadeInOut.new(taxiSwitch, lightsPath~"taxi-light-intensity");
fadeProbe = lightFadeInOut.new(probeSwitch, lightsPath~"probe-light-intensity");
fadeWhite = lightFadeInOut.new(whiteSwitch, lightsPath~"white-light-intensity");
if(navStillOn) {
navLights = lightFadeInOut.new(navSwitch, lightsPath~"nav-lights-intensity");
navLights.fadeIn = 0.1;
navLights.fadeOut = 0.12;
}
#manipulate times if defaults don't fit your needs:
#fadeLanding.fadeIn = 0.5;
#fadeLanding.fadeOut = 0.8;
### the rest of your model load embedded Nasal code ###
]]>
</load>
<unload>
stopFire();
disintegrated = 0;
removelistener(listenCrash);
#prevent multiple timers and listeners from running and fighting on next connect
#cleanly destroy MP property mirroring
mirrorTimer.stop();
mirrorTimer = nil;
mirrorValues = nil;
#cleanly destroy nav lights
if(navStillOn) {
navLights.del();
}
else {
if(navSwitch!=nil) setprop(navSwitch, 0);
navLights.del();
if(navSwitch!=nil) navLights.cycleTimer = nil;
navLights = nil;
}
#cleanly destroy beacon
if(beaconSwitch!=nil) setprop(beaconSwitch, 0);
beacon.del();
beacon = nil;
#cleanly destroy strobe
if(strobeSwitch!=nil) setprop(strobeSwitch, 0);
strobe.del();
strobe = nil;
#cleanly destroy light fade in/out animation objects
fadeLanding.del();
fadeTaxi.del();
fadeProbe.del();
fadeWhite.del();
### the rest of your model unload embedded Nasal code ###
</unload>
</nasal>
<!-- Normal Map -->
<effect>
<inherits-from>Aircraft/MQ-9/Models/Effects/Normal</inherits-from>
<object-name>MQ-9</object-name>
</effect>
<!-- Specular Map -->
<effect>
<inherits-from>Aircraft/MQ-9/Models/Effects/Specular</inherits-from>
<object-name>MQ-9</object-name>
</effect>
<!-- Liveries -->
<nasal>
<load>
var livery_update = aircraft.livery_update.new("Aircraft/MQ-9/Models/Liveries");
</load>
<unload>
livery_update.stop();
</unload>
</nasal>
<animation>
<type>material</type>
<object-name>MQ-9</object-name>
<property-base>sim/model/livery</property-base>
<texture-prop>texture</texture-prop>
<texture>Aircraft/MQ-9/Models/Liveries/Default.jpg</texture>
</animation>
<animation>
<type>material</type>
<object-name>Disk</object-name>
<texture-prop>texture</texture-prop>
<texture>Aircraft/MQ-9/Models/Liveries/Disk.png</texture>
</animation>
<animation>
<type>material</type>
<object-name>BladesBlur</object-name>
<texture-prop>texture</texture-prop>
<texture>Aircraft/MQ-9/Models/Liveries/Disk.png</texture>
</animation>
<!-- Animations -->
<!-- Ailerons -->
<animation>
<type>rotate</type>
<object-name>AileronR</object-name>
<property>surface-positions/left-aileron-pos-norm</property>
<factor>20</factor>
<axis>
<x1-m> 0.6977</x1-m>
<y1-m> 5.5070</y1-m>
<z1-m> 0.4481</z1-m>
<x2-m> 0.6255</x2-m>
<y2-m> 8.8878</y2-m>
<z2-m> 0.4392</z2-m>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>AileronL</object-name>
<property>surface-positions/left-aileron-pos-norm</property>
<factor>20</factor>
<axis>
<x1-m> 0.6977</x1-m>
<y1-m> -5.5070</y1-m>
<z1-m> 0.4481</z1-m>
<x2-m> 0.6255</x2-m>
<y2-m> -8.8878</y2-m>
<z2-m> 0.4392</z2-m>
</axis>
</animation>
<!-- Flaps -->
<animation>
<type>rotate</type>
<object-name>FlapR2</object-name>
<property>surface-positions/flap-pos-norm</property>
<factor>40</factor>
<axis>
<x1-m> 0.7273</x1-m>
<y1-m> 2.5708</y1-m>
<z1-m> 0.4576</z1-m>
<x2-m> 0.6968</x2-m>
<y2-m> 5.5070</y2-m>
<z2-m> 0.4495</z2-m>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>FlapL2</object-name>
<property>surface-positions/flap-pos-norm</property>
<factor>-40</factor>
<axis>
<x1-m> 0.7273</x1-m>
<y1-m> -2.5708</y1-m>
<z1-m> 0.4576</z1-m>
<x2-m> 0.6968</x2-m>
<y2-m> -5.5070</y2-m>
<z2-m> 0.4495</z2-m>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>FlapR1</object-name>
<property>surface-positions/flap-pos-norm</property>
<factor>40</factor>
<axis>
<x1-m> 0.7302</x1-m>
<y1-m> 0.7240</y1-m>
<z1-m> 0.4589</z1-m>
<x2-m> 0.7196</x2-m>
<y2-m> 2.5708</y2-m>
<z2-m> 0.4545</z2-m>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>FlapL1</object-name>
<property>surface-positions/flap-pos-norm</property>
<factor>-40</factor>
<axis>
<x1-m> 0.7302</x1-m>
<y1-m> -0.7240</y1-m>
<z1-m> 0.4589</z1-m>
<x2-m> 0.7196</x2-m>
<y2-m> -2.5708</y2-m>
<z2-m> 0.4545</z2-m>
</axis>
</animation>
<!-- Elevators -->
<animation>
<type>rotate</type>
<object-name>ElevatorR</object-name>
<property>surface-positions/elevator-pos-norm</property>
<factor>-20</factor>
<axis>
<x1-m> 3.4018</x1-m>
<y1-m> 0.4181</y1-m>
<z1-m> 0.6136</z1-m>
<x2-m> 3.5428</x2-m>
<y2-m> 2.9323</y2-m>
<z2-m> 2.3741</z2-m>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>ElevatorL</object-name>
<property>surface-positions/elevator-pos-norm</property>
<factor>20</factor>
<axis>
<x1-m> 3.4018</x1-m>
<y1-m>-0.4181</y1-m>
<z1-m> 0.6136</z1-m>
<x2-m> 3.5428</x2-m>
<y2-m>-2.9323</y2-m>
<z2-m> 2.3741</z2-m>
</axis>
</animation>
<!-- Rudder -->
<animation>
<type>rotate</type>
<object-name>Rudder</object-name>
<property>surface-positions/rudder-pos-norm</property>
<factor>20</factor>
<axis>
<x1-m> 3.3652</x1-m>
<y1-m> 0.0000</y1-m>
<z1-m> 0.2360</z1-m>
<x2-m> 3.4900</x2-m>
<y2-m> 0.0000</y2-m>
<z2-m>-0.7541</z2-m>
</axis>
</animation>
<!-- Landing gear -->
<animation>
<type>rotate</type>
<object-name>WheelN</object-name>
<object-name>JawN</object-name>
<property>surface-positions/rudder-pos-norm</property>
<factor>-20</factor>
<center>
<x-m>-2.9145</x-m>
<y-m> 0.0000</y-m>
<z-m>-1.2683</z-m>
</center>
<axis>
<x>0.0</x>
<y>0.0</y>
<z>1.0</z>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>WheelN</object-name>
<object-name>JawN</object-name>
<object-name>Strut1N</object-name>
<object-name>Strut2N</object-name>
<object-name>Scissor1N</object-name>
<object-name>Scissor2N</object-name>
<property>gear/gear[1]/position-norm</property>
<factor>130</factor>
<offset-deg>-130</offset-deg>
<center>
<x-m>-2.0705</x-m>
<y-m> 0.0000</y-m>
<z-m> 0.1760</z-m>
</center>
<axis>
<x>0.0</x>
<y>1.0</y>
<z>0.0</z>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>WheelL</object-name>
<object-name>StrutL</object-name>
<property>gear/gear[1]/position-norm</property>
<factor>98</factor>
<offset-deg>-98</offset-deg>
<axis>
<x1-m> 0.0559</x1-m>
<y1-m>-0.3306</y1-m>
<z1-m> 0.3248</z1-m>
<x2-m> 0.0559</x2-m>
<y2-m>-0.2413</y2-m>
<z2-m> 0.2317</z2-m>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>WheelR</object-name>
<object-name>StrutR</object-name>
<property>gear/gear[2]/position-norm</property>
<factor>-98</factor>
<offset-deg>98</offset-deg>
<axis>
<x1-m> 0.0559</x1-m>
<y1-m> 0.3306</y1-m>
<z1-m> 0.3248</z1-m>
<x2-m> 0.0559</x2-m>
<y2-m> 0.2413</y2-m>
<z2-m> 0.2317</z2-m>
</axis>
</animation>
<!-- Gear Compression -->
<animation>
<type>translate</type>
<object-name>WheelN</object-name>
<object-name>JawN</object-name>
<object-name>Scissor1N</object-name>
<object-name>Scissor2N</object-name>
<object-name>Strut1N</object-name>
<property>gear/gear[0]/compression-norm[0]</property>
<factor>0.60</factor>
<axis>
<x1-m>-2.7232</x1-m>
<y1-m> 0.0000</y1-m>
<z1-m>-0.6690</z1-m>
<x2-m>-2.5221</x2-m>
<y2-m> 0.0000</y2-m>
<z2-m>-0.4077</z2-m>
</axis>
</animation>
<animation>
<type>translate</type>
<object-name>WheelR</object-name>
<object-name>StrutR</object-name>
<property>gear/gear[2]/compression-norm[0]</property>
<factor>0.1</factor>
<axis>
<x1-m>-0.0728</x1-m>
<y1-m> 1.7594</y1-m>
<z1-m>-1.0981</z1-m>
<x2-m>-0.0728</x2-m>
<y2-m> 1.7594</y2-m>
<z2-m>-0.8998</z2-m>
</axis>
</animation>
<animation>
<type>translate</type>
<object-name>WheelL</object-name>
<object-name>StrutL</object-name>
<property>gear/gear[1]/compression-norm[0]</property>
<factor>0.1</factor>
<axis>
<x1-m>-0.0728</x1-m>
<y1-m>-1.7594</y1-m>
<z1-m>-1.0981</z1-m>
<x2-m>-0.0728</x2-m>
<y2-m>-1.7594</y2-m>
<z2-m>-0.8998</z2-m>
</axis>
</animation>
<!-- Propeller -->
<animation>
<type>spin</type>
<object-name>Propeller</object-name>
<object-name>Blades</object-name>
<property>engines/engine[0]/n2</property>
<factor>3</factor>
<center>
<x-m>4.4823</x-m>
<y-m>0.0000</y-m>
<z-m>0.7577</z-m>
</center>
<axis>
<x>1.0</x>
<y>0.0</y>
<z>0.0</z>
</axis>
</animation>
<animation>
<type>select</type>
<object-name>Blades</object-name>
<condition>
<less-than>
<property>engines/engine[0]/n2</property>
<value>50.0001</value>
</less-than>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>BladesFlat</object-name>
<condition>
<greater-than>
<property>engines/engine[0]/n2</property>
<value>50.000</value>
</greater-than>
<less-than>
<property>engines/engine[0]/n2</property>
<value>70.0001</value>
</less-than>
</condition>
</animation>
<animation>
<type>spin</type>
<object-name>BladesFlat</object-name>
<property>engines/engine[0]/n2</property>
<center>
<x-m>4.4823</x-m>
<y-m>0.0000</y-m>
<z-m>0.7577</z-m>
</center>
<axis>
<x>1.0</x>
<y>0.0</y>
<z>0.0</z>
</axis>
</animation>
<animation>
<type>select</type>
<object-name>Disk</object-name>
<condition>
<greater-than>
<property>engines/engine[0]/n2</property>
<value>70.0000</value>
</greater-than>
</condition>
</animation>
<animation>
<type>spin</type>
<object-name>Disk</object-name>
<property>engines/engine[0]/n2</property>
<factor>.5</factor>
<center>
<x-m>4.4823</x-m>
<y-m>0.0000</y-m>
<z-m>0.7577</z-m>
</center>
<axis>
<x>1.0</x>
<y>0.0</y>
<z>0.0</z>
</axis>
</animation>
<!-- Sensor -->
<animation>
<type>rotate</type>
<object-name>Sensor</object-name>
<object-name>SensorMount1</object-name>
<property>sim/model/turret[0]/heading</property>
<axis>
<x> 0</x>
<y> 0</y>
<z>-1</z>
</axis>
<center>
<x-m>-4.1425</x-m>
<y-m> 0.0000</y-m>
<z-m>-0.0697</z-m>
</center>
</animation>
<animation>
<type>rotate</type>
<object-name>Sensor</object-name>
<property>sim/model/turret[0]/pitch</property>
<offset-deg>0</offset-deg>
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
<center>
<x-m>-4.1425</x-m>
<y-m> 0.0000</y-m>
<z-m>-0.0697</z-m>
</center>
</animation>
</PropertyList>

View File

@ -0,0 +1,25 @@
<PropertyList>
<path>AGM-114.ac</path>
<animation>
<enable-hot type="bool">false</enable-hot>
</animation>
<animation>
<type>select</type>
<object-name>AGM-114</object-name>
<condition>
<not>
<property>fdm/jsbsim/systems/armament/station1/released</property>
</not>
</condition>
</animation>
<animation>
<type>range</type>
<min-m>0</min-m>
<max-m>12000</max-m>
</animation>
</PropertyList>

View File

@ -0,0 +1,25 @@
<PropertyList>
<path>AGM-114.ac</path>
<animation>
<enable-hot type="bool">false</enable-hot>
</animation>
<animation>
<type>select</type>
<object-name>AGM-114</object-name>
<condition>
<not>
<property>fdm/jsbsim/systems/armament/station2/released</property>
</not>
</condition>
</animation>
<animation>
<type>range</type>
<min-m>0</min-m>
<max-m>12000</max-m>
</animation>
</PropertyList>

View File

@ -0,0 +1,25 @@
<PropertyList>
<path>AGM-114.ac</path>
<animation>
<enable-hot type="bool">false</enable-hot>
</animation>
<animation>
<type>select</type>
<object-name>AGM-114</object-name>
<condition>
<not>
<property>fdm/jsbsim/systems/armament/station5/released</property>
</not>
</condition>
</animation>
<animation>
<type>range</type>
<min-m>0</min-m>
<max-m>12000</max-m>
</animation>
</PropertyList>

View File

@ -0,0 +1,25 @@
<PropertyList>
<path>AGM-114.ac</path>
<animation>
<enable-hot type="bool">false</enable-hot>
</animation>
<animation>
<type>select</type>
<object-name>AGM-114</object-name>
<condition>
<not>
<property>fdm/jsbsim/systems/armament/station6/released</property>
</not>
</condition>
</animation>
<animation>
<type>range</type>
<min-m>0</min-m>
<max-m>12000</max-m>
</animation>
</PropertyList>

View File

@ -0,0 +1,26 @@
<?xml version="1.0"?>
<PropertyList>
<path>AGM-114.ac</path>
<animation>
<type>dist-scale</type>
<object-name>AGM-114</object-name>
<interpolation>
<entry><ind>0</ind><dep>0.3</dep></entry>
<entry><ind>40</ind><dep>1</dep></entry>
<entry><ind>16000</ind><dep>4</dep></entry>
</interpolation>
</animation>
<model>
<path>Aircraft/MQ-9/Models/Effects/Missile/Smoke.xml</path>
<offsets>
<x-m>2.0</x-m>
<y-m>0.0</y-m>
<z-m>0.0</z-m>
</offsets>
</model>
</PropertyList>

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -0,0 +1,25 @@
<PropertyList>
<path>GBU-12.ac</path>
<animation>
<enable-hot type="bool">false</enable-hot>
</animation>
<animation>
<type>select</type>
<object-name>GBU-12</object-name>
<condition>
<not>
<property>fdm/jsbsim/systems/armament/station3/released</property>
</not>
</condition>
</animation>
<animation>
<type>range</type>
<min-m>0</min-m>
<max-m>12000</max-m>
</animation>
</PropertyList>

View File

@ -0,0 +1,25 @@
<PropertyList>
<path>GBU-12.ac</path>
<animation>
<enable-hot type="bool">false</enable-hot>
</animation>
<animation>
<type>select</type>
<object-name>GBU-12</object-name>
<condition>
<not>
<property>fdm/jsbsim/systems/armament/station4/released</property>
</not>
</condition>
</animation>
<animation>
<type>range</type>
<min-m>0</min-m>
<max-m>12000</max-m>
</animation>
</PropertyList>

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

63
Models/Stores/Stores.xml Normal file
View File

@ -0,0 +1,63 @@
<PropertyList>
<model>
<path>Aircraft/MQ-9/Models/Stores/AGM-114/AGM-114-1.xml</path>
<offsets>
<x-m>-0.0982</x-m>
<y-m>-2.2679</y-m>
<z-m>-0.1652</z-m>
<pitch-deg>0</pitch-deg>
</offsets>
</model>
<model>
<path>Aircraft/MQ-9/Models/Stores/AGM-114/AGM-114-2.xml</path>
<offsets>
<x-m>-0.0982</x-m>
<y-m>-1.9273</y-m>
<z-m>-0.1652</z-m>
<pitch-deg>0</pitch-deg>
</offsets>
</model>
<model>
<path>Aircraft/MQ-9/Models/Stores/AGM-114/AGM-114-5.xml</path>
<offsets>
<x-m>-0.0982</x-m>
<y-m> 1.9273</y-m>
<z-m>-0.1652</z-m>
<pitch-deg>0</pitch-deg>
</offsets>
</model>
<model>
<path>Aircraft/MQ-9/Models/Stores/AGM-114/AGM-114-6.xml</path>
<offsets>
<x-m>-0.0982</x-m>
<y-m> 2.2679</y-m>
<z-m>-0.1652</z-m>
<pitch-deg>0</pitch-deg>
</offsets>
</model>
<model>
<path>Aircraft/MQ-9/Models/Stores/GBU-12/GBU-12-3.xml</path>
<offsets>
<x-m>-0.6217</x-m>
<y-m>-1.2284</y-m>
<z-m> 0.0517</z-m>
<pitch-deg>0</pitch-deg>
</offsets>
</model>
<model>
<path>Aircraft/MQ-9/Models/Stores/GBU-12/GBU-12-4.xml</path>
<offsets>
<x-m>-0.6217</x-m>
<y-m> 1.2284</y-m>
<z-m> 0.0517</z-m>
<pitch-deg>0</pitch-deg>
</offsets>
</model>
</PropertyList>

151
Models/Submodels.xml Normal file
View File

@ -0,0 +1,151 @@
<PropertyList>
<submodel>
<name>AGM-114-1</name>
<model>Aircraft/MQ-9/Models/Stores/AGM-114/AGM-114-L.xml</model>
<trigger>fdm/jsbsim/systems/armament/station1/released</trigger>
<speed>600</speed>
<repeat>false</repeat>
<delay>0.1</delay>
<count>1</count>
<x-offset>2</x-offset>
<y-offset>-2.2856</y-offset>
<z-offset>0</z-offset>
<yaw-offset>0</yaw-offset>
<pitch-offset>-4</pitch-offset>
<cd>0</cd>
<weight>100</weight>
<eda>2.81</eda>
<life>25</life>
<buoyancy>31</buoyancy>
<aero-stabilised>true</aero-stabilised>
<collision>true</collision>
<collision-report>sim/ai/aircraft/collision/gun</collision-report>
<impact>true</impact>
<impact-report>sim/ai/aircraft/impact/bullet</impact-report>
<submodel-path>Aircraft/MQ-9/Models/Effects/Missile/Missile-Submodel.xml</submodel-path>
</submodel>
<submodel>
<name>AGM-114-2</name>
<model>Aircraft/MQ-9/Models/Stores/AGM-114/AGM-114-L.xml</model>
<trigger>fdm/jsbsim/systems/armament/station2/released</trigger>
<speed>600</speed>
<repeat>false</repeat>
<delay>0.1</delay>
<count>1</count>
<x-offset>2</x-offset>
<y-offset>-1.9016</y-offset>
<z-offset>0</z-offset>
<yaw-offset>0</yaw-offset>
<pitch-offset>-4</pitch-offset>
<cd>0</cd>
<weight>100</weight>
<eda>2.81</eda>
<life>25</life>
<buoyancy>31</buoyancy>
<aero-stabilised>true</aero-stabilised>
<collision>true</collision>
<collision-report>sim/ai/aircraft/collision/gun</collision-report>
<impact>true</impact>
<impact-report>sim/ai/aircraft/impact/bullet</impact-report>
<submodel-path>Aircraft/MQ-9/Models/Effects/Missile/Missile-Submodel.xml</submodel-path>
</submodel>
<submodel>
<name>AGM-114-5</name>
<model>Aircraft/MQ-9/Models/Stores/AGM-114/AGM-114-L.xml</model>
<trigger>fdm/jsbsim/systems/armament/station5/released</trigger>
<speed>600</speed>
<repeat>false</repeat>
<delay>0.1</delay>
<count>1</count>
<x-offset>2</x-offset>
<y-offset>1.9016</y-offset>
<z-offset>0</z-offset>
<yaw-offset>0</yaw-offset>
<pitch-offset>-4</pitch-offset>
<cd>0</cd>
<weight>100</weight>
<eda>2.81</eda>
<life>25</life>
<buoyancy>31</buoyancy>
<aero-stabilised>true</aero-stabilised>
<collision>true</collision>
<collision-report>sim/ai/aircraft/collision/gun</collision-report>
<impact>true</impact>
<impact-report>sim/ai/aircraft/impact/bullet</impact-report>
<submodel-path>Aircraft/MQ-9/Models/Effects/Missile/Missile-Submodel.xml</submodel-path>
</submodel>
<submodel>
<name>AGM-114-6</name>
<model>Aircraft/MQ-9/Models/Stores/AGM-114/AGM-114-L.xml</model>
<trigger>fdm/jsbsim/systems/armament/station6/released</trigger>
<speed>600</speed>
<repeat>false</repeat>
<delay>0.1</delay>
<count>1</count>
<x-offset>2</x-offset>
<y-offset>2.2856</y-offset>
<z-offset>0</z-offset>
<yaw-offset>0</yaw-offset>
<pitch-offset>-4</pitch-offset>
<cd>0</cd>
<weight>100</weight>
<eda>2.81</eda>
<life>25</life>
<buoyancy>31</buoyancy>
<aero-stabilised>true</aero-stabilised>
<collision>true</collision>
<collision-report>sim/ai/aircraft/collision/gun</collision-report>
<impact>true</impact>
<impact-report>sim/ai/aircraft/impact/bullet</impact-report>
<submodel-path>Aircraft/MQ-9/Models/Effects/Missile/Missile-Submodel.xml</submodel-path>
</submodel>
<submodel>
<name>GBU-12-3</name>
<model>Aircraft/MQ-9/Models/Stores/GBU-12/GBU-12-3.xml</model>
<trigger>fdm/jsbsim/systems/armament/station3/released</trigger>
<trigger-once>true</trigger-once>
<speed>0.0</speed>
<count>1</count>
<x-offset>0</x-offset>
<y-offset>-1.2308</y-offset>
<z-offset>-1</z-offset>
<yaw-offset>0.0</yaw-offset>
<pitch-offset>-4.0</pitch-offset>
<eda>1.0</eda>
<weight>520.0</weight>
<cd>0.3</cd>
<collision>true</collision>
<collision-report>sim/ai/aircraft/collision/cannon</collision-report>
<impact>true</impact>
<impact-report>sim/ai/aircraft/impact/bomb</impact-report>
<submodel-path>Aircraft/MQ-9/Models/Effects/Bomb/Bomb-Submodel.xml</submodel-path>
</submodel>
<submodel>
<name>GBU-12-4</name>
<model>Aircraft/MQ-9/Models/Stores/GBU-12/GBU-12-4.xml</model>
<trigger>fdm/jsbsim/systems/armament/station4/released</trigger>
<trigger-once>true</trigger-once>
<speed>0.0</speed>
<count>1</count>
<x-offset>0</x-offset>
<y-offset>1.2308</y-offset>
<z-offset>-1</z-offset>
<yaw-offset>0.0</yaw-offset>
<pitch-offset>-4.0</pitch-offset>
<eda>1.0</eda>
<weight>520.0</weight>
<cd>0.3</cd>
<collision>true</collision>
<collision-report>sim/ai/aircraft/collision/cannon</collision-report>
<impact>true</impact>
<impact-report>sim/ai/aircraft/impact/bomb</impact-report>
<submodel-path>Aircraft/MQ-9/Models/Effects/Bomb/Bomb-Submodel.xml</submodel-path>
</submodel>
</PropertyList>

8
Nasal/Crash.nas Executable file
View File

@ -0,0 +1,8 @@
setlistener("sim/crashed", func() {
var crash = getprop("sim/crashed");
if (crash){
var ctext = "Airplane crashed";
screen.log.write(ctext);
}
});

31
Nasal/ENAV.nas Executable file
View File

@ -0,0 +1,31 @@
# ==============
# TACAN Label
# ==============
tacanLabel = func {
namestring = getprop("instrumentation/tacan/name");
if (namestring !=nil) {
for(i=1; i <= 15 ; i = i+1) {
if(i <= size(namestring)) {
if ( i < 10 ) {
setprop("instrumentation/tacan/idchars/char_"~chr(i+48),namestring[i-1]);
}
else {
setprop("instrumentation/tacan/idchars/char_1"~chr(i+38),namestring[i-1]);
}
}
else {
if ( i < 10 ) {
setprop("instrumentation/tacan/idchars/char_"~chr(i+48),'\ ');
}
else {
setprop("instrumentation/tacan/idchars/char_1"~chr(i+38),'\ ');
}
}
}
}
settimer(tacanLabel, 5.0);
}
settimer(tacanLabel, 1.0);

31
Nasal/Engine.nas Executable file
View File

@ -0,0 +1,31 @@
# engine 1
start1 = props.globals.getNode("/controls/engines/start1", 1);
abort1 = props.globals.getNode("/controls/engines/abort1", 1);
set_engine1_state = func() {
start1 = getprop("/controls/engines/start1");
abort1 = getprop("/controls/engines/abort1");
cutoff1 = getprop("/controls/engines/engine[0]/cutoff");
fuel_cutoff1 = getprop("/controls/fuel-cutoff1");
if (start1 and cutoff1 and !fuel_cutoff1)
{
setprop("/controls/engines/engine[0]/starter", 1);
settimer(func { setprop("/controls/engines/engine[0]/cutoff", 0); }, 1);
settimer(switchback1, 1);
}
if (abort1)
{
setprop("/controls/engines/engine[0]/cutoff", 1);
settimer(switchback1, 1);
}
}
switchback1 = func() {
setprop("/controls/engines/run1",1);
setprop("/controls/engines/start1",0);
setprop("/controls/engines/abort1",0);
}
setlistener(start1, set_engine1_state );
setlistener(abort1, set_engine1_state );

Some files were not shown because too many files have changed in this diff Show More