 |
|
Veteran Member
|

05-30-2009
, 11:45
Re: FM_PrecacheSound forwards only 4 sound precaches
|
#3
|
Thanks for taking the time to test this, and for doing it this fast.
About using equal instead, okay, was not aware of the third parameter.
But it seems to now return false all the time.
About read_file: What else to use? (And how?)
In C++ you'd use a file handle, and close it when you are done reading
everything. As far as I know this option exists in sourcemod. Didn't ever
see it in AMXX.
I now removed the check for if the file exists, since if the file is in a *.gcf,
it won't be found even if there.
I tried running this plugin on Sven Co-op 4 and 3. My first suspicion was
SC 4.0's new sound engine being at fault, but the good ol' 3.0 from 2004
or so output the same.
Now testing this on Half-Life straight.
[...]
Better, but still not perfect. It now parses billions of sounds and it finds the sound to replace, okay.
However, the replacement seems to have failed. Still hearing the original
sound. And more strangely, every time a sound is heard, the forward is
called again and again for the heard sounds. Only thing I can think of why
it does this is to check if the sound was precached because Valve was too
stupid to make a variable with arrays to act as a list for precached sounds.
__________________
EAT YOUR VEGGIES
Last edited by Silencer123; 06-01-2009 at 14:02.
|
|
|
|