SoundDef: add 'pitch' support to Sound_PlayAt(), the pointsound builtin does
support pitch on FTEQW but it's not advertised in the extensions .qc
This commit is contained in:
parent
c8ea9f3e3f
commit
ee2d3f6b3f
1 changed files with 2 additions and 1 deletions
|
@ -511,6 +511,7 @@ Sound_Play(entity target, int chan, string shader)
|
|||
}
|
||||
}
|
||||
|
||||
void(vector origin, string sample, float volume, float attenuation, float pitch) pointsound_proper = #483;
|
||||
void
|
||||
Sound_PlayAt(vector pos, string shader)
|
||||
{
|
||||
|
@ -562,7 +563,7 @@ Sound_PlayAt(vector pos, string shader)
|
|||
#endif
|
||||
|
||||
/* really? this doesn't do any more? */
|
||||
pointsound(pos, argv(r), g_sounds[sample].volume, Sound_GetAttenuation(sample));
|
||||
pointsound_proper(pos, argv(r), g_sounds[sample].volume, Sound_GetAttenuation(sample), pitch);
|
||||
}
|
||||
|
||||
#ifdef CLIENT
|
||||
|
|
Loading…
Reference in a new issue