opencj-dev / server-gsc

OpenCJ serverside GSC files
GNU Affero General Public License v3.0
3 stars 1 forks source link

Spawn function has several issues #143

Closed Yocairo closed 2 years ago

Yocairo commented 2 years ago

when crouched before spawn, it weirdly quickly toggles crouch and stand it does not recover stance sprinting animation stays for a few secs when holding W while sprinting and then loading

These issues might be tough to solve, if so we sadly have to go back to setorigin

Yocairo commented 2 years ago

Stance recovery is fixable, sprinting animation I'm still working on.

Yocairo commented 2 years ago

Sprinting animation was also fixable, but there is still a weird issue where the client doesn't render the weapon if you load at the right time while switching weapons. So all in all this solution is not worth it.

Zeez actually pointed me in a different direction. Instead of manipulating cmd time of client serverside to cancel the lerp, in fact on CoD4 you can use cg_errorDecay to make the setOrigin instantly as well. I didn't know it was a prediction error until now. I thought it was intentional server side lerping.

So, I will close this issue, and we can recommend clients to set cg_errorDecay to 0, or at least less than 100 (I sure will).