Adding any NAMI missiles other than the XM900 to the Centurion results in the AI refusing to fire them under any circumstances, presumably because it determines that the TeV9 is "better". However, the purpose of a launcher is to boost damage output by augmenting the primary weapon, not to serve as an alternative. The AI should instead fire what missiles it has.

Presumably any ship with a similar sort of setup will encounter the same issue.

The current behaviour makes fine-tuning ship balance by adding light missile launchers impossible, as the AI will not fire them until you give them enough damage to pretty much double the total DPS. This is less than ideal. We should be able to set up AI ships how we want them to be.

nms 15 Apr 2016:

Well, the AI has to choose a single weapon to use for aiming purposes because weapons with different speeds (and sometimes other stats) will have different optimal aim angles.

It could be programmed to fire a primary and a launcher at the same time, but the correct behavior is complicated:

- If there are ammo weapons and non-ammo weapons, decide whether it's worth using ammo against the target.
- If there's more than one missile type and/or primary weapon, choose the best option for each against the target out of the ones that are within range.
- Choose whether to use the primary or the launcher for aiming. If one of them has omni/swivel/tracking and the other doesn't, prefer to aim based on the one that doesn't. Otherwise, aim based on the more powerful one.
- Decide whether to fire the launcher, the primary, and any secondary weapons separately based on whether the target is within their acceptable fire arcs.

gunship256 19 Apr 2016:

This also raises the question of whether the AI should allow for more than one target. Its omni weapon can auto-target against the closest ship while its main weapon is still being used for the main target. Also, should the main weapon be allowed to fire on secondary targets that are within its fire arc if the main target isn't?

nms 6 May 2016:

I have proposed that: AI should fire at targets of opportunity with primary weapons
But it's complicated and George considers it a low priority, I think.

0xabcdef 26 Dec 2018:

Do we want to add an AISettings attribute that tells the ship to fire missiles regardless of target power (i.e. ignoreMissileWaste)?

	//	Missiles/ammo count for more

	if (pWeapon->GetCategory() == itemcatLauncher
			|| pWeapon->GetClass()->IsAmmoWeapon())
		{
		//	Don't waste missiles on "lesser" targets

		if (pTarget 
				&& pTarget->GetCategory() == CSpaceObject::catShip
				&& !pTarget->IsMultiHull()
				&& pTarget->GetLevel() <= (m_iBestNonLauncherWeaponLevel - 2)
				&& pTarget->GetLevel() <= (iLevel - 2)
				&& !pTarget->IsPlayer())
			return 1;

		//	Otherwise, count for more

		else
			iScore += 20;
		}