Permalink
Browse files

Send the complete TextMsg usermsg (#571)

The source 2013 handler for TextMsg expects five strings in the message here: https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/client/hud_chat.cpp#L124

Because sourcemod doesn't send the last four strings along each message sent from sourcemod triggers an assert if the game is not built with RELEASE.
  • Loading branch information...
1 parent 47d22a3 commit 0b7d99f03d6712723be72152a938000171e1cdd2 @thexa4 thexa4 committed with KyleSanderson Dec 26, 2016
Showing with 4 additions and 0 deletions.
  1. +4 −0 core/HalfLife2.cpp
View
@@ -574,6 +574,10 @@ bool CHalfLife2::TextMsg(int client, int dest, const char *msg)
pBitBuf->WriteByte(dest);
pBitBuf->WriteString(msg);
+ pBitBuf->WriteString("");
+ pBitBuf->WriteString("");
+ pBitBuf->WriteString("");
+ pBitBuf->WriteString("");
#endif
g_UserMsgs.EndMessage();

0 comments on commit 0b7d99f

Please sign in to comment.