Howto:Adding gun effects

From FlightGear wiki
Revision as of 20:02, 20 February 2009 by Fahim Dalvi (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

With Flightgear's Increasing New Capabilities, We now have Dogfight Effects Such as Bullets and Smoke on Hit!

You'll Need the Version of Flightgear with Open Scene Graph, in order to use the Effects!






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 :

 <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. Change it to a Choice of your own!

Compatible Aircraft

All Aircraft in Dave's hangar having Guns have this Feature. Example : Embraer AT-29 Super Tucano, McDonnell F-4N Phantom II, Republic F-105D Thunderchief , McDonnell FGR.2 Phantom II etc...

Some Screenshots(Credits-Peter!)

File:Dogfight-Bronco.jpg File:Dogfight.jpg