Decompilation issue

This is what happens when I decompile a CS:S viewmodel. The reference smd is OK, but the sequences are messed up most of the time with some bones rotated 90 degrees. Any suggestions on how to fix it? I’ve tried the old mdldecompiler, Erix920’s decompiler, etc.

Most of the time a certain bone (with other bones parented to it) is rotated around the offset 90 degrees.

The animations themselves are fine, but the one parent bone is rotated incorrectly.

in the mdldecompiler options check “Do not fix rotations on animations”

Or simply rotate the bone 90 degrees back

Thank you so much.