Skip to content

fix: improve Npc and Player facing to match RS2 behavior#82

Merged
Pazaz merged 2 commits intoLostCityRS:274from
mark-b5:facing-fix
Mar 13, 2026
Merged

fix: improve Npc and Player facing to match RS2 behavior#82
Pazaz merged 2 commits intoLostCityRS:274from
mark-b5:facing-fix

Conversation

@mark-b5
Copy link
Copy Markdown
Contributor

@mark-b5 mark-b5 commented Mar 12, 2026

Npc target-facing packets were often being sent a tick too early to the client. This PR both simplifies and corrects how target facing is handled for both Npcs and Players

Examples

Old Behavior 1

Replay.2026-03-12.17-15-35.mp4

Hans targets immediately

New Behavior 1

Replay.2026-03-12.17-12-00.mp4

Hans targets tick after player interacts (matches osrs)

Old Behavior 2

Replay.2026-03-12.17-17-20.mp4

Achieties faces player every time player faces door

New Behavior 2

Replay.2026-03-12.17-20-07.mp4

Achitities never faces player if further than 1 tile away (matches osrs)

Behavior should be better across the board for stuff like this. This should apply to all revisions

@mark-b5 mark-b5 marked this pull request as ready for review March 12, 2026 21:35
@Pazaz Pazaz merged commit 16ef70a into LostCityRS:274 Mar 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants