group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
FireField.hpp
Go to the documentation of this file.
1
3
4#pragma once
5
6#include <entt/entt.hpp>
7#include <glm/vec3.hpp>
8
10
16{
17 glm::vec3 position{0.0f};
18 float radius = 0.0f;
19 float remaining = 0.0f;
20 float dps = 0.0f;
21 float tickAccumulator = 0.0f;
22 entt::entity owner = entt::null;
24};
Weapon state component for armed entities.
WeaponType
Weapon type — determines tracer style, damage, sound, and impact effects.
Definition WeaponState.hpp:12
@ Molotov
Impact-detonate, leaves a fire field (damage over time).
Definition WeaponState.hpp:19
A burning area on the ground that damages players standing in it.
Definition FireField.hpp:16
float radius
AoE radius (u).
Definition FireField.hpp:18
glm::vec3 position
World-space center.
Definition FireField.hpp:17
float dps
Damage per second to players inside.
Definition FireField.hpp:20
WeaponType weaponType
Kill-feed icon profile for this field.
Definition FireField.hpp:23
entt::entity owner
Caused-by entity (for kill credit + self-damage scaling).
Definition FireField.hpp:22
float remaining
Seconds left until field is destroyed.
Definition FireField.hpp:19
float tickAccumulator
Sub-tick accumulator for fixed-rate damage application.
Definition FireField.hpp:21