weapon.flags |= F_DIRECT_FIRE;
weapon.flags |= F_DIRECT_FIRE | F_BALLISTIC;
    public static WeaponType createISUltraAC20() {        WeaponType weapon = new WeaponType();        weapon.name = "Ultra AC/20";        weapon.setInternalName("ISUltraAC20");        weapon.addLookupName("IS Ultra AC/20");        weapon.heat = 8;        weapon.damage = 20;        weapon.rackSize = 20;        weapon.ammoType = AmmoType.T_AC_ULTRA;        weapon.minimumRange = WEAPON_NA;        weapon.shortRange = 3;        weapon.mediumRange = 7;        weapon.longRange = 10;        weapon.extremeRange = 14;        weapon.tonnage = 15.0f;        weapon.criticals = 10;        weapon.flags |= F_DIRECT_FIRE;        weapon.bv = 282;        String[] modes = { "Single", "Ultra" };        weapon.setModes(modes);        return weapon;    }