Precaching everything that's in a file
Sorry for posting a stupid thread once again, however I'm not familiar in this kind of things.
I need someone to show me how to precache every MODEL (yeah, the file will only contain models so it's easier) in the specified file. ex: Files.ini: Code:
models/model1.mdlThanks in advance. |
Re: Precaching everything that's in a file
in plugin_precache() read the file and precache the model,
then go to the next line ... |
Re: Precaching everything that's in a file
A plugin that uses a specific model should precache the model already (if it's designed correctly). There should be no need for something like this, ever.
|
Re: Precaching everything that's in a file
Believe me, this is a need for me.
To drakas: Well that tells me exactly what I've written in the thread. I need a code example, was trying to look through some plugins also but found some trie crap that doesn't really need to be used here. |
Re: Precaching everything that's in a file
Not tested.
Code:
|
Re: Precaching everything that's in a file
Look at these plugins, there are probably more if you search as well.
http://forums.alliedmods.net/showthread.php?p=596438 http://forums.alliedmods.net/showthread.php?p=583443 |
Re: Precaching everything that's in a file
Quote:
Tell me what model you would need precached that never gets used by the engine, map, or plugin? |
Re: Precaching everything that's in a file
Players can buy skins or hats etc. for some virtual money on the website (for week, two weeks etc.)
However, the skins won't get precached if I retrieve the skin paths from the database (they are stored there with the delay, price and things like that), cuz the SQL select is somehow delayed (it takes about 2 seconds until it initializes, connects, ...) and thus I need to make another file where I will store the file paths so they can get properly precached. Thanks hleV, I'll try it. |
| All times are GMT -4. The time now is 11:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.