Skip to content

Fix dual-wield hip-fire arm desync - #5368

Open
MohabCodeX wants to merge 2 commits into
multitheftauto:masterfrom
MohabCodeX:fix/dual-wield-hipfire-ik
Open

Fix dual-wield hip-fire arm desync#5368
MohabCodeX wants to merge 2 commits into
multitheftauto:masterfrom
MohabCodeX:fix/dual-wield-hipfire-ik

Conversation

@MohabCodeX

Copy link
Copy Markdown
Contributor

Fixes #779

When firing dual-wield weapons without aiming, remote players see the shooter's arms invert backwards. This happened because MTA treated local bone displacement vectors as world coordinates and overwrote them with zeroed vectors.

Changes:
Preserve local bone vectors during hip-fire so arms point forward naturally
Ignore zeroed akimbo target vectors on remote clients
Keep native GTA:SA aim decisions for NPCs when player data is missing

Test: https://streamable.com/57hx9l

Copilot AI lite review requested due to automatic review settings September 11, 2026 20:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

setPedControlState

2 participants