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