Raised This Month: $ Target: $400
 0% 

Solved Unprecaching map sounds


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 07-25-2017 , 09:06   Unprecaching map sounds
Reply With Quote #1

Hi, I'm trying to unprecache some map sounds that are unnecessary and block them for emiting...

So, ok. I'm using this plugin on jb_snow map: http://gamebanana.com/maps/155405
Spoiler


But after start every round, a message spam appear on console:
Spoiler


Why is this happening? Any way to block those spam messages?

EDIT: FM_EmitSound from the plugin was never called. So, how to hook those sounds??

Last edited by baneado; 07-25-2017 at 17:30.
baneado is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 07-25-2017 , 11:15   Re: Unprecaching map sounds
Reply With Quote #2

try https://github.com/In-line/metamod_unprecacher
__________________
JusTGo is offline
TBagT
Member
Join Date: Aug 2016
Location: Lithuania
Old 07-25-2017 , 12:42   Re: Unprecaching map sounds
Reply With Quote #3

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( ) {
        
RegisterHamHam_Spawn"ambient_generic""CAmbientGeneric_Spawn" );
}

public 
CAmbientGeneric_Spawnent ) {
        
set_peventpev_message);
        return 
HAM_HANDLED;


Last edited by TBagT; 07-25-2017 at 14:10.
TBagT is offline
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
TBagT
Member
Join Date: Aug 2016
Location: Lithuania
Old 07-25-2017 , 14:00   Re: Unprecaching map sounds
Reply With Quote #5

It will disable the precache, original post here the only difference is that the registerham should be done in precache.

Last edited by TBagT; 07-25-2017 at 14:02.
TBagT is offline
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 07-25-2017 , 14:04   Re: Unprecaching map sounds
Reply With Quote #6

Quote:
Originally Posted by TBagT View Post
It will disable the precache, original post here the only difference is that the registerham should be done in precache.
Thanks, I love you
baneado 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 23:12.


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