Facepunch / sbox-hc1

37 stars 5 forks source link

Corpses lerp on respawn #60

Closed Metapyziks closed 3 months ago

Metapyziks commented 4 months ago

We're already calling Transform.ClearInterpolation() in PlayerController.Teleport(), maybe that's not working as intended? I had similar issues in Mazing.

kurozael commented 4 months ago

Probably fixed - will need re-testing on new Steam build to be sure but logic is sound now.

DevulTj commented 4 months ago

this was still happening, but after running ClearInterpolation on SetRagdoll, fixed it - so something to do with the interpolation code

kurozael commented 4 months ago

Seems like it may not still be getting cleared across the network as SetRagdoll is called in Respawn IIRC. Problem might be related to fact that transform is set by owner but it should get cleared when other players receive that. Will run some tests.

DevulTj commented 3 months ago

No longer an issue because we delete players and recreate them