Closed Bonyoze closed 1 month ago
Related or duplicate: https://github.com/Facepunch/garrysmod-issues/issues/3026
This is just prediction system rolling back the timer. If you want to get the "real" value, you use the aptly named https://wiki.facepunch.com/gmod/Global.UnPredictedCurTime
Details
CurTime()
will seemingly reset back to 0 at the first calls of clientsideSetupMove
,Move
andFinishMove
then jump back to its correct value at some point.Steps to reproduce
Tested on a local dedicated server with the code loaded from
lua/autorun
.Initial CurTime will be correct. First calls in SetupMove will be incorrect then suddenly correct: