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
(Compatible Aircraft)
m (cleanup + wikilinks + categories)
Line 1: Line 1:
[[Image:Dogfight-Connie Target.jpg|thumb|250px|Dogfight Effects!!!]]
+
[[Image:Dogfight-Connie Target.jpg|thumb|270px|A [[Lockheed Constellation]] being hit.]]
With Flightgear's Increasing New Capabilities, We now have Dogfight Effects Such as Bullets and Smoke on Hit!
+
With [[Flightgear]]'s increasing capabilities, dogfight effects such as bullets and smoke on hit are now supported! You'll need [[FlightGear 1.9.0|FlightGear version 1.9]] or later, in order to use the effects!
 
+
You'll Need the Version of Flightgear with Open Scene Graph, in order to use the Effects!
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
  
 
== Setup ==
 
== Setup ==
You First Need to Bind a key for the Trigger. To do this goto Your ''Flightgear Data'' Directory and Edit ''Keyboard.xml''. Add the Following :  
+
You first need to bind a key for the trigger. To do this edit the <tt>keyboard.xml</tt> file in your FlightGear root. Add the following:  
  
  <key n="119">
+
<key n="119">
        <name>w</name>
+
  <name>w</name>
        <desc>Gun Trigger</desc>  
+
  <desc>Gun Trigger</desc>  
        <binding>
+
  <binding>
                <command>property-assign</command>
+
    <command>property-assign</command>
                      <property>/controls/armament/trigger</property>
+
    <property>/controls/armament/trigger</property>
                              <value>true</value>
+
    <value>true</value>
        </binding>
+
  </binding>
        <mod-up>
+
  <mod-up>
        <binding>
+
  <binding>
                <command>property-assign</command>
+
    <command>property-assign</command>
                      <property>/controls/armament/trigger</property>
+
    <property>/controls/armament/trigger</property>
                              <value>false</value>
+
    <value>false</value>
        </binding>  
+
  </binding>  
        </mod-up>
+
  </mod-up>
  </key>
+
</key>
  
In the Code, we have used '''w''' as the trigger. Change it to a Choice of your own!
+
In the code, we have used '''w''' as the trigger. You can change it to a choice of your own.
  
 
== Compatible Aircraft ==
 
== Compatible Aircraft ==
All Aircraft in [http://home.comcast.net/~davidculp2/hangar/hangar.html Dave's hangar] having Guns have this Feature.
+
All aircraft equipped with guns in [http://home.comcast.net/~davidculp2/hangar/hangar.html Dave's hangar] are capable to perform dogfights. Like:
 +
* Embraer AT-29 Super Tucano
 +
* McDonnell F-4N Phantom II
 +
* [[Republic F-105 Thunderchief|Republic F-105D Thunderchief]]
 +
* McDonnell FGR.2 Phantom II
  
Example :
+
== Screenshots ==
: Embraer AT-29 Super Tucano
+
: McDonnell F-4N Phantom II
+
: Republic F-105D Thunderchief
+
: McDonnell FGR.2 Phantom II etc...
+
 
+
== Some Screenshots(Credits-Peter!) ==
+
 
[[Image:Dogfight-Bronco.jpg|500px]]
 
[[Image:Dogfight-Bronco.jpg|500px]]
 
[[Image:Dogfight.jpg|500px]]
 
[[Image:Dogfight.jpg|500px]]
 +
 +
'''Source:''' Peter
 +
 +
[[Category:Aircraft enhancement]]
 +
[[Category:FlightGear feature]]

Revision as of 15:32, 20 February 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

You first need to bind a key for the trigger. To do this edit the keyboard.xml file in your FlightGear root. Add the following:

<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.

Compatible Aircraft

All aircraft equipped with guns in Dave's hangar are capable to perform dogfights. Like:

Screenshots

500px 500px

Source: Peter