Raised This Month: $ Target: $400
 0% 

Solved Unprecaching map sounds


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 07-25-2017 , 13:55   Re: Unprecaching map sounds
Reply With Quote #4

Quote:
Originally Posted by JusTGo View Post
Not tested

Quote:
Originally Posted by TBagT View Post
Hi I don't know if this will help but I use this code to remove ambient generic sounds from map it also unprecaches them, the code is Connors if I remember correctly. Maybe you'll manage rewrite this code to only remove those sounds which are unnecessary.

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

public plugin_precache( ) {
        
// Random sounds in map block //
        
RegisterHamHam_Spawn"ambient_generic""CAmbientGeneric_Spawn" );
}

public 
CAmbientGeneric_Spawnent ) {
        
set_peventpev_message);
        return 
HAM_HANDLED;

Working ^^

Are you 100% sure that sound doesn't precache?

Last edited by baneado; 07-25-2017 at 13:57.
baneado 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 23:12.


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