Commit Graph
20 Commits
Author SHA1 Message Date
KAMKEEL 1acda0e6b0 Scale hazard damage to its interval and floor the interval at 5 ticks
The value is configured, stored and labelled as damage per second, but a pulse
applied it whole, so the real rate was damage per interval - it only matched at
the default interval of 20. A pulse now deals the share of a second it covers.
The interval is floored at 5 ticks, which also bounds how often a zone scans;
this replaces the per-tick membership check, which cost 20x the entity queries.
2026-08-11 04:23:59 -04:00
KAMKEEL 6477ede022 Make hazard radius and barrier duration accurate
- Hazards only checked who was inside once per damage interval, so the boundary
  where damage started and stopped drifted by however far an entity moved in
  between - several blocks at sprint speed. Membership is now checked every
  tick and damage accrues per entity from the time it actually spends inside.
- Barriers counted elapsed ticks instead of holding a deadline, so every tick
  the entity missed extended it past its configured duration. They now expire
  on an absolute world time like the other energy entities.
2026-08-11 03:43:38 -04:00
Kam d8b18d7058 Allow Null Owners in Energy 2026-03-09 17:47:13 -04:00
Kam 993c9d09c3 Kill Zones on Chunk Load / World Load 2026-03-09 17:27:11 -04:00
Kam 029f460b75 Kill Energy Entities on Load Chunk 2026-03-09 17:07:31 -04:00
Kam 572a51ad32 Better API Handling for Scripting Energy Utilitizes / Damage Handling 2026-03-03 02:02:05 -05:00
Kam 6489f75b7d Fix DBC Damage for Panel, Sweeper, Zones 2026-03-03 00:36:45 -05:00
Kam 36aab9e86e Fix Some LOGIC!!!! 2026-03-02 18:29:39 -05:00
Kam a077c7b32f Add Ignore I-Frames to Abilities 2026-03-02 03:58:18 -05:00
Kam 61d08882a9 Lots of Fixes 2026-03-01 16:19:50 -05:00
Kam f58a6010d9 Reorganize 2026-02-22 03:28:56 -05:00
Kam 3e58013ad6 Various Fixes 🐶 2026-02-21 05:09:00 -05:00
Kam 12c50d5f6a Whoops Forgot to Sync NBTs 2026-02-21 04:56:53 -05:00
Kam 4dde214f94 Fix Persistent Ability Entities 2026-02-21 04:11:28 -05:00
Kam f7d0fbcf33 Rendering Fixes and Logic Fixes for all Energy Abilities 2026-02-19 19:27:56 -05:00
Kam e54a9a83bb Create IAbilityEffect + Concurrent Ability Support for Chained Abilities 2026-02-19 12:55:37 -05:00
Kam 1de1c4e710 Reformat Code 2026-02-18 05:13:51 -05:00
Kam 89158cb10a Ability Potion Effect 2026-02-17 17:37:51 -05:00
Kam 45d05b9157 Add trap presets & trigger-reveal visuals
Introduce client-side trap presets and a visual "trigger reveal" for traps, plus related entity/renderer changes.

- AbilityTrap: add TrapPreset enum and applyTrapPresetDefaults; wire a SubGuiTrapPresetSelector hook to apply presets from the GUI; pass visibility into created trap entities.
- EntityAbilityZone: add visible flag, TRIGGER_FLASH_STATUS state, setEntityState usage to notify clients of triggers, handleHealthUpdate to start client-side flash, and adjust construction/serialization accordingly.
- RenderAbilityZone: implement trigger-reveal visuals (revealFade, triggerReveal) that briefly show a burst when traps trigger, skip rendering for invisible traps unless revealing, and tweak flash/timing logic.
- Minor cleanup: remove/condense comment blocks and refactor noisy helpers across AbilityZone/AbilityHazard, plus language entry update and new SubGuiTrapPresetSelector GUI class.

These changes enable preset application for traps and improve client-side feedback when traps trigger.
2026-02-15 19:19:57 -05:00
Kam 3500b0f55f Ability Trap & Hazard Update 2026-02-12 13:55:56 -05:00