what is diffrent between this PRECACHE
i have seen this code of PRECACHE in two plugin for precaching SPRITE and i am little bit confuse between them so can anybody give some details of it and suggest me that which is CODE is best for use :)
1st PHP Code:
PHP Code:
|
Re: what is diffrent between this PRECACHE
Precache generic is used to precache generic file types. Example: with precache_generic you can do:
PHP Code:
On the other hand, precache_model is used to pre-load a model that is going to be used. It is often used for sprites as well. As it comes to sprites, it makes no difference. Sometimes you might encounter errors, sometimes you may not. I suggest you using it as an alternative to precache_model, if it's sprite-specific. |
Re: what is diffrent between this PRECACHE
Quote:
thanks for quick reply !!! :) |
Re: what is diffrent between this PRECACHE
precache_generic, to precache any other sound than .wav, wad files, txt files, weapon hud sprites (e.g. sprites/640hud15.spr), etc.
precache_model, to precache models and the sprites that will be used with temporary entities or set as an entity's model. |
Re: what is diffrent between this PRECACHE
Quote:
THANKS :) !! |
All times are GMT -4. The time now is 20:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.