1.1 --- a/core/HalfLife2.cpp Wed Sep 16 13:38:04 2009 +1200
1.2 +++ b/core/HalfLife2.cpp Thu Sep 17 18:54:40 2009 +1200
1.3 @@ -437,6 +437,26 @@
1.4 return true;
1.5 }
1.6
1.7 +bool CHalfLife2::HintTextMsg(cell_t *players, int count, const char *msg)
1.8 +{
1.9 + bf_write *pBitBuf = NULL;
1.10 +
1.11 + if ((pBitBuf = g_UserMsgs.StartMessage(m_HinTextMsg, players, count, USERMSG_RELIABLE)) == NULL)
1.12 + {
1.13 + return false;
1.14 + }
1.15 +
1.16 + const char *pre_byte = g_pGameConf->GetKeyValue("HintTextPreByte");
1.17 + if (pre_byte != NULL && strcmp(pre_byte, "yes") == 0)
1.18 + {
1.19 + pBitBuf->WriteByte(1);
1.20 + }
1.21 + pBitBuf->WriteString(msg);
1.22 + g_UserMsgs.EndMessage();
1.23 +
1.24 + return true;
1.25 +}
1.26 +
1.27 bool CHalfLife2::ShowVGUIMenu(int client, const char *name, KeyValues *data, bool show)
1.28 {
1.29 bf_write *pBitBuf = NULL;