Probably already done by sa8gecko, but JIC,
Here's an idea on flares:
You could put some lines in the SAM script that loop a call for a nearestObject search on the target aircraft itself, not the SAM. The flares could be camcreated/setvelocity objects (something small like a smoke shell) with the requisite drop effects to create the right appearance.
Since normally there would be no reason for a smokeshell flying around at the aircraft's height, you could make this the target of the nearestObject search. If the plane launhed a flare, it would be detected with the search and trigger the script to make the flare the new target.
There are a bunch of ways to make the spoofing less than 100%..."pulse" the nearestObject search with pauses, so it might catch the flare, or might not. Or you could just add a simple probability script:
;_chance is the precentage that the event will happen
;so if there was a 75% chance bob's your uncle...
_chance=75
_rollthedice=random(100)
?(_rollthedice>_chance):goto "skipEvent"
player sidechat "bob's my uncle!"
exit
#skipEvent
player sidechat "bob's not my uncle."
exit
-Grendel