Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

Difference between revisions of "Howto:Adding gun effects"

From FlightGear wiki
Jump to: navigation, search
(Setup)
(Compatible Aircraft)
Line 24: Line 24:
  
 
== Compatible Aircraft ==
 
== Compatible Aircraft ==
All aircraft equipped with guns in [http://home.comcast.net/~davidculp2/hangar/hangar.html Dave's hangar] are capable to perform dogfights. Like:
+
Some aircraft have the needed submodel files included.
* Embraer AT-29 Super Tucano
+
All aircraft equipped with guns in [http://home.comcast.net/~davidculp2/hangar/hangar.html Dave's hangar] are capable bullet effects. Like:
* McDonnell F-4N Phantom II
+
* Embraer AT-29, A-29B Super Tucano
 +
* McDonnell F-4D/E/F, FGR.2, Phantom II
 
* [[Republic F-105 Thunderchief|Republic F-105D Thunderchief]]
 
* [[Republic F-105 Thunderchief|Republic F-105D Thunderchief]]
* McDonnell FGR.2 Phantom II
+
* North American F-100 Super Sabre
 +
* North American FJ-3 Fury
 +
* LTV A-7E Corsair II
 +
* Dassault Mirage IIIC, F-103E

Revision as of 15:50, 3 April 2009

With Flightgear's increasing capabilities, dogfight effects such as bullets and smoke on hit are now supported! You'll need FlightGear version 1.9 or later, in order to use the effects!

Setup

There is no default key/button binding for a trigger in FlightGear, so you'll have to make your own. An obvious choice would be the trigger on a joystick, but you can also make a keyboard binding by adding something like this to your keyboard.xml file:

<key n="119">
 <name>w</name>
 <desc>Gun Trigger</desc> 
  <binding>
   <command>property-assign</command>
   <property>controls/armament/trigger</property>
   <value>true</value>
  </binding>
 <mod-up>
  <binding>
   <command>property-assign</command>
   <property>controls/armament/trigger</property>
   <value>false</value>
  </binding> 
 </mod-up>
</key>

In the code, we have used w as the trigger. You can change it to a choice of your own. Joystick bindings are a bit more complex, but are explained in the wiki article on Joysticks.

Compatible Aircraft

Some aircraft have the needed submodel files included. All aircraft equipped with guns in Dave's hangar are capable bullet effects. Like:

  • Embraer AT-29, A-29B Super Tucano
  • McDonnell F-4D/E/F, FGR.2, Phantom II
  • Republic F-105D Thunderchief
  • North American F-100 Super Sabre
  • North American FJ-3 Fury
  • LTV A-7E Corsair II
  • Dassault Mirage IIIC, F-103E