AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [L4D2] Mute l4d1 survivors join voices? (https://forums.alliedmods.net/showthread.php?t=326011)

Balloons 07-15-2020 05:25

[L4D2] Mute l4d1 survivors join voices?
 
I run a 24 player co-op server using l4dtoolz and Multislots. On the l4d1 campaigns, it seems like every time a special infected spawns, an extra healthbar flashes on the hud for a split second followed by a random survivor's join voice line. This can get really annoying since I constantly hear "Hey, I'm here!" by either Bill, Louis, Francis, or Zoey every few seconds. Is there a plugin that I am missing or does there exist one that solves this issue?

Silvers 07-15-2020 16:33

Re: [L4D2] Mute l4d1 survivors join voices?
 
PHP Code:

#include <sourcemod>
#include <sdktools>

public void OnPluginStart()
{
    
AddNormalSoundHook(SoundHook);
}

public 
Action SoundHook(int clients[64], int &numClientschar sample[PLATFORM_MAX_PATH], int &entityint &channelfloat &volumeint &levelint &pitchint &flags)
{
    if( 
strncmp(sample"player\\survivor\\voice"21) == )
    {
        if( 
StrContains(sample[25], "scenariojoin") != -)
        {
            
volume 0.0;
            return 
Plugin_Changed;
        }
    }
    return 
Plugin_Continue;



Balloons 07-17-2020 19:12

Re: [L4D2] Mute l4d1 survivors join voices?
 
This did the job. Thanks


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

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