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