AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Block the sound in PrintHintText() (https://forums.alliedmods.net/showthread.php?t=130465)

Tauphi 06-24-2010 06:19

Block the sound in PrintHintText()
 
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

FoxMulder 06-24-2010 09:27

Re: Block the sound in PrintHintText()
 
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;



kossolax 06-24-2010 16:10

Re: Block the sound in PrintHintText()
 
It doesn't the sound he wants

(I'm looking for that too...)

tigerox 06-24-2010 19:04

Re: Block the sound in PrintHintText()
 
Doesn't seem to come up as one of the sounds.

Any other ideas on how to block it?

DarkEnergy 06-25-2010 11:47

Re: Block the sound in PrintHintText()
 
damn i want this feature too

psychonic 06-25-2010 12:49

Re: Block the sound in PrintHintText()
 
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.

raydan 06-25-2010 13:53

Re: Block the sound in PrintHintText()
 
my old css script use PrintHintText() on every 0.1 second,
now, it fuxked player ear. useless sound, dam valve

psychonic 06-25-2010 14:04

Re: Block the sound in PrintHintText()
 
Quote:

Originally Posted by raydan (Post 1219626)
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.

berni 06-26-2010 18:17

Re: Block the sound in PrintHintText()
 
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.

Raijojp 06-26-2010 18:56

Re: Block the sound in PrintHintText()
 
Quote:

Originally Posted by berni (Post 1220820)
It's not blockable, I already tried around with blocking it from serverside, but it's clientside.

Clientside ? How do you do this ? ^^


All times are GMT -4. The time now is 21:34.

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