AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Extensions (https://forums.alliedmods.net/forumdisplay.php?f=134)
-   -   [EXTENSION] Download Table (https://forums.alliedmods.net/showthread.php?t=56916)

teame06 06-24-2007 02:48

[EXTENSION] Download Table
 
This extension allow you add files to the network table "downloads". Which will force the client to download the file from the server.

Install:
Upload the addons folder to your mods root directory.

Native:
Code:
/**  * Add a file to the network download table. Force a client to download a file.  *  * Path start at your mod root  * ie. "sound/test.wav"  *  * @param file      File name  * @noreturn  */ native AddFileToDownloadTable(const String:file[]);

Credit:
Quote:

Originally Posted by changelog
1.0.0.1 - June 28, 2007
- Fixed downloading support for DoD:S

Source Code

Click here to download

Knagg0 06-24-2007 02:56

Re: [EXTENSION] Download Table
 
You can already do it with the hacks extension ^^

Code:

/**
* Adds a file to be force downloaded (cleared every map change).
*
* @param ...                        Each argument = One file that will be added.
* @noreturn
*/

native Hacks_AddDownload(const String:...);


FlyingMongoose 06-24-2007 03:08

Re: [EXTENSION] Download Table
 
Yes, but why load a plugin with so much other stuff when all you might want to do is add to the downloadtable (QuakeSounds)

sslice 06-24-2007 03:10

Re: [EXTENSION] Download Table
 
All in all, these extensions are adequate substitutions until the functionality is available in sdktools.

FlyingMongoose 06-24-2007 03:12

Re: [EXTENSION] Download Table
 
Yup.

Knagg0 06-24-2007 03:17

Re: [EXTENSION] Download Table
 
1 Attachment(s)
Quote:

Originally Posted by sslice (Post 493973)
All in all, these extensions are adequate substitutions until the functionality is available in sdktools.

Yeah... I hope Bail add the hook functions to sdktools soon :)
Btw. here is the linux build.

teame06 06-24-2007 13:35

Re: [EXTENSION] Download Table
 
Quote:

Originally Posted by Knagg0 (Post 493978)
Btw. here is the linux build.

Thanks

Hell Phoenix 06-24-2007 18:16

Re: [EXTENSION] Download Table
 
OMG...thanks Teame06...I been waiting for this. Now to finish my Sanksounds port...woohoo!

Hell Phoenix 06-25-2007 10:48

Re: [EXTENSION] Download Table
 
Doesnt seem to work...but I could be using it wrong.

I have the following code in my plugin, and it compiles with no errors. Also, a sm exts list shows that the extension is indeed loaded. Am I using it wrong?

BTW this is windows

Code:

#include downloadtable

public OnMapStart()
{
        AddFileToDownloadTable("misc/wazza.wav");
}


FlyingMongoose 06-25-2007 11:52

Re: [EXTENSION] Download Table
 
Code:
#include <downloadtable> public OnMapStart() {     AddFileToDownloadTable("sound/misc/wazza.wav"); }


All times are GMT -4. The time now is 11:08.

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