|
From: <fli...@li...> - 2025-05-06 04:43:02
|
Revision: 12070
http://sourceforge.net/p/flightgear/fgaddon/12070
Author: helijah
Date: 2025-05-05 06:30:37 +0000 (Mon, 05 May 2025)
Log Message:
-----------
Grumman F9F Panther : Functional catapult.
Modified Paths:
--------------
branches/release-2024.1/Aircraft/F9F-Panther/Systems/f9f-base.xml
branches/release-2024.1/Aircraft/F9F-Panther/Systems/f9f-keyboard.xml
Added Paths:
-----------
branches/release-2024.1/Aircraft/F9F-Panther/Nasal/launchbar.nas
Added: branches/release-2024.1/Aircraft/F9F-Panther/Nasal/launchbar.nas
===================================================================
--- branches/release-2024.1/Aircraft/F9F-Panther/Nasal/launchbar.nas (rev 0)
+++ branches/release-2024.1/Aircraft/F9F-Panther/Nasal/launchbar.nas 2025-05-05 06:30:37 UTC (rev 12070)
@@ -0,0 +1,18 @@
+# ====================================#
+# Launchbar BARANGER Emmanuel 05/2023 #
+# ====================================#
+
+var autolaunchbar = func {
+ var lb = getprop("/controls/gear/launchbar");
+ var ge = getprop("/gear/gear[0]/wow");
+
+ if ( lb == 1 ) {
+ if ( ge == 0 ) {
+ setprop("/controls/gear/launchbar", 0);
+ }
+ }
+
+ settimer(autolaunchbar, 0);
+}
+
+autolaunchbar();
Modified: branches/release-2024.1/Aircraft/F9F-Panther/Systems/f9f-base.xml
===================================================================
--- branches/release-2024.1/Aircraft/F9F-Panther/Systems/f9f-base.xml 2025-05-05 06:29:37 UTC (rev 12069)
+++ branches/release-2024.1/Aircraft/F9F-Panther/Systems/f9f-base.xml 2025-05-05 06:30:37 UTC (rev 12070)
@@ -140,6 +140,7 @@
<file>Aircraft/F9F-Panther/Nasal/light.nas</file>
<file>Aircraft/F9F-Panther/Nasal/convert.nas</file>
<file>Aircraft/F9F-Panther/Nasal/Electrical.nas</file>
+ <file>Aircraft/F9F-Panther/Nasal/launchbar.nas</file>
<file>Aircraft/F9F-Panther/Nasal/pilot-g.nas</file>
</f9f>
<guns>
Modified: branches/release-2024.1/Aircraft/F9F-Panther/Systems/f9f-keyboard.xml
===================================================================
--- branches/release-2024.1/Aircraft/F9F-Panther/Systems/f9f-keyboard.xml 2025-05-05 06:29:37 UTC (rev 12069)
+++ branches/release-2024.1/Aircraft/F9F-Panther/Systems/f9f-keyboard.xml 2025-05-05 06:30:37 UTC (rev 12070)
@@ -286,20 +286,21 @@
</binding>
</key>
+ <!-- Carrier operations -->
<!-- map keys for catapult launch -->
<key n="67">
- <name>C</name>
+ <name>shift+c (C)</name>
<desc>Catapult Launch Command.</desc>
<binding>
<command>property-assign</command>
<property>controls/gear/catapult-launch-cmd</property>
- <value type="bool"> true </value>
+ <value type="bool">true</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>controls/gear/catapult-launch-cmd</property>
- <value type="bool"> false </value>
+ <value type="bool">false</value>
</binding>
</mod-up>
</key>
@@ -306,25 +307,17 @@
<!-- map keys for launch-bar -->
<key n="76">
- <name>L</name>
+ <name>shift+l (L)</name>
<desc>Launch-bar engage.</desc>
<binding>
- <command>property-assign</command>
+ <command>property-toggle</command>
<property>controls/gear/launchbar</property>
- <value type="bool"> true </value>
</binding>
- <mod-up>
- <binding>
- <command>property-assign</command>
- <property>controls/gear/launchbar</property>
- <value type="bool"> false </value>
- </binding>
- </mod-up>
</key>
<!-- map keys for arrester hook -->
<key n="79">
- <name>O</name>
+ <name>shift+o (O)</name>
<desc>Hook down</desc>
<binding>
<command>property-assign</command>
@@ -344,7 +337,7 @@
</key>
<key n="81">
- <name>Q</name>
+ <name>shift+q (Q)</name>
<desc>Reset view</desc>
<binding>
<command>nasal</command>
|