A more effective way that only happens when they die instead of being damaged....
package CheckDeathWeapon
{
function GameConnection::OnDeath(%this,%source,%killer,%type,%location)
{
bottomPrint(%this,"Killed by a " @ %type @ ",4,true);
return Parent::OnDeath(%this,%source,%killer,%type,%location);
}
};
activatePackage(CheckDeathWeapon);