so the completed one looks like this?
package ninjad
{
function ProjectileData::damage(%this,%obj,%col,%fade,%pos,%normal)
{
Parent::damage(%this,%obj,%col,%fade,%pos,%normal); //Always include the parent if it already exists
if(%this == nameToID(nSwordProjectile)) //Make sure the projectile data is the same as the one being checked, using ID's
{
%obj.customSound = nDeathSound;
%obj.lastWeapon = %this.uiName;
}
}
function gameConnection::onDeath(%client,%obj,%killer,%type,%location)
{
serverPlay2D(%obj.customSound);
messageAll(%client @ "was killed by " @ %obj.lastWeapon);
parent::onDeath(%client,%obj,%killer,%type,%location);
}
};
activatePackage(ninjad);