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

[L4D] boomer deaf ears


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sades160
Junior Member
Join Date: Feb 2023
Old 03-09-2023 , 19:28   [L4D] boomer deaf ears
Reply With Quote #1

is there a plugin if a boomer vomits on a survivor, it deafs their ears and rings it for a while? if not is anyone able to make it?

here is a video of something similar i want for reference
https://www.youtube.com/watch?v=l8CR...b_channel=Cuba

Last edited by Sades160; 03-09-2023 at 19:29. Reason: video reference
Sades160 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 03-09-2023 , 19:50   Re: [L4D] boomer deaf ears
Reply With Quote #2

It actually can make.
Sending fake client command (or client command)
Code:
dsp_player 134 // 0 reset back normal

Here is three deaf effect, in different range.
PHP Code:
        int effect;

        if( 
flDistance 100 )
        {
            
effect 134;
        }
        else if( 
flDistance 500 )
        {
            
effect 135;
        }
        else if( 
flDistance 1000 )
        {
            
effect 136;
        }
        else 
        {
            
// too far for us to get an effect
            
return;
        } 
There is various sound effect in file
...scripts/dsp_presets.txt
__________________
Do not Private Message @me

Last edited by Bacardi; 03-09-2023 at 19:53.
Bacardi is offline
Sades160
Junior Member
Join Date: Feb 2023
Old 03-09-2023 , 19:55   Re: [L4D] boomer deaf ears
Reply With Quote #3

Quote:
Originally Posted by Bacardi View Post
It actually can make.
Sending fake client command (or client command)
Code:
dsp_player 134 // 0 reset back normal

Here is three deaf effect, in different range.
PHP Code:
        int effect;

        if( 
flDistance 100 )
        {
            
effect 134;
        }
        else if( 
flDistance 500 )
        {
            
effect 135;
        }
        else if( 
flDistance 1000 )
        {
            
effect 136;
        }
        else 
        {
            
// too far for us to get an effect
            
return;
        } 
There is various sound effect in file
...scripts/dsp_presets.txt
thanks very much!
Sades160 is offline
Sades160
Junior Member
Join Date: Feb 2023
Old 03-09-2023 , 19:59   Re: [L4D] boomer deaf ears
Reply With Quote #4

Quote:
Originally Posted by Bacardi View Post
It actually can make.
Sending fake client command (or client command)
Code:
dsp_player 134 // 0 reset back normal

Here is three deaf effect, in different range.
PHP Code:
        int effect;

        if( 
flDistance 100 )
        {
            
effect 134;
        }
        else if( 
flDistance 500 )
        {
            
effect 135;
        }
        else if( 
flDistance 1000 )
        {
            
effect 136;
        }
        else 
        {
            
// too far for us to get an effect
            
return;
        } 
There is various sound effect in file
...scripts/dsp_presets.txt
btw do you know how to make a boomer vomit spawn a horde by itself in l4d1?
Sades160 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 03-10-2023 , 03:25   Re: [L4D] boomer deaf ears
Reply With Quote #5

Try this. This only check distance, not walls or else obstacle.

*I actually tested in L4D2, I assume it works in L4d1 also

PHP Code:
#include <sdktools>

public void OnPluginStart()
{
    
//RegConsoleCmd("sm_test", test);
    
HookEventEx("boomer_exploded"boomer_exploded);
}



public 
Action test(int clientint args)
{

    return 
Plugin_Handled;
}

public 
void boomer_exploded(Event event, const char[] namebool dontBroadcast)
{
    if(!
event.GetBool("splashedbile"))
        return;

    
int boomer GetClientOfUserId(event.GetInt("userid"));

    
float boomerpos[3];
    
GetClientEyePosition(boomerboomerpos);

    
float pos[3], distance;
    
int effect;

    for(
int i 1<= MaxClientsi++)
    {
        
effect 0;

        if(
== boomer || !IsClientInGame(i) || GetClientTeam(i) < 2)
            continue;
        
        
GetClientEyePosition(ipos);
        
        
distance GetVectorDistance(boomerpospos);
        
        if(
distance 100.0)
        {
            
effect 134;
        }
        else if(
distance 500.0)
        {
            
effect 135;
        }
        else if(
distance 1000.0)
        {
            
effect 136;
        }
        else
        {
            continue;
        }

        
SetPlayerDSP(ieffect);
    }
}

void SetPlayerDSP(int clientint effect)
{
    
//PrintToServer("SetPlayerDSP(%N %i)", client, effect);
    
ClientCommand(client"dsp_player %i"effect);

__________________
Do not Private Message @me

Last edited by Bacardi; 03-10-2023 at 03:44.
Bacardi is offline
TotalChaos SourcePawner
Senior Member
Join Date: Feb 2023
Location: IN PINEAPPLE, UNDER SEA
Old 03-20-2023 , 13:01   Re: [L4D] boomer deaf ears
Reply With Quote #6

This entire thread reminds me of the cut Special Infected called the "Screamer".
I love this.
Almost makes me wonder if it would be possible to restore some of the beta and cut Special Infected and mechanics relating to them in both Left 4 Dead 1/2, just with SourceMod plugins.
TotalChaos SourcePawner is offline
Sades160
Junior Member
Join Date: Feb 2023
Old 03-20-2023 , 16:22   Re: [L4D] boomer deaf ears
Reply With Quote #7

Quote:
Originally Posted by TotalChaos SourcePawner View Post
This entire thread reminds me of the cut Special Infected called the "Screamer".
I love this.
Almost makes me wonder if it would be possible to restore some of the beta and cut Special Infected and mechanics relating to them in both Left 4 Dead 1/2, just with SourceMod plugins.
yeah that is what I was going for a remake of the screamer
Sades160 is offline
TotalChaos SourcePawner
Senior Member
Join Date: Feb 2023
Location: IN PINEAPPLE, UNDER SEA
Old 03-20-2023 , 17:42   Re: [L4D] boomer deaf ears
Reply With Quote #8

Quote:
Originally Posted by Sades160 View Post
yeah that is what I was going for a remake of the screamer
Well, I hope everything goes well with that.

I'm a huge fan of beta and cut content for games.
And if it's possible to restore beta or cut content in a game, then I'm all aboard.
I prefer official stuff, but accurate fan recreations are good too.
TotalChaos SourcePawner is offline
TotalChaos SourcePawner
Senior Member
Join Date: Feb 2023
Location: IN PINEAPPLE, UNDER SEA
Old 03-29-2023 , 17:31   Re: [L4D] boomer deaf ears
Reply With Quote #9

I know this is a little old now, but I found this in Left 4 DHooks:
Code:
L4D_Deafen(client);
This makes your ears ring similarly to how your ears ring in Half-Life 2 or Garry's Mod.
Just thought I'd throw this out there.
TotalChaos SourcePawner 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 16:12.


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