Skip to content

Animation Flag 1024 Desyncs Clients #3733

@Manason

Description

@Manason

What happened?

When the 1024 (OVERRIDE_PHYSICS) flag is used on anims, the game adds an animation offset to the ped.
When synced to other players, This offset is applied twice for other players, but only once for the player playing the animation.

This leaves the other player seeing the ped in the wrong spot visually, but can still recognize the player in the correct spot, since hitting the "correct" will hit the player, but hitting the visual ped will do nothing.

Image

Expected result

The offset should be replicated once, or ideally gotten rid of altogether

Reproduction steps

  1. Have two clients next to each other
  2. One clients executes the following command
broken_flag = 1024
RegisterCommand('aftest', function()
    TaskPlayAnim(PlayerPedId(),
    "timetable@reunited@ig_10",
    "base_amanda",
    5.0, 5.0, -1, broken_flag, 0, false, false, false)
end)
  1. Observe that the ped is shown in a different position between the two clients.

Importancy

Slight inconvenience

Area(s)

OneSync

Specific version(s)

FiveM 3570, Windows Server 22934

Additional information

Credit to Critter for the repro.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtriageNeeds a preliminary assessment to determine the urgency and required action

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions