Triple-path handshake to dedicated servers
This commit is contained in:
1 parent
80c4a64e76
commit
1d14820bf9
1 file changed
+8
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user