Menu

[RESOLVED] Colliding with my own bullets

bbosen
2020-02-05
2021-10-18
  • bbosen

    bbosen - 2020-02-05

    When flying at very high speeds (beyond 380MPH) it is possible to collide with your own bullets. This doesn't happen very often, but it seems to be a bit more frequent when in a violent turn at high speed.

     
  • bbosen

    bbosen - 2020-02-05

    Subsequent testing confirms that aircraft begin colliding with their own bullets at any speed beyond about 375MPH.

    I have fixed this in experimental version 7.95, which will soon be published in the "Experimental Downloads" section of our main web site. However, if you want to compile this fix into any version from 7.90 through 7.94, just go into aiobject.cpp's "AIObj::fireCannon()" function and change the following line of code from this:

    MachineGunBullet->immunity = (int) (zoom * 3) * timestep; // Make myself immune to my own shots for awhile.
    

    to this:

    MachineGunBullet->immunity = (int) (zoom * 9) * timestep; // Make myself immune to my own shots for awhile.
    

    As you can see, this triples the amount of time during which collisions are ignored after firing a machine-gun bullet or cannon shell.

    After this change you will find that aircraft can now safely fire their guns and cannons at extremely high speeds without ill effect. This will be especially helpful for fans of the German Me163 "Komet", which can easile exceed 500MPH in combat.

    ; )

     

    Last edit: bbosen 2020-02-05
  • bbosen

    bbosen - 2020-02-12

    Experimental version 7.95 fixes this bug. You can download it here:

    https://askmisterwizard.com/2019/LinuxAirCombat/Installers/index.htm

    That version also substantially improves the visual perception of network jitter, while remaining interoperable with every version back through production verion Lac07r92.

     
  • bbosen

    bbosen - 2020-04-18

    Production versions since 7.95 all benefit from this fix.

     

Log in to post a comment.

MongoDB Logo MongoDB