group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
NetKillEvent.hpp
Go to the documentation of this file.
1
3#pragma once
4
8
12{
13 ClientId killerId; // ID of the player who made the kill
14 ClientId victimId; // ID of the player killed
15 Health killerHealth; // Remaining health of killer for respawn display
16 BodyRegion hitRegion = BodyRegion::UpperTorso; // Body region of the killing blow
17 bool isHeadshot = false; // Convenience flag for UI (region == Head)
18};
Network client identifier component for multiplayer entities.
Player health and armor.
Skeleton-driven hitbox types: body regions, capsule definitions, damage profiles, and per-entity runt...
BodyRegion
Body regions.
Definition Hitbox.hpp:23
@ UpperTorso
Definition Hitbox.hpp:26
Associates an entity with a connected network client.
Definition ClientId.hpp:10
ECS component: player health, armor, and passive heal cooldown.
Definition Health.hpp:8
Event representing a player kill, sent from server to client for kill feed updates.
Definition NetKillEvent.hpp:12
bool isHeadshot
Definition NetKillEvent.hpp:17
ClientId victimId
Definition NetKillEvent.hpp:14
Health killerHealth
Definition NetKillEvent.hpp:15
ClientId killerId
Definition NetKillEvent.hpp:13
BodyRegion hitRegion
Definition NetKillEvent.hpp:16