entno = num_for_edict(e);
idx = precache_sound_index(samp);
+ chan = ((chan & 0x07) | ((chan & 0x1F0) / 2));
+
float sflags;
sflags = 0;
if (sflags & SND_LARGEENTITY)
{
WriteShort(dest, entno);
- WriteByte(dest, chan & 0xFF);
+ WriteByte(dest, chan);
}
else
{
}
void soundat(entity e, vector o, float chan, string samp, float vol, float atten)
{
- soundtoat(MSG_BROADCAST, e, o, chan, samp, vol, atten);
+ soundtoat(((chan & 8) ? MSG_ALL : MSG_BROADCAST), e, o, chan, samp, vol, atten);
}
void stopsoundto(float dest, entity e, float chan)
{