Raised This Month: $ Target: $400
 0% 

force client download without precaching?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HLM
Senior Member
Join Date: Apr 2008
Location: C:\WINDOWS\System32
Old 08-06-2009 , 01:48   force client download without precaching?
Reply With Quote #1

before I begin, not sure if this is in the right section or not, but if it is please move it and im terribly sorry!

is it possible to make a client download file on client_connect or something if the files are NOT precached? ie:
PHP Code:
public client_connect(id)
dowload_file(szFile[random(g_maxfiles)])
dowload_file(szFile[random(g_maxfiles)])
dowload_file(szFile[random(g_maxfiles)])

so now.. the user will download 3 random variables of szFile, but these files are not precached, thus allowing for other things to be precached in the server.. (because I use alot of models/sounds)

can someone answer this for me?
__________________
+|- KARMA Respectively

HLM is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-06-2009 , 02:46   Re: force client download without precaching?
Reply With Quote #2

The answer is no. Also, if it's not precached the clients computer can't use that file anyways so there is no point to making them download it and not precaching it.

I don't think there is any set limit on sounds. Entites, yes, however.
__________________
fysiks is offline
HLM
Senior Member
Join Date: Apr 2008
Location: C:\WINDOWS\System32
Old 08-06-2009 , 15:48   Re: force client download without precaching?
Reply With Quote #3

okay, thank you for the prompt answer and the reason I wanted this is because the player models plugin you made for me fysiks, I want the clients to download 3 random files when they connect IF the plugin is not enabled on that map (that has been done by randomly precaching 3 models) but I wanted to do it per client connect, not per map..

but thank you anyways, the way I have it now, it will work fine
__________________
+|- KARMA Respectively

HLM is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-06-2009 , 16:12   Re: force client download without precaching?
Reply With Quote #4

Anything that is precached in plugin_precache() will make the client download and/or precache the model when they connect.

Doing it as you described "per client connect" would do no good. Everybody on the server must have all the same files precached.
__________________

Last edited by fysiks; 08-06-2009 at 16:14.
fysiks 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 18:17.


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