So I've been mulling some ideas for new weapons, in particular I was considering an 'IFF Disruptor' that type missile. The idea was that it would be a simple unguided missile; if you could land a hit on the hull, it would override the ship's IFF transmitter for a period of time, causing missiles friendly to that ship to target it.
In practice, I'm not sure if this is possible for a few reasons:
First of all, I'd need to disable the friendly-fire protections on a per-ship basis. I think I could do this by conditionally changing the collision class to MISSILE_FF when the projectile was sufficiently close to the hacked ship, but I'm not sure.
Second, I'd need to override the missile target selection logic to override the target owner != missile owner check. Theoretically this could be done by extending the core classes under com.fs.starfarer.combat.ai.missile (HeatseakerAI, MirvAI, etc); however the target selection methods are both private and obfuscated, so I would in fact have to completely re-implement all of the various type-specific logic in my mod.
Am I missing anything? Alex, does what I'm describing make any sense?