Raised This Month: $ Target: $400
 0% 

Optomize


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 06-28-2012 , 21:40   Re: Optomize
Reply With Quote #3

Quote:
Originally Posted by YamiKaitou View Post
You can only precache during plugin_precache. If you plan on having a toggle for the sound, it is best to always precache the sound and then just use the toggle to determine if you should play it.
Unless i misunderstood you....i already took that into account. And thus handled all cvar actions within plugin_precache. Checking to see if it is an actual path, or a number. Then precaching it when proper.

I'm mostly asking if i should keep grabbing pm_sound and seeing if its a number. Or set an actual toggle var. Or if there's a better way to do it. If i misunderstood, could you please provide code?
__________________
What an elegant solution to a problem that doesn't need solving....

Last edited by Liverwiz; 06-28-2012 at 21:51.
Liverwiz 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 15:03.


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