Xerxes-17 / TarkovGunsmith

5 stars 1 forks source link

G1 Coefficient Lookup Table Error #94

Closed cecil1527 closed 2 months ago

cecil1527 commented 2 months ago

There's a bug/error in the calculation of the G1 coefficient.

You're indexing into the table using multiples of 0.05 Mach, but that only works if each row is separated by 0.05 Mach, which isn't the case.

It can be fixed by making a more generic LUT that doesn't depend on the step size between rows.

Xerxes-17 commented 2 months ago

Thank you for raising the issue! I'd have to double check, but I believe that's from the original BSG implementation. 😅

Xerxes-17 commented 2 months ago

@cecil1527 , I just checked and it is in fact how BSG has done it originally.