diff --git a/rehlds/rehlds/rehlds_api_impl.cpp b/rehlds/rehlds/rehlds_api_impl.cpp index 9af51bd..95076f2 100644 --- a/rehlds/rehlds/rehlds_api_impl.cpp +++ b/rehlds/rehlds/rehlds_api_impl.cpp @@ -583,12 +583,16 @@ bool EXT_FUNC SV_EmitSound2_internal(edict_t *entity, IGameClient *pReceiver, in { SV_Multicast(entity, origin, msg_destination | MSG_FL_BROADCAST, TRUE); } + return true; } sizebuf_t *pBuffer; client_t *receiver = pReceiver->GetClient(); + if (receiver->fakeclient || (!receiver->connected && !receiver->active && !receiver->spawned)) + return false; + if (bSendPAS && receiver->edict != entity) // if the sound for myself, then do not check PAS. { int leafnum = SV_PointLeafnum(origin);