better-modernized-combat / bmod-client

Freelancer: Better Modernized Combat (BMOD) is a modification for Freelancer, the 2003 space shooter by Digital Anvil. The core goal of the mod is to create a fun and compelling PvE experience for solo and group players in a multiplayer setting.
GNU General Public License v3.0
1 stars 0 forks source link

Bug: NPCs can fire weapons above maximum range #92

Open FJonske opened 6 months ago

FJonske commented 6 months ago

Or, that is what it looks like. I will investigate to make 100% sure this is what happens, and then try to find out why.

IrateRedKite commented 4 days ago

I know this is old, but @FJonske could you clarify what you mean by this behaviour? Is it that they're firing from beyond maximum range and hitting or that they're firing weapons before they're in maximum range?

If it's the second one this might be by design as there are pilots_population.ini values that govern this and usually NPCs use the average range of all their guns to calculate when to start firing so if there's a mix of things assigned to the two weapons groups we have set up, this may be expected.

FJonske commented 4 days ago

I don't know if this is still a thing, but I don't mean the range at which they open, but rather that they will be able to hit you with a 700m range gun, at 950m range. I would chalk this up to lag, most likely. Haven't really seen it since a while back, though. I'll make a 0 speed NPC for testing at some point and see if I can isolate this.

IrateRedKite commented 4 days ago

My guess here is that ship velocity is being added (expected behaviour) when the velocity given for guns doesn't take that into account. If you get them hitting with 0 speed, let me know but I suspect this is kind of expected behaviour because of velocity and how we do gun range calculations on the infocard.