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

A single completed shotgun blast (11 pellets) staged for the HUD widget. More...

#include <HudTypes.hpp>

Public Attributes

bool valid = false
 False = no recent blast; widget stays hidden.
float secondsSinceFire = 0.f
 Drives the widget fade animation.
std::array< HudShotgunPellet, 11 > pellets {}

Detailed Description

A single completed shotgun blast (11 pellets) staged for the HUD widget.

Index 0 = centre. Indices 1..5 = inner pentagon (×0.5 radius). Indices 6..10 = outer pentagon (×1.0 radius). Both pentagons share the same 5 angles (72° spacing, top first). Order MUST match the server's k_offsets in WeaponSystem.cpp so widget colours align with the actual rays fired.

Member Data Documentation

◆ pellets

std::array<HudShotgunPellet, 11> HudShotgunBlast::pellets {}

◆ secondsSinceFire

float HudShotgunBlast::secondsSinceFire = 0.f

Drives the widget fade animation.

◆ valid

bool HudShotgunBlast::valid = false

False = no recent blast; widget stays hidden.


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