Raised This Month: $ Target: $400
 0% 

checking what's already precached?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-30-2007 , 00:21   Re: checking what's already precached?
Reply With Quote #1

You could intercept all precache calls, and remember them, like so:

Code:
 #define MAX_SOUNDS 512  new sounds[MAX_SOUNDS][48];  new soundCount;  public plugin_init()  {     register_forward(FM_PrecacheSound,"fw_precachesound");  }  public fw_precachesound(sound[])  {     format(sounds[soundCount++],47,"%s",sound);  }
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Reply



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 00:40.


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