From c810e0fc5edcdfb2aa50e28628a192e36cc6eb1c Mon Sep 17 00:00:00 2001 From: SkacikPL Date: Sun, 14 Jul 2019 16:16:36 +0200 Subject: [PATCH] Add cl_jumpsound for removing jump "HUEH" sound --- src/client/sound/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/client/sound/main.c b/src/client/sound/main.c index 5b30d8feb..9366a1669 100644 --- a/src/client/sound/main.c +++ b/src/client/sound/main.c @@ -78,6 +78,8 @@ static cvar_t *s_swapstereo; qboolean snd_is_underwater; qboolean snd_is_underwater_enabled; +extern cvar_t *cl_jumpsound; + // ======================================================================= // Console functions // ======================================================================= @@ -892,6 +894,9 @@ void S_StartSound(const vec3_t origin, int entnum, int entchannel, qhandle_t hSf return; } + if ( (strstr(sfx->name, "players/male/jump1.wav") || strstr(sfx->name, "players/female/jump1.wav")) && !cl_jumpsound->integer) + return; + // make sure the sound is loaded sc = S_LoadSound(sfx); if (!sc)