From 0b7d99f03d6712723be72152a938000171e1cdd2 Mon Sep 17 00:00:00 2001 From: Max Maton Date: Mon, 26 Dec 2016 02:33:18 +0100 Subject: [PATCH] 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. --- core/HalfLife2.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/HalfLife2.cpp b/core/HalfLife2.cpp index 177f73f92..800132f52 100644 --- a/core/HalfLife2.cpp +++ b/core/HalfLife2.cpp @@ -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();