From 2cd47e3bcf895bc5b80d146134ce90897f64329e Mon Sep 17 00:00:00 2001 From: mittorn Date: Mon, 9 Jan 2017 19:46:21 +0000 Subject: [PATCH] Radio events loopback --- dlls/bot/cs_bot_chatter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/bot/cs_bot_chatter.cpp b/dlls/bot/cs_bot_chatter.cpp index bfe88f4a..de228d3a 100644 --- a/dlls/bot/cs_bot_chatter.cpp +++ b/dlls/bot/cs_bot_chatter.cpp @@ -1131,6 +1131,7 @@ bool BotStatement::Update() // use the standard radio me->GetChatter()->ResetRadioSilenceDuration(); // me->SendRadioMessage(radioEvent); + TheBots->OnEvent( radioEvent, me ); duration = 2.0f; } } @@ -1164,6 +1165,7 @@ bool BotStatement::Update() if (filename == NULL) { GameEventType radioEvent = phrase->GetRadioEquivalent(); + if (radioEvent == EVENT_INVALID) { // skip directly to the next phrase @@ -1172,6 +1174,7 @@ bool BotStatement::Update() else { // me->SendRadioMessage(radioEvent); + TheBots->OnEvent( radioEvent, me ); //me->GetChatter()->ResetRadioSilenceDuration(); duration = 2.0f;