group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
LagCompTarget.hpp
Go to the documentation of this file.
1
15
16#pragma once
17
18#include <cstdint>
19
23{
24 uint32_t targetServerTick = 0;
25
32 uint16_t lagTicks = 0;
33
38 uint16_t rttMs = 0;
39};
Server tick to which to rewind other entities' hitboxes when resolving this entity's hitscan.
Definition LagCompTarget.hpp:23
uint16_t lagTicks
PR-22: lag-compensation distance in ticks (currentServerTick − targetServerTick).
Definition LagCompTarget.hpp:32
uint32_t targetServerTick
Definition LagCompTarget.hpp:24
uint16_t rttMs
PR-22: shooter's most recent reported RTT in ms.
Definition LagCompTarget.hpp:38