|
group2 0.1.0
CSE 125 Group 2
|
Tick all active FireField entities: apply DoT damage and expire. More...
#include "ecs/registry/Registry.hpp"#include "network/NetKillEvent.hpp"#include <glm/vec3.hpp>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | systems |
| Client-only input sampling system — split into two halves so mouse look can run every iterate() (smooth camera at any FPS) while movement keys run once per physics tick group (server-consistent). | |
Functions | |
| void | systems::spawnFireField (Registry ®istry, glm::vec3 position, float radius, float duration, float dps, entt::entity owner) |
| Spawn a FireField at position that lasts duration seconds and deals dps damage to players inside radius. | |
| void | systems::runFireField (Registry ®istry, float dt, std::vector< NetKillEvent > &killEvents) |
| Tick all FireField entities: decrement remaining, apply DoT damage at fixed sub-intervals (4 Hz), and destroy expired fields. | |
Tick all active FireField entities: apply DoT damage and expire.