group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
ShotIntentPayload Struct Reference

PR-27: per-shot animation-state assertion from the client. More...

#include <Event.hpp>

Collaboration diagram for ShotIntentPayload:
[legend]

Public Attributes

std::uint32_t shotInputTick = 0
std::uint16_t targetClientId = 0xFFFFu
 0xFFFF = no specific target.
AnimSnapshot targetAnim {}

Detailed Description

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.

Member Data Documentation

◆ shotInputTick

std::uint32_t ShotIntentPayload::shotInputTick = 0

◆ targetAnim

AnimSnapshot ShotIntentPayload::targetAnim {}

◆ targetClientId

std::uint16_t ShotIntentPayload::targetClientId = 0xFFFFu

0xFFFF = no specific target.


The documentation for this struct was generated from the following file: