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

[CS:GO] Block jump sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Qes
AlliedModders Donor
Join Date: Jul 2014
Old 08-03-2018 , 17:19   [CS:GO] Block jump sound
Reply With Quote #1

Hello,
How I can block jump sound?
This code work with foostep, but doesn't work with jump sound.

Code:
public Action:SoundPlayer(clients[64], &numClients, String:sample[PLATFORM_MAX_PATH], &entity, &channel, &Float:volume, &level, &pitch, &flags)
{
	if(entity && entity <= MaxClients && g_IsGhost[entity])
	{
		return Plugin_Stop;
	}
	return Plugin_Continue;
}
I change code -> test sample
Code:
public Action:SoundPlayer(clients[64], &numClients, String:sample[PLATFORM_MAX_PATH], &entity, &channel, &Float:volume, &level, &pitch, &flags)
{
	if(entity && entity <= MaxClients && g_IsGhost[entity])
	{
		PrintToChat(entity, "%d. %s", numClients, sample);
		return Plugin_Stop;
	}
	return Plugin_Continue;
}
and when I jump, i see this message:
3. ~player/footsteps/new/concrete_ct_16.wav
3. ~player/footsteps/new/suit_t_08.wav
3. ~)player/land2.wav
3. ~player/footsteps/new/suit_t_03.wa
Qes is offline
Ermert1992
Member
Join Date: Jan 2012
Location: Germany
Old 08-03-2018 , 18:35   Re: [CS:GO] Block jump sound
Reply With Quote #2

sv_min_jump_landing_sound 999999
__________________
Mfg Jonas


Ermert1992 is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 08-03-2018 , 18:39   Re: [CS:GO] Block jump sound
Reply With Quote #3

Use SendClientConVar.

Weird enough, I recall having SendClientConVar only working during prethink, which means sending it 100 times per second, try a regular method first perhaps.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
LenHard
Senior Member
Join Date: Jan 2016
Old 08-03-2018 , 19:01   Re: [CS:GO] Block jump sound
Reply With Quote #4

From what I know, landing sound is client sided. Therefore, you can't really mute it.
__________________
LenHard is offline
Qes
AlliedModders Donor
Join Date: Jul 2014
Old 08-04-2018 , 05:56   Re: [CS:GO] Block jump sound
Reply With Quote #5

So there are no other method than those You gave me in this topic?
Qes is offline
Rachnus
Senior Member
Join Date: Jun 2016
Location: Funland
Old 08-04-2018 , 08:24   Re: [CS:GO] Block jump sound
Reply With Quote #6

https://github.com/Rachnus/SuperHero...sh_tick.sp#L63

Spoiler


This blocks landing sound, do not know about the initial jump sound though.
__________________
Github: https://github.com/jimppan
Steam: http://steamcommunity.com/id/jimppan
_____________________________________________ _________
Taking private requests

Last edited by Rachnus; 08-04-2018 at 08:25.
Rachnus is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 08-04-2018 , 14:23   Re: [CS:GO] Block jump sound
Reply With Quote #7

I'll have to check this out, because last attempt at this you couldn't block client landing sounds from other players, only yourself.
Maxximou5 is offline
Qes
AlliedModders Donor
Join Date: Jul 2014
Old 08-05-2018 , 07:20   Re: [CS:GO] Block jump sound
Reply With Quote #8

The sound of landing is every time.
I need to remove this sound only from a given player, not from everyone
Qes is offline
supertimor
AlliedModders Donor
Join Date: Sep 2017
Old 12-12-2019 , 08:56   Re: [CS:GO] Block jump sound
Reply With Quote #9

refresh - anyone maybe found a way to do this?

using plugin_handled in any case if player is valid, and still can hear jump sounds
supertimor is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 12-13-2019 , 10:27   Re: [CS:GO] Block jump sound
Reply With Quote #10

Consider the following: SendConVarValue ( mp_footsteps 0 )
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
Reply



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 14:34.


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