From 168838cd2a44406948f5f4d76e1012ebef697d8e Mon Sep 17 00:00:00 2001 From: In-line Date: Wed, 1 Nov 2017 19:48:28 +0400 Subject: [PATCH] Prevent kevlar.wav from overwriting gunpickup2.wav sound (#186) --- regamedll/dlls/client.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/regamedll/dlls/client.cpp b/regamedll/dlls/client.cpp index cd0a8a57..bef9cbe0 100644 --- a/regamedll/dlls/client.cpp +++ b/regamedll/dlls/client.cpp @@ -1416,7 +1416,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;