Skip to content

Commit

Permalink
Bring back the good rapid fire MP5 sound
Browse files Browse the repository at this point in the history
  • Loading branch information
sabianroberts committed Nov 23, 2023
1 parent 989a7c6 commit 8269099
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions cl_dll/ev_hldm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -895,16 +895,16 @@ void EV_FireMP5( event_args_t *args )
switch( gEngfuncs.pfnRandomLong( 0, 3 ) )
{
case 0:
gEngfuncs.pEventAPI->EV_PlaySound( idx, origin, CHAN_WEAPON, "weapons/hks1.wav", 1, ATTN_NORM, 0, 94 + gEngfuncs.pfnRandomLong( 0, 0xf ) );
gEngfuncs.pEventAPI->EV_PlaySound( idx, origin, 8, "weapons/hks1.wav", 1, ATTN_NORM, 0, 94 + gEngfuncs.pfnRandomLong( 0, 0xf ) );
break;
case 1:
gEngfuncs.pEventAPI->EV_PlaySound( idx, origin, CHAN_WEAPON, "weapons/hks2.wav", 1, ATTN_NORM, 0, 94 + gEngfuncs.pfnRandomLong( 0, 0xf ) );
gEngfuncs.pEventAPI->EV_PlaySound( idx, origin, 9, "weapons/hks2.wav", 1, ATTN_NORM, 0, 94 + gEngfuncs.pfnRandomLong( 0, 0xf ) );
break;
case 2:
gEngfuncs.pEventAPI->EV_PlaySound(idx, origin, CHAN_WEAPON, "weapons/hks3.wav", 1, ATTN_NORM, 0, 94 + gEngfuncs.pfnRandomLong(0, 0xf));
gEngfuncs.pEventAPI->EV_PlaySound(idx, origin, 10, "weapons/hks3.wav", 1, ATTN_NORM, 0, 94 + gEngfuncs.pfnRandomLong(0, 0xf));
break;
case 3:
gEngfuncs.pEventAPI->EV_PlaySound(idx, origin, CHAN_WEAPON, "weapons/hks4.wav", 1, ATTN_NORM, 0, 94 + gEngfuncs.pfnRandomLong(0, 0xf));
gEngfuncs.pEventAPI->EV_PlaySound(idx, origin, 11, "weapons/hks4.wav", 1, ATTN_NORM, 0, 94 + gEngfuncs.pfnRandomLong(0, 0xf));
break;
}

Expand Down
6 changes: 3 additions & 3 deletions cl_dll/hud.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -747,10 +747,10 @@ void CHud :: VidInit( void )
m_hsprLogo = 0;
m_hsprCursor = 0;

if (ScreenWidth < 640)
m_iRes = 320;
if (ScreenWidth < 2560)
m_iRes = 1280;
else
m_iRes = 640;
m_iRes = 2560;

// Only load this once
if ( !m_pSpriteList )
Expand Down

0 comments on commit 8269099

Please sign in to comment.