bot: enable speech at server startup for xash3d (#522)

This commit is contained in:
Владислав Сухов 2024-02-10 23:08:35 +06:00 committed by GitHub
commit 734eb82fba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -271,9 +271,7 @@ void BotSupport::checkWelcome () {
}
if (m_welcomeReceiveTime > 0.0f && m_welcomeReceiveTime < game.time () && needToSendMsg) {
if (!game.is (GameFlags::Mobility | GameFlags::Xash3D)) {
game.serverCommand ("speak \"%s\"", m_sentences.random ());
}
String authorStr = "Official Navigation Graph";
auto graphAuthor = graph.getAuthor ();