group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
Hitbox.hpp File Reference

Skeleton-driven hitbox types: body regions, capsule definitions, damage profiles, and per-entity runtime state. More...

#include <array>
#include <cstdint>
#include <glm/glm.hpp>
#include <string>
#include <unordered_map>
#include <vector>
Include dependency graph for Hitbox.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  HitboxDef
 Hitbox definition (static, per-rig). More...
struct  WorldCapsule
 Runtime capsule (world-space, per-entity, per-frame). More...
struct  HitboxInstance
 ECS components. More...
struct  JointMatrices
 ECS component: per-entity model-space joint matrices from animation. More...
struct  DamageProfile
 Damage profile. More...
struct  HitboxRig
 Hitbox rig (shared per character archetype). More...
struct  HitDebugSnapshot
 Debug: hit detection snapshot (for client-server mismatch debugging). More...

Enumerations

enum class  BodyRegion : uint8_t {
  Head , Neck , UpperTorso , LowerTorso ,
  LeftUpperArm , LeftLowerArm , RightUpperArm , RightLowerArm ,
  LeftUpperLeg , LeftLowerLeg , RightUpperLeg , RightLowerLeg ,
  Count
}
 Body regions. More...

Functions

const char * bodyRegionName (BodyRegion region)
 Human-readable name for a body region (UI / kill feed / logging).
const DamageProfiledefaultDamageProfile ()
 Global (default) damage profile accessor.

Detailed Description

Skeleton-driven hitbox types: body regions, capsule definitions, damage profiles, and per-entity runtime state.

Modern FPS hitbox system (CS2/Valorant/Deadlock style):

  • Capsule volumes attached to skeleton bones
  • Transforms follow animation pose every tick
  • Different body regions carry different damage multipliers

Enumeration Type Documentation

◆ BodyRegion

enum class BodyRegion : uint8_t
strong

Body regions.

Body region identifiers for damage multiplier lookup.

Enumerator
Head 
Neck 
UpperTorso 
LowerTorso 
LeftUpperArm 
LeftLowerArm 
RightUpperArm 
RightLowerArm 
LeftUpperLeg 
LeftLowerLeg 
RightUpperLeg 
RightLowerLeg 
Count 

Function Documentation

◆ bodyRegionName()

const char * bodyRegionName ( BodyRegion region)
inline

Human-readable name for a body region (UI / kill feed / logging).

Here is the caller graph for this function:

◆ defaultDamageProfile()

const DamageProfile & defaultDamageProfile ( )
inline

Global (default) damage profile accessor.

Here is the caller graph for this function: