I got it to work by adding this instead.
package PitchforkPackage
{
function PitchforkProjectile::onCollision(%this,%obj,%col,%fade,%pos,%normal)
{
serverPlay3D(pitchforkExplosion,%obj.getTransform());
parent::onCollision(%this,%obj,%col,%fade,%pos,%normal);
}
function Armor::onCollision(%this, %obj, %col, %a, %b, %c, %d, %e, %f)
{
Parent::onCollision(%this, %obj, %col, %a, %b, %c, %d, %e, %f);
}
};
activatePackage(pitchforkPackage);