AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [L4D] boomer deaf ears (https://forums.alliedmods.net/showthread.php?t=342118)

Sades160 03-09-2023 19:28

[L4D] boomer deaf ears
 
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

Bacardi 03-09-2023 19:50

Re: [L4D] boomer deaf ears
 
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

Sades160 03-09-2023 19:55

Re: [L4D] boomer deaf ears
 
Quote:

Originally Posted by Bacardi (Post 2800956)
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 03-09-2023 19:59

Re: [L4D] boomer deaf ears
 
Quote:

Originally Posted by Bacardi (Post 2800956)
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?

Bacardi 03-10-2023 03:25

Re: [L4D] boomer deaf ears
 
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);



TotalChaos SourcePawner 03-20-2023 13:01

Re: [L4D] boomer deaf ears
 
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.

Sades160 03-20-2023 16:22

Re: [L4D] boomer deaf ears
 
Quote:

Originally Posted by TotalChaos SourcePawner (Post 2801548)
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

TotalChaos SourcePawner 03-20-2023 17:42

Re: [L4D] boomer deaf ears
 
Quote:

Originally Posted by Sades160 (Post 2801557)
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 03-29-2023 17:31

Re: [L4D] boomer deaf ears
 
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.


All times are GMT -4. The time now is 01:03.

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