mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-03-13 05:51:19 +00:00
Radio events loopback
This commit is contained in:
parent
5a1d8fac0e
commit
2cd47e3bcf
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user