return;
}
+ // TODO currently the only flag defined in the interface is
+ // SOUNDFLAG_RELIABLE. This one makes no sense at all from CSQC.
+ // We want to, in a later extension, expose more flags.
+
CL_VM_GetEntitySoundOrigin(MAX_EDICTS + PRVM_NUM_FOR_EDICT(entity), org);
- S_StartSound_StartPosition_Flags(MAX_EDICTS + PRVM_NUM_FOR_EDICT(entity), channel, S_FindName(sample), org, volume, attenuation, 0, flags, pitchchange > 0.0f ? pitchchange * 0.01f : 1.0f);
+ S_StartSound_StartPosition_Flags(MAX_EDICTS + PRVM_NUM_FOR_EDICT(entity), channel, S_FindName(sample), org, volume, attenuation, 0, 0, pitchchange > 0.0f ? pitchchange * 0.01f : 1.0f);
}
// #483 void(vector origin, string sample, float volume, float attenuation) pointsound
sfx_t *S_FindName(const char *name);
// for sound() builtins
-#define CHANFLAG_RELIABLE 1
+#define SOUNDFLAG_RELIABLE 1
// these define the "engine" channel namespace
#define CHAN_MIN_AUTO -128
flags = 0;
if(channel >= 8 && channel <= 15) // weird QW feature
{
- flags |= CHANFLAG_RELIABLE;
+ flags |= SOUNDFLAG_RELIABLE;
channel -= 8;
}
}
return;
}
- SV_StartSound (entity, channel, sample, volume, attenuation, flags & CHANFLAG_RELIABLE, pitchchange);
+ SV_StartSound (entity, channel, sample, volume, attenuation, flags & SOUNDFLAG_RELIABLE, pitchchange);
}
/*