Don't send a voice chat message if the entity is not sent to clients

This commit is contained in:
smallmodel 2024-11-17 20:28:03 +01:00
parent e74e113199
commit aeb8aa8e55
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -10566,6 +10566,12 @@ void Player::EventDMMessage(Event *ev)
return;
}
if (edict->r.svFlags & SVF_NOCLIENT) {
// Changed in OPM
// Don't send a voice chat message if the entity is not sent to client
return;
}
if (!g_instamsg_allowed->integer) {
// Added in OPM
return;