Raised This Month: $ Target: $400
 0% 

Custom materials


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ShufflexDD
Senior Member
Join Date: Apr 2011
Location: :noitaɔo˩
Old 09-09-2013 , 02:59   Custom materials
Reply With Quote #1

Hi guys, I'm wondering how should I display custom materials to the players. The thing is if player has "Don't download any files" checked, server still tries to display a model; and at the end, game just crashes without any messages.

Thanks.
__________________

⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈
Check this website and find out how many functions
it has working with game server together.
ShufflexDD is offline
Send a message via ICQ to ShufflexDD Send a message via Skype™ to ShufflexDD
ShufflexDD
Senior Member
Join Date: Apr 2011
Location: :noitaɔo˩
Old 09-10-2013 , 18:58   Re: Custom materials
Reply With Quote #2

and I'm not quite get what PrecacheModel does; even though I didn't use models, but I saw a lot of implements of this function with sounds and materials which works perfectly even without calling this function...
__________________

⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈
Check this website and find out how many functions
it has working with game server together.
ShufflexDD is offline
Send a message via ICQ to ShufflexDD Send a message via Skype™ to ShufflexDD
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 09-11-2013 , 08:55   Re: Custom materials
Reply With Quote #3

You have to precache stuff or the server will crash when the resource is called if it is not available.. Unless it is a sound, then it will just not play.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
ShufflexDD
Senior Member
Join Date: Apr 2011
Location: :noitaɔo˩
Old 09-11-2013 , 20:43   Re: Custom materials
Reply With Quote #4

Quote:
Originally Posted by friagram View Post
You have to precache stuff or the server will crash when the resource is called if it is not available.. Unless it is a sound, then it will just not play.
So, if I know the file on the server is available(exist, not locked or used) this command is useless. Am I right?

If so, is there a command to do the same but for player? I mean to prevent game crashes if player do not have particular files...
__________________

⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈
Check this website and find out how many functions
it has working with game server together.

Last edited by ShufflexDD; 09-11-2013 at 20:47.
ShufflexDD is offline
Send a message via ICQ to ShufflexDD Send a message via Skype™ to ShufflexDD
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 09-12-2013 , 04:46   Re: Custom materials
Reply With Quote #5

Always precache files you use.. Precaching something that is already loaded does nothing.
Precaching a file causes the server to load it, and adds it to the stringtables, so all clients will load it as well (providing they have it)
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram 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:44.


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