|
From: <fli...@li...> - 2025-05-05 17:49:45
|
Revision: 12089
http://sourceforge.net/p/flightgear/fgaddon/12089
Author: helijah
Date: 2025-05-05 17:49:27 +0000 (Mon, 05 May 2025)
Log Message:
-----------
Dassault Mirage III : Added AI version. Bombable V5.0 compatibility.
Added Paths:
-----------
branches/release-2024.1/Aircraft/MirageIII/AI/Aircraft/
branches/release-2024.1/Aircraft/MirageIII/AI/Dogfight-MirageIII.xml
Added: branches/release-2024.1/Aircraft/MirageIII/AI/Dogfight-MirageIII.xml
===================================================================
--- branches/release-2024.1/Aircraft/MirageIII/AI/Dogfight-MirageIII.xml (rev 0)
+++ branches/release-2024.1/Aircraft/MirageIII/AI/Dogfight-MirageIII.xml 2025-05-05 17:49:27 UTC (rev 12089)
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<PropertyList>
+
+ <scenario>
+
+ <name>Bombable: Four Mirage III near you</name>
+
+ <description>
+ This scenario puts Four Mirage III in the skies near
+ your position.
+
+ Install this scenario in the FlightGear/data/AI directory.
+
+ BARANGER Emmanuel 04/2025
+ </description>
+
+ <nasal>
+ <load>
+ <![CDATA[
+ var position = geo.aircraft_position();
+ var elevation = geo.elevation( position.lat(), position.lon() );
+ position.set_alt( elevation != nil ? elevation : 0.0 );
+
+ foreach( var tanker; props.globals.getNode("/ai/models",1).getChildren("tanker") ) {
+ var callsign = tanker.getNode("callsign").getValue();
+ if ( callsign == nil ) {
+ continue;
+ }
+ if ( string.match(callsign,"MIRAGE*") ) {
+ tanker.getNode("position/latitude-deg",1).setDoubleValue( position.lat() - (0.002 * rand()) );
+ tanker.getNode("position/longitude-deg",1).setDoubleValue( position.lon() - (0.002 * rand()) );
+ tanker.getNode("position/altitude-ft", 1).setDoubleValue( position.alt() + 10000 );
+ }
+ }
+ debug.dump('Mirage III scenario load script complete');
+ ]]>
+ </load>
+ </nasal>
+
+ <entry>
+ <callsign type="string">MIRAGEBaron</callsign>
+ <type>tanker</type>
+ <class>tanker</class>
+ <name type="string">MIRAGE_1</name>
+ <model type="string">Aircraft/MirageIII/Models/mirageIII.xml</model>
+ <speed type="double">480.0</speed>
+ </entry>
+
+ <entry>
+ <callsign type="string">MIRAGEStorm</callsign>
+ <type>tanker</type>
+ <class>tanker</class>
+ <name type="string">MIRAGE_2</name>
+ <model type="string">Aircraft/MirageIII/Models/mirageIII.xml</model>
+ <speed type="double">480.0</speed>
+ </entry>
+
+ <entry>
+ <callsign type="string">MIRAGEWinger</callsign>
+ <search-order>PREFER_AI</search-order>
+ <type>tanker</type>
+ <class>tanker</class>
+ <name type="string">MIRAGE_3</name>
+ <model type="string">Aircraft/MirageIII/Models/mirageIII.xml</model>
+ <speed type="double">480.0</speed>
+ </entry>
+
+ <entry>
+ <callsign type="string">MIRAGESupport</callsign>
+ <search-order>PREFER_AI</search-order>
+ <type>tanker</type>
+ <class>tanker</class>
+ <name type="string">MIRAGE_4</name>
+ <model type="string">Aircraft/MirageIII/Models/mirageIII.xml</model>
+ <speed type="double">480.0</speed>
+ </entry>
+
+ </scenario>
+
+</PropertyList>
|