Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[All Source games] Bullets are displaced by 1 tick #4829

Open
RicochetYT opened this issue Mar 6, 2023 · 0 comments
Open

[All Source games] Bullets are displaced by 1 tick #4829

RicochetYT opened this issue Mar 6, 2023 · 0 comments

Comments

@RicochetYT
Copy link

This discovery is not my own, however, I have not seen an issue opened on this repository related to it.
Bullets get displaced by 1 tick upon firing.
ValveSoftware/source-sdk-2013#442
I am surprised this bug is not talked about more, as it can cause hit registration issues for gamemodes like Mannpower, and custom community gamemodes such as Instagib, unless the fix above is used. This bug is honestly pretty annoying.

I have confirmed this is still an issue in TF2, and I'm 99% sure it's still an issue in all other Source games. The fix above (as a plugin) does fix it if you update the offsets it uses, however.

To quote the original issue:
"The game is computing the new interpolated localplayer's data from the prediction data (BaseInterpolate1 from C_BaseEntity) by getting the final predicted time (so the final predicted command) and removes a tick interval to actually take the previous final predicted time , for having data to interpolate with! , and adds a tick interval where it's mulitplied by interpolation_amount (this is computed per frames, and it goes to 0.0 to 1.0) to go on the final predicted time, wich finally goes to what you should see."

"You see the world and shoot as it was previously 1 tick before and not when it was when firing when you move."

https://www.youtube.com/watch?v=VPT0-CKODNc

https://www.youtube.com/watch?v=pr4EZ06mrpQ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants