I slapped this together with some help from Zeblote, and it shows up on the add on list now, but it doesnt work :/
package Script_Hugs
{
function servercmdHug(%a)
{
parent::servercmdHug(%a);
%a.play2d(patrick);
}
};
activatepackage(Script_Hugs);
And yes, I made the sound and placed it in the folder. And it is looped and done correctly.