AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   force client download without precaching? (https://forums.alliedmods.net/showthread.php?t=99487)

HLM 08-06-2009 01:48

force client download without precaching?
 
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?

fysiks 08-06-2009 02:46

Re: force client download without precaching?
 
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.

HLM 08-06-2009 15:48

Re: force client download without precaching?
 
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 :)

fysiks 08-06-2009 16:12

Re: force client download without precaching?
 
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.


All times are GMT -4. The time now is 18:17.

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