Skip to content

Commit

Permalink
Prevent kevlar.wav overwriting gunpickup2.wav sound
Browse files Browse the repository at this point in the history
  • Loading branch information
In-line committed Sep 29, 2017
1 parent 48ebd5c commit d6a1bc9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions regamedll/dlls/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,11 @@ void BuyItem(CBasePlayer *pPlayer, int iSlot)
pPlayer->pev->body = 1;
pPlayer->AddAccount(-DEFUSEKIT_PRICE, RT_PLAYER_BOUGHT_SOMETHING);

#ifdef REGAMEDLL_FIXES
EMIT_SOUND(ENT(pPlayer->pev), CHAN_VOICE, "items/kevlar.wav", VOL_NORM, ATTN_NORM);
#else
EMIT_SOUND(ENT(pPlayer->pev), CHAN_ITEM, "items/kevlar.wav", VOL_NORM, ATTN_NORM);
#endif
pPlayer->SendItemStatus();
}
break;
Expand Down

0 comments on commit d6a1bc9

Please sign in to comment.