You're not being overly helpful, actually.
And clearly haven't worked very much with neither the "hit" or "dammaged" eventhandlers : neither of these are capable of telling you what munition was used to damage the other party. They can tell you what UNIT did it, but not how or using what weapon.
I'm afraid I can't help you here, sadly. I -suppose- some overly complicated system where every potential enemy unit has a "fired" eventhandler attached which checks for shooting simultaneously with a "hit" eventhandler on the target, and then you somehow extrapolate that yes - that unit shot that weapon and it hit the other unit after X seconds so it's probable that the damage was caused by weapon Y. Alternatively some kind of veryfast looping nearestObject-type command that checks for all incoming munition, and if it fits into the "explosives" range monitor where it lands and if it can damage you. Or something.
In short, I'm afraid it won't work. MAYBE you could also somehow detect particles - can you do that at all? Does anyone know? If you can, then maybe you can pick up some of those - however as soon as a custom mod is used that changes the names of the particles or adds them where there were none before or somesuch...well, d'oh.
What is it for anyway? That might give us some more insight to help you foh' real?
Wolfrug out.