Ham_TraceAttack is the traceline of the attack/bullet/damage whatever, you can use it with entities or even with worldspawn to detect bullets hitting walls, use this if you need something complicated like seeing if the shot was near a something else... this would be excelent for exploding ammo =)
If you just want to check when someone was damaged by something/someone, use Ham_TakeDamage.