Browse Source

Fix knife hit sounds.

aomdc
Andrey Akhmichin 2 years ago
parent
commit
1dbc0c002f
No known key found for this signature in database
GPG Key ID: 1F180D249B0643C0
  1. 4
      dlls/aomdc/knife.cpp

4
dlls/aomdc/knife.cpp

@ -255,9 +255,9 @@ int CKnife::Swing( int fFirst ) @@ -255,9 +255,9 @@ int CKnife::Swing( int fFirst )
switch( RANDOM_LONG(0,1) )
{
case 0:
EMIT_SOUND(ENT(m_pPlayer->pev), CHAN_ITEM, "weapons/knife_hitwall1.wav", 1, ATTN_NORM); break;
EMIT_SOUND(ENT(m_pPlayer->pev), CHAN_ITEM, "weapons/knife_wall1.wav", 1, ATTN_NORM); break;
case 1:
EMIT_SOUND(ENT(m_pPlayer->pev), CHAN_ITEM, "weapons/knife_hitwall2.wav", 1, ATTN_NORM); break;
EMIT_SOUND(ENT(m_pPlayer->pev), CHAN_ITEM, "weapons/knife_wall2.wav", 1, ATTN_NORM); break;
}
m_pPlayer->m_iWeaponVolume = CROWBAR_BODYHIT_VOLUME;
if ( !pEntity->IsAlive() )

Loading…
Cancel
Save