From bfb38014914df4acac33351fd35313e317a3a5e5 Mon Sep 17 00:00:00 2001 From: ricardoofnl Date: Sun, 2 Aug 2026 09:39:56 +0700 Subject: [PATCH] [saco] Implement/match `CLocalPlayer::Say` --- saco/net/localplayer.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/saco/net/localplayer.cpp b/saco/net/localplayer.cpp index db6f8fc..6c41d04 100644 --- a/saco/net/localplayer.cpp +++ b/saco/net/localplayer.cpp @@ -83,7 +83,12 @@ void CLocalPlayer::ResetAllSyncAttributes() void CLocalPlayer::Say(PCHAR szText) { - // TODO: CLocalPlayer::Say .text:10005A10 + BYTE byteTextLength = strlen(szText); + RakNet::BitStream bsSend; + + bsSend.Write(byteTextLength); + bsSend.Write(szText, byteTextLength); + pNetGame->GetRakClient()->RPC(RPC_Chat, &bsSend, HIGH_PRIORITY, RELIABLE, 0, FALSE); } //----------------------------------------------------------