Raised This Month: $ Target: $400
 0% 

[REQ] precache return


  
 
 
Thread Tools Display Modes
Author Message
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 02-11-2007 , 23:32   [REQ] precache return
#1

Would it be possible to make precache_model/sound/generic to return 0 when the file could not be precached?
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 02-11-2007 , 23:45   Re: [REQ] precache return
#2

The only check precache_generic/model/sound do is making sure that the native is called during plugin_precache. If that check fails, the native returns 0.

With the exception of precache_sound, the return value of the natives are whatever the half-life engine return from the API calls for the precaches (model indexes, and what not).

precache_sound always returns 1 if it passes the plugin_precache check... sounds (to my knowledge) do not use the precache index, but rather the full file string for whatever so that's not terribly useful, but it could be changed to return the value the precachesound HL-API call returns.
sawce is offline
 



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 11:44.


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