Raised This Month: $32 Target: $400
 8% 

[CS:GO] Block Jump Sound ( Landing )


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eyal282
Veteran Member
Join Date: Aug 2011
Old 07-24-2020 , 15:06   [CS:GO] Block Jump Sound ( Landing )
Reply With Quote #1

sv_min_jump_landing_sound set to a really high number is the only method of overriding client-side prediction of jump sound!

However for a plugin to be able to block landing sounds for a specific player, it would need to replicate the landing to all other players, which is sometimes I find quite difficult.

Is there a file that will help me doing that?
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334

Last edited by eyal282; 07-24-2020 at 15:06.
eyal282 is offline
bklol
Member
Join Date: May 2019
Location: on my chair
Old 07-25-2020 , 07:47   Re: [CS:GO] Block Jump Sound ( Landing )
Reply With Quote #2

PHP Code:
public void OnPluginStart()
{
    
AddNormalSoundHook(NormalSound);
    
gCV_BhopSounds = new Convar("shavit_misc_bhopsounds""0""Should bhop (landing and jumping) sounds be muted?\n0 - Disabled\n1 - Blocked while !hide is enabled\n2 - Always blocked"0,  true0.0true3.0);
}
public 
Action NormalSound(int clients[MAXPLAYERS], int &numClientschar sample[PLATFORM_MAX_PATH], int &entityint &channelfloat &volumeint &levelint &pitchint &flagschar soundEntry[PLATFORM_MAX_PATH], int &seed)
{
    if(!
gCV_BhopSounds.BoolValue)
    {
        return 
Plugin_Continue;
    }

    if(
StrContains(sample"physics/") != -|| StrContains(sample"weapons/") != -|| StrContains(sample"player/") != -|| StrContains(sample"items/") != -1)
    {
        if(
gCV_BhopSounds.IntValue == 2)
        {
            
numClients 0;
        }

        else
        {
            for(
int i 0numClients; ++i)
            {
                if(
IsValidClient(clients[i]) && gB_Hide[clients[i]])
                {
                    for (
int j inumClients-1j++)
                    {
                        
clients[j] = clients[j+1];
                    }
                    
                    
numClients--;
                    
i--;
                }
            }
        }

        return 
Plugin_Changed;
    }
   
    return 
Plugin_Continue;

code from shavit
bklol is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 07-25-2020 , 10:34   Re: [CS:GO] Block Jump Sound ( Landing )
Reply With Quote #3

Quote:
Originally Posted by bklol View Post
PHP Code:
public void OnPluginStart()
{
    
AddNormalSoundHook(NormalSound);
    
gCV_BhopSounds = new Convar("shavit_misc_bhopsounds""0""Should bhop (landing and jumping) sounds be muted?\n0 - Disabled\n1 - Blocked while !hide is enabled\n2 - Always blocked"0,  true0.0true3.0);
}
public 
Action NormalSound(int clients[MAXPLAYERS], int &numClientschar sample[PLATFORM_MAX_PATH], int &entityint &channelfloat &volumeint &levelint &pitchint &flagschar soundEntry[PLATFORM_MAX_PATH], int &seed)
{
    if(!
gCV_BhopSounds.BoolValue)
    {
        return 
Plugin_Continue;
    }

    if(
StrContains(sample"physics/") != -|| StrContains(sample"weapons/") != -|| StrContains(sample"player/") != -|| StrContains(sample"items/") != -1)
    {
        if(
gCV_BhopSounds.IntValue == 2)
        {
            
numClients 0;
        }

        else
        {
            for(
int i 0numClients; ++i)
            {
                if(
IsValidClient(clients[i]) && gB_Hide[clients[i]])
                {
                    for (
int j inumClients-1j++)
                    {
                        
clients[j] = clients[j+1];
                    }
                    
                    
numClients--;
                    
i--;
                }
            }
        }

        return 
Plugin_Changed;
    }
   
    return 
Plugin_Continue;

code from shavit
Does not mute to self.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 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 15:34.


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