Skip to content

Commit

Permalink
Play a sound when we scroll through the inventory
Browse files Browse the repository at this point in the history
This behaviour is in the Source engine.
  • Loading branch information
sabianroberts committed Oct 18, 2024
1 parent 903703c commit 8c5a617
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cl_dll/ammo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ void CHudAmmo::Think(void)
gpActiveSel = NULL;
gHUD.m_iKeyBits &= ~IN_ATTACK;

PlaySound("common/wpn_select.wav", 1);
PlaySound("common/wpn_hudoff.wav", 1);
}

}
Expand Down Expand Up @@ -759,6 +759,7 @@ void CHudAmmo::UserCmd_NextWeapon(void)
{
pos = gpActiveSel->iSlotPos + 1;
slot = gpActiveSel->iSlot;
PlaySound("common/wpn_moveselect.wav", 1);
}

for ( int loop = 0; loop <= 1; loop++ )
Expand Down Expand Up @@ -800,6 +801,7 @@ void CHudAmmo::UserCmd_PrevWeapon(void)
{
pos = gpActiveSel->iSlotPos - 1;
slot = gpActiveSel->iSlot;
PlaySound("common/wpn_moveselect.wav", 1);
}

for ( int loop = 0; loop <= 1; loop++ )
Expand Down

0 comments on commit 8c5a617

Please sign in to comment.