-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
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;
}
Metadata
Metadata
Assignees
Labels
No labels