Raised This Month: $ Target: $400
 0% 

[STOCK] Smart Download Manager


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 01-23-2013 , 07:29   [STOCK] Smart Download Manager
Reply With Quote #1

This is a small snippet that can automatically detect all the files related to an .mdl/.vmt and add them to the downloads table automatically. It also works with other file types, it will just skip the extra code for those. To use it simply include the inc file and change AddFileToDownloadsTable function calls to Downloader_AddFileToDownloadsTable. It also has caching so it should only parse the files once and on next function call it will just use the cache. Let me know if it doesn't work with some .mdl/.vmt so I can fix it.

Changelog:
1.0 - Initial release
1.1 - Fixed bug with models that have mulitple VMT files
1.2 - Fixed bug that 1.1 caused, lmao
1.5 - Quite a lot of fixes, support for files inside the "custom" directory
1.6 - Added missing define
Attached Files
File Type: inc smartdm.inc (8.0 KB, 1665 views)
__________________
Taking private C++/PHP/SourcePawn requests, PM me.

Last edited by Zephyrus; 07-25-2014 at 10:29.
Zephyrus 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 02:44.


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