• There seems to be an up tick in Political commentary in recent months. Those of us who are long time members of the site we know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religiours commentary out of the fourms.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politicion will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment amoung members. It is a poison to the community. We apprciate compliance with the rules.

    The Staff of SOH

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.

Cannon and MG's

Steven190

Charter Member 2016
I just installed an new JS and have a question.

I have the cannon and MG assigned to two buttons. one for each. It works in most aircraft except, of course my favorite, the FW 190A-8

All the guns fire when I pull the MG button, and nothing happens when I use the canon button.
It is on the A-8 only, the A-5 works and the Me 109 work. Is there something in the Aircraft file? I looked but really could not find anything that stands out.
 
IIUC you should search the gun folder to find the specific <gun>.xdp used by the <aircraft>.xdp, then search the weapons folder to find the specific <weapon>/<weapon>.xdp used as DefaultWeapon in the <gun>.xdp. This weapon should have a WeaponType, either shell or bullet. AFAIK this governs the way the gun is shot.

weapons/20mmmg151_round/20mmmg151_round.xdp

<?xml version="1.0"?>
<UnitData>
<General Allegience="" LongName="" ShortName="" ModelName="" BlastDamageScale="1.0" ImpactDamageScale="1.0" FireDamageScale="1.0" Priority="2" Type="weapon" EnteredService="01/01/1944" BlastDamageMod="0" ImpactDamageMod="0" FireDamageMod="0" AllowSpawn="n" Category="weapon" Country="germany" Mass=".3485"/>
<Description String="20 x 82 x 115 g"/>
<Weapon WeaponType="shell" ImpactDice="1" ImpactDieSize="1" ImpactOffset="37.7" BlastDice="1" BlastDieSize="1" BlastOffset="45.3" BlastRadius="2" FireDice="1" FireDieSize="1" FireOffset="20" ExplodeEffect="fx_grndexpl_t" GroundEffect="fx_bltgnd_m" AirEffect="fx_bltpln_m" WaterEffect="fx_bltwtr_m" />
<Loadouts/>
<GunStations/>
<DamageBoxes/>
<Systems/>
</UnitData>

weapons/13mmmg131_round/13mmmg131_round.xdp

<?xml version="1.0"?>
<UnitData>
<General Allegience="" LongName="" ShortName="" ModelName="" BlastDamageScale="1.0" ImpactDamageScale="1.0" FireDamageScale="1.0" Priority="2" Type="weapon" EnteredService="01/01/1944" BlastDamageMod="0" ImpactDamageMod="0" FireDamageMod="0" AllowSpawn="n" Category="weapon" Country="germany" Mass=".1225"/>
<Description String="13 x 64B x 34.6 g"/>
<Weapon WeaponType="bullet" ImpactDice="1" ImpactDieSize="1" ImpactOffset="11.96" BlastDice="1" BlastDieSize="1" BlastOffset="1" FireDice="1" FireDieSize="1" FireOffset="2" ExplodeEffect="fx_bltpln_l" GroundEffect="fx_bltgnd_s" AirEffect="fx_bltpln_s" WaterEffect="fx_bltwtr_s"/>
<Loadouts/>
<GunStations/>
<DamageBoxes/>
<Systems/>
</UnitData>
 
Back
Top