diff options
author | kai <kai@zittrig.eu> | 2020-05-15 14:49:49 +0100 |
---|---|---|
committer | kai <kai@zittrig.eu> | 2020-05-15 14:49:49 +0100 |
commit | 1b8e3022f3e62837a50b0d49afe274686d834149 (patch) | |
tree | a4b8ea675219f9dd7a79aebe6534bb8a013c27a9 | |
parent | d9491f4a04be2b7b856c6ed9ba2d3882c9a690cf (diff) |
add a more prominent callvote sound
-rw-r--r-- | sound/bunker/votebing.wav | bin | 0 -> 201930 bytes | |||
-rw-r--r-- | src/cgame/cg_draw.c | 4 | ||||
-rw-r--r-- | src/cgame/cg_main.c | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/sound/bunker/votebing.wav b/sound/bunker/votebing.wav Binary files differnew file mode 100644 index 0000000..0f009cd --- /dev/null +++ b/sound/bunker/votebing.wav diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c index fd9adf3..57b7ca2 100644 --- a/src/cgame/cg_draw.c +++ b/src/cgame/cg_draw.c @@ -3160,7 +3160,7 @@ static void CG_DrawVote( void ) if( cgs.voteModified ) { cgs.voteModified = qfalse; - trap_S_StartLocalSound( cgs.media.talkSound, CHAN_LOCAL_SOUND ); + trap_S_StartLocalSound( cgs.media.voteNow, CHAN_LOCAL_SOUND ); } sec = ( VOTE_TIME - ( cg.time - cgs.voteTime ) ) / 1000; @@ -3201,7 +3201,7 @@ static void CG_DrawTeamVote( void ) if ( cgs.teamVoteModified[ cs_offset ] ) { cgs.teamVoteModified[ cs_offset ] = qfalse; - trap_S_StartLocalSound( cgs.media.talkSound, CHAN_LOCAL_SOUND ); + trap_S_StartLocalSound( cgs.media.voteNow, CHAN_LOCAL_SOUND ); } sec = ( VOTE_TIME - ( cg.time - cgs.teamVoteTime[ cs_offset ] ) ) / 1000; diff --git a/src/cgame/cg_main.c b/src/cgame/cg_main.c index 8fcf95e..ed2d0e2 100644 --- a/src/cgame/cg_main.c +++ b/src/cgame/cg_main.c @@ -902,6 +902,8 @@ static void CG_RegisterSounds( void ) cgs.media.disconnectSound = trap_S_RegisterSound( "sound/misc/disconnect.wav", qfalse ); + cgs.media.voteNow = trap_S_RegisterSound( "sound/bunker/votebing.wav", qtrue ); + for( i = 0; i < 4; i++ ) { Com_sprintf( name, sizeof( name ), "sound/player/footsteps/step%i.wav", i + 1 ); |