|
group2 0.1.0
CSE 125 Group 2
|
PR-27: per-shot animation-state assertion from the client. More...
#include <Event.hpp>
Public Attributes | |
| std::uint32_t | shotInputTick = 0 |
| std::uint16_t | targetClientId = 0xFFFFu |
| 0xFFFF = no specific target. | |
| AnimSnapshot | targetAnim {} |
PR-27: per-shot animation-state assertion from the client.
Carries the client's view of the target's animation state at the instant the user pulled the trigger, plus the input tick that the shot is associated with. Server pairs this with the shooter's INPUT for the same shotInputTick and compares against its own historical anim state at the rewound tick. When targetClientId == 0xFFFF the client wasn't aiming at anyone close — the row is still emitted (as a "no target" telemetry row) but no comparison happens.
| std::uint32_t ShotIntentPayload::shotInputTick = 0 |
| AnimSnapshot ShotIntentPayload::targetAnim {} |
| std::uint16_t ShotIntentPayload::targetClientId = 0xFFFFu |
0xFFFF = no specific target.