Compiler distortion/skipping bones

I really don’t know what to say about this one, I’ve never seen this before. Any help would be appreciated.
Might I also add that that a few bones were actually moved, which is why the arms are sticking out…

.qc:


$modelname "RO2\SSGreatcoat.mdl"
$model "body" "greatcoat.smd"
$bodygroup head
{
	studio "head2.smd"
}
$bodygroup hands
{
	studio "hands.smd"
}
$bodygroup cloth
{
	studio "greatcoatcloth.smd"
}
$cdmaterials "models\RO2/Waffen SS/Heads"
$cdmaterials "models\RO2/Waffen SS/Heads2"
$cdmaterials "models\RO2/Waffen SS/Trenchcoat"
$cdmaterials "models\RO2/Waffen SS/Uniforms2"
$surfaceprop "flesh"
$sequence idle "ragdoll" fps 1.00
$sequence Stand "stand" fps 1.00
$collisionjoints "phymodel.smd" {
	$mass 90.0
	$inertia 10.00
	$damping 0.01
	$rotdamping 1.50
	$rootbone "player_root"

	$jointdamping "chr_spine2" 1.00
	$jointconstrain "chr_spine2" x limit -35.00 35.00 0.00
	$jointconstrain "chr_spine2" y limit -46.00 46.00 0.00
	$jointconstrain "chr_spine2" z limit -55.00 55.00 0.00

	$jointconstrain "chr_spine4" x limit -35.00 35.00 0.00
	$jointconstrain "chr_spine4" y limit -46.00 46.00 0.00
	$jointconstrain "chr_spine4" z limit -55.00 55.00 0.00

	$jointconstrain "chr_rarmcollar" x limit -30.00 30.00 0.00
	$jointconstrain "chr_rarmcollar" y limit -6.00 12.00 0.00
	$jointconstrain "chr_rarmcollar" z limit -30.00 30.00 0.00

	$jointmassbias "chr_rarmupper" 0.80
	$jointconstrain "chr_rarmupper" x limit -106.00 3.00 0.00
	$jointconstrain "chr_rarmupper" y limit -87.00 86.00 0.00
	$jointconstrain "chr_rarmupper" z limit -100.00 100.00 0.00

	$jointconstrain "chr_larmcollar" x limit -30.00 30.00 0.00
	$jointconstrain "chr_larmcollar" y limit -6.00 12.00 0.00
	$jointconstrain "chr_larmcollar" z limit -30.00 30.00 0.00

	$jointmassbias "chr_larmupper" 0.80
	$jointconstrain "chr_larmupper" x limit -106.00 3.00 0.00
	$jointconstrain "chr_larmupper" y limit -86.00 86.00 0.00
	$jointconstrain "chr_larmupper" z limit -100.00 100.00 0.00

	$jointmassbias "chr_larmforearm" 0.60
	$jointconstrain "chr_larmforearm" x limit -149.00 17.00 0.00
	$jointconstrain "chr_larmforearm" y limit -126.00 0.00 0.00
	$jointconstrain "chr_larmforearm" z limit -41.00 39.00 0.00

	$jointconstrain "valvebiped.bip01_l_hand" x limit -59.00 59.00 0.00
	$jointconstrain "valvebiped.bip01_l_hand" y limit -44.00 44.00 0.00
	$jointconstrain "valvebiped.bip01_l_hand" z limit -88.00 88.00 0.00

	$jointmassbias "chr_rarmforearm" 0.60
	$jointconstrain "chr_rarmforearm" x limit -149.00 17.00 0.00
	$jointconstrain "chr_rarmforearm" y limit -126.00 0.00 0.00
	$jointconstrain "chr_rarmforearm" z limit -41.00 39.00 0.00

	$jointconstrain "valvebiped.bip01_head1" x limit -30.00 64.00 0.00
	$jointconstrain "valvebiped.bip01_head1" y limit -30.00 30.00 0.00
	$jointconstrain "valvebiped.bip01_head1" z limit -93.00 93.00 0.00


	$jointmassbias "chr_rthigh" 1.30
	$jointconstrain "chr_rthigh" x limit -82.00 50.00 0.00
	$jointconstrain "chr_rthigh" y limit -70.00 70.00 4.00
	$jointconstrain "chr_rthigh" z limit -41.00 41.00 0.00

	$jointmassbias "chr_rcalf" 0.80
	$jointconstrain "chr_rcalf" x limit 0.00 118.00 0.00
	$jointconstrain "chr_rcalf" y limit -12.00 50.00 0.00
	$jointconstrain "chr_rcalf" z limit -41.00 41.00 0.00

	$jointmassbias "chr_rankle" 0.40
	$jointconstrain "chr_rankle" x limit -115.00 37.00 0.00
	$jointconstrain "chr_rankle" y limit -44.00 44.00 0.00
	$jointconstrain "chr_rankle" z limit -41.00 41.00 0.00

	$jointmassbias "chr_rtoe1" 0.20
	$jointdamping "chr_rtoe1" 1.75
	$jointconstrain "chr_rtoe1" x limit -26.00 26.00 0.00
	$jointconstrain "chr_rtoe1" y limit 0.00 0.00 0.00
	$jointconstrain "chr_rtoe1" z limit 0.00 0.00 0.00

	$jointmassbias "chr_lthigh" 1.30
	$jointconstrain "chr_lthigh" x limit -82.00 50.00 0.00
	$jointconstrain "chr_lthigh" y limit -70.00 70.00 0.00
	$jointconstrain "chr_lthigh" z limit -41.00 41.00 0.00

	$jointmassbias "chr_lcalf" 0.80
	$jointconstrain "chr_lcalf" x limit 0.00 117.00 0.00
	$jointconstrain "chr_lcalf" y limit -12.00 50.00 0.00
	$jointconstrain "chr_lcalf" z limit -41.00 41.00 0.00

	$jointmassbias "chr_lankle" 0.40
	$jointconstrain "chr_lankle" x limit -180.00 180.00 0.00
	$jointconstrain "chr_lankle" y limit -44.00 44.00 0.00
	$jointconstrain "chr_lankle" z limit -41.00 41.00 0.00

	$jointmassbias "chr_ltoe1" 0.20
	$jointconstrain "chr_ltoe1" x limit -26.00 26.00 0.00
	$jointconstrain "chr_ltoe1" y limit 0.00 0.00 0.00
	$jointconstrain "chr_ltoe1" z limit 0.00 0.00 0.00

	$jointconstrain "valvebiped.bip01_r_hand" x limit -59.00 59.00 0.00
	$jointconstrain "valvebiped.bip01_r_hand" y limit -44.00 44.00 0.00
	$jointconstrain "valvebiped.bip01_r_hand" z limit -88.00 88.00 0.00

}


Looks like the body is on a wrong skeleton.