Yeah basically.
I think it's done. I can't test it right now, but you can test it if you know how to package it.
datablock particleData(hitMarkerTexture)
{
textureName = "./hitMarker.png";
};
datablock audioProfile(hitMarkerSound)
{
fileName = "./hitMarkerSound.wav";
description = audioClosest3D;
preload = true;
};
package hitMarkers
{
function ProjectileData::damage(%this,%obj,%col,%fade,%pos,%normal)
{
parent::damage(%this,%obj,%col,%fade,%pos,%normal);
if(isObject(%obj.sourceObject.client))
{
%obj.sourceObject.client.centerPrint("<bitmap:add-ons/server_hitmarkers/hitmarker>", 1);
%obj.sourceObject.client.play2D(hitMarkerSound);
}
}
};
activatepackage(hitmarkers);
Just put that into the server.cs of a folder called Server_Hitmarkers in your add-ons folder. Then put the texture and sound in as hitMarker.png and hitMarkerSound.wav
And don't forget a description.txt, it can be empty.