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
0 stars 0 forks source link

Missile range calculation is wrong #181

Open IrateRedKite opened 3 months ago

IrateRedKite commented 3 months ago

Good example currently visible on the Skipper Light Torpedo launcher. The calculation doesn't account for the short motor time and should probably be revised/adjusted for a more accurate range stat:

GetStatLine(flags, &len, 471624, f0fmt, 1759, (gun->fMuzzleVelocity * motor->fLifetime + (motor->fAccel / 2) * std::pow(motor->fLifetime, 2)) + accelerationCap * topSpeed);
IrateRedKite commented 3 months ago

471615 on line 204 here needs to be swapped as well, as it's displaying an incorrect string and should be 'Detonation Distance' rather than 'Seeker Range'

IrateRedKite commented 2 months ago

Completed with b66500d41c599a454644ae2f7b71147adff5399b and 8505a12e0eb0f0cf69c9ab1b914acd686d3897e0