Raised This Month: $51 Target: $400
 12% 

Solved precache_generic


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
XSlayer
Member
Join Date: Dec 2021
Old 07-24-2022 , 23:57   precache_generic
Reply With Quote #1

Hi, i wanted to know what problems i will have if i use precache_generic, im using it for MP3 files, playing it with mp3 command, but what will happend if i use it to load .wav, mdls or sprites?,could there be some mistake?

Last edited by XSlayer; 07-26-2022 at 16:58.
XSlayer is offline
731
Member
Join Date: Aug 2006
Old 07-25-2022 , 03:23   Re: precache_generic
Reply With Quote #2

I also want to know how to download models and sprites with precache_generic
731 is offline
wilian159
Member
Join Date: Dec 2013
Old 07-25-2022 , 14:30   Re: precache_generic
Reply With Quote #3

you can use in .wav .spr .txt and mp3 sounds.

precache_generic requires full path to precache

if you are going to use it for .wav sounds the sound must be output with spk sound, if you use emit_sound you must use precache sound.
__________________
wilian159 is offline
XSlayer
Member
Join Date: Dec 2021
Old 07-25-2022 , 18:34   Re: precache_generic
Reply With Quote #4

Quote:
Originally Posted by wilian159 View Post
you can use in .wav .spr .txt and mp3 sounds.

precache_generic requires full path to precache

if you are going to use it for .wav sounds the sound must be output with spk sound, if you use emit_sound you must use precache sound.
thanks, and for the sprites loaded with precache_generic, that sprites can be used for TE_SPRITE?, or entitys with that sprite?, and what about models?

Last edited by XSlayer; 07-25-2022 at 18:34.
XSlayer is offline
lexzor
Veteran Member
Join Date: Nov 2020
Old 07-25-2022 , 18:47   Re: precache_generic
Reply With Quote #5

you must use precache_model for models, but be careful at the number of the models, if there are too many the server will crash because of 512 limit
lexzor is offline
XSlayer
Member
Join Date: Dec 2021
Old 07-25-2022 , 20:48   Re: precache_generic
Reply With Quote #6

Quote:
Originally Posted by lexzor View Post
you must use precache_model for models, but be careful at the number of the models, if there are too many the server will crash because of 512 limit
i know, but what will happend if i load a spr with precache_generic, and use it for TE_SPRITE or entity model, i know the limit of 512, thats why i ask for precache_generic, cause, precache_sound, model, generic have a a limit of 512

Last edited by XSlayer; 07-25-2022 at 20:48.
XSlayer is offline
wilian159
Member
Join Date: Dec 2013
Old 07-26-2022 , 09:51   Re: precache_generic
Reply With Quote #7

Quote:
Originally Posted by XSlayer View Post
thanks, and for the sprites loaded with precache_generic, that sprites can be used for TE_SPRITE?, or entitys with that sprite?, and what about models?
no, use precache generic only for .spr (huds) and txt, if you are going to use TE_SPRITE you need to use precache model
__________________
wilian159 is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 07-26-2022 , 11:59   Re: precache_generic
Reply With Quote #8

Only player modals may be precached with precache_generic, everything else has to be precached with precache_model.
__________________








CrazY. 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 13:37.


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