add: do not translate messages send to hlds console.

add: split messages sent to client & hlds console, so all message gets sent.
This commit is contained in:
ds 2020-10-12 20:59:48 +03:00
commit b8d35840b3
9 changed files with 143 additions and 59 deletions

View file

@ -67,6 +67,8 @@ private:
SmallArray <int32> m_botBuyEconomyTable = { 1900, 2100, 2100, 4000, 6000, 7000, 16000, 1200, 800, 1000, 3000 };
SmallArray <int32> m_grenadeBuyPrecent = { 95, 85, 60 };
bool m_enableTranslation; // enable or disables translated output
public:
BotConfig ();
~BotConfig () = default;
@ -140,6 +142,11 @@ private:
public:
// enables messages translation
void enableTranslation (bool enable) {
m_enableTranslation = enable;
}
// checks whether chat banks contains messages
bool hasChatBank (int chatType) const {
return !m_chat[chatType].empty ();