View Single Post
Author Message
Xutax_Kamay
Member
Join Date: Feb 2016
Old 04-06-2019 , 12:26   [ANY] Hit Registration Fix Plugin (bullet displacement by 1 tick)
Reply With Quote #1

Hello there, so as fully explained here: https://github.com/ValveSoftware/sou...-2013/pull/442

And videos:

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

Another example:

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

This is a very simple fix to correct the direction of the bullets.
This bugs occurs on every source engine games, and maybe older.
In resume, there is a bug in all valve games where your shooting position is shifted by 1 tick,
due on how new positions are computed and interpolation is working
Ideally, this should be a lag compensation bug but not totally, it's mostly a problem on how RunCommand function works.

I don't know what's taking so much time to fix it for valve,
but I think it's important here to have a fix, specially for surf servers (it's even more important on lower tickrates)

Github repo:
https://github.com/XutaxKamay/firebulletsfix

Place dhooks.weapon_shootposition.txt into sourcemod/gamedata & firebulletsfix.smx into sourcemod/plugins

Contact me if any issues.

Supports now TF2, CS:S, CS:GO, L4D2, L4D, DODS, HL2MP, NuclearDawn it can be done and I will do into every source engine games.

You need dhooks extension in order to get it working.

EDIT:
Please get a look for dhooks here:
https://forums.alliedmods.net/showpo...&postcount=589
Attached Files
File Type: txt dhooks.weapon_shootposition.txt (1.0 KB, 2676 views)
File Type: smx firebulletsfix.smx (5.1 KB, 2361 views)
File Type: sp Get Plugin or Get Source (firebulletsfix.sp - 1807 views - 2.9 KB)

Last edited by Xutax_Kamay; 06-24-2021 at 03:54.
Xutax_Kamay is offline