Merge pull request #342 from diamante0018/clientconn

[Struct] Document clientConnections
This commit is contained in:
Dss0 2022-06-30 17:55:55 +02:00 committed by GitHub
commit 060abd6251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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); scr_const_t* scr_const = reinterpret_cast<scr_const_t*>(0x1AA2E00);
clientConnection_t* clientConnections = reinterpret_cast<clientConnection_t*>(0xA1E878);
void Sys_LockRead(FastCriticalSection* critSect) void Sys_LockRead(FastCriticalSection* critSect)
{ {
InterlockedIncrement(&critSect->readCount); InterlockedIncrement(&critSect->readCount);

View File

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

View File

@ -6264,6 +6264,49 @@ namespace Game
static_assert(sizeof(client_t) == 0xA6790); 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 struct CModelAllocData
{ {
void* mainArray; void* mainArray;