Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
29103533fb | ||
|
|
5aa5f731a6 | ||
|
|
1982df9f16 |
@@ -1,5 +1,9 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## v.1.3.0
|
||||||
|
|
||||||
|
- Add engine sound for AI aircrafts
|
||||||
|
|
||||||
## v.1.2.0
|
## v.1.2.0
|
||||||
|
|
||||||
- Add possibility to change the flight plan of AI tow plane.
|
- Add possibility to change the flight plan of AI tow plane.
|
||||||
|
|||||||
@@ -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>
|
||||||
|
After Width: | Height: | Size: 423 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 4.6 MiB |
@@ -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>
|
||||||
@@ -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
|
||||||
@@ -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>
|
||||||
@@ -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
|
||||||
@@ -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>
|
||||||
@@ -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
|
||||||
@@ -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>
|
||||||
@@ -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,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 |
|
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
|
||||||
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 361 KiB |
@@ -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>
|
||||||
@@ -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>
|
||||||
@@ -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>
|
||||||
@@ -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>
|
||||||
@@ -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
|
||||||
|
After Width: | Height: | Size: 46 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
@@ -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>
|
||||||
@@ -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>
|
||||||
@@ -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
|
||||||
@@ -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>
|
<alt>0</alt>
|
||||||
</total>
|
</total>
|
||||||
</route>
|
</route>
|
||||||
|
<sound>
|
||||||
|
<enable type="bool">false</enable>
|
||||||
|
</sound>
|
||||||
<help-text type="string">=== How to start? ===
|
<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).
|
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).
|
||||||
|
|||||||
@@ -62,9 +62,21 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<label>Disable tow aircraft</label>
|
<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>
|
<binding>
|
||||||
<command>nasal</command>
|
<command>nasal</command>
|
||||||
<script><![CDATA[aerotow.stopAerotow();]]></script>
|
<script><![CDATA[
|
||||||
|
# Run stopAerotow() with a delay to ensure that the engine sound turns off
|
||||||
|
var timer = maketimer(1, func () {
|
||||||
|
aerotow.stopAerotow();
|
||||||
|
});
|
||||||
|
timer.singleShot = 1;
|
||||||
|
timer.start();
|
||||||
|
]]></script>
|
||||||
</binding>
|
</binding>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
<addon>
|
<addon>
|
||||||
<identifier type="string">org.flightgear.addons.Aerotow</identifier>
|
<identifier type="string">org.flightgear.addons.Aerotow</identifier>
|
||||||
<name type="string">Aerotow Everywhere</name>
|
<name type="string">Aerotow Everywhere</name>
|
||||||
<version type="string">1.2.0</version>
|
<version type="string">1.3.0</version>
|
||||||
|
|
||||||
<authors>
|
<authors>
|
||||||
<author>
|
<author>
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ var g_towListeners = [];
|
|||||||
var init = func () {
|
var init = func () {
|
||||||
# Listener for ai-model property triggered when the user select a tow aircraft from add-on menu
|
# Listener for ai-model property triggered when the user select a tow aircraft from add-on menu
|
||||||
append(g_towListeners, setlistener(ADDON_NODE_PATH ~ "/addon-devel/ai-model", func () {
|
append(g_towListeners, setlistener(ADDON_NODE_PATH ~ "/addon-devel/ai-model", func () {
|
||||||
startAerotow();
|
restartAerotow();
|
||||||
}));
|
}));
|
||||||
|
|
||||||
append(g_towListeners, setlistener("/sim/presets/longitude-deg", func () {
|
append(g_towListeners, setlistener("/sim/presets/longitude-deg", func () {
|
||||||
@@ -104,6 +104,44 @@ var uninit = func () {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# Function for restart AI scenario with delay when the sound has to stop.
|
||||||
|
#
|
||||||
|
# Return 1 on successful, otherwise 0.
|
||||||
|
#
|
||||||
|
var restartAerotow = func () {
|
||||||
|
messages.displayOk("Aerotow in the way");
|
||||||
|
|
||||||
|
# Stop playing engine sound
|
||||||
|
setprop(ADDON_NODE_PATH ~ "/addon-devel/sound/enable", 0);
|
||||||
|
|
||||||
|
# Wait a second for the engine sound to turn off
|
||||||
|
var timer = maketimer(1, func () {
|
||||||
|
unloadScenario();
|
||||||
|
});
|
||||||
|
timer.singleShot = 1;
|
||||||
|
timer.start();
|
||||||
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# Unload scenario and start a new one
|
||||||
|
#
|
||||||
|
var unloadScenario = func () {
|
||||||
|
if (g_isScenarioLoaded) {
|
||||||
|
var args = props.Node.new({ "name": SCENARIO_ID });
|
||||||
|
if (fgcommand("unload-scenario", args)) {
|
||||||
|
g_isScenarioLoaded = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Start aerotow with delay to avoid duplicate engine sound playing
|
||||||
|
var timer = maketimer(1, func () {
|
||||||
|
startAerotow();
|
||||||
|
});
|
||||||
|
timer.singleShot = 1;
|
||||||
|
timer.start();
|
||||||
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Main function to prepare AI scenario and run it.
|
# Main function to prepare AI scenario and run it.
|
||||||
#
|
#
|
||||||
@@ -111,8 +149,11 @@ var uninit = func () {
|
|||||||
#
|
#
|
||||||
var startAerotow = func () {
|
var startAerotow = func () {
|
||||||
var args = props.Node.new({ "name": SCENARIO_ID });
|
var args = props.Node.new({ "name": SCENARIO_ID });
|
||||||
|
|
||||||
if (g_isScenarioLoaded) {
|
if (g_isScenarioLoaded) {
|
||||||
fgcommand("unload-scenario", args);
|
if (fgcommand("unload-scenario", args)) {
|
||||||
|
g_isScenarioLoaded = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
generateScenarioXml();
|
generateScenarioXml();
|
||||||
@@ -124,6 +165,8 @@ var startAerotow = func () {
|
|||||||
if (fgcommand("load-scenario", args)) {
|
if (fgcommand("load-scenario", args)) {
|
||||||
g_isScenarioLoaded = 1;
|
g_isScenarioLoaded = 1;
|
||||||
messages.displayOk("Let's fly!");
|
messages.displayOk("Let's fly!");
|
||||||
|
|
||||||
|
setprop(ADDON_NODE_PATH ~ "/addon-devel/sound/enable", 1);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -168,7 +211,7 @@ var generateScenarioXml = func () {
|
|||||||
"callsign": "FG-TOW",
|
"callsign": "FG-TOW",
|
||||||
"type": "aircraft",
|
"type": "aircraft",
|
||||||
"class": "aerotow-dragger",
|
"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,
|
"flightplan": FILENAME_FLIGHTPLAN,
|
||||||
"repeat": 1,
|
"repeat": 1,
|
||||||
}
|
}
|
||||||
@@ -178,10 +221,10 @@ var generateScenarioXml = func () {
|
|||||||
|
|
||||||
var aiModel = getSelectedAircraft();
|
var aiModel = getSelectedAircraft();
|
||||||
if (aiModel == "DR400") {
|
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") {
|
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);
|
var node = props.Node.new(scenarioXml);
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
<hrule/>
|
<hrule/>
|
||||||
|
|
||||||
<text>
|
<text>
|
||||||
<label>Aerotow Everywhere version 1.2.0 - 17th August 2022</label>
|
<label>Aerotow Everywhere version 1.3.0 - 18th August 2022</label>
|
||||||
</text>
|
</text>
|
||||||
|
|
||||||
<text>
|
<text>
|
||||||
|
|||||||