Skip to content

Fix #2210: Bone functions bringing back the removed head of a headless ped - #5389

Merged
FileEX merged 1 commit into
multitheftauto:masterfrom
iManGaaX:resolve/issue-2210
Sep 26, 2026
Merged

FileEX merged 1 commit into
multitheftauto:masterfrom
iManGaaX:resolve/issue-2210

Conversation

@iManGaaX

@iManGaaX iManGaaX commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The game hides a removed body part (setPedHeadless) by zero scaling its bone matrices in CPed::PreRenderAfterTest, so rebuilding the animation hierarchy (updateElementRpHAnim) brought the head back; re-apply that scaling after the rebuild

Closes #2210.

Before ->

2026-09-13.03-10-04.mp4

After ->

2026-09-13.03-13-35.mp4

Checklist

  • Your code should follow the coding guidelines.
  • Smaller pull requests are easier to review. If your pull request is beefy, your pull request should be reviewable commit-by-commit.

@FileEX FileEX added the bugfix Solution to a bug of any kind label Sep 23, 2026
@FileEX FileEX added this to the 1.7 (Current) milestone Sep 26, 2026
@FileEX
FileEX merged commit 7635fe6 into multitheftauto:master Sep 26, 2026
10 checks passed
@iManGaaX
iManGaaX deleted the resolve/issue-2210 branch September 26, 2026 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Solution to a bug of any kind

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New bone functions suspend ped headless state

2 participants