From 4def6b65dac8a9ed657b02d8d98ae73f804b2c8c Mon Sep 17 00:00:00 2001 From: ricardoofnl Date: Fri, 4 Sep 2026 22:18:55 +0700 Subject: [PATCH] [saco] Implement/match `CNetGame::UpdateScoresPingsIPs`; the six argument `RPC` overload sits at vtable slot 25 because MSVC reverses an overload set --- saco/net/netgame.cpp | 16 ++++++++++++++++ saco/net/netgame.h | 2 ++ 2 files changed, 18 insertions(+) diff --git a/saco/net/netgame.cpp b/saco/net/netgame.cpp index 8417216..e8f6b62 100644 --- a/saco/net/netgame.cpp +++ b/saco/net/netgame.cpp @@ -9,6 +9,8 @@ extern CAudioStream *pAudioStream; void FUNC_100AABE0(); // .text:100AABE0 +DWORD dword_10118A18; + //---------------------------------------------------- // MATCH @@ -249,6 +251,20 @@ void CNetGame::AttemptConnect() //---------------------------------------------------- +void CNetGame::UpdateScoresPingsIPs() +{ + if(GetTickCount() - dword_10118A18 > 3000) + { + dword_10118A18 = GetTickCount(); + + RakNet::BitStream bsSend; + if(GetRakClient()) + GetRakClient()->RPC(RPC_UpdateScoresPingsIPs, &bsSend, HIGH_PRIORITY, RELIABLE, 0, FALSE); + } +} + +//---------------------------------------------------- + void CNetGame::ResetWorldBounds() { if(field_3D5->field_2B) FUNC_100AABE0(); diff --git a/saco/net/netgame.h b/saco/net/netgame.h index 352bd1f..9273afa 100644 --- a/saco/net/netgame.h +++ b/saco/net/netgame.h @@ -131,6 +131,8 @@ public: void Packet_InvalidPassword(Packet *p); // .text:10008E20 void Packet_ConnectionAttemptFailed(Packet *p); // .text:10008E60 + void UpdateScoresPingsIPs(); // .text:10008F10 + void ToggleNameTagStatus(); // .text:10008E90 void sub_1000A540(); // .text:1000A540 };