Commit Graph
62 Commits
Author SHA1 Message Date
Kam 64e7a5153e Fix Crosshair Alignment 2026-02-21 16:49:21 -05:00
Kam ecfedff9d2 - Barrier Health Scaling with DBC Addon
- Healing Health Scaling with DBC Addon
- Ki Attacks collided with Barriers
- Remove Ability Slot (Deprecated)
- Refactored Naming Scheme for Barrier Abilities
- Fixed Player Settings for Ignore Dex, DBC Stats, etc.
2026-02-21 14:40:14 -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 a18503dfe9 Fix Domes 2026-02-21 01:09:39 -05:00
KamandClaude Opus 4.6 b3357a2751 Fix dome melee for all radii with server-side tick detection
MC's processUseEntity uses player.getDistanceSqToEntity(dome) for reach
validation, which computes center-to-center distance. For domes with
radius > 5, this always exceeds the 36-block threshold, making melee
impossible regardless of how close the player is to the surface.

Fix: server-side processMeleeHits() in onUpdate detects swinging players
near the dome surface via ray-sphere intersection, then calls
attackTargetEntityWithCurrentItem directly — bypassing MC's broken reach
check while preserving full damage calculation (enchantments, crits, etc).

Also adds adjustMeleeBoundingBox for client-side entity picking (places a
small 2x2x2 BB at the nearest sphere surface point toward the player),
and allows melee targeting from both inside and outside the dome.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-02-21 00:57:49 -05:00
KamandClaude Opus 4.6 e711a9012b Fix barrier solid/knockback behavior and dome melee targeting
- Rewrite solid system to use reactive crossing detection (prevPos comparison)
  instead of prediction-based teleportation that caused client rubber-banding
- Reduce knockback force (0.06 multiplier) so it pushes without fully blocking
- Add client-side solid prediction for smooth movement blocking (local player only)
- Fix dome melee from inside: canBeCollidedWith returns false when player is inside
- Fix dome melee from outside: getCollisionBorderSize set to 0 to prevent raycast
  from returning far exit point beyond reach distance
- Clean up dome bounding box: use setPosition/updateBoundingBox instead of custom setSize

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-02-20 23:55:32 -05:00
luisc 0a85bb5a7b - fixed dome collisions
- changed dome alpha rendering
- removed open container check for abilities
2026-02-20 19:36:45 -06:00
Kam f620e820e8 Dome, Panel Settings 2026-02-20 18:16:52 -05:00
Kam cb57e26d04 Modified Damage on Energy Projectile System 2026-02-20 03:51:11 -05:00
Kam 4bd149c01b Check Barrier Collisions within Laser Shot 2026-02-20 03:50:41 -05:00
Kam 86fe9fd6bb Sweeper Height and Width Configs 2026-02-20 02:17:11 -05:00
Kam 747918c4dc Better Barrier Tracking 2026-02-20 02:17:00 -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 6fdf9daf24 Add Max to Energy Entities to prevent any long-term issues / errors 2026-02-19 02:14:34 -05:00
Kam 48f6c162d5 Bugs fixes to Abilities
- Add Hit Scan to Laser
- Switching Dimensions Ability fix
- Chained Ability Targeting Conditions Fix
- Chained Ability Previewing
- Lang Keys Added
2026-02-18 14:10:55 -05:00
Kam 1de1c4e710 Reformat Code 2026-02-18 05:13:51 -05:00
Kam 0512588a7a Add Chained Abilities 2026-02-18 04:02:51 -05:00
Kam 2bcf3b03d5 Refactoring and Bug Fixes 2026-02-17 21:03:54 -05:00
Kam 89158cb10a Ability Potion Effect 2026-02-17 17:37:51 -05:00
Kam c07e9e7006 Create Barrier Abilities + Heavy Refactoring 2026-02-17 14:32:13 -05:00
Claude d1f2c9695c Fix panel directional check to only block incoming projectiles
The dot product was being computed but not used - panels were blocking
projectiles from both sides. Now correctly checks which side the
projectile approaches from and only blocks if it's moving toward
the panel surface.

https://claude.ai/code/session_01EV9KpiykvW4rASz7ju5iTG
2026-02-16 13:27:29 +00:00
Claude 0ebdfafccd Add Energy Barrier and Slicer ability system
Implements four new energy ability types:

