Raised This Month: $ Target: $400
 0% 

FM_PrecacheSound forwards only 4 sound precaches


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Silencer123
Veteran Member
Join Date: Jul 2006
Old 05-30-2009 , 11:45   Re: FM_PrecacheSound forwards only 4 sound precaches
Reply With Quote #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.
Silencer123 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:55.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode