2022-05-15 00:29:25 +02:00
|
|
|
#ifndef CLOCKDRIFTMGR_H
|
|
|
|
#define CLOCKDRIFTMGR_H
|
|
|
|
|
2023-03-27 17:42:11 +02:00
|
|
|
struct CClockDriftMgr
|
2022-05-15 00:29:25 +02:00
|
|
|
{
|
|
|
|
void Clear();
|
|
|
|
float GetCurrentClockDifference() const;
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
2022-09-09 19:47:31 +02:00
|
|
|
// This controls how much it smooths out the samples from the server.
|
2022-05-15 00:29:25 +02:00
|
|
|
NUM_CLOCKDRIFT_SAMPLES = 24
|
|
|
|
};
|
|
|
|
|
|
|
|
float field_0[4];
|
|
|
|
int field_10;
|
|
|
|
float m_ClockOffsets[NUM_CLOCKDRIFT_SAMPLES];
|
|
|
|
int m_iCurClockOffset;
|
|
|
|
float field_78;
|
|
|
|
float field_7C;
|
2022-08-18 11:35:32 +02:00
|
|
|
int m_nSimulationTick;
|
2022-05-15 00:29:25 +02:00
|
|
|
float m_flClientTickTime;
|
|
|
|
float m_flServerTickTime;
|
2022-08-18 11:35:32 +02:00
|
|
|
int m_nClientTick;
|
2022-05-15 00:29:25 +02:00
|
|
|
int m_nServerTick;
|
|
|
|
};
|
2023-03-27 17:42:11 +02:00
|
|
|
static_assert(sizeof(CClockDriftMgr) == 0x94);
|
2022-05-15 00:29:25 +02:00
|
|
|
|
|
|
|
#endif // CLOCKDRIFTMGR_H
|