Skip to content

Implement attack handler#342

Open
ch-iv wants to merge 1 commit intoferrumc-rs:masterfrom
ch-iv:ch-iv/implement-attack-handler
Open

Implement attack handler#342
ch-iv wants to merge 1 commit intoferrumc-rs:masterfrom
ch-iv:ch-iv/implement-attack-handler

Conversation

@ch-iv
Copy link
Copy Markdown

@ch-iv ch-iv commented Mar 23, 2026

This PR enables attack events to be handled properly.

This pull request updates the decoding logic for the InteractEntity packet in the networking layer. It also adds a friction handler to make sure an entity slows down over time.

Note: I came up with velocity constants on my own. If you have a reference to an implementation in a more mature project, please let me know.

Screen.Recording.2026-03-23.at.12.58.40.PM.mov

@ch-iv
Copy link
Copy Markdown
Author

ch-iv commented Mar 23, 2026

I think the formatter is failing due to an inconsistency on main.

@ch-iv ch-iv force-pushed the ch-iv/implement-attack-handler branch from 6794c20 to c9ec7e9 Compare March 24, 2026 02:49
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.

1 participant