WIP: Add client-side prediction for knife hits#1905
Draft
Rainyan wants to merge 5 commits intoNeotokyoRebuild:masterfrom
Draft
WIP: Add client-side prediction for knife hits#1905Rainyan wants to merge 5 commits intoNeotokyoRebuild:masterfrom
Rainyan wants to merge 5 commits intoNeotokyoRebuild:masterfrom
Conversation
Add a new bot debug command for mirroring the mimic XY axes
Predict the knife hits client-side for a more responsive game feel at high latencty. Also changes the knife target angle from abs angles to eye angles, because the eye angles are networked to clients. Since the playermodel upper torso also twists according to the eye angle, it probably makes more sense to use that for the backstab logic.
1423b95 to
3130eac
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
WIP, not ready for review
Examples
300 ms roundtrip latency (
net fakelag 150;) without prediction (current state):knife-impacts-unpredicted.mp4
Same but with prediction (this PR):
knife-impacts-predicted.mp4
Note how the blood impact effect is not delayed in the latter, and renders from the correct position. The sound of the video embeds seems to be bugged, but it shouldn't be desynced in either case in reality.
Toolchain
Linked Issues