However, in the unpatched code, the target_lead_scalar is never used again anywhere else in the codebase---I know because I used grep -n 'target_lead_scaler' $(find . -type f) inside the code directory of the project to find all usages of the target_lead_scalar attribute. This would mean that even if a swarm missile supplied this flag it would never actually be leaded towards the target. That's what my patch fixes:
Ah, so you mean that your patch makes +Target Lead Scaler: apply to swarm missiles, which it didn't do before? That part is definitely worth implementing, if I understood it right.
If I understand the codebase properly---and that's a big if---yes, my patch causes the +Target Lead Scalar to apply to swarm missiles, which are currently not applied to swarm missiles.
However, before doing an "svn ci" on this patch, I think that we should consider what Kolgena, headdie, and General Battuta are saying here: that by fixing this apparent bug, we may wind up completely destroying the balance of both
's campaigns and community campaigns that implicitly rely on swarm missiles not being able to reliably hit a target moving faster than a cruiser.
As for how to go about incorporating my fix, one solution might be to add a weapons.tbl flag to swarm missiles that we want to have lead their targets. However, I personally would also like to be able to turn on or off swarm missile leading at-will via a command-line switch. So before I go off implementing one or both of these solutions, what would the SCP programmers prefer I do?