Raised This Month: $51 Target: $400
 12% 

Block the sound in PrintHintText()


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Tauphi
SourceMod Donor
Join Date: Sep 2004
Location: Germany
Old 06-24-2010 , 06:19   Block the sound in PrintHintText()
Reply With Quote #1

Hello,

when I use PrintHintText() it plays a small sound on the client.
Is there any way to block that sound? That it only shows the message?

Game is CS:S (since today) and TF2
__________________
Tauphi is offline
Send a message via ICQ to Tauphi Send a message via Skype™ to Tauphi
FoxMulder
Senior Member
Join Date: Jan 2009
Location: Orlando, FL
Old 06-24-2010 , 09:27   Re: Block the sound in PrintHintText()
Reply With Quote #2

PHP Code:
public OnPluginStart()
{
    
AddNormalSoundHook(NormalSHook:sound_hook);
}

public 
Action:sound_hook(clients[64], &numClientsString:sample[PLATFORM_MAX_PATH], &entity, &channel, &Float:volume, &level, &pitch, &flags)
{
    
//Use this to find the sound you want to block
    
PrintToChatAll("%s",sample);

    
//Block sound
    
if(StrEqual(sample,""))
        return 
Plugin_Stop;
    
    return 
Plugin_Continue;

__________________
FoxMulder is offline
kossolax
AlliedModders Donor
Join Date: Jan 2008
Location: Belgium
Old 06-24-2010 , 16:10   Re: Block the sound in PrintHintText()
Reply With Quote #3

It doesn't the sound he wants

(I'm looking for that too...)
kossolax is offline
tigerox
AlliedModders Donor
Join Date: Oct 2008
Location: Canada
Old 06-24-2010 , 19:04   Re: Block the sound in PrintHintText()
Reply With Quote #4

Doesn't seem to come up as one of the sounds.

Any other ideas on how to block it?
__________________
tigerox is offline
DarkEnergy
SourceMod Donor
Join Date: Apr 2008
Location: Georgia Tech, MSECE
Old 06-25-2010 , 11:47   Re: Block the sound in PrintHintText()
Reply With Quote #5

damn i want this feature too
DarkEnergy is offline
psychonic

BAFFLED
Join Date: May 2008
Old 06-25-2010 , 12:49   Re: Block the sound in PrintHintText()
Reply With Quote #6

The sound is very likely to be clientside and plays from the client when a hint message is received, rather than being manually triggered from the server.
psychonic is offline
raydan
Senior Member
Join Date: Aug 2006
Old 06-25-2010 , 13:53   Re: Block the sound in PrintHintText()
Reply With Quote #7

my old css script use PrintHintText() on every 0.1 second,
now, it fuxked player ear. useless sound, dam valve
raydan is offline
psychonic

BAFFLED
Join Date: May 2008
Old 06-25-2010 , 14:04   Re: Block the sound in PrintHintText()
Reply With Quote #8

Quote:
Originally Posted by raydan View Post
my old css script use PrintHintText() on every 0.1 second,
now, it fuxked player ear. useless sound, dam valve
It's okay. soon their eardrums will burst and they won't have to hear the sound (or anything else) any longer.
psychonic is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 06-26-2010 , 18:17   Re: Block the sound in PrintHintText()
Reply With Quote #9

It's not blockable, I already tried around with blocking it from serverside, but it's clientside, there also is no additional parameter for the HintText Usermessage it seems, but I could be wrong because there is no parameter list anywhere. This sound is really annoying.
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
Raijojp
Member
Join Date: Apr 2010
Old 06-26-2010 , 18:56   Re: Block the sound in PrintHintText()
Reply With Quote #10

Quote:
Originally Posted by berni View Post
It's not blockable, I already tried around with blocking it from serverside, but it's clientside.
Clientside ? How do you do this ? ^^
Raijojp 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 10:39.


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