Facepunch / garrysmod-requests

Feature requests for Garry's Mod
83 stars 24 forks source link

Make lag compensation works on parent entities. #2320

Open Headshotz opened 3 months ago

Headshotz commented 3 months ago

I found the lag compensation doesnt work on parented entities in gmod, so the reason that gmod uses Set/GetLocalOrigin instead of Set/GetAbsOrigin. I made new c++ module that replace them and seem works.

See this the result between GetLocalOrigin vs GetAbsOrigin on post lag compensation position.

image

csgo source code thats seem uses Set/GetAbs (Origin and Angles).

Also, don't forget remove the parents check in Entity:SetLagCompensated function after change to use Get/SetAbs*.