Commit Graph
110 Commits
Author SHA1 Message Date
Kam a9b602713c Large Cleanup to Code Imports and Formatting 2026-01-22 23:07:38 -05:00
Claude d06e680350 Fix attack speed formula to check elapsed time properly
Instead of blindly resetting hurtResistantTime for fast weapons, now
checks if enough time has elapsed based on the weapon's attackSpeed:
- timeElapsed = maxHurtResistantTime - hurtResistantTime
- Allow attack when: hurtResistantTime <= maxHurtResistantTime - attackSpeed

Example: attackSpeed=10, maxHurtResistantTime=20
- Allows attack when hurtResistantTime <= 10 (10 ticks elapsed)
2025-12-31 00:52:06 +00:00
Claude 185a8bc917 Move hurt resistant time handling from LivingHurtEvent to LivingAttackEvent
- Remove legacy attack speed handling from ServerEventsHandler.LivingHurtEvent
  (was setting hurtResistantTime AFTER immunity check, too late)
- Add proper handling in ScriptPlayerEventHandler.LivingAttackEvent
  (sets hurtResistantTime=0 BEFORE immunity check for fast weapons)
- For weapons with attackSpeed < 20, bypass invincibility frames to allow
  rapid attacks to land
2025-12-31 00:45:26 +00:00
Kam ce8e38b6bd Update ScriptPlayerEventHandler.java 2025-12-30 19:41:02 -05:00
Kam 0c1d9908aa Update ScriptPlayerEventHandler.java 2025-10-28 01:53:39 -04:00
Kam 557b8720a4 Update ScriptPlayerEventHandler.java 2025-10-28 00:44:41 -04:00
Kam 9c541999f3 Optimize Imports 2025-07-23 14:22:52 -04:00
bigguy345 e0c9bfffa5 Fixed updateEveryXTicks being inconsistent due to using entity's ticksExisted. IAction instances now track their own tick 2025-07-03 18:29:53 +03:00
Kam 585ebdcc2f Add config for clearing action manager on death 2025-06-29 14:40:49 -04:00
bigguy345 dd4b0c8b4b ActionManager no longer cleared on entity's death/reset 2025-06-28 19:10:15 +03:00
Kam 7b6c7c1c33 Update ScriptPlayerEventHandler.java 2025-06-02 15:09:24 -04:00
Kam 2b6f63a3e3 Right Click Event for Players 2025-06-02 14:56:29 -04:00
Kam 1c04816054 Update ScriptPlayerEventHandler.java 2025-05-22 00:36:14 -04:00
Kam 43bc1eb81f Code Cleanup / Reformat 2025-05-20 13:53:26 -04:00
Kam 666504e0a3 Create better Action Handling
- Conditional Actions
- Action Manager on Player Data
2025-04-26 20:52:08 -04:00
Kam cb3eed7bf0 A BUNCH OF Attribute Fixes 2025-04-26 05:46:54 -04:00
Kam 0c745fc90b Fix Player vs Player Attribute Bug 2025-04-26 05:10:25 -04:00
Kam 4fd0c31bee Individualized Player Scripts Config 2025-04-09 01:55:34 -04:00
Kam cc148c02d7 Convert all getPlayerData() to PlayerData.get() 2025-04-08 22:48:32 -04:00
Kam 94d9d93360 Organize Player Events 2025-04-08 22:37:26 -04:00
Kam 04bfbef219 Fake Some Fake Player Issues 2025-04-08 21:09:18 -04:00
Kam 180d257024 Proper Reformating 2025-03-13 17:14:45 -04:00
Kam b1e4a6f0fe Fix Diagram Crash 2025-03-12 00:59:43 -04:00
Kam 6c1330552b Use Float 2025-03-09 13:52:19 -04:00
Kam e3fad91547 Attribute and Magic Damage Calculations for Players to MOBS, Players, NPCs 2025-03-06 04:07:16 -05:00
Kam 79f2b9b52c Fix Crash 2025-03-03 16:12:30 -05:00
Kam da0489296e Better Reorganization 2025-02-27 15:54:42 -05:00
Kam 4e0359902d Attribute THINGS 2025-02-27 13:47:09 -05:00
Kam c132db8299 Whoops 2025-02-27 11:54:56 -05:00
Kam f8b3dcee75 Rename to AttributeAttackHelper 2025-02-27 11:49:45 -05:00
Kam d482213c85 Change from Double to Float 2025-02-27 11:48:03 -05:00
Kam 50977543c0 More Item Attribute Things 2025-02-26 22:49:26 -05:00
Kam 6e59cc760f More Attribute Pushing 2025-02-26 16:13:43 -05:00
Kam f1b77fe94f Tick Attribute Tracker 2025-02-25 16:46:05 -05:00
Kam 8b1fdc5132 Better Brush Controls 2025-02-23 16:15:00 -05:00
Kam c3538836be Optimize Imports 2025-02-20 21:40:39 -05:00
Kam 690f2ca10d Hook Up Linked Item to existing Events 2025-02-17 16:02:56 -05:00
Kam 097f1f9d1d Sync Effects Packet 2025-02-10 21:41:54 -05:00
Kam 3240970252 Hook up some more things 2025-02-10 18:12:58 -05:00
Kam fb496ce1e2 SyncController 2025-01-30 09:26:10 -05:00
Kam de56032118 Syncing and Large Packet Completion 2025-01-29 18:25:34 -05:00
Kam 5d41f5b939 Rename Namespace to kamkeel.npcs 2025-01-29 13:20:04 -05:00
Kam bf604774c0 [WIP] Multiple Profile Handlers 2025-01-23 16:10:01 -05:00
Kam 7a28d9107c Fix Casting Error for PickUp Event 2025-01-22 11:53:22 -05:00
Kam ad222657c4 Fix Cancel calculations for Attacked / Attack or Damaged / Damage 2024-10-23 21:16:59 -04:00
Kam b7091aa289 Fix Quest Item pickup not removing items on Auto Complete Pickup 2024-04-06 21:38:46 -04:00
Kam d4e0664f97 Anotha one 2024-04-04 17:32:17 -04:00
Kam 777283e5aa Casting Fix 2024-04-04 17:30:55 -04:00
Kam 0fa7960f89 Fix Casting Crash 2024-04-03 02:49:35 -04:00
Kam 91740293d9 Better Sync NBT Handling 2024-03-29 02:15:26 -04:00