[saco] Implement/match DumpNetworkStateInformation

This commit is contained in:
ricardoofnl committed 2026-08-02 13:21:01 +07:00
1 parent bfb3801491
commit bc1bf0ede6
3 files changed
+31 -6

No files matched your search

+27 -2
View File
@@ -27,13 +27,38 @@ int dword_10125A58=0;
void DumpNetworkStateInformation(PCHAR sz)
{
CPlayerPool *pPlayerPool = pNetGame->GetPlayerPool();
PLAYERID playerId=0;
PLAYERID playerId;
char szBuffer[16384];
sz[0] = '\0';
sprintf(sz,"\r\nState Information: Ped Context: %u\r\n",*pbyteCurrentPlayer);
// TODO: DumpNetworkStateInformation 10060160
playerId = 0;
do
{
if(playerId < MAX_PLAYERS && pPlayerPool->field_2A[playerId])
{
CNetPlayer *pNetPlayer = pPlayerPool->m_pPlayers[playerId];
CRemotePlayer *pRemotePlayer;
if(pNetPlayer)
pRemotePlayer = pNetPlayer->m_pRemotePlayer;
else
pRemotePlayer = NULL;
sprintf(szBuffer,"P%u (%u,%u) ",playerId,pRemotePlayer->field_10A,pRemotePlayer->field_1E7);
strcat(sz,szBuffer);
if(playerId > 0)
{
if(!((playerId + 1) % 4))
strcat(sz,"\r\n");
}
}
playerId++;
}
while(playerId != MAX_PLAYERS);
}
//----------------------------------------------------