![]() |
Precaching
Is it at all possible to disallow a file from being precached?
czero precaches every custom model listed in the BotProfile.db I'm hoping to remove BotProfile.db from the precaching and precache different player models for each map. I've tried messing around with the \reslists\Condition Zero\precache.lst and exclude.lst, de_dust_cz.lst, Condition Zero precache list.lst, preloads.lst, etc. Altering these files seems to make no difference in precaching. I need to precache different models for different maps. ie: Desert camo models for de_dust and arctic camo for fy_iceworld. Any ideas? When exactly does precaching occur between map changes? Can a hook alter the precaching in the way I want? Thanks for any help/ideas! |
Re: Precaching
Yes, a metamod plugin could do what you want. You would have to hook on pfnPrecacheModel() and check if it is precaching a player model, in which case make it precache the one you want. But then, don't forget to also prevent the player to try to use the model that has not been precached.
|
Re: Precaching
Would I need to add code only to this section?
Code:
int pfnPrecacheModel(char* s) Something like this from Splorygon's code from the cfg loading dll he made for me? Code:
char server_cmd[256]; Code:
void ServerActivate( edict_t *pEdictList, int edictCount, int clientMax ) { I know I'm a wankin' n00bified code editor (not a code stealer), but any help would be greatly appreciated! |
Re: Precaching
***bump***
|
Re: Precaching
ServerActivate() is called after each map change and even at server start. It is called each time the server is about to accept connections again.
Use STRING (gpGlobals->mapname) to get the name of the map then precache the models you want... |
All times are GMT +2. The time now is 05:20. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.