Raised This Month: $ Target: $400
 0% 

Extra Precache Function


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 12-27-2009 , 07:24   Extra Precache Function
Reply With Quote #1

In this plugin here:

http://forums.alliedmods.net/showthread.php?p=34730

There is this Precache Function:

PHP Code:
    if (file_exists("sound/fireworks/rocket1.wav")) {
        
precache_sound("fireworks/rocket1.wav")
        
has_rocket 1
    
} else {
        
precache_sound("weapons/rocket1.wav")
        
has_rocket 0
    
}

    if (
file_exists("sound/fireworks/weapondrop1.wav")) {
        
precache_sound("fireworks/weapondrop1.wav")
        
has_drop 1
    
} else {
        
precache_sound("items/weapondrop1.wav")
        
has_drop 0
    

So, the sounds are the default files, but I can also use the new ones in the fireworks folder am I right?
Can I remove the special sound files? And how would the code look like then?
KadiR is offline
 


Thread Tools
Display Modes

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 04:05.


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