Kam
6dce4e5cdc
Revert "Smoother + Most-Cost Effective Flight Pathing"
...
This reverts commit a79ba3a0e4 .
2026-02-24 22:28:57 -05:00
Kam
a79ba3a0e4
Smoother + Most-Cost Effective Flight Pathing
2026-02-23 04:38:02 -05:00
Kam
20dc8e0efc
Fix Flying Gravity Syncing Issue
2026-02-23 04:11:07 -05:00
Kam
8873705ce7
Fix Some Flying Logic
2026-02-21 15:28:59 -05:00
Claude
096c9b0a69
Fix mount movement jitter by following vanilla horse/boat sync pattern
...
- Remove all velocityChanged=true flags from mount movement code
(NPCMountUtil, EntityNPCInterface, EntityNPCFlying)
- Make performMountedMovement physics server-side only like vanilla horse
- Remove syncMountedRiderVelocity method that forced rider velocity packets
- Fix ground movement to not reset motionY every tick
- Let Minecraft's entity tracker handle position sync naturally
The jitter was caused by S12PacketEntityVelocity being sent every tick,
which constantly reset client interpolation. Vanilla horses/boats never
set velocityChanged and rely on the entity tracker for smooth sync.
2025-12-30 23:06:16 +00:00
Kam
c33ac04d11
Refine mount GUI layout and flight handling
2025-11-07 22:44:22 -05:00
Kam
9744209938
Refactor mount helpers and expose NPC flight state
2025-11-07 20:15:49 -05:00
Kam
b035f4e188
Smooth mount steering and halt dismount drift
2025-11-06 02:00:55 -05:00
Kam
11e326de48
Add mount role for NPCs with rider controls
2025-11-06 00:20:22 -05:00
Kam
4bfdd6a5c4
Update EntityNPCFlying.java
2025-07-23 14:30:24 -04:00
Kam
4300db8f78
Fix flyGravity zero not preventing falling
2025-07-23 14:08:14 -04:00
Kam
6815f579a7
Full Imports and Code Format Optimization
2025-03-12 20:12:01 -04:00
Kam
7d37670494
Rename to NPC AI to NPC AIs
2025-02-10 21:32:55 -05:00
KAMKEEL
0500cefa2a
Limg Swing
2022-11-15 00:48:35 -05:00
KAMKEEL
ffbc261a32
Update EntityNPCFlying.java
2022-11-15 00:31:58 -05:00
KAMKEEL
d520c98578
Merge branch 'louis-pathing' into dev
2022-11-15 00:23:11 -05:00
Luis C.M
69afa29e9c
EntityNPCFlying:
...
-Fixed fly height limit
2022-11-14 20:22:50 -06:00
Luis C.M
d86f571df6
PathNavigateFlying:
...
-Fixed pathfinder running into lava & water when it shouldn't.
FlyPathFinder:
-Simplified nodeTypeToOffset switch statement, removed unused function, and made air always return an open path node type.
EntityNPCInterface:
-Fixed "In Air" drowning type. Breathes underwater now.
EntityNPCFlying:
-Fixed NPCs still using flight movement when not being able to breathe.
ICustomNpc:
-Added canBreathe() function
2022-11-12 15:53:20 -06:00
KAMKEEL
5a1be375a0
Refactor Fly Code
2022-11-10 12:34:05 -05:00
Luis C.M
219d0f1802
Fixed strange flight behavior in flying NPCs with sizes below 5.
2022-11-07 13:32:31 -06:00
Luis C.M
a1eb8ff91b
Fixed odd NPC bobbing and NPCs with fly height limits not being able to path
2022-11-07 13:01:57 -06:00
Luis C.M
267bc8b239
Flying NPCs no longer hover slightly above the ground
2022-11-07 12:24:33 -06:00
Luis C.M
9c82e60a6e
EntityNPCFlying:
...
-Re-implemented flying gravity (woops)
2022-11-05 04:10:00 -05:00
Luis C.M
4bad48352c
NPCs no longer constantly pathfind when set to return to their home, and already there.
...
Flying NPCs:
-Pathfinding has a cooldown to decrease the amount of times they create a new path.
-Fly height limit implemented using getTopSolidOrLiquidBlock instead of iterating through blocks below the NPC.
2022-11-04 23:56:09 -05:00
Luis C.M
9794ab80d1
Fix for NPC flight on cloned NPCs.
2022-06-29 03:48:00 -05:00
Luis C.M
1f79b52176
More fixes for flight pathing
2022-05-15 01:21:06 -05:00
luisc
65ab37158f
Fixed flying limits not working on flying NPCs with the new smoother flight
2022-02-27 23:23:41 -06:00
luisc
ee02988d8c
Removed client-side imports from EntityNPCFlying
2022-02-22 22:14:05 -06:00
luisc
450e065e27
Slightly improved flight pathing downwards.
2022-02-22 01:52:47 -06:00
luisc
555ceb741f
Added a modifiable and toggleable flying height limit to NPCs
2022-01-13 05:28:20 -06:00
luisc
8c602c4d16
Adjusted floating: NPCs don't float when they're knocked back or hurt.
2021-12-08 17:43:27 -06:00
luisc
d37e986006
Fixed NPCs bobbing in the air when flying.
2021-12-08 15:34:41 -06:00
luisc
94c7df410b
Added fly gravity for NPCs, configurable with npc.setFlyGravity(gravity) and npc.getFlyGravity()
2021-12-08 04:50:23 -06:00
luisc
c2564de470
NPCs properly stay floating when not navigating and in the air.
2021-12-08 04:41:41 -06:00
luisc
2147bd00d0
Pathing classes for NPC flying added. NPCs can now follow tactical variants while flying, and their pathing is a LOT better.
2021-12-08 04:00:28 -06:00
luisc
43b3241801
Implemented path navigator and move helper for flying NPCs (npc.getNavigator() and npc.getMoveHelper() used to return the default navigator and move helper, added override function).
...
Improved Flying AI getting stuck when trying to get over a block towards the enemy.
2021-12-07 03:57:57 -06:00
luisc
12333de3a1
knockback() function for ScriptEntity now *only* knocks the entity back instead of hitting it.
...
Flying NPC's get knocked back properly, and their vertical speed has been increased.
Flying NPC's vertical flying speed can be changed by npc.setFlySpeed(double speed) from ScriptNpc.
2021-12-06 00:10:10 -06:00
luisc
3cd1410c19
Added new ScriptDBCPlayer class for manipulating Dragon Block C attributes.
...
Flying NPCs no longer chase you down if you're dead, or if they're dead.
2021-12-05 15:04:03 -06:00
luisc
23686dc3b8
Enabled fly button in movement, and extended max values for several NPC attributes, converting some to floats and doubles.
...
NPCs fly with speed based on their movement speed now.
2021-12-03 00:49:10 -06:00
luisc
44d4e74279
Enabled fly button in movement, and set max value for fields as Integer.MAX_VALUE for various fields.
2021-12-01 18:46:48 -06:00
luisc
72869e6a78
Consolidated EventScriptContainer and ScriptContainer into a single ScriptContainer class. NPCs are now able to fly when ai.movementType == 1.
2021-12-01 15:31:05 -06:00
KAMKEEL
3727d1af7a
Added Flying Code / Corrected Hidden Parts not Saving
...
Added a ton of code regarding Flying doesn't work correctly. Please Uncomment them by searching for
Comment: // Fly Change
Fixed Hidden Parts not Saving
2021-07-10 00:48:03 -04:00
KAMKEEL
f9bdc66956
Flying Tests
2021-06-13 16:22:06 -04:00