mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-02 16:49:03 +00:00
[PR #658] Improve NPC size > 1 pathing #691
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/2006-Scape/2006Scape/pull/658
Author: @ipkpjersi
Created: 9/21/2024
Status: 🔄 Open
Base:
master← Head:npc-size-pathing📝 Commits (10+)
454ce9cAdded NPC combat pathing for size > 1 NPCs9825996Added back NPC spawnsa523c5aUse consistent check for distance49b7e80Revert "Use consistent check for distance"ac81428Fixed attacking NPCs from too far0295271Fix for last commitd2f48c2Revert "Fix for last commit"912f14aAdded comment61d6d26Reverted additional size in player npc followc1af2adFixed typo📊 Changes
7 files changed (+109 additions, -25 deletions)
View changed files
📝
2006Scape Server/data/cfg/spawns.json(+40 -0)📝
2006Scape Server/src/main/java/com/rs2/game/content/combat/CombatAssistant.java(+19 -8)📝
2006Scape Server/src/main/java/com/rs2/game/content/combat/npcs/NpcCombat.java(+3 -0)📝
2006Scape Server/src/main/java/com/rs2/game/npcs/NpcData.java(+28 -9)📝
2006Scape Server/src/main/java/com/rs2/game/npcs/NpcHandler.java(+11 -2)📝
2006Scape Server/src/main/java/com/rs2/game/players/PlayerAssistant.java(+3 -5)📝
2006Scape Server/src/main/java/com/rs2/net/packets/impl/ClickNPC.java(+5 -1)📄 Description
Wow, this was a ton of effort to clean up this PR but I think I did it properly. I tried many things, but ultimately I had to interactive rebase and just drop the commits I didn't want that were from other branches. My old PR I closed was 7 files changed and this new PR is 7 files changed, so it's extremely likely I did clean up this branch properly.
Anyway, onto this feature:
This is probably fine to merge. It doesn't fix all pathing bugs that currently exist (it doesn't fix player clipping when moving/attacking/clicking on objects etc), that would likely be a ton of work, but this does address not handling NPC size > 1 pathing, and it doesn't seem to introduce any new bugs.
With that said, I'll go ahead and mark this as draft for now so we can make sure it gets tested more first since I don't really consider it completely fully tested.Marked as ready, we can review it/merge it whenever.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.