Commit Graph
140 Commits
Author SHA1 Message Date
KAMKEEL bda76bafe6 Optimize Imports 2023-01-12 21:33:06 -05:00
Luis C.M 8905f5f42e Moved NPC puppet data to display data.
Improved mixin functionality, offsets and rotations always reset if the puppet "job" (not a job anymore, always in display) is disabled.
2023-01-11 19:12:53 -06:00
KAMKEEL 6e92f08851 Config Overhaul 2023-01-07 00:21:08 -05:00
Luis C.M d2611385de ITimers:
-Added timerIds() function, listing all active timer IDs
2023-01-03 19:30:15 -06:00
KAMKEEL be9ae94163 Start API Branch 2022-11-15 15:25:53 -05:00
KAMKEEL 0500cefa2a Limg Swing 2022-11-15 00:48:35 -05:00
KAMKEEL 244bde8586 Fix Indents 2022-11-15 00:48:31 -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 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
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
Luis C.M 7425e935f1 EntityNPCInterface:
-Fixed flying NPCs not returning to mid-air start y positions.
2022-11-11 16:57:06 -06:00
Luis C.M 2c1a5d330a Improved pathfinding, and made NPCs able to traverse through lava/fire sources and water if immune to fire or able to breathe in water respectively. 2022-11-10 17:38:37 -06:00
KAMKEEL 5a1be375a0 Refactor Fly Code 2022-11-10 12:34:05 -05:00
Luis C.M 081c47b0aa Path optimizations 2022-11-10 03:26:32 -06:00
Luis C.M 83db114a0d Decreased max safe point tries for flight pathing, and added limit to pathfinding while loop. 2022-11-10 01:18:25 -06:00
Luis C.M 8e023eacfd Fixed flight pathing, merged with some 1.7.10 code. 2022-11-10 00:31:14 -06:00
KAMKEEL cc39e62bd4 Fix Reset Flying NPC to Spawn POINT 2022-11-07 21:23:46 -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
KAMKEEL 6c20ff2d14 Fix Fly Remote Reset 2022-11-07 01:40:11 -05: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
KAMKEEL b749ba1dec Add Override to EntityNPCInterface 2022-08-26 15:50:58 -04:00
c0508383 5cbbecf751 Fixed NPCs ignoring knockback resistance when attacked by players that are sprinting or have enchanted items. 2022-08-16 12:30:58 -05:00
c0508383 2819c76d0a ICustomNpc:
-Fix for setRetaliateType
2022-07-27 18:47:20 -05:00
c0508383 87818a3dbe EntityNPCInterface & EntityAIReturn:
-Fixed follower role
2022-07-20 13:33:21 -05:00
c0508383 84958cfd02 DataTimers:
-Prevented concurrent modification error when removing a ticking timer.
2022-07-06 15:28:25 -05:00
Luis C.M 8e0b5d042c Fixed null error when sending skin overlay data to update players' clients. 2022-07-05 14:18:40 -05:00
Luis C.M 34dd42f0db Removed redundant loop variables and casts. 2022-07-04 13:13:08 -05:00
Luis C.M 948fc4f497 Some timer functions now throw an exception when the timer they're trying to access does not exist. 2022-07-04 13:05:43 -05:00
Luis C.M 91ac09d8d9 EntityNPCInterface:
-Fixed looping error in setAir() and updateAITasks()
2022-06-29 14:36:17 -05:00
Luis C.M 55b21de050 Added drowning types:
In Air,
In Water,
or
Never
to CNPCs.
2022-06-29 12:21:30 -05:00
Luis C.M 9794ab80d1 Fix for NPC flight on cloned NPCs. 2022-06-29 03:48:00 -05:00
Luis C.M 58932ffe55 Fixes to scripted item rendering.
IItemCustom:
-Removed unnecessary setters.
2022-06-28 04:39:50 -05:00
KAMKEEL eb3dd66871 Merge DEV 2022-06-15 02:00:11 -04:00
KAMKEEL 16edeabb9a Cape Invisibility | MPM Dependency Fix 2022-06-15 01:58:46 -04:00
Luis C.M c6cdae5106 Merge pull request #59 from c0508383/master
CNPC+ 1.6 Fixes
2022-06-15 00:57:57 -05:00
Luis C.M a47323575e Fixed skin overlay crash on multiplayer. 2022-06-15 00:53:59 -05:00
Luis C.M 40a210ce8f Added configurable limits to skin overlays and dialog images. 2022-06-14 23:27:15 -05:00
KAMKEEL 9e1f19fa53 Add Version Compatibility to PartData
> Fixes MPM Dependency (again)
2022-06-14 22:26:11 -04:00
Luis C.M dfec85484b Quests:
-Quests with complete text now complete the quest in data before showing the text GUI, instead of being completed when that GUI is closed.

Item Quests:
Some fixes to item quest completion when an item is picked up.
2022-06-13 04:08:36 -05:00
Luis C.M fd1ac6dce4 Merge KAMKEEL-dev into dev. 2022-06-12 04:23:05 -05:00
Luis C.M 63a1525ee2 API Changes:
-Implemented interfaces for all jobs & roles.

ScriptPlayer:
-Added getData() function, which returns player data objects.

IPlayerData: New class that holds all player data for modification.
-Holds dialog, bank, quest, transport, faction, item giver, and mail data.
-Also holds companion data, with functions has/set/getCompanion, and a getCompanionID function to differentiate companions.
2022-06-12 01:26:23 -05:00
Luis C.M 9c29aabea8 Merged local and global NPC events, deleting old unused event classes. 2022-06-10 18:32:42 -05:00
Luis C.M 8f16e6b20f Added IDialogImage, a scripted object which is used by IDialog. Used to add dialog images.
IDialog:
-Added several new functions for dialogs' new visual attributes, as well as a way to add, get, create, remove, and clear dialog images.

Global NPC events:
-Added fields and variables from the old ScriptEvent events, in preparation to replace the old events with NpcEvent instances on local NPC scripts.
-Fixed issue where some event hooks would run on remote worlds.

Global NPC killed event:
-Added droppedItems and expDropped fields.

IWorld and NpcAPI:
-Now always uses a non-remove WorldServer object to create ScriptWorld objects and add them to the world cache.
2022-06-10 17:25:58 -05:00
Luis C.M b64ee1c93a Merge pull request #54 from 1whohears/dev
Some Extra Soul Stone Options
2022-06-09 02:35:22 -05:00
1whohears 4a70dfb4ce soulStoneInit field bugfix 2022-06-08 00:32:58 -05:00