Radio sounds
Are default CS radio sounds precached and if they are, can they be unprecached?
|
Re: Radio sounds
Yes, they are precached otherwise you would not be able to hear them, because if a sound played with EmitSound and not precached, the server will crash. And yes, if you block the menu/command and hook some forward (try FM_PrecacheSound), you can block the precache, but be aware if a plugin emits the sound and the sound is not precached, you server will die.
|
Re: Radio sounds
I know it will crash, I just wanted to know if they are precached and if I am able to unprecache them.
AFAIK sounds don't have to be precached if you're going to execute 'spk' command on the client. But that probably applies only to plugins. Thank you, that's some nice space under the precache limit for me. |
Re: Radio sounds
I thought unprecached sounds would not crash, but would give more like an error message in the console, or is that false?
|
Re: Radio sounds
false :)
|
Re: Radio sounds
Quote:
It won't crash the server since the command is client-side only. If using with emit_sound(), then it will crash the server if it is not precached. This is because the sound is played server-side. |
Re: Radio sounds
Did you ever succeed to unpreacache them? I'm trying but no success.
|
Re: Radio sounds
PHP Code:
|
Re: Radio sounds
I tried this code: https://forums.alliedmods.net/showthread.php?t=209421
But when I debug in precache radio commands, there are only some of the sound, none of them from radio1-4 commands. |
| All times are GMT -4. The time now is 06:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.