Skip to content

Fix Rotations #21

Description

@HelloKitty

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;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions