Raised This Month: $32 Target: $400
 8% 

[EXTENSION] Download Table


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 06-24-2007 , 02:48   [EXTENSION] Download Table
#1

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
__________________
No private support via Instant Message
GunGame:SM Released

Last edited by DS; 07-16-2007 at 02:00.
teame06 is offline
Send a message via AIM to teame06
Knagg0
SourceMod Donor
Join Date: Dec 2005
Location: Germany
Old 06-24-2007 , 02:56   Re: [EXTENSION] Download Table
#2

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:...);
__________________

MFZB Gaming Community

[ www.mfzb.de ]

Knagg0 is offline
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 06-24-2007 , 03:08   Re: [EXTENSION] Download Table
#3

Yes, but why load a plugin with so much other stuff when all you might want to do is add to the downloadtable (QuakeSounds)
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
sslice
Senior Member
Join Date: Feb 2005
Location: Texas, USA
Old 06-24-2007 , 03:10   Re: [EXTENSION] Download Table
#4

All in all, these extensions are adequate substitutions until the functionality is available in sdktools.
__________________
sslice is offline
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 06-24-2007 , 03:12   Re: [EXTENSION] Download Table
#5

Yup.
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
Knagg0
SourceMod Donor
Join Date: Dec 2005
Location: Germany
Old 06-24-2007 , 03:17   Re: [EXTENSION] Download Table
#6

Quote:
Originally Posted by sslice View Post
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.
Attached Files
File Type: so downloadtable.ext.so (12.0 KB, 571 views)
__________________

MFZB Gaming Community

[ www.mfzb.de ]

Knagg0 is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 06-24-2007 , 13:35   Re: [EXTENSION] Download Table
#7

Quote:
Originally Posted by Knagg0 View Post
Btw. here is the linux build.
Thanks
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
Hell Phoenix
Senior Member
Join Date: Jan 2005
Old 06-24-2007 , 18:16   Re: [EXTENSION] Download Table
#8

OMG...thanks Teame06...I been waiting for this. Now to finish my Sanksounds port...woohoo!
__________________
Hell Phoenix is offline
Hell Phoenix
Senior Member
Join Date: Jan 2005
Old 06-25-2007 , 10:48   Re: [EXTENSION] Download Table
#9

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");
}
__________________
Hell Phoenix is offline
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 06-25-2007 , 11:52   Re: [EXTENSION] Download Table
#10

Code:
#include <downloadtable> public OnMapStart() {     AddFileToDownloadTable("sound/misc/wazza.wav"); }
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
Closed Thread



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 11:01.


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