I recently try to add Hitmarker sounds to my quakemod, they also working but everybody kan hear the sounds..
Is there a way to play a sound to the current player only? I hear some thing about "stuffcmd playsound yoursound.wav",
but is there a better way? it should work in fitzquake/proquake, no darkplaces and other stuff plz.
I added it into combat.qc
Code: Select all
// do the damage
targ.health = targ.health - take;
sound (activator, CHAN_AUTO, "weapons/hitmarker.wav", 1, ATTN_NORM); //Hitmarker sound, maybe wrong
if (targ.health <= 0)
{
Killed (targ, attacker);
return;
}