WIP: add engine sound for the AI planes
There is unresolved problem with stop playing sound after disable scenario
7
FGData/AI/Aircraft/Aerotow/Cub/Models/Cub-ai.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<PropertyList include="AI/Aircraft/Cub/Models/Cub-ai.xml">
|
||||
<sound>
|
||||
<path>AI/Aircraft/Aerotow/Sound/sound.xml</path>
|
||||
</sound>
|
||||
</PropertyList>
|
||||
66879
FGData/AI/Aircraft/Aerotow/Cub/Models/Cub.ac
Normal file
BIN
FGData/AI/Aircraft/Aerotow/Cub/Models/placards.png
Normal file
|
After Width: | Height: | Size: 423 KiB |
BIN
FGData/AI/Aircraft/Aerotow/Cub/Models/propeller.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
FGData/AI/Aircraft/Aerotow/Cub/Models/propeller_slow.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
FGData/AI/Aircraft/Aerotow/Cub/Models/texture.png
Normal file
|
After Width: | Height: | Size: 4.6 MiB |
7
FGData/AI/Aircraft/Aerotow/DR400/Models/dr400-ai.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList include="AI/Aircraft/DR400/Models/dr400-ai.xml">
|
||||
<sound>
|
||||
<path>AI/Aircraft/Aerotow/Sound/sound.xml</path>
|
||||
</sound>
|
||||
</PropertyList>
|
||||
44494
FGData/AI/Aircraft/Aerotow/DR400/Models/dr400.ac
Normal file
48
FGData/AI/Aircraft/Aerotow/DR400/Models/light/GreenLight.ac
Normal file
@@ -0,0 +1,48 @@
|
||||
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 "DefaultWhite" rgb 1 1 1 amb 1 1 1 emis 0 0 0 spec 0.5 0.5 0.5 shi 64 trans 0
|
||||
OBJECT world
|
||||
kids 1
|
||||
OBJECT poly
|
||||
name "Light"
|
||||
data 4
|
||||
Mesh
|
||||
texture "lights.png"
|
||||
texrep 1 1
|
||||
crease 45.000000
|
||||
numvert 12
|
||||
0.5 0.5 0
|
||||
-0.5 0.5 0
|
||||
-0.5 -0.5 0
|
||||
0.5 -0.5 0
|
||||
0 -0.5 -0.5
|
||||
0 -0.5 0.5
|
||||
0 0.5 0.5
|
||||
0 0.5 -0.5
|
||||
0.5 0 -0.5
|
||||
-0.5 0 -0.5
|
||||
-0.5 0 0.5
|
||||
0.5 0 0.5
|
||||
numsurf 3
|
||||
SURF 0x20
|
||||
mat 1
|
||||
refs 4
|
||||
0 0.948961138725 0.442461937666
|
||||
1 0.563538074493 0.442461848259
|
||||
2 0.563538074493 0.0570387989283
|
||||
3 0.948961138725 0.0570387542248
|
||||
SURF 0x20
|
||||
mat 1
|
||||
refs 4
|
||||
7 0.948961257935 0.0570388287306
|
||||
6 0.948961257935 0.442461937666
|
||||
5 0.563538074493 0.442461937666
|
||||
4 0.563538074493 0.0570387542248
|
||||
SURF 0x20
|
||||
mat 1
|
||||
refs 4
|
||||
11 0.948961257935 0.442461937666
|
||||
10 0.563538193703 0.442461937666
|
||||
9 0.563538074493 0.0570388287306
|
||||
8 0.948961257935 0.0570387542248
|
||||
kids 0
|
||||
38
FGData/AI/Aircraft/Aerotow/DR400/Models/light/GreenLight.xml
Normal file
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<path>GreenLight.ac</path>
|
||||
|
||||
<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>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
48
FGData/AI/Aircraft/Aerotow/DR400/Models/light/RedLight.ac
Normal file
@@ -0,0 +1,48 @@
|
||||
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 "DefaultWhite" rgb 1 1 1 amb 1 1 1 emis 0 0 0 spec 0.5 0.5 0.5 shi 64 trans 0
|
||||
OBJECT world
|
||||
kids 1
|
||||
OBJECT poly
|
||||
name "Light"
|
||||
data 4
|
||||
Mesh
|
||||
texture "lights.png"
|
||||
texrep 1 1
|
||||
crease 45.000000
|
||||
numvert 12
|
||||
0.5 0.5 0
|
||||
-0.5 0.5 0
|
||||
-0.5 -0.5 0
|
||||
0.5 -0.5 0
|
||||
0 -0.5 -0.5
|
||||
0 -0.5 0.5
|
||||
0 0.5 0.5
|
||||
0 0.5 -0.5
|
||||
0.5 0 -0.5
|
||||
-0.5 0 -0.5
|
||||
-0.5 0 0.5
|
||||
0.5 0 0.5
|
||||
numsurf 3
|
||||
SURF 0x20
|
||||
mat 1
|
||||
refs 4
|
||||
0 0.448961138725 0.442461937666
|
||||
1 0.0635380744934 0.442461848259
|
||||
2 0.0635380744934 0.0570387989283
|
||||
3 0.448961138725 0.0570387542248
|
||||
SURF 0x20
|
||||
mat 1
|
||||
refs 4
|
||||
7 0.448961257935 0.0570388287306
|
||||
6 0.448961257935 0.442461937666
|
||||
5 0.0635380744934 0.442461937666
|
||||
4 0.0635380744934 0.0570387542248
|
||||
SURF 0x20
|
||||
mat 1
|
||||
refs 4
|
||||
11 0.448961257935 0.442461937666
|
||||
10 0.0635381937027 0.442461937666
|
||||
9 0.0635380744934 0.0570388287306
|
||||
8 0.448961257935 0.0570387542248
|
||||
kids 0
|
||||
38
FGData/AI/Aircraft/Aerotow/DR400/Models/light/RedLight.xml
Normal file
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<path>RedLight.ac</path>
|
||||
|
||||
<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>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<path>WhiteLight.ac</path>
|
||||
|
||||
<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>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0"?>
|
||||
<PropertyList>
|
||||
<path>toggle-white.ac</path>
|
||||
|
||||
<animation>
|
||||
<type>alpha-test</type>
|
||||
<alpha-factor>0.01</alpha-factor>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>billboard</type>
|
||||
<object-name>Cube</object-name>
|
||||
<spherical type="bool">true</spherical>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>dist-scale</type>
|
||||
<object-name>Cube</object-name>
|
||||
<interpolation>
|
||||
<entry>
|
||||
<ind>0</ind>
|
||||
<dep>0.25</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>20</ind>
|
||||
<dep>.50</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>1500</ind>
|
||||
<dep>5</dep>
|
||||
</entry>
|
||||
</interpolation>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
48
FGData/AI/Aircraft/Aerotow/DR400/Models/light/WhiteLight.ac
Normal file
@@ -0,0 +1,48 @@
|
||||
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 "DefaultWhite" rgb 1 1 1 amb 1 1 1 emis 0 0 0 spec 0.5 0.5 0.5 shi 64 trans 0
|
||||
OBJECT world
|
||||
kids 1
|
||||
OBJECT poly
|
||||
name "Light"
|
||||
data 4
|
||||
Mesh
|
||||
texture "lights.png"
|
||||
texrep 1 1
|
||||
crease 45.000000
|
||||
numvert 12
|
||||
0.5 0.5 0
|
||||
-0.5 0.5 0
|
||||
-0.5 -0.5 0
|
||||
0.5 -0.5 0
|
||||
0 -0.5 -0.5
|
||||
0 -0.5 0.5
|
||||
0 0.5 0.5
|
||||
0 0.5 -0.5
|
||||
0.5 0 -0.5
|
||||
-0.5 0 -0.5
|
||||
-0.5 0 0.5
|
||||
0.5 0 0.5
|
||||
numsurf 3
|
||||
SURF 0x20
|
||||
mat 1
|
||||
refs 4
|
||||
0 0.943492412567 0.942461967468
|
||||
1 0.558069348335 0.942461848259
|
||||
2 0.558069348335 0.557038784027
|
||||
3 0.943492412567 0.557038784027
|
||||
SURF 0x20
|
||||
mat 1
|
||||
refs 4
|
||||
7 0.943492531776 0.557038843632
|
||||
6 0.943492531776 0.942461967468
|
||||
5 0.558069348335 0.942461967468
|
||||
4 0.558069348335 0.557038784027
|
||||
SURF 0x20
|
||||
mat 1
|
||||
refs 4
|
||||
11 0.943492531776 0.942461967468
|
||||
10 0.558069467545 0.942461967468
|
||||
9 0.558069348335 0.557038843632
|
||||
8 0.943492531776 0.557038784027
|
||||
kids 0
|
||||
38
FGData/AI/Aircraft/Aerotow/DR400/Models/light/WhiteLight.xml
Normal file
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<path>WhiteLight.ac</path>
|
||||
|
||||
<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>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
38
FGData/AI/Aircraft/Aerotow/DR400/Models/light/beacon.xml
Normal file
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<path>RedLight.ac</path>
|
||||
|
||||
<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>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
3268
FGData/AI/Aircraft/Aerotow/DR400/Models/light/light-cone.ac
Normal file
12
FGData/AI/Aircraft/Aerotow/DR400/Models/light/light-cone.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<path>light-cone.ac</path>
|
||||
|
||||
<effect>
|
||||
<inherits-from>Effects/light-cone</inherits-from>
|
||||
<object-name>Cone</object-name>
|
||||
</effect>
|
||||
|
||||
</PropertyList>
|
||||
|
After Width: | Height: | Size: 2.9 KiB |
BIN
FGData/AI/Aircraft/Aerotow/DR400/Models/light/lights.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
@@ -0,0 +1,95 @@
|
||||
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 "Material" rgb 0.92013 0.92013 0.92013 amb 0.5 0.5 0.5 emis 0 0 0 spec 1 1 1 shi 32 trans 0
|
||||
OBJECT world
|
||||
kids 1
|
||||
OBJECT poly
|
||||
name "Cube"
|
||||
data 4
|
||||
Cube
|
||||
crease 30
|
||||
numvert 12
|
||||
0.009182 0.007635 -0.00748
|
||||
0.001377 -0.000598 -0.00748
|
||||
-0.005892 0.002033 -0.00748
|
||||
-0.001976 0.012793 -0.00748
|
||||
0.009182 0.007635 0.00748
|
||||
0.001377 -0.000598 0.00748
|
||||
-0.005892 0.002033 0.00748
|
||||
-0.001976 0.012793 0.00748
|
||||
-0.009655 -0.008307 -0.00748
|
||||
-0.009655 -0.008307 0.00748
|
||||
0.002203 -0.01154 -0.00748
|
||||
0.002203 -0.01154 0.00748
|
||||
numsurf 10
|
||||
SURF 0x00
|
||||
mat 1
|
||||
refs 4
|
||||
0 0 0
|
||||
1 0 0
|
||||
2 0 0
|
||||
3 0 0
|
||||
SURF 0x00
|
||||
mat 1
|
||||
refs 4
|
||||
4 0 0
|
||||
7 0 0
|
||||
6 0 0
|
||||
5 0 0
|
||||
SURF 0x00
|
||||
mat 1
|
||||
refs 4
|
||||
0 0 0
|
||||
4 0 0
|
||||
5 0 0
|
||||
1 0 0
|
||||
SURF 0x00
|
||||
mat 1
|
||||
refs 4
|
||||
2 0 0
|
||||
6 0 0
|
||||
7 0 0
|
||||
3 0 0
|
||||
SURF 0x00
|
||||
mat 1
|
||||
refs 4
|
||||
6 0 0
|
||||
2 0 0
|
||||
8 0 0
|
||||
9 0 0
|
||||
SURF 0x00
|
||||
mat 1
|
||||
refs 4
|
||||
1 0 0
|
||||
5 0 0
|
||||
11 0 0
|
||||
10 0 0
|
||||
SURF 0x00
|
||||
mat 1
|
||||
refs 4
|
||||
5 0 0
|
||||
6 0 0
|
||||
9 0 0
|
||||
11 0 0
|
||||
SURF 0x00
|
||||
mat 1
|
||||
refs 4
|
||||
2 0 0
|
||||
1 0 0
|
||||
10 0 0
|
||||
8 0 0
|
||||
SURF 0x00
|
||||
mat 1
|
||||
refs 4
|
||||
10 0 0
|
||||
11 0 0
|
||||
9 0 0
|
||||
8 0 0
|
||||
SURF 0x00
|
||||
mat 1
|
||||
refs 4
|
||||
0 0 0
|
||||
3 0 0
|
||||
7 0 0
|
||||
4 0 0
|
||||
kids 0
|
||||
BIN
FGData/AI/Aircraft/Aerotow/DR400/Models/prop.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
FGData/AI/Aircraft/Aerotow/DR400/Models/texture.png
Normal file
|
After Width: | Height: | Size: 361 KiB |
BIN
FGData/AI/Aircraft/Aerotow/DR400/Models/texture.xcf.gz
Normal file
25
FGData/AI/Aircraft/Aerotow/Sound/sound.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0"?>
|
||||
<PropertyList>
|
||||
<fx>
|
||||
<engine>
|
||||
<name>engine</name>
|
||||
<mode>looped</mode>
|
||||
<path>wasp.wav</path>
|
||||
<condition>
|
||||
<property>/addons/by-id/org.flightgear.addons.Aerotow/addon-devel/sound/enable</property>
|
||||
</condition>
|
||||
<volume>
|
||||
<offset>-0.80</offset>
|
||||
</volume>
|
||||
<pitch>
|
||||
<property>velocities/true-airspeed-kt</property>
|
||||
<factor>0.012</factor>
|
||||
<offset>0.3</offset>
|
||||
<min>0.3</min>
|
||||
<max>1.0</max>
|
||||
</pitch>
|
||||
<reference-dist>150.0</reference-dist>
|
||||
<max-dist>5000.0</max-dist>
|
||||
</engine>
|
||||
</fx>
|
||||
</PropertyList>
|
||||
BIN
FGData/AI/Aircraft/Aerotow/Sound/wasp.wav
Normal file
53
FGData/AI/Aircraft/Aerotow/c182/Models/BeaconLight.xml
Normal file
@@ -0,0 +1,53 @@
|
||||
<?xml version="1.0"?>
|
||||
<PropertyList>
|
||||
<path>WhiteLight1.ac</path>
|
||||
|
||||
<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>0.0</green>
|
||||
<blue>0.0</blue>
|
||||
</emission>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>Light</object-name>
|
||||
<condition>
|
||||
<and>
|
||||
<greater-than>
|
||||
<property>/sim/time/sun-angle-rad</property>
|
||||
<value>1.57</value>
|
||||
</greater-than>
|
||||
<greater-than>
|
||||
<property>velocities/true-airspeed-kt</property>
|
||||
<value>0</value>
|
||||
</greater-than>
|
||||
</and>
|
||||
</condition>
|
||||
</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</dep></entry>
|
||||
</interpolation>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
BIN
FGData/AI/Aircraft/Aerotow/c182/Models/Halos.rgb
Normal file
35
FGData/AI/Aircraft/Aerotow/c182/Models/StrobeLight.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0"?>
|
||||
<PropertyList>
|
||||
<path>WhiteLight1.ac</path>
|
||||
|
||||
<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>dist-scale</type>
|
||||
<object-name>Light</object-name>
|
||||
<interpolation>
|
||||
<entry>
|
||||
<ind>0</ind>
|
||||
<dep>0.25</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>20</ind>
|
||||
<dep>.50</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>1500</ind>
|
||||
<dep>5</dep>
|
||||
</entry>
|
||||
</interpolation>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
35
FGData/AI/Aircraft/Aerotow/c182/Models/ToggleLight.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0"?>
|
||||
<PropertyList>
|
||||
<path>toggle-white.ac</path>
|
||||
|
||||
<animation>
|
||||
<type>alpha-test</type>
|
||||
<alpha-factor>0.01</alpha-factor>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>billboard</type>
|
||||
<object-name>Cube</object-name>
|
||||
<spherical type="bool">true</spherical>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>dist-scale</type>
|
||||
<object-name>Cube</object-name>
|
||||
<interpolation>
|
||||
<entry>
|
||||
<ind>0</ind>
|
||||
<dep>0.25</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>20</ind>
|
||||
<dep>.50</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>1500</ind>
|
||||
<dep>5</dep>
|
||||
</entry>
|
||||
</interpolation>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
44
FGData/AI/Aircraft/Aerotow/c182/Models/WhiteLight1.ac
Normal file
@@ -0,0 +1,44 @@
|
||||
AC3Db
|
||||
MATERIAL "ac3dmat1" rgb 1 1 1 amb 0.2 0.2 0.2 emis 1 1 1 spec 0 0 0 shi 10 trans 0
|
||||
OBJECT world
|
||||
kids 1
|
||||
OBJECT poly
|
||||
name "Light"
|
||||
texture "Halos.rgb"
|
||||
crease 45.000000
|
||||
numvert 12
|
||||
0.5 0.5 2.23517e-08
|
||||
-0.5 0.5 -2.23517e-08
|
||||
-0.5 -0.5 -2.23517e-08
|
||||
0.5 -0.5 2.23517e-08
|
||||
0 -0.5 -0.5
|
||||
0 -0.5 0.5
|
||||
0 0.5 0.5
|
||||
0 0.5 -0.5
|
||||
0.5 -4.96048e-10 -0.5
|
||||
-0.5 4.42074e-08 -0.5
|
||||
-0.5 4.96048e-10 0.5
|
||||
0.5 -4.42074e-08 0.5
|
||||
numsurf 3
|
||||
SURF 0x20
|
||||
mat 0
|
||||
refs 4
|
||||
0 0 0.5
|
||||
1 0.5 0.5
|
||||
2 0.5 0
|
||||
3 0 0
|
||||
SURF 0x20
|
||||
mat 0
|
||||
refs 4
|
||||
7 0 0.5
|
||||
6 0.5 0.5
|
||||
5 0.5 0
|
||||
4 0 0
|
||||
SURF 0x20
|
||||
mat 0
|
||||
refs 4
|
||||
11 0 0.5
|
||||
10 0.5 0.5
|
||||
9 0.5 0
|
||||
8 0 0
|
||||
kids 0
|
||||
BIN
FGData/AI/Aircraft/Aerotow/c182/Models/c182-01.png
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
FGData/AI/Aircraft/Aerotow/c182/Models/c182-02.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
7
FGData/AI/Aircraft/Aerotow/c182/Models/c182-ai.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<PropertyList include="AI/Aircraft/c182/Models/c182-ai.xml">
|
||||
<sound>
|
||||
<path>AI/Aircraft/Aerotow/Sound/sound.xml</path>
|
||||
</sound>
|
||||
</PropertyList>
|
||||
217
FGData/AI/Aircraft/Aerotow/c182/Models/c182-dpm.xml
Normal file
@@ -0,0 +1,217 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<path>c182.ac</path>
|
||||
|
||||
|
||||
<!-- Object movements -->
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>Propeller</object-name>
|
||||
<condition>
|
||||
<less-than>
|
||||
<property>engines/engine[0]/rpm</property>
|
||||
<value>500</value>
|
||||
</less-than>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>Propeller.2</object-name>
|
||||
<condition>
|
||||
<greater-than>
|
||||
<property>engines/engine[0]/rpm</property>
|
||||
<value>400</value>
|
||||
</greater-than>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>blend</type>
|
||||
<object-name>Propeller.2</object-name>
|
||||
<property>engines/engine[0]/rpm</property>
|
||||
<factor>0.0004</factor>
|
||||
<max>1.0</max>
|
||||
<min>0.0</min>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>NoseWheel</object-name>
|
||||
<property>surface-positions/rudder-pos-norm</property>
|
||||
<factor>-20</factor>
|
||||
<center>
|
||||
<x-m>-0.8</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>-0.8</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<z>1</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>spin</type>
|
||||
<object-name>Propeller</object-name>
|
||||
<property>engines/engine[0]/rpm</property>
|
||||
<factor>-1</factor>
|
||||
<center>
|
||||
<x-m>0</x-m>
|
||||
<y-m>0</y-m>
|
||||
<z-m>-0.214544</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>1.0</x>
|
||||
<y>0.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>spin</type>
|
||||
<object-name>Propeller.2</object-name>
|
||||
<property>engines/engine[0]/rpm</property>
|
||||
<factor>-1</factor>
|
||||
<center>
|
||||
<x-m>0</x-m>
|
||||
<y-m>0</y-m>
|
||||
<z-m>-0.214544</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>1.0</x>
|
||||
<y>0.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>LeftAileron</object-name>
|
||||
<property>surface-positions/left-aileron-pos-norm</property>
|
||||
<interpolation>
|
||||
<entry>
|
||||
<ind>-1.0</ind>
|
||||
<dep>15</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>0.0</ind>
|
||||
<dep>0</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>1.0</ind>
|
||||
<dep>-20</dep>
|
||||
</entry>
|
||||
</interpolation>
|
||||
<center>
|
||||
<x-m>0.94</x-m>
|
||||
<y-m>-3.83</y-m>
|
||||
<z-m>0.40</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>-0.15</x>
|
||||
<y>-1.00</y>
|
||||
<z>0.03</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>RightAileron</object-name>
|
||||
<property>surface-positions/left-aileron-pos-norm</property>
|
||||
<interpolation>
|
||||
<entry>
|
||||
<ind>-1.0</ind>
|
||||
<dep>15</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>0.0</ind>
|
||||
<dep>0</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>1.0</ind>
|
||||
<dep>-20</dep>
|
||||
</entry>
|
||||
</interpolation>
|
||||
<center>
|
||||
<x-m>0.94</x-m>
|
||||
<y-m>3.83</y-m>
|
||||
<z-m>0.40</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>-0.15</x>
|
||||
<y>1.00</y>
|
||||
<z>0.03</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>LeftFlap</object-name>
|
||||
<object-name>RightFlap</object-name>
|
||||
<property>surface-positions/flap-pos-norm</property>
|
||||
<factor>30</factor>
|
||||
<center>
|
||||
<x-m>1.1</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>0.28</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>LeftElevator</object-name>
|
||||
<object-name>RightElevator</object-name>
|
||||
<property>surface-positions/elevator-pos-norm</property>
|
||||
<interpolation>
|
||||
<entry>
|
||||
<ind>-1.0</ind>
|
||||
<dep>-28</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>0</ind>
|
||||
<dep>0</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>1.0</ind>
|
||||
<dep>23</dep>
|
||||
</entry>
|
||||
</interpolation>
|
||||
<center>
|
||||
<x-m>5.1</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>-0.45</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>Rudder</object-name>
|
||||
<property>surface-positions/rudder-pos-norm</property>
|
||||
<factor>17.5</factor>
|
||||
<center>
|
||||
<x-m>5.45</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>0.0</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.72</x>
|
||||
<y>0.0</y>
|
||||
<z>1.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
8778
FGData/AI/Aircraft/Aerotow/c182/Models/c182.ac
Normal file
BIN
FGData/AI/Aircraft/Aerotow/c182/Models/chrome2.rgb
Normal file
64
FGData/AI/Aircraft/Aerotow/c182/Models/lights.ac
Normal file
@@ -0,0 +1,64 @@
|
||||
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
|
||||
OBJECT world
|
||||
kids 1
|
||||
OBJECT poly
|
||||
name "Cube"
|
||||
data 8
|
||||
Cube.002
|
||||
texture "lights.rgb"
|
||||
texrep 1 1
|
||||
crease 30
|
||||
numvert 8
|
||||
5.2e-005 -0.024954 -0.09
|
||||
5.2e-005 -0.024954 0.173732
|
||||
-0.027131 -0.024954 0.173679
|
||||
-0.027131 -0.024954 -0.09
|
||||
5.2e-005 0.047045 -0.09
|
||||
5.2e-005 0.047045 0.173732
|
||||
-0.027131 0.047045 0.173679
|
||||
-0.027131 0.047045 -0.09
|
||||
numsurf 6
|
||||
SURF 0x00
|
||||
mat 0
|
||||
refs 4
|
||||
0 0.0462104454637 0.277649432421
|
||||
1 0.0462104454637 0.0592489615083
|
||||
2 0.264610916376 0.0592489615083
|
||||
3 0.264610916376 0.277649432421
|
||||
SURF 0x00
|
||||
mat 0
|
||||
refs 4
|
||||
4 0.0462104454637 0.277649432421
|
||||
7 0.0462104454637 0.0592489615083
|
||||
6 0.264610916376 0.0592489615083
|
||||
5 0.264610916376 0.277649432421
|
||||
SURF 0x00
|
||||
mat 0
|
||||
refs 4
|
||||
0 0.994239091873 0.706083416939
|
||||
4 0.994238674641 0.996782541275
|
||||
5 0.00671458244324 0.996782541275
|
||||
1 0.00671491026878 0.706083416939
|
||||
SURF 0x00
|
||||
mat 0
|
||||
refs 4
|
||||
1 0.0462104454637 0.277649432421
|
||||
5 0.0462104454637 0.0592489615083
|
||||
6 0.264610916376 0.0592489615083
|
||||
2 0.264610916376 0.277649432421
|
||||
SURF 0x00
|
||||
mat 0
|
||||
refs 4
|
||||
2 0.0 1.0
|
||||
6 0.0 0.0
|
||||
7 1.0 0.0
|
||||
3 1.0 1.0
|
||||
SURF 0x00
|
||||
mat 0
|
||||
refs 4
|
||||
4 0.0462104454637 0.277649432421
|
||||
0 0.0462104454637 0.0592489615083
|
||||
3 0.264610916376 0.0592489615083
|
||||
7 0.264610916376 0.277649432421
|
||||
kids 0
|
||||
BIN
FGData/AI/Aircraft/Aerotow/c182/Models/lights.rgb
Normal file
95
FGData/AI/Aircraft/Aerotow/c182/Models/toggle-white.ac
Normal file
@@ -0,0 +1,95 @@
|
||||
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 "Material" rgb 0.92013 0.92013 0.92013 amb 0.5 0.5 0.5 emis 0 0 0 spec 1 1 1 shi 32 trans 0
|
||||
OBJECT world
|
||||
kids 1
|
||||
OBJECT poly
|
||||
name "Cube"
|
||||
data 4
|
||||
Cube
|
||||
crease 30
|
||||
numvert 12
|
||||
0.009182 0.007635 -0.00748
|
||||
0.001377 -0.000598 -0.00748
|
||||
-0.005892 0.002033 -0.00748
|
||||
-0.001976 0.012793 -0.00748
|
||||
0.009182 0.007635 0.00748
|
||||
0.001377 -0.000598 0.00748
|
||||
-0.005892 0.002033 0.00748
|
||||
-0.001976 0.012793 0.00748
|
||||
-0.009655 -0.008307 -0.00748
|
||||
-0.009655 -0.008307 0.00748
|
||||
0.002203 -0.01154 -0.00748
|
||||
0.002203 -0.01154 0.00748
|
||||
numsurf 10
|
||||
SURF 0x00
|
||||
mat 1
|
||||
refs 4
|
||||
0 0 0
|
||||
1 0 0
|
||||
2 0 0
|
||||
3 0 0
|
||||
SURF 0x00
|
||||
mat 1
|
||||
refs 4
|
||||
4 0 0
|
||||
7 0 0
|
||||
6 0 0
|
||||
5 0 0
|
||||
SURF 0x00
|
||||
mat 1
|
||||
refs 4
|
||||
0 0 0
|
||||
4 0 0
|
||||
5 0 0
|
||||
1 0 0
|
||||
SURF 0x00
|
||||
mat 1
|
||||
refs 4
|
||||
2 0 0
|
||||
6 0 0
|
||||
7 0 0
|
||||
3 0 0
|
||||
SURF 0x00
|
||||
mat 1
|
||||
refs 4
|
||||
6 0 0
|
||||
2 0 0
|
||||
8 0 0
|
||||
9 0 0
|
||||
SURF 0x00
|
||||
mat 1
|
||||
refs 4
|
||||
1 0 0
|
||||
5 0 0
|
||||
11 0 0
|
||||
10 0 0
|
||||
SURF 0x00
|
||||
mat 1
|
||||
refs 4
|
||||
5 0 0
|
||||
6 0 0
|
||||
9 0 0
|
||||
11 0 0
|
||||
SURF 0x00
|
||||
mat 1
|
||||
refs 4
|
||||
2 0 0
|
||||
1 0 0
|
||||
10 0 0
|
||||
8 0 0
|
||||
SURF 0x00
|
||||
mat 1
|
||||
refs 4
|
||||
10 0 0
|
||||
11 0 0
|
||||
9 0 0
|
||||
8 0 0
|
||||
SURF 0x00
|
||||
mat 1
|
||||
refs 4
|
||||
0 0 0
|
||||
3 0 0
|
||||
7 0 0
|
||||
4 0 0
|
||||
kids 0
|
||||
@@ -49,6 +49,9 @@
|
||||
<alt>0</alt>
|
||||
</total>
|
||||
</route>
|
||||
<sound>
|
||||
<enable type="bool">false</enable>
|
||||
</sound>
|
||||
<help-text type="string">=== How to start? ===
|
||||
|
||||
From the top menu, select "Aerotow Everywhere" -> "Call for Piper J3 Cub aircraft", "Robin DR400" or "Cessna 182" (yes, you can choose from many aircrafts).
|
||||
|
||||
@@ -43,6 +43,11 @@
|
||||
<property>/addons/by-id/org.flightgear.addons.Aerotow/addon-devel/ai-model</property>
|
||||
<value type="string">Cub</value>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/addons/by-id/org.flightgear.addons.Aerotow/addon-devel/sound/enable</property>
|
||||
<value type="bool">true</value>
|
||||
</binding>
|
||||
</item>
|
||||
<item>
|
||||
<label>Call for Robin DR400 aircraft</label>
|
||||
@@ -51,6 +56,11 @@
|
||||
<property>/addons/by-id/org.flightgear.addons.Aerotow/addon-devel/ai-model</property>
|
||||
<value type="string">DR400</value>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/addons/by-id/org.flightgear.addons.Aerotow/addon-devel/sound/enable</property>
|
||||
<value type="bool">true</value>
|
||||
</binding>
|
||||
</item>
|
||||
<item>
|
||||
<label>Call for Cessna 182 aircraft</label>
|
||||
@@ -59,9 +69,19 @@
|
||||
<property>/addons/by-id/org.flightgear.addons.Aerotow/addon-devel/ai-model</property>
|
||||
<value type="string">c182</value>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/addons/by-id/org.flightgear.addons.Aerotow/addon-devel/sound/enable</property>
|
||||
<value type="bool">true</value>
|
||||
</binding>
|
||||
</item>
|
||||
<item>
|
||||
<label>Disable tow aircraft</label>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/addons/by-id/org.flightgear.addons.Aerotow/addon-devel/sound/enable</property>
|
||||
<value type="bool">false</value>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script><![CDATA[aerotow.stopAerotow();]]></script>
|
||||
|
||||
@@ -168,7 +168,7 @@ var generateScenarioXml = func () {
|
||||
"callsign": "FG-TOW",
|
||||
"type": "aircraft",
|
||||
"class": "aerotow-dragger",
|
||||
"model": "Aircraft/Cub/Models/Cub-ai.xml", # default Cub
|
||||
"model": "Aircraft/Aerotow/Cub/Models/Cub-ai.xml", # default Cub
|
||||
"flightplan": FILENAME_FLIGHTPLAN,
|
||||
"repeat": 1,
|
||||
}
|
||||
@@ -178,10 +178,10 @@ var generateScenarioXml = func () {
|
||||
|
||||
var aiModel = getSelectedAircraft();
|
||||
if (aiModel == "DR400") {
|
||||
scenarioXml.PropertyList.scenario.entry.model = "Aircraft/DR400/Models/dr400-ai.xml";
|
||||
scenarioXml.PropertyList.scenario.entry.model = "Aircraft/Aerotow/DR400/Models/dr400-ai.xml";
|
||||
}
|
||||
else if (aiModel == "c182") {
|
||||
scenarioXml.PropertyList.scenario.entry.model = "Aircraft/c182/Models/c182-ai.xml";
|
||||
scenarioXml.PropertyList.scenario.entry.model = "Aircraft/Aerotow/c182/Models/c182-ai.xml";
|
||||
}
|
||||
|
||||
var node = props.Node.new(scenarioXml);
|
||||
|
||||