View Single Post
Xutax_Kamay
Member
Join Date: Feb 2016
Old 10-27-2019 , 14:05   Re: [ANY] Hit Registration Fix Plugin (bullet displacement by 1 tick)
Reply With Quote #65

Quote:
Originally Posted by MAMAC View Post
Ya plugin mess even more my server... so or i have a problem on server or plugin have a problem.
Can you elaborate more?

What game?

A video would be cool to see.

Quote:
Originally Posted by 1337norway View Post
After reviewing the source code I think you may have messed up the logic.

https://github.com/XutaxKamay/firebu...letsfix.sp#L84

You are obtaining the position from the most recent user command processed on the server. This will be the real time position the player currently is at. When using lag compensation all the targets along with the attacker should be re-winded back in time to the positions they were when the shoot command was issued. The usercmd packet includes a field "tick_count" which is the data used to sync the client-server for prediction.

The position you really want to teleport the player to would be the position the player was at in the issued tick_count usercmd + 1. (If the firebullets pos is really using old player pos) I might be missing something though so correct me if i'm wrong.

We discussed about it on steam I guess it's not anymore needed to talk about it here o:

Last edited by Xutax_Kamay; 10-27-2019 at 16:12.
Xutax_Kamay is offline