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

Per-shooter lock state for a Winston-style auto-lock beam. More...

#include <BeamLockState.hpp>

Public Attributes

entt::entity target {entt::null}
 Currently locked enemy, or null if none.
float duration {0.0f}
 Seconds the current target has been continuously locked.
float graceTimer {0.0f}
 Seconds since the target was last in the cone.

Detailed Description

Per-shooter lock state for a Winston-style auto-lock beam.

Member Data Documentation

◆ duration

float BeamLockState::duration {0.0f}

Seconds the current target has been continuously locked.

◆ graceTimer

float BeamLockState::graceTimer {0.0f}

Seconds since the target was last in the cone.

Used as a short forgiveness window so a brief loss of lock (target strafes, peeks behind cover, or crosshair micro-jitter) does not reset the damage ramp.

◆ target

entt::entity BeamLockState::target {entt::null}

Currently locked enemy, or null if none.


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