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

Floating damage number spawned at a world-space hit position. More...

#include <HudTypes.hpp>

Public Attributes

float worldX = 0.f
float worldY = 0.f
float worldZ = 0.f
 World-space hit position.
int damage = 0
 Damage dealt.
bool headshot = false
bool shielded = false
 True if target had armor when hit.

Detailed Description

Floating damage number spawned at a world-space hit position.

Projected to screen space each frame by the damage number widget.

Member Data Documentation

◆ damage

int HudDamageNumber::damage = 0

Damage dealt.

◆ headshot

bool HudDamageNumber::headshot = false

◆ shielded

bool HudDamageNumber::shielded = false

True if target had armor when hit.

◆ worldX

float HudDamageNumber::worldX = 0.f

◆ worldY

float HudDamageNumber::worldY = 0.f

◆ worldZ

float HudDamageNumber::worldZ = 0.f

World-space hit position.


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