CVS: data/AI/Aircraft/balloon balloon.nas.xml, NONE, 1.1 balloon2.xml, NONE, 1.1 balloon3.xml, NONE, 1.1 balloon4.xml, NONE, 1.1 balloon5.xml, NONE, 1.1 flightgear.xml, NONE, 1.1 iva.xml, NONE, 1.1 miss-velma.xml, NONE, 1.1
Torsten Dreyer <[email protected]> Wed, 7 Apr 2010 09:15:27 -0500
| Newsgroups | gmane.games.flightgear.cvc |
|---|---|
| Message-ID | <[email protected]> |
Update of /var/cvs/FlightGear-0.9/data/AI/Aircraft/balloon
In directory baron.flightgear.org:/tmp/cvs-serv16885/Aircraft/balloon
Added Files:
balloon.nas.xml balloon2.xml balloon3.xml balloon4.xml
balloon5.xml flightgear.xml iva.xml miss-velma.xml
Log Message:
Initial import of the balloon scenario from gooneybird
--- NEW FILE "balloon.nas.xml" ---
<?xml version="1.0"?>
<!--
This is the nasal part for a balloon model
Use by adding <nasal include="balloon.nas.xml"/> to your AI model
After loading the model, it is placed on the ground randomly 800-1200m
in front of your aircraft within +/- 10 degrees. It will leave ground
after 5-25 seconds and climb up to 1500-2500ft above ground elevation.
-->
<PropertyList>
<load><![CDATA[
var self = cmdarg();
print("loading ballon at ", self.getPath() );
self.getNode("controls/flight/lateral-mode",1).setValue("yaw");
var windh = props.globals.getNode("environment/wind-from-heading-deg",1);
var winds = props.globals.getNode("environment/wind-speed-kt",1);
var speed = self.getNode("controls/flight/target-spd",1);
var head = self.getNode("controls/flight/target-hdg",1);
var position = geo.aircraft_position();
position.apply_course_distance(
props.globals.getNode("orientation/heading-deg", 1).getValue()-10.0+20*rand(),
800 + 400*rand());
var elevation = geo.elevation( position.lat(), position.lon() ) * globals.M2FT;
position.set_alt( elevation != nil ? elevation : 0.0 );
self.getNode("controls/flight/target-alt", 1 ).setValue( position.alt() );
self.getNode("position/latitude-deg",1).setDoubleValue( position.lat() );
self.getNode("position/longitude-deg",1).setDoubleValue( position.lon() );
self.getNode("position/altitude-ft", 1 ).setValue( position.alt() );
var loopid = 0;
var loop = func(id) {
id == loopid or return;
speed.setValue(winds.getValue());
head.setValue(geo.normdeg(windh.getValue() + 180.0));
settimer(func { loop(id) }, 0);
}
settimer( func {
self.getNode("controls/flight/target-alt", 1 ).setValue( position.alt() + 1500 + 1000*rand());
settimer(func { loop(loopid) }, 0,5);
}, 5.0 + 20.0*rand() );
]]></load>
<unload><![CDATA[
print("unloading balloon");
loopid += 1;
]]></unload>
</PropertyList>
--- NEW FILE "balloon2.xml" ---
<?xml version="1.0"?>
<PropertyList>
<description>balloon</description>
<author>Brett Harrison (3D model) Detlef Faber (nasal code)</author>
<path>Models/balloon2.ac</path>
<texture-path></texture-path>
<nasal include="balloon.nas.xml"/>
</PropertyList>
--- NEW FILE "balloon3.xml" ---
<?xml version="1.0"?>
<PropertyList>
<description>balloon</description>
<author>Brett Harrison (3D model) Detlef Faber (nasal code)</author>
<path>Models/balloon3.ac</path>
<texture-path></texture-path>
<nasal include="balloon.nas.xml"/>
</PropertyList>
--- NEW FILE "balloon4.xml" ---
<?xml version="1.0"?>
<PropertyList>
<description>balloon</description>
<author>Brett Harrison (3D model) Detlef Faber (nasal code)</author>
<path>Models/balloon4.ac</path>
<texture-path></texture-path>
<nasal include="balloon.nas.xml"/>
</PropertyList>
--- NEW FILE "balloon5.xml" ---
<?xml version="1.0"?>
<PropertyList>
<description>balloon</description>
<author>Brett Harrison (3D model) Detlef Faber (nasal code)</author>
<path>Models/balloon5.ac</path>
<texture-path></texture-path>
<nasal include="balloon.nas.xml"/>
</PropertyList>
--- NEW FILE "flightgear.xml" ---
<?xml version="1.0"?>
<PropertyList>
<description>balloon</description>
<author>Brett Harrison (3D model) Detlef Faber (nasal code)</author>
<path>Models/balloon1t.ac</path>
<texture-path>Textures/flightgear</texture-path>
<nasal include="balloon.nas.xml"/>
</PropertyList>
--- NEW FILE "iva.xml" ---
<?xml version="1.0"?>
<PropertyList>
<description>balloon</description>
<author>Brett Harrison (3D model) Detlef Faber (nasal code)</author>
<path>Models/balloon6t.ac</path>
<texture-path>Textures/iva</texture-path>
<nasal include="balloon.nas.xml"/>
</PropertyList>
--- NEW FILE "miss-velma.xml" ---
<?xml version="1.0"?>
<PropertyList>
<description>balloon</description>
<author>Brett Harrison (3D model), Detlef Faber (nasal code)</author>
<path>Models/balloon1t.ac</path>
<texture-path>Textures/miss-velma</texture-path>
<nasal include="balloon.nas.xml"/>
</PropertyList>
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev