The two aircraft I recently sent to the CVS repository, the F-80C and the
USAFE version of the OV-10, have working guns but there is no joystick
trigger defined with the default joystick configs, and no default key either.
To make the trigger on your joystick work as a trigger you'll need to
re-define button 0 like this:
<button>
<desc>guns</desc>
<number>
<unix>0</unix>
<mac>0</mac>
<windows>0</windows>
</number>
<binding>
<condition>
<property>controls/armament/master-arm</property>
</condition>
<command>property-assign</command>
<property>controls/armament/trigger</property>
<value type="bool">true</value>
</binding>
<mod-up>
<binding>
<condition>
<property>controls/armament/master-arm</property>
</condition>
<command>property-assign</command>
<property>controls/armament/trigger</property>
<value type="bool">false</value>
</binding>
</mod-up>
</button>
Note that this only works for aircraft that have their submodels configured so
that the property "controls/armament/trigger" is the gun trigger property.
There is no agreed-upon property for this, so it might be different with
other gun-equipped aircraft.
Also, the above button binding respects the position of the master arm switch.
This means the guns won't work unless the master arm switch is on. The USAFE
OV-10 is set up with a master arm switch, so it works fine with this binding.
The F-80C model doesn't have a master arm switch, so you can get the guns to
work by adding this to the F80C-set.xml file:
<controls>
<armament>
<master-arm type="bool">true</master-arm>
</armament>
</controls>
Now the master arm is on all the time.
Dave
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Flightgear-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-users