Skip to content

Commit

Permalink
Add cl_jumpsound for removing jump "HUEH" sound
Browse files Browse the repository at this point in the history
  • Loading branch information
SkacikPL committed Jul 14, 2019
1 parent 6638ea5 commit c810e0f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/client/sound/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
// =======================================================================
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit c810e0f

Please sign in to comment.