mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-29 08:05:46 +03:00
Prevent kevlar.wav from overwriting gunpickup2.wav sound (#186)
This commit is contained in:
parent
bf4ec67a6f
commit
168838cd2a
@ -1416,7 +1416,11 @@ void BuyItem(CBasePlayer *pPlayer, int iSlot)
|
|||||||
pPlayer->pev->body = 1;
|
pPlayer->pev->body = 1;
|
||||||
pPlayer->AddAccount(-DEFUSEKIT_PRICE, RT_PLAYER_BOUGHT_SOMETHING);
|
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);
|
EMIT_SOUND(ENT(pPlayer->pev), CHAN_ITEM, "items/kevlar.wav", VOL_NORM, ATTN_NORM);
|
||||||
|
#endif
|
||||||
pPlayer->SendItemStatus();
|
pPlayer->SendItemStatus();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user