- Energy Dome: Spherical barrier centered on caster that blocks incoming
  energy projectiles. Configurable per-projectile-type damage multipliers,
  HP/durability and duration modes. RING telegraph.

- Energy Wall: Placeable flat energy panel with configurable dimensions
  and height offset (can float above ground). Optional launching mode
  fires the wall forward with damage/knockback.

- Energy Shield: Held energy panel that follows the caster and rotates
  with their look direction. Defensive blocking ability.

- Energy Slicer: Thin wide blade projectile (JJK Cleave inspired).
  Extends AbstractEnergyProjectileAbility. Piercing by default.

Architecture:
- EnergyBarrierData: HP, duration, per-type damage multiplier map
- EnergyPanelData: Panel dimensions, height offset, launch properties
- AbstractEnergyBarrierAbility: Shared base for Dome/Wall/Shield
- EntityEnergyDome, EntityEnergyPanel, EntityEnergySlicer entities
- RenderEnergyDome, RenderEnergyPanel, RenderEnergySlicer renderers
  with translucent inner/outer layers (voxel-blocky aesthetic)
- Projectile-barrier collision system in EntityAbilityProjectile

https://claude.ai/code/session_01EV9KpiykvW4rASz7ju5iTG
2026-02-16 08:54:55 +00:00
Kam 071d89cc15 Add energy projectile types and events: implement IEnergyOrb, IEnergyBeam, IEnergyDisc, and IEnergyLaser interfaces, along with their respective script handlers and event hooks 2026-02-16 01:03:05 -05:00
Kam eda8931b5f Refactor entity owner checks and enhance FULL_MODEL rotation support in ability entities 2026-02-15 21:29:26 -05:00
Kam ce24c0a4ff Enhance ability selection and display: add toggleable ability handling, improve ability name color coding, and update ability selection messaging 2026-02-15 19:21:30 -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 0f774a68fc Refactor ability handling: replace damage handler with ability extenders for improved lifecycle management and damage routing 2026-02-14 21:06:12 -05:00
Kam a23b199e7e Refactoring for Code Cleanup and Projectile Abstract Class Handling 2026-02-14 15:21:56 -05:00
Kam 910f3b3744 Add NPC inline edit support and adjust ability launch mechanics 2026-02-13 15:01:28 -05:00
Kam 3500b0f55f Ability Trap & Hazard Update 2026-02-12 13:55:56 -05:00
Kam af02b0ab1d Various Fixes 2026-02-06 16:28:38 -05:00
Kam 2e5c4c3bf4 Fix Preview Handling for Abilities, Fix Disc Positioning in Real World 2026-02-06 05:04:19 -05:00
Kam a13791c610 Add DBC ability damage handling and GUI integration with new Damage Handler Registry Systems 2026-02-04 17:45:02 -05:00
Kam 326626ad8e Better Fix to Lock Movement and Rotation Locking during Abilities. Fix Interupting on Projectile Abilities 2026-02-04 14:48:54 -05:00
Vidal 96d939ce43 Added methods to trajectory 2026-02-03 22:10:33 -03:00
Vidal 6ea7d0ac7d More trajectory changes 2026-02-03 21:26:27 -03:00
Vidal 0e3ecb3d6e Added EnergyTrajectoryData (WIP) 2026-02-03 18:00:52 -03:00
Vidal bc4f82e55f Added API classes to Energy Projectile 2026-02-03 17:20:36 -03:00
Vidal 87d511dae1 Merge remote-tracking branch 'origin/dev' into dev 2026-02-03 16:09:12 -03:00
Kam ead3c5944c Fix Anchor Point Helper issue on NPCs 2026-02-03 14:06:30 -05:00
Vidal 75de803700 Added interfaces to energy data, refactored names 2026-02-03 15:45:45 -03:00
Kam 8aa6e926f6 Some Ability Helpers 2026-02-03 04:27:54 -05:00
Vidal ffc6a070dc Removed todo 2026-02-01 01:50:39 -03:00
Vidal 44f7161c9f Added charge to animation and fixed some access modifiers 2026-02-01 01:50:28 -03:00
Vidal 86a4c15dbb Fixed energy abilities not rendering 2026-02-01 00:59:54 -03:00
Vidal 71065fc520 Added Dual Disc Ability 2026-01-31 22:36:12 -03:00
Vidal e9f22dab2a Added Dual Orb Ability 2026-01-31 21:56:14 -03:00