From 1d14820bf9a817695fd33ffa86b7fa9063b8921e Mon Sep 17 00:00:00 2001 From: RallyBlock Date: Mon, 9 Nov 2026 15:12:47 -0500 Subject: [PATCH] Triple-path handshake to dedicated servers --- client.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/client.cs b/client.cs index 698b2c1..b6003dd 100644 --- a/client.cs +++ b/client.cs @@ -204,13 +204,18 @@ function RPGClient_ZoomOut(%val) RPGClient_ApplyCamera(); } +function RPGClient_CanSendCmd() +{ + return isObject(ServerConnection) || isObject(localClientConnection); +} + function RPGClient_SendHello() { if ($RPGClient::Server) { return; } - if (!isObject(ServerConnection)) + if (!RPGClient_CanSendCmd()) { return; } @@ -221,6 +226,8 @@ function RPGClient_SendHello() } $RPGClient::HelloLast = %now; commandToServer('RPG_Hello', $RPGClient::Version); + commandToServer('RPGHello', $RPGClient::Version); + commandToServer('message', "/rpg clienthello " @ $RPGClient::Version); } function clientCmdRPG_Probe()