Facepunch / sbox-issues

180 stars 12 forks source link

Turning a male model to a female model on game start causes the hitboxes to be messed up #7509

Open Retroeer opened 6 days ago

Retroeer commented 6 days ago

Describe the bug

My character uses the female version of the human, I have test dummy enemies that dress themselves up as the host (because im lazy and dont want to see them naked) However, these enemies use the male model of the human, so on game start they'll change to the female model. This causes the hitboxes to get messed up, for some reason (idk) If I change these enemies to use the female model from the start, the hitbox issue is resolved. The issue is also resolved if I wait a bit with async and rebuild the hitbox

Image

To Reproduce

  1. Make a new skinned model renderer
  2. Give it the human male model (or vice versa if your customization is also a female)
  3. Give it a player dresser (the one from walker works)
  4. The human male should be turned into a human female, and if you toggle the awesome new Hitbox Debug, you should visibly see them messed up

Expected behavior

The hitboxes should be transferring correctly, without needing an async rebuild

Media/Files

No response

Additional context

No response