From ffb92ca962b0e628e76b695980bbb81aad95dd58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D1=81=D0=BB=D0=B0=D0=B2=20?= =?UTF-8?q?=D0=A1=D1=83=D1=85=D0=BE=D0=B2?= <22411953+Vladislav4KZ@users.noreply.github.com> Date: Fri, 26 Apr 2024 18:23:20 +0000 Subject: [PATCH] fix: report about hostage rescuing when the bot is leading them --- src/botlib.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/botlib.cpp b/src/botlib.cpp index 72f30d3..0610c7b 100644 --- a/src/botlib.cpp +++ b/src/botlib.cpp @@ -2326,7 +2326,7 @@ void Bot::checkRadioQueue () { // don't allow bot listen you if bot is busy - if (getCurrentTaskId () == Task::DefuseBomb || getCurrentTaskId () == Task::PlantBomb || m_hasHostage || m_hasC4) { + if (m_radioOrder != Radio::ReportInTeam && (getCurrentTaskId () == Task::DefuseBomb || getCurrentTaskId () == Task::PlantBomb || m_hasHostage || m_hasC4)) { m_radioOrder = 0; return; } @@ -2630,14 +2630,14 @@ void Bot::checkRadioQueue () { const Path &path = graph[getTask ()->data]; if (path.flags & NodeFlag::Goal) { - if (game.mapIs (MapFlags::Demolition) && m_team == Team::Terrorist && m_hasC4) { + if (m_hasC4) { pushChatterMessage (Chatter::GoingToPlantBomb); } else { pushChatterMessage (Chatter::Nothing); } } - else if (path.flags & NodeFlag::Rescue) { + else if (m_hasHostage) { pushChatterMessage (Chatter::RescuingHostages); } else if ((path.flags & NodeFlag::Camp) && rg.chance (75)) {