Raised This Month: $51 Target: $400
 12% 

download function


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
genesis
Senior Member
Join Date: Oct 2004
Location: CALIFORNIA, USA
Old 02-09-2005 , 23:31   download function
Reply With Quote #1

case1
precache_sound("misc/chicken1.wav") << this dowload and calls to memory this file for use.

case2
download_file("misc/chicken1.wav") << this downloads to hardrive
precache_sound("misc/chicken1.wav") << this calls to memory

and with sourcemod managing the downloading of models and sounds can really be beneficial, for the system that steam currently uses sv_downloadurl is too static, forcing you to download all files from one hierarchy on HTTP protocol, with sourcemod controlling hopefully we can set it to models from here ... sounds from here ... sprites from here, and some can be ftp accounts hopefully.

Does this make sense?
__________________
CS 1.6 cali.radclan.net:27015
I have a feeling we're not in cs anymore.
I take pride that all my AMXX plugins were writen in notepad.
genesis is offline
DopeFish
Senior Member
Join Date: Feb 2004
Old 02-10-2005 , 14:07  
Reply With Quote #2

makes sense but I doubt you will have that much control over clients behavior from the server (could be used for malicious stuff like downloading a trojan to the clients PC and then using security holes in the IE controls to execute it when the MOTD windows is displayed).
DopeFish is offline
Send a message via ICQ to DopeFish
genesis
Senior Member
Join Date: Oct 2004
Location: CALIFORNIA, USA
Old 02-11-2005 , 15:42  
Reply With Quote #3

ahh ... you could do that now ... this isn't anything new ... precache_model ... I believe precaches any file, just to the models folder, I doubt you could execute it thru the motd either way, but it could be possible. With or without my sugestion.
__________________
CS 1.6 cali.radclan.net:27015
I have a feeling we're not in cs anymore.
I take pride that all my AMXX plugins were writen in notepad.
genesis is offline
vancelorgin
Senior Member
Join Date: Dec 2004
Location: san frandisco
Old 02-12-2005 , 04:49  
Reply With Quote #4

Yeah, another retarded thing left out of HL2. I know how to add it, and I will.
__________________
Avoid like the plague.
vancelorgin is offline
Reply



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