2003-09-20 03:57:12 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<PropertyList>
|
|
|
|
|
|
|
|
<sim>
|
|
|
|
|
|
|
|
<description>UFO from the 'White Project' of the UNESCO</description>
|
2005-01-18 01:27:18 +00:00
|
|
|
<author>ET</author>
|
2006-03-11 09:52:51 +00:00
|
|
|
|
2003-09-20 03:57:12 +00:00
|
|
|
<flight-model>ufo</flight-model>
|
|
|
|
|
|
|
|
<sound>
|
|
|
|
<path>Aircraft/ufo/ufo-sound.xml</path>
|
|
|
|
</sound>
|
|
|
|
|
|
|
|
<panel>
|
|
|
|
<visibility>false</visibility>
|
|
|
|
</panel>
|
|
|
|
|
|
|
|
<model>
|
2004-01-04 15:32:20 +00:00
|
|
|
<path>Aircraft/ufo/Models/ufo.xml</path>
|
2003-09-20 03:57:12 +00:00
|
|
|
</model>
|
|
|
|
|
2005-04-19 13:43:44 +00:00
|
|
|
<help>
|
|
|
|
<title>UFO</title>
|
|
|
|
<key>
|
|
|
|
<name>joystick fire button</name>
|
|
|
|
<desc>fly backwards</desc>
|
|
|
|
</key>
|
2006-03-11 09:52:51 +00:00
|
|
|
<key>
|
|
|
|
<name>[ ]</name>
|
|
|
|
<desc>increase/decrease maximum speed</desc>
|
|
|
|
</key>
|
2005-04-19 13:43:44 +00:00
|
|
|
</help>
|
|
|
|
|
2003-09-20 03:57:12 +00:00
|
|
|
</sim>
|
|
|
|
|
2006-03-11 09:52:51 +00:00
|
|
|
<nasal>
|
|
|
|
<ufo>
|
|
|
|
<script>
|
|
|
|
var maxspeed = props.globals.getNode("engines/engine/speed-max-mps");
|
2006-03-11 11:04:59 +00:00
|
|
|
var speed = [5, 10, 20, 50, 100, 200, 500, 1000, 2000, 5000, 10000, 20000, 50000];
|
|
|
|
var current = 8;
|
|
|
|
|
2006-03-11 09:52:51 +00:00
|
|
|
controls.flapsDown = func(x) {
|
|
|
|
if (!x) { return }
|
2006-03-11 11:04:59 +00:00
|
|
|
if (x > 0 and current > 0) {
|
|
|
|
current -= 1;
|
|
|
|
} elsif (x < 0 and current < size(speed) - 1) {
|
|
|
|
current += 1;
|
2006-03-11 09:52:51 +00:00
|
|
|
}
|
2006-03-11 11:04:59 +00:00
|
|
|
var s = speed[current];
|
|
|
|
maxspeed.setDoubleValue(s);
|
|
|
|
gui.popupTip(sprintf("MaxSpeed " ~ s ~ " m/s"));
|
2006-03-11 09:52:51 +00:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</ufo>
|
|
|
|
</nasal>
|
2003-09-20 03:57:12 +00:00
|
|
|
</PropertyList>
|