Skip to content

Commit 8c5a617

Browse files
committed
Play a sound when we scroll through the inventory
This behaviour is in the Source engine.
1 parent 903703c commit 8c5a617

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cl_dll/ammo.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ void CHudAmmo::Think(void)
384384
gpActiveSel = NULL;
385385
gHUD.m_iKeyBits &= ~IN_ATTACK;
386386

387-
PlaySound("common/wpn_select.wav", 1);
387+
PlaySound("common/wpn_hudoff.wav", 1);
388388
}
389389

390390
}
@@ -759,6 +759,7 @@ void CHudAmmo::UserCmd_NextWeapon(void)
759759
{
760760
pos = gpActiveSel->iSlotPos + 1;
761761
slot = gpActiveSel->iSlot;
762+
PlaySound("common/wpn_moveselect.wav", 1);
762763
}
763764

764765
for ( int loop = 0; loop <= 1; loop++ )
@@ -800,6 +801,7 @@ void CHudAmmo::UserCmd_PrevWeapon(void)
800801
{
801802
pos = gpActiveSel->iSlotPos - 1;
802803
slot = gpActiveSel->iSlot;
804+
PlaySound("common/wpn_moveselect.wav", 1);
803805
}
804806

805807
for ( int loop = 0; loop <= 1; loop++ )

0 commit comments

Comments
 (0)