What do you mean? The HE won't hurt you if it is thrown by your teammates or vice versa? Explain better what are you trying to achieve.
But to direct you - use Ham_TakeDamage. Then use a check for damagebits if it is DMH_HE, but first
PHP Code:
#define DMG_HE (1<<24)
then
PHP Code:
if(damagebits & DMG_HE)
{
//The given damage is by HE
}
And then do your checks for teams/who is the attacker/the victim and etc.
__________________