Add new reversed packet header flags

These flags only exist in the respawn version of the engine. Renamed 'CNetChan::unknown_challenge_var' to 'CNetChan::m_nRealTimePackets'. This field counts the number of packets sent while the frame time wasn't prescaled with the 'host_timescale' cvar, see r5apex.exe+0x3093C0 (140309FC0).
This commit is contained in:
Kawe Mazidjatari 2023-12-22 13:19:06 +01:00
parent c8b5f47c80
commit d3d80398e3
2 changed files with 3 additions and 2 deletions

View File

@ -47,4 +47,5 @@ enum class PERSISTENCE : int
#define PACKET_FLAG_ENCRYPTED (1<<2) // packet is encrypted
#define PACKET_FLAG_SPLIT (1<<3) // packet is split
#define PACKET_FLAG_CHOKED (1<<4) // packet was choked by sender
#define PACKET_FLAG_PRESCALED (1<<5) // packet was sent by sender with prescaled frame time
#define PACKET_FLAG_LOOPBACK (1<<6) // packet was sent from loopback connection

View File

@ -174,7 +174,7 @@ public:
int m_nInSequenceNr;
int m_nOutSequenceNrAck;
int m_nChokedPackets;
int unknown_challenge_var;
int m_nRealTimePackets; // Number of packets without prescaled frame times.
private:
#if defined (GAMEDLL_S0) || defined (GAMEDLL_S1) || defined (GAMEDLL_S2)