View Single Post
GHartmann
Junior Member
Join Date: Feb 2018
Old 02-12-2018 , 13:50   Re: [EXTENSION] Late Downloads
Reply With Quote #4

This is pretty neat, wasn't aware it was possible!

I built it against TF2 with a few small changes:

Code:
179c179
<                       resendSuccess = chan->SendFile(activeDownload.filename, g_TransferID++);
---
>                       resendSuccess = chan->SendFile(activeDownload.filename, g_TransferID++, false);
301c301
<                       if (chan->SendFile(filename, g_TransferID)) {
---
>                       if (chan->SendFile(filename, g_TransferID, false)) {
334c334
<                               g_ActiveDownloads.Remove(g_ActiveDownloads.Count() - 1);
---
>                               g_ActiveDownloads.RemoveMultipleFromTail(1);
413c413
< }
---
> }
\ No newline at end of file
And tested it in-game, downloaded the text file.
Seems like this would be very useful for downloading non-essential files.

Edit: Actually, it seems it adds the files to the download list for new clients connecting, which means anyone connecting after a late download is added will still have to sit through the downloading of files. Wonder if there's a way around that?

Last edited by GHartmann; 02-12-2018 at 15:16.
GHartmann is offline