Skip to content

[Behavioural difference] Move(Player)Object rotation #749

Closed

Description

@xunder-matth

The rotation parameters for Move(Player)Object functions are optional and are set to -1000.0 by default. In SA-MP server, any default value given is internally converted to the actual object rotation, and then the server sends the MoveObject RPC to the client with the correct rotation values. In open.mp server, the -1000.0 value is not changed to the real object rotation value, resulting in the client receiving an RPC with incorrect rotation parameters.

Activity

  1. added
    bug
    on Oct 21, 2023
  2. AmyrAhmady commented on Oct 22, 2023

    @AmyrAhmady
    Member

    I can't find it anywhere in samp server where it filters out rotation values and send real object rotation to client

  3. xunder-matth commented on Oct 22, 2023

    @xunder-matth
    ContributorAuthor

    Incoming RPC from open.mp server:

    wObjectID=31, x=283.862609, y=3017.552490, z=8.143922, target_X=286.371429, target_Y=3015.671386, target_Z=8.143922, speed=2.000000, target_rX=-1000.000000, target_rY=134.166275, target_rZ=-58.566345
    

    Incoming RPC from SA-MP server:

    wObjectID=31, x=283.862609, y=3017.552490, z=8.143922, target_X=286.371429, target_Y=3015.671386, target_Z=8.143922, speed=2.000000, target_rX=90.000000, target_rY=134.166275, target_rZ=-58.566345
    

    The original rotation of the object on the X-axis was 90.0 deg.

  4. AmyrAhmady commented on Oct 25, 2023

    @AmyrAhmady
    Member

    Fixed in next release and nightly

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions