Commit Graph
24 Commits
Author SHA1 Message Date
Kam bc0439ee0b Fly Moving Helper 2024-01-24 00:10:24 -05:00
KAMKEEL bda76bafe6 Optimize Imports 2023-01-12 21:33:06 -05:00
Luis C.M 51b412a0bf Pathing improvements.
EntityAIReturn:
-Fixed NPC still creating a new path when close to the NPC's home.

EntityNPCInterface:
-Fixed flying NPCs having their home Y position dip into the ground.
-NPCs update their move helpers and navigators when they can't breathe.

FlyingMoveHelper:
-Reduced calls to Math.atan2 (very expensive operation to be unnecessarily calling every tick)

FlyPathFinder:
-Water opens an OPEN path point iff the NPC can swim, not iff the NPC's drowning type != 1.

NPCPath:
-Made PathPoint occurrences use NPCPathPoint

PathNavigateFlying:
-A slightly larger area of blocks with respect to width is checked om rayTraceBlocks(), and the function now also correctly checks for liquids.
2022-11-13 23:49:49 -06:00
KAMKEEL 73938d20ab Merge branch 'dev' of https://github.com/KAMKEEL/CustomNPC-Plus into dev 2022-11-07 14:48:54 -05:00
KAMKEEL cd91636993 Update AIMoveSpeed for CheckStuck 2022-11-07 14:48:47 -05: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
KAMKEEL bfb446b0de Move Helper Public 2022-11-07 01:40:24 -05:00
KAMKEEL b223381c29 Remove Cooldown 2022-11-07 00:56:12 -05:00
KAMKEEL f7d90d07ff Limiting Angle Upgrade 2022-11-06 21:44:17 -05:00
c0508383 1facfd133d Fixed NPC flight zig-zagging at high speeds when near the end of the path. 2022-08-28 00:12:15 -05:00
KAMKEEL 28de96516d Remove Redundant Fly Code 2022-08-26 15:44:15 -04:00
Luis C.M 1f79b52176 More fixes for flight pathing 2022-05-15 01:21:06 -05:00
Luis C.M 1cd3ff31b6 Increased the angle limit while pathing for flying NPCs from 15 to 20 degrees 2022-05-04 04:58:59 -05:00
Luis C.M 8033b8ba19 Tweaked vertical speed calculations for NPC flight 2022-05-04 04:10:14 -05:00
Luis C.M 85a1892c71 Changes to NPC flight:
-Improved flight pathing greatly, MUCH MUCH smoother now.
-The "flying speed" of an NPC now correctly speeds up how fast the NPC climbs vertically while flying
-NPCs now properly return to start while flying
2022-05-04 03:06:40 -05:00
luisc 450e065e27 Slightly improved flight pathing downwards. 2022-02-22 01:52:47 -06:00
luisc 33e884c217 Flying is now smoother, NPCs can pathfind downwards easier while flying. 2022-02-18 03:34:20 -06:00
luisc 555ceb741f Added a modifiable and toggleable flying height limit to NPCs 2022-01-13 05:28:20 -06:00
luisc d66f532643 Made entity field in FlyingMoveHelper final 2021-12-08 15:50:58 -06:00
luisc d37e986006 Fixed NPCs bobbing in the air when flying. 2021-12-08 15:34:41 -06:00
luisc 90eec7a57b Added GUI fields for setting flying properties of NPCs. Updated en_lang file to add GUI texts. 2021-12-08 05:26:32 -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
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