weapon.flags |= F_DIRECT_FIRE;
weapon.flags |= F_DIRECT_FIRE | F_BALLISTIC;
    public static WeaponType createISUltraAC5() {        WeaponType weapon = new WeaponType();        weapon.name = "Ultra AC/5";        weapon.setInternalName("ISUltraAC5");        weapon.addLookupName("IS Ultra AC/5");        weapon.heat = 1;        weapon.damage = 5;        weapon.rackSize = 5;        weapon.ammoType = AmmoType.T_AC_ULTRA;        weapon.minimumRange = 2;        weapon.shortRange = 6;        weapon.mediumRange = 13;        weapon.longRange = 20;        weapon.extremeRange = 26;        weapon.tonnage = 9.0f;        weapon.criticals = 5;        weapon.flags |= F_DIRECT_FIRE;        weapon.bv = 113;        String[] modes = { "Single", "Ultra" };        weapon.setModes(modes);        return weapon;    }