|
group2 0.1.0
CSE 125 Group 2
|
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 {} |
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.
| std::array<HudShotgunPellet, 11> HudShotgunBlast::pellets {} |
| float HudShotgunBlast::secondsSinceFire = 0.f |
Drives the widget fade animation.
| bool HudShotgunBlast::valid = false |
False = no recent blast; widget stays hidden.