Thanks, I found the mod equiv. Strange how valve decided not to use an API for this; it could have had many more useful features.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of LDuke Sent: Thursday, 11 September 2008 12:22 AM To: Discussion of Half-Life Programming Subject: Re: [hlcoders] Client File Download You need to add the file name to the "downloadables" string table. As others have said, you'll probably have to use an extension other than .lua as that appears to be blocked. Here is an example from a MMS plugin, (so things like m_Engine would be engine on a mod or VSP plugin): // add file to the list of files to download to the client void VipMod::AddDownload(const char *file) { INetworkStringTable *pDownloadablesTable = m_NetworkStringtable->FindTable("downloadables"); if (pDownloadablesTable) { bool save = m_Engine->LockNetworkStringTables(false); pDownloadablesTable->AddString(file, strlen(file)+1); m_Engine->LockNetworkStringTables(save); } } On Tue, Sep 9, 2008 at 5:13 PM, Haza <[EMAIL PROTECTED]> wrote: > This isn't for Garry's mod, I was wondering how I can send them using > source > sdk, and I'd rather use valve's download handling code. > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

