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