Skip to content

retainPedState in setPedAnimation() does not work when latency reduction is set to 1 #1110

@Einheit-101

Description

@Einheit-101

Describe the bug
I was surprised when i saw this bug coming back, everyone claimed that retainPedState was working perfectly fine while it was not on my server. I searched for many hours and finally found the cause. Latency_reduction.

To reproduce

  1. Enable latency_reduction
  2. Crouch the player
  3. srun setPedAnimation(me, "grenade", "weapon_throwu", -1, false, true, false, false, 250, true)
  4. The player will be crouched after the animation, but his crouched state is reset. One slight movement and the player is standing again.

Expected behaviour
retainPedState should work when latency_reduction is set to 1

Multi Theft Auto v1.5.7-release-20288

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

    bugSomething isn't workingsync

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @qaisjp@Einheit-101

        Issue actions

          retainPedState in setPedAnimation() does not work when latency reduction is set to 1 · Issue #1110 · multitheftauto/mtasa-blue