fix: zombies should not emit any radio or chatter events

This commit is contained in:
jeefo 2024-05-25 23:42:55 +03:00
commit eec4101daa
No known key found for this signature in database
GPG key ID: D696786B81B667C8
3 changed files with 11 additions and 7 deletions

View file

@ -374,7 +374,7 @@ void Bot::checkForChat () {
void Bot::sendToChat (StringRef message, bool teamOnly) {
// this function prints saytext message to all players
if (message.empty () || !cv_chat) {
if (m_isCreature || message.empty () || !cv_chat) {
return;
}
issueCommand ("%s \"%s\"", teamOnly ? "say_team" : "say", message);