1
0
Fork 0
fgdata/Aircraft/ufo/ufo-set.xml

57 lines
1.1 KiB
XML
Raw Normal View History

<?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>
<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>
</model>
<help>
<title>UFO</title>
<key>
<name>joystick fire button</name>
<desc>fly backwards</desc>
</key>
<key>
<name>[ ]</name>
<desc>increase/decrease maximum speed</desc>
</key>
</help>
</sim>
<nasal>
<ufo>
<script>
var maxspeed = props.globals.getNode("engines/engine/speed-max-mps");
controls.flapsDown = func(x) {
if (!x) { return }
var speed = maxspeed.getValue();
if (x > 0 and speed > 5) {
speed /= 1.5;
} elsif (x &lt; 0 and speed &lt; 20000) {
speed *= 1.5;
}
maxspeed.setDoubleValue(speed);
gui.popupTip(sprintf("MaxSpeed " ~ int(speed) ~ " m/s"));
}
</script>
</ufo>
</nasal>
</PropertyList>