Quote:
Originally Posted by CaptainKuijt
Specifically I was wondering about elevator music, such as in No Mercy chapter 4 (but also tank music, concert music, etc).
I found a plugin that allows the server to play music in the elevator, but the problem is that it has to be a sound file that all the clients have.
Otherwise only person that has the soundfile will hear it.
Is there a way to make this 100% server-side and not client-side? If so, how do I do it?
|
I think the plugin already does that. If you want the clients to have it in a fast way instead of just making them download the files themselves, modify the line:
PHP Code:
for (new i = 0; i < g_iTracks; i++)
{
PrecacheSound(g_sTracks[i], true);
}
to:
PHP Code:
for (new i = 0; i < g_iTracks; i++)
{
if (!FileExists(g_sTracks[i]))
{
AddFileToDownloadsTable(g_sTracks[i]);
}
else
{
PrecacheSound(g_sTracks[i], true);
}
}
That way, clients just have to download the files directly from the server.