[Struct] Document clientConnections

This commit is contained in:
Diavolo 2022-06-30 17:36:54 +02:00
parent 7f8bf48c91
commit 46842a582c
No known key found for this signature in database
GPG Key ID: FA77F074E98D98A5
3 changed files with 47 additions and 0 deletions

View File

@ -605,6 +605,8 @@ namespace Game
scr_const_t* scr_const = reinterpret_cast<scr_const_t*>(0x1AA2E00);
clientConnection_t* clientConnections = reinterpret_cast<clientConnection_t*>(0xA1E878);
void Sys_LockRead(FastCriticalSection* critSect)
{
InterlockedIncrement(&critSect->readCount);

View File

@ -1251,6 +1251,8 @@ namespace Game
extern scr_const_t* scr_const;
extern clientConnection_t* clientConnections;
void Sys_LockRead(FastCriticalSection* critSect);
void Sys_UnlockRead(FastCriticalSection* critSect);

View File

@ -6264,6 +6264,49 @@ namespace Game
static_assert(sizeof(client_t) == 0xA6790);
struct clientConnection_t
{
int qport;
int clientNum;
int lastPacketSentTime;
int lastPacketTime;
netadr_t serverAddress;
int connectTime;
int connectPacketCount;
char serverMessage[256];
int challenge;
int checksumFeed;
int reliableSequence;
int reliableAcknowledge;
char reliableCommands[128][1024];
int serverMessageSequence;
int serverCommandSequence;
int lastExecutedServerCommand;
char serverCommands[128][1024];
bool isServerRestarting;
int lastClientArchiveIndex;
char demoName[64];
int demorecording;
int demoplaying;
int isTimeDemo;
int demowaiting;
int(__cdecl* demoread)(void*, int, int);
int demofile;
int timeDemoLog;
int timeDemoFrames;
int timeDemoStart;
int timeDemoPrev;
int timeDemoBaseTime;
netchan_t netchan;
char netchanOutgoingBuffer[2048];
char netchanIncomingBuffer[131072];
netProfileInfo_t OOBProf;
char statPacketsToSend;
int statPacketSendTime[7];
};
static_assert(sizeof(clientConnection_t) == 0x615E8); // Size confirmed in CL_Migrate
struct CModelAllocData
{
void* mainArray;