Added debug key for toggling action sounds off. Touches every place that RageSound::Play is called, hope I didn't miss one.

This commit is contained in:
Kyzentun
2015-02-28 06:25:02 -07:00
parent d35933f1e5
commit b293a8c073
38 changed files with 165 additions and 131 deletions
+3 -3
View File
@@ -92,7 +92,7 @@ void Inventory::Load( PlayerState* pPlayerState )
void Inventory::Update( float fDelta )
{
if( m_pPlayerState->m_bAttackEndedThisUpdate )
m_soundItemEnding.Play();
m_soundItemEnding.Play(false);
// TODO: remove use of PlayerNumber
PlayerNumber pn = m_pPlayerState->m_PlayerNumber;
@@ -183,7 +183,7 @@ void Inventory::AwardItem( int iItemIndex )
a.fSecsRemaining = ITEM_DURATION_SECONDS;
a.level = g_Items[iItemIndex].level;
pInventory[iOpenSlot] = a;
m_soundAcquireItem.Play();
m_soundAcquireItem.Play(false);
}
// else not enough room to insert item
}
@@ -200,7 +200,7 @@ void Inventory::UseItem( int iSlot )
// remove the item
pInventory[iSlot].MakeBlank();
m_vpSoundUseItem[a.level]->Play();
m_vpSoundUseItem[a.level]->Play(false);
PlayerNumber pnToAttack = OPPOSITE_PLAYER[pn];
PlayerState *pPlayerStateToAttack = GAMESTATE->m_pPlayerState[pnToAttack];