Booma.Proxy icon indicating copy to clipboard operation
Booma.Proxy copied to clipboard

Fix Rotations

Open HelloKitty opened this issue 6 years ago • 2 comments

Thanks to Schthack I finally know, but don't understand lol, what was wrong with rotation serialization! All off-by-one rotation errors are solvable now.

Should go through and fix existing packets with rotation. See: https://github.com/HelloKitty/Booma.Proxy/blob/faa5eff246bdc5e7eea2041234baa4e9e44cf88f/src/Booma.Proxy.Packets.BlockServer/Commands/Command60/Sub60PlayerAttackStepOneCommand.cs for information.

Or this code public void OnBeforeSerialization() { RawNetworkRotation = (short)(YAxisRotation * 182.04444f); }

/// public void OnAfterDeserialization() { YAxisRotation = (RawNetworkRotation & 0xffff) / 182.04444f; }

HelloKitty avatar Feb 08 '19 02:02 HelloKitty

Based on this issue: https://github.com/HelloKitty/Booma.Proxy/issues/11

HelloKitty avatar Feb 08 '19 02:02 HelloKitty

See: https://github.com/HelloKitty/Booma.Proxy/commit/faa5eff246bdc5e7eea2041234baa4e9e44cf88f

HelloKitty avatar Feb 08 '19 02:02 HelloKitty