https://en.wikipedia.org/wiki/AGM-88_HARM
Normal HARMs have hit radar emitting aircraft :
During the Gulf War, the HARM was involved in a friendly fire incident when the pilot of an F-4G Wild Weasel escorting a B-52 bomber mistook the latter's tail gun radar for an Iraqi AAA site. (This was after the tail gunner of the B-52 had targeted the F-4G, mistaking it for an Iraqi MiG.) The F-4 pilot launched the missile and then saw that the target was the B-52, which was hit. It survived with shrapnel damage to the tail and no casualties. The B-52 was subsequently renamed In HARM's Way.[4]
As for IR missile options beyond the Sidewinder the US never really invested in any longer range IR missiles like the Soviets did as part of their overall effort to go big in IRST (which didn't seem to pan out all that well to my knowledge).
When you have car coming from the opposite direction, with its high beams on, you can see it really, really well, even if you keep your lights off (passive HARM).
The state vector could even potentially come from an AWACS, although the angular resolution wouldn't be great. If the launching aircraft had an IRST system though, that is easily solved.
Incidentally, this basic capability is the present/near future of air combat. Modern but non-stealth aircraft hang back with their radars on. 50 miles or so in front of them are the AMRAAM equipped stealth aircraft getting datalinked targeting from the "quarterback" aircraft behind them. Tracks can be refined by having multiple radars observe the same target from different angles, and further augmented by the stealth aircraft's IRST system if it has one. The (stealth) launching aircraft can then immediately turn tail and run while the quarterback aircraft continues to provide midcourse updates to the missile.
1. Stealth (F-35/F-22) squadron keeps taking turns "illuminating" using radar and spot for each other, toggling radar on and off.
2. AWACS / ground-based radar / MIG-31M provides targets and stealth comes in close to take them out.
3. There is a concept that flips #2 - stealth comes in and looks for targets, a large transport aircraft is converted into a "missile truck" and ripple fires on target from a distance, WITHOUT having to illuminate - there are missiles called AWACS killers which are pretty dangerous to #2. Note that ripple fires implies missiles with multiple means of targeting.
4. Drones can play the role of finding targets and recon-by-fire too.
This stuff that was science fiction a decade ago is now reality.
I don't fully understand why - whether it's a technical, expense, or reliability hurdle.
Furthermore, self-designation is useless when an aircraft is doing close air-support and can't tell apart friendlies from enemies, which is an extremely common scenario.
Dropping LGBs in close air support isn't a thing. There are other tools for that. Target designation with a laser designator isn't something that anyone is going to do in a danger close CAS situation.
>There are other tools for that.
Not really, artillery is going to have the same problems if not more. Unless you have a Reaper, Apache, or Spooky on station.
In fact, the Soviets had AWAC hunter teams using exactly this type of missile. They figured (correctly), that sacrificing a squadron of planes to blind NATO would be a fair trade. The number of E-3s in NATO were limited, and extremely expensive. The R-27 had radar homing variants with a range around 70km. This would require the launching aircraft to get very close to the AWACs and it's protective escort.
The Russians have continued this with the R-37, which has a range of up to 400km. They plan on targeting AWACS, tankers, ECM aircraft (JSTARS) and other high value aircraft. All of these are slow, easy targets for a fighter.
Perhaps that's exactly what IRST does...