Raised This Month: $9 Target: $400
 2% 

[L4D2] Mute l4d1 survivors join voices?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Balloons
Member
Join Date: Feb 2020
Old 07-15-2020 , 06:25   [L4D2] Mute l4d1 survivors join voices?
Reply With Quote #1

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?
Balloons is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 07-15-2020 , 17:33   Re: [L4D2] Mute l4d1 survivors join voices?
Reply With Quote #2

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;

__________________
Silvers is offline
Balloons
Member
Join Date: Feb 2020
Old 07-17-2020 , 20:12   Re: [L4D2] Mute l4d1 survivors join voices?
Reply With Quote #3

This did the job. Thanks
Balloons is offline
Reply


Thread Tools
Display Modes

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:24.


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