How to decompile character models without fucking up boneweights?

I am looking everywhere for this. I am trying to compile ninja_nub’s mw2 ghillie sniper for CSS but everytime I decompile and recompile, the boneweights mess up.

Is there a way to manually adjust them? Since I believe it’s always gonna happen.

I’d recommend using Crowbar, it typically keeps everything intact and the QC is written pretty cleanly.
If you’re already using it, I’d say contact the creator of the tool about the subject, you can post a thread on the Crowbar group page regarding the bug if it still happens to you.

Yeah, I am using Crowbar.

I compiled Woods from Ninja’s release as a test, same thing happens

http://puu.sh/fKALV/67451fb17d.jpg

Could you post the QC here with


 tags (the hashtag button in "Go Advanced" option on Facepunch)?

$modelname "player/ct_gsg9.mdl"
$model "woods" "woodspow_reference_complete.smd"
$poseparameter move_yaw -180.00 180.00
$poseparameter body_pitch -90.00 90.00
$poseparameter body_yaw -90.00 90.00
$cdmaterials "models
inja\blackops\"
$cdmaterials "models
inja\blackops\woods\"
$bbox -13 -13 0 13 13 72
$hboxset "cstrike"
$hbox 3 "ValveBiped.Bip01_Pelvis" -8.299  -7.727  -5.429  8.299  2.007  6.583
$hbox 6 "ValveBiped.Bip01_L_Thigh" 4.576  -5.377  -3.432  22.880  3.775  4.576
$hbox 6 "ValveBiped.Bip01_L_Calf" -0.291  -4.295  -3.432  20.883  3.151  3.432
$hbox 6 "ValveBiped.Bip01_L_Foot" -2.288  -1.144  -2.579  5.720  4.576  2.007
$hbox 6 "ValveBiped.Bip01_L_Toe0" -2.860  -2.808  -2.860  4.004  1.196  1.716
$hbox 7 "ValveBiped.Bip01_R_Thigh" 4.576  -5.377  -3.432  22.880  3.775  4.576
$hbox 7 "ValveBiped.Bip01_R_Calf" -0.291  -4.295  -3.432  20.883  3.151  3.432
$hbox 7 "ValveBiped.Bip01_R_Foot" -2.288  -1.144  -2.007  5.720  4.576  2.579
$hbox 7 "ValveBiped.Bip01_R_Toe0" -2.860  -2.808  -1.716  4.004  1.196  2.860
$hbox 3 "ValveBiped.Bip01_Spine1" -9.152  -1.258  -8.008  4.576  11.326  8.008
$hbox 2 "ValveBiped.Bip01_Spine2" -3.068  -3.432  -9.693  13.572  10.317  9.693
$hbox 1 "ValveBiped.Bip01_Neck1" -0.104  -4.576  -2.860  5.512  2.288  2.860
$hbox 1 "ValveBiped.Bip01_Head1" -0.416  -6.240  -3.640  9.360  4.441  3.016
$hbox 4 "ValveBiped.Bip01_L_UpperArm" -1.144  -2.579  -2.288  14.872  2.579  2.288
$hbox 4 "ValveBiped.Bip01_L_Forearm" -1.716  -2.402  -2.402  13.156  2.402  2.402
$hbox 4 "ValveBiped.Bip01_L_Hand" 0.291  -2.465  -1.716  6.583  1.550  2.860
$hbox 5 "ValveBiped.Bip01_R_UpperArm" -1.144  -2.579  -2.288  14.872  2.579  2.288
$hbox 5 "ValveBiped.Bip01_R_Forearm" -1.716  -2.402  -2.402  13.156  2.402  2.402
$hbox 5 "ValveBiped.Bip01_R_Hand" 0.291  -2.465  -2.860  6.583  1.550  1.716

$attachment "forward" "ValveBiped.forward" -0.00 0.00 -0.00 rotate 0.00 -0.00 -0.00
$attachment "grenade0" "ValveBiped.Bip01_Spine" 2.58 -2.80 0.70 rotate 12.55 95.12 91.72
$attachment "grenade1" "ValveBiped.Bip01_Spine" 2.11 -2.37 -2.11 rotate -16.25 96.94 91.80
$attachment "grenade2" "ValveBiped.Bip01_Spine" 1.14 0.05 -7.21 rotate -56.13 107.75 82.33
$attachment "grenade3" "ValveBiped.Bip01_Spine" 2.26 -2.72 -4.73 rotate -22.35 95.03 86.61
$attachment "primary" "ValveBiped.Bip01_Spine2" 10.17 -3.95 -7.70 rotate -11.95 169.95 -13.27
$attachment "eholster" "ValveBiped.Bip01_L_Thigh" 6.98 -0.65 5.47 rotate 6.89 -91.56 92.15
$attachment "lfoot" "ValveBiped.Bip01_L_Foot" 0.00 5.20 -0.00 rotate -0.00 0.00 -0.00
$attachment "rfoot" "ValveBiped.Bip01_R_Foot" -0.00 5.20 0.00 rotate 0.00 -0.00 0.00
$attachment "muzzle_flash" "ValveBiped.Bip01_L_Hand" -0.00 0.00 -0.00 rotate -0.00 -0.00 0.00
$includemodel "player/cs_player_shared.mdl"
$includemodel "player/ak_anims_t.mdl"
$surfaceprop "flesh"
$eyeposition 0.000 0.000 73.000
$illumposition -0.716 0.019 37.307
$sequence ragdoll "ragdoll" ACT_DIERAGDOLL 1 fps 30.00
$ikchain rhand ValveBiped.Bip01_R_Hand knee  0.707 0.707 0.000
$ikchain lhand ValveBiped.Bip01_L_Hand knee  0.707 0.707 0.000
$ikchain rfoot ValveBiped.Bip01_R_Foot knee  0.707 -0.707 0.000
$ikchain lfoot ValveBiped.Bip01_L_Foot knee  0.707 -0.707 0.000
$ikchain ikclip ValveBiped.weapon_bone_Clip knee  0.707 -0.707 0.000
$collisionjoints "phymodel.smd" 
{
	$mass 0
	$inertia 10
	$damping 0.01
	$rotdamping 1.5


	$jointconstrain "ValveBiped.Bip01_L_Thigh" x limit -40 40 0
	$jointconstrain "ValveBiped.Bip01_L_Thigh" y limit -55 90 0
	$jointconstrain "ValveBiped.Bip01_L_Thigh" z limit -110 120 0

	$jointconstrain "ValveBiped.Bip01_L_Calf" x limit -30 30 0
	$jointconstrain "ValveBiped.Bip01_L_Calf" y limit -12 12 0
	$jointconstrain "ValveBiped.Bip01_L_Calf" z limit -12 145 0

	$jointconstrain "ValveBiped.Bip01_R_Thigh" x limit -40 40 0
	$jointconstrain "ValveBiped.Bip01_R_Thigh" y limit -90 55 0
	$jointconstrain "ValveBiped.Bip01_R_Thigh" z limit -110 125 0

	$jointconstrain "ValveBiped.Bip01_R_Calf" x limit -30 30 0
	$jointconstrain "ValveBiped.Bip01_R_Calf" y limit -12 12 0
	$jointconstrain "ValveBiped.Bip01_R_Calf" z limit -12 145 0

	$jointconstrain "ValveBiped.Bip01_R_Foot" x limit -40 40 0
	$jointconstrain "ValveBiped.Bip01_R_Foot" y limit -40 40 0
	$jointconstrain "ValveBiped.Bip01_R_Foot" z limit -55 35 0

	$jointconstrain "ValveBiped.Bip01_Spine2" x limit -70 70 0
	$jointconstrain "ValveBiped.Bip01_Spine2" y limit -25 25 0
	$jointconstrain "ValveBiped.Bip01_Spine2" z limit -65 95 0

	$jointconstrain "ValveBiped.Bip01_L_Clavicle" x limit -28 19 0
	$jointconstrain "ValveBiped.Bip01_L_Clavicle" y limit -16 26 0
	$jointconstrain "ValveBiped.Bip01_L_Clavicle" z limit -10 46 0

	$jointconstrain "ValveBiped.Bip01_L_UpperArm" x limit -40 40 0
	$jointconstrain "ValveBiped.Bip01_L_UpperArm" y limit -115 150 0
	$jointconstrain "ValveBiped.Bip01_L_UpperArm" z limit -135 135 0

	$jointconstrain "ValveBiped.Bip01_L_Forearm" x limit -30 30 0
	$jointconstrain "ValveBiped.Bip01_L_Forearm" y limit -60 60 0
	$jointconstrain "ValveBiped.Bip01_L_Forearm" z limit -140 30 0

	$jointconstrain "ValveBiped.Bip01_R_Clavicle" x limit -28 19 0
	$jointconstrain "ValveBiped.Bip01_R_Clavicle" y limit -16 26 0
	$jointconstrain "ValveBiped.Bip01_R_Clavicle" z limit -10 46 0

	$jointconstrain "ValveBiped.Bip01_R_UpperArm" x limit -40 40 0
	$jointconstrain "ValveBiped.Bip01_R_UpperArm" y limit -150 115 0
	$jointconstrain "ValveBiped.Bip01_R_UpperArm" z limit -135 135 0

	$jointconstrain "ValveBiped.Bip01_R_Forearm" x limit -30 30 0
	$jointconstrain "ValveBiped.Bip01_R_Forearm" y limit -60 60 0
	$jointconstrain "ValveBiped.Bip01_R_Forearm" z limit -140 30 0

	$jointconstrain "ValveBiped.Bip01_R_Hand" x limit -60 60 0
	$jointconstrain "ValveBiped.Bip01_R_Hand" y limit -60 60 0
	$jointconstrain "ValveBiped.Bip01_R_Hand" z limit -70 70 0

	$jointconstrain "ValveBiped.Bip01_L_Hand" x limit -60 60 0
	$jointconstrain "ValveBiped.Bip01_L_Hand" y limit -60 60 0
	$jointconstrain "ValveBiped.Bip01_L_Hand" z limit -70 70 0

	$jointconstrain "ValveBiped.Bip01_Head1" x limit -70 70 0
	$jointconstrain "ValveBiped.Bip01_Head1" y limit -25 25 0
	$jointconstrain "ValveBiped.Bip01_Head1" z limit -65 40 0

	$jointconstrain "ValveBiped.Bip01_L_Foot" x limit -40 40 0
	$jointconstrain "ValveBiped.Bip01_L_Foot" y limit -40 40 0
	$jointconstrain "ValveBiped.Bip01_L_Foot" z limit -55 35 0
}$bonemerge "ValveBiped.Bip01_R_Hand"
$bonemerge "ValveBiped.Bip01_L_Hand"
$bonemerge "ValveBiped.weapon_bone"
$bonemerge "ValveBiped.weapon_bone_Clip"
$bonemerge "ValveBiped"
$bbox -13 -13 0 13 13 72


Never really experienced this problem personally, and your QC should be working.
I’m not sure that this will fix your problem, but you could try defining the bones so that they aren’t somehow disconnected from the meshes.


$definebone "ValveBiped.Bip01_Pelvis" "" 0.254867 0.328254 38.600311 1.570796 0 0 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_Spine" "ValveBiped.Bip01_Pelvis" 0.000005 3.345127 -2.981901 1.570796 0.086293 1.570796 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_Spine1" "ValveBiped.Bip01_Spine" 4.018322 0 0 0 0 -0.029242 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_Spine2" "ValveBiped.Bip01_Spine1" 3.518524 0 0 0 0 0.100336 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_Spine4" "ValveBiped.Bip01_Spine2" 8.942677 0 0 0 0 0.194096 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_Neck1" "ValveBiped.Bip01_Spine4" 3.307247 -0.00001 0 3.14159 0 0.400478 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_Head1" "ValveBiped.Bip01_Neck1" 3.593651 0.000011 0 0 -0.000001 0.406587 0 0 0 0 0 0
$definebone "ValveBiped.forward" "ValveBiped.Bip01_Head1" 1.999992 -2.999982 0 -1.570796 0 -1.32645 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Clavicle" "ValveBiped.Bip01_Spine4" 2.033291 1.000772 1.93766 1.601594 -1.34279 2.93784 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Clavicle" "ValveBiped.Bip01_Spine4" 2.033298 1.000772 -1.93761 -1.673429 1.342802 2.937834 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_UpperArm" "ValveBiped.Bip01_L_Clavicle" 6.028143 0.000011 0.000002 -1.501713 -0.128763 -0.491599 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Trapezius" "ValveBiped.Bip01_L_Clavicle" 5.166968 -0.000004 0 0 0 0 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_UpperArm" "ValveBiped.Bip01_R_Clavicle" 6.028142 0.000019 0.000004 1.838017 0.160781 -0.465663 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Shoulder" "ValveBiped.Bip01_R_UpperArm" 1.499989 -0.000004 0.000008 -0.286069 0 0 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Trapezius" "ValveBiped.Bip01_R_Clavicle" 5.166964 0.000004 -0.000001 0 0 0 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Shoulder" "ValveBiped.Bip01_L_UpperArm" 1.499989 0 0.000011 0 0 0 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Thigh" "ValveBiped.Bip01_Pelvis" -3.890452 0.000004 0.000007 -1.571607 0.000493 -1.629938 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Thigh" "ValveBiped.Bip01_Pelvis" 3.890452 -0.000004 -0.000003 -1.569477 0.00044 -1.51434 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Forearm" "ValveBiped.Bip01_R_UpperArm" 11.692539 -0.000011 -0.000023 0.09618 -0.20949 -0.691842 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Hand" "ValveBiped.Bip01_R_Forearm" 10.264033 -0.154696 -0.043159 -2.089532 -0.073941 0.074372 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger2" "ValveBiped.Bip01_R_Hand" 3.804597 -0.050606 -0.427298 0.0542 -0.026225 -0.121404 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger21" "ValveBiped.Bip01_R_Finger2" 1.912314 -0.000008 0.00001 0.030846 -0.006072 -0.844408 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger22" "ValveBiped.Bip01_R_Finger21" 1.334705 -0.000006 -0.000008 0.000003 -0.004482 -0.411814 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger1" "ValveBiped.Bip01_R_Hand" 3.781261 -0.149704 -1.319737 -0.201164 0.179106 -0.12148 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger11" "ValveBiped.Bip01_R_Finger1" 1.70156 -0.000008 0.000006 0.059525 -0.0574 -0.483688 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger12" "ValveBiped.Bip01_R_Finger11" 1.084991 0.000004 0.000002 -0.059991 -0.021075 -0.184436 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger0" "ValveBiped.Bip01_R_Hand" 0.883147 -0.967918 -0.929901 1.178699 0.855985 -0.472595 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger01" "ValveBiped.Bip01_R_Finger0" 2.096292 -0.000027 -0.000015 0.000033 0.004431 0.176643 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger02" "ValveBiped.Bip01_R_Finger01" 1.39238 0.000006 -0.000011 -0.000026 -0.009688 0.363844 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger4" "ValveBiped.Bip01_R_Hand" 3.188184 -0.40593 1.85836 0.251081 -0.009 -0.387401 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger41" "ValveBiped.Bip01_R_Finger4" 1.243336 -0.05545 0.11948 0.206111 0.101075 -0.890145 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger42" "ValveBiped.Bip01_R_Finger41" 0.715504 -0.105444 0.124423 -0.010284 -0.011044 -0.382106 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger3" "ValveBiped.Bip01_R_Hand" 3.772017 0.073654 0.766681 0.049552 -0.14805 -0.485066 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger31" "ValveBiped.Bip01_R_Finger3" 1.501934 -0.000507 -0.040447 -0.059913 0.017913 -0.428704 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger32" "ValveBiped.Bip01_R_Finger31" 1.162865 0.000248 -0.155189 0.000001 0.279562 -0.789712 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Ulna" "ValveBiped.Bip01_R_Forearm" 5.129333 -0.000013 -0.000023 0.000081 0 0 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Wrist" "ValveBiped.Bip01_R_Forearm" 10.258682 -0.000015 -0.000011 0.00015 0 0 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Elbow" "ValveBiped.Bip01_R_UpperArm" 11.692543 -0.00001 -0.000027 0 0 -0.0295 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Bicep" "ValveBiped.Bip01_R_UpperArm" 5.559984 -0.00001 -0.000031 -0.149016 0 0 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Forearm" "ValveBiped.Bip01_L_UpperArm" 11.692543 0.000003 0.000076 -0.205057 0.074332 -0.71659 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Hand" "ValveBiped.Bip01_L_Forearm" 10.180615 -0.001547 -0.000305 1.915874 -0.024184 -0.084571 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger2" "ValveBiped.Bip01_L_Hand" 4.028171 -0.046726 0.412456 -0.039783 0.195435 -0.403397 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger21" "ValveBiped.Bip01_L_Finger2" 1.849356 -0.000011 0.00001 -0.014488 0.021751 -0.598293 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger22" "ValveBiped.Bip01_L_Finger21" 1.287159 -0.000002 -0.000008 0.000001 0.003099 -0.393399 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger1" "ValveBiped.Bip01_L_Hand" 4.003447 -0.137856 1.273846 0.25776 -0.100045 -0.049283 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger11" "ValveBiped.Bip01_L_Finger1" 1.786742 -0.000004 -0.000007 -0.000001 0.004086 -0.655355 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger12" "ValveBiped.Bip01_L_Finger11" 1.130898 0.000004 0.00001 0.35784 -0.028832 -0.308046 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger0" "ValveBiped.Bip01_L_Hand" 0.836023 -0.348671 1.26313 -1.385972 -0.644976 -0.354481 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger01" "ValveBiped.Bip01_L_Finger0" 1.821026 0 0.000008 0.029392 -0.157223 -0.082474 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger02" "ValveBiped.Bip01_L_Finger01" 1.231008 -0.000004 -0.000004 0.000002 0.011266 0.363661 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger4" "ValveBiped.Bip01_L_Hand" 3.300282 -0.206699 -2.105332 -0.212785 0.170307 -0.707067 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger41" "ValveBiped.Bip01_L_Finger4" 1.094112 0.137661 0.022909 -0.134157 -0.000995 -1.130926 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger42" "ValveBiped.Bip01_L_Finger41" 0.50182 -0.148685 -0.002338 0.089062 -0.132597 -0.001427 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger3" "ValveBiped.Bip01_L_Hand" 3.754641 0.100945 -0.787848 -0.100667 0.343327 -0.542807 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger31" "ValveBiped.Bip01_L_Finger3" 1.520456 0.022293 -0.01335 0.128033 -0.033423 -0.549018 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger32" "ValveBiped.Bip01_L_Finger31" 0.969204 0.094421 0.146417 0.062251 -0.292716 -0.935494 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Ulna" "ValveBiped.Bip01_L_Forearm" 5.090313 -0.00001 0.000015 0.000688 0 0 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Wrist" "ValveBiped.Bip01_L_Forearm" 10.180625 -0.00001 0.000011 0.001272 0 0 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Elbow" "ValveBiped.Bip01_L_UpperArm" 11.692528 0.000004 0.000053 0 0 -0.0295 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Bicep" "ValveBiped.Bip01_L_UpperArm" 5.560001 0.000002 0.000027 0 0 0 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Calf" "ValveBiped.Bip01_R_Thigh" 17.848175 0.000003 0.000004 0 0 0.10206 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Foot" "ValveBiped.Bip01_R_Calf" 16.525303 0.000008 -0.000016 0.045362 0.028845 -1.105644 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Toe0" "ValveBiped.Bip01_R_Foot" 6.879457 0.000005 0.000002 -0.081333 -0.002951 -0.584373 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Calf" "ValveBiped.Bip01_L_Thigh" 17.848227 0 0.000001 0 0 0.102073 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Foot" "ValveBiped.Bip01_L_Calf" 16.525272 0.000001 -0.000001 -0.035005 -0.031621 -1.107102 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Toe0" "ValveBiped.Bip01_L_Foot" 6.879458 -0.000001 -0.000002 -0.007299 -0.002951 -0.584373 0 0 0 0 0 0

Just place this in your QC, preferably right under the last $hbox command.

Tried this and Crowbar slaps this error across my face

Which version of crowbar are you using? 0.19 or an older one? it might sound a bit silly but may be the reason why the .qc/even the entire decompile is messed

Hmmm, I assume you’re compiling this for Counter-Strike Source, so here’s the $definebones from the decompiled gsg9 model.


$definebone "ValveBiped.Bip01_Pelvis" "" 0 -0.554942 40.109589 1.570796 0 0 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Thigh" "ValveBiped.Bip01_Pelvis" 4.046065 0 0 -1.570425 0.051839 -1.56558 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Calf" "ValveBiped.Bip01_L_Thigh" 18.562101 0 0 0 0 0.0342 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Foot" "ValveBiped.Bip01_L_Calf" 17.186258 0 0 -0.023996 -0.041104 -1.071631 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Toe0" "ValveBiped.Bip01_L_Foot" 7.154628 0.000001 0.000001 -0.009979 -0.005353 -0.584358 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Thigh" "ValveBiped.Bip01_Pelvis" -4.046065 0 0 -1.57101 0.051839 -1.576015 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Calf" "ValveBiped.Bip01_R_Thigh" 18.562098 0 0 0 0 0.0342 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Foot" "ValveBiped.Bip01_R_Calf" 17.18626 0 0 0.04234 0.040968 -1.071635 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Toe0" "ValveBiped.Bip01_R_Foot" 7.15463 0 0 -0.084358 -0.004949 -0.584361 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_Spine" "ValveBiped.Bip01_Pelvis" 0 3.478936 -3.101174 1.570796 0.083193 1.570796 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_Spine1" "ValveBiped.Bip01_Spine" 4.155668 0 0 0 0 -0.028816 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_Spine2" "ValveBiped.Bip01_Spine1" 3.661116 0 0 0 0 0.097307 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_Spine4" "ValveBiped.Bip01_Spine2" 9.278336 0 0 0 0 0.186413 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_Neck1" "ValveBiped.Bip01_Spine4" 3.438607 0.000001 0 3.14159 0 0.406109 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_Head1" "ValveBiped.Bip01_Neck1" 3.74608 -0.000002 0 0 -0.000001 0.405033 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Clavicle" "ValveBiped.Bip01_Spine4" 2.141909 1.017039 2.015167 1.58974 -1.286515 2.950147 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_UpperArm" "ValveBiped.Bip01_L_Clavicle" 6.269268 -0.000001 0 -1.437168 0.051344 -0.58081 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Forearm" "ValveBiped.Bip01_L_UpperArm" 12.160257 0.000001 0.000002 0 0 -0.060372 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Hand" "ValveBiped.Bip01_L_Forearm" 11.940935 0.000001 -0.000033 1.568292 -0.038709 0.036022 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger2" "ValveBiped.Bip01_L_Hand" 4.036626 0.223283 0.416268 0.087707 0.031641 -0.519952 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger21" "ValveBiped.Bip01_L_Finger2" 1.788362 -0.000002 0 0 0.005005 -0.366486 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger22" "ValveBiped.Bip01_L_Finger21" 1.257545 0 0 0 0.002798 -0.216403 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger1" "ValveBiped.Bip01_L_Hand" 4.026138 0.122122 1.352939 0.352467 -0.032975 -0.463848 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger11" "ValveBiped.Bip01_L_Finger1" 1.788207 0.000001 0 0.000001 0.005107 -0.362997 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger12" "ValveBiped.Bip01_L_Finger11" 1.143649 -0.000001 -0.000001 0.000001 0.003256 -0.244323 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger0" "ValveBiped.Bip01_L_Hand" 0.872383 -0.312288 1.365285 -1.251009 -0.6698 -0.720133 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger01" "ValveBiped.Bip01_L_Finger0" 1.861376 -0.000001 0 0 -0.002159 0.22863 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger02" "ValveBiped.Bip01_L_Finger01" 1.255282 -0.000001 0 0 -0.0033 0.363014 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Clavicle" "ValveBiped.Bip01_Spine4" 2.141912 1.017039 -2.015167 -1.661569 1.286515 2.950147 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_UpperArm" "ValveBiped.Bip01_R_Clavicle" 6.269265 0.000006 0 1.520804 -0.011906 -0.583413 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Forearm" "ValveBiped.Bip01_R_UpperArm" 12.160257 0 0.000001 0 0 -0.060372 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Hand" "ValveBiped.Bip01_R_Forearm" 11.940964 0 0 -1.559993 0.038701 0.036022 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger2" "ValveBiped.Bip01_R_Hand" 4.036597 0.219821 -0.418107 -0.087717 -0.035763 -0.519702 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger21" "ValveBiped.Bip01_R_Finger2" 1.78836 0.000001 0 0 -0.007584 -0.366445 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger22" "ValveBiped.Bip01_R_Finger21" 1.257548 -0.000002 0 0 -0.004241 -0.216381 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger1" "ValveBiped.Bip01_R_Hand" 4.026108 0.110891 -1.353905 -0.352486 0.029262 -0.464072 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger11" "ValveBiped.Bip01_R_Finger1" 1.788206 -0.000003 -0.000001 0 -0.007737 -0.362954 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger12" "ValveBiped.Bip01_R_Finger11" 1.143649 -0.000002 -0.000001 0 -0.004929 -0.244296 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger0" "ValveBiped.Bip01_R_Hand" 0.872359 -0.323631 -1.362646 1.248034 0.66431 -0.725028 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger01" "ValveBiped.Bip01_R_Finger0" 1.861374 -0.000002 0.000003 0 0.003279 0.228617 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger02" "ValveBiped.Bip01_R_Finger01" 1.255282 0 -0.000001 0 0.00501 0.362995 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Wrist" "ValveBiped.Bip01_R_Forearm" 11.940964 0 0 0.00851 0 0 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Wrist" "ValveBiped.Bip01_L_Forearm" 11.940961 0 -0.000002 -0.001005 0 0 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Ulna" "ValveBiped.Bip01_L_Forearm" 5.97048 0 -0.000002 -0.000544 0 0 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Ulna" "ValveBiped.Bip01_R_Forearm" 5.970482 0 0.000001 0.0046 0 0 0 0 0 0 0 0
$definebone "ValveBiped.weapon_bone" "ValveBiped.Bip01_Spine" -43.648491 -1.081625 0.00003 0 -1.570796 -1.487604 0 0 0 0 0 0
$definebone "ValveBiped.weapon_bone_RHand" "ValveBiped.weapon_bone" -2 4 -2.354678 3.038658 0.018233 -2.311713 0 0 0 0 0 0
$definebone "ValveBiped.weapon_bone_LHand" "ValveBiped.weapon_bone_RHand" -3.606653 -3.344002 -2.883345 -3.015749 0.086838 -1.481231 0 0 0 0 0 0
$definebone "ValveBiped.weapon_bone_Clip" "ValveBiped.weapon_bone_LHand" 0 0 0 0 0 0 0 0 0 0 0 0

Unless you’re doing this for Counter-Strike: Global Offensive, in which case I can get you the default $define commands for the gsg9.

@AdrianTheShep using the latest Crowbar version. 0.24.0.0

@huntingrifle, it’s for CSS, I tried this but the only thing that was fixed was the weapon placement:

http://puu.sh/fL9hz/82f5c81f4d.jpg

Is this the model you’re decompiling? If it is, I can try decompiling it myself and work on it personally and the ntell you what could be wrong.

Ah yes, that’s the one, I am also doing the same with the ghillie suit sniper from his Spetsnaz pack. However they both share the exact same skeleton so it would help in both cases.

Give me a few minutes and I’ll get back to you on this topic.

[editline]10th February 2015[/editline]

Strangely, I get a considerably different QC than yours.


// Created by Crowbar 0.24.0.0

$modelname "ninja\woodspow.mdl"

$model "woods" "woodspow_reference.smd" {

	eyeball "eye_right" "ValveBiped.Bip01_Head1" -1.669000 -4.103001 66.425006 "eyeball_r" 1 4 "iris_unused" 0.58
	eyeball "eye_left" "ValveBiped.Bip01_Head1" 0.844000 -4.173000 66.452006 "eyeball_l" 1 -4 "iris_unused" 0.58

	flexfile "woodspow.vta" 
	{
		defaultflex frame 0
		flexpair "blink" 1 frame 1
		flexpair "eyelid_droop" 1 frame 2
		flexpair "eyelid_lower_up" 1 frame 3
		flexpair "eyelid_upper_up" 1 frame 4
		flexpair "eyebrow_up" 1 frame 5
		flexpair "eyebrow_outer_down" 1 frame 6
		flexpair "eyebrow_outer_up" 1 frame 7
		flexpair "cheek_up" 1 frame 8
		flexpair "eyebrow_down" 1 frame 9
		flexpair "smile" 1 frame 10
		flexpair "sad" 1 frame 11
		flexpair "mouth_open" 1 frame 12
		flexpair "sniff" 1 frame 13
	}

	flexcontroller phoneme range 0 1 blink_right
	flexcontroller phoneme range 0 1 blink_left
	flexcontroller phoneme range 0 1 eyelid_droop_right
	flexcontroller phoneme range 0 1 eyelid_droop_left
	flexcontroller phoneme range 0 1 eyelid_lower_up_right
	flexcontroller phoneme range 0 1 eyelid_lower_up_left
	flexcontroller phoneme range 0 1 eyelid_upper_up_right
	flexcontroller phoneme range 0 1 eyelid_upper_up_left
	flexcontroller phoneme range 0 1 eyebrow_up_right
	flexcontroller phoneme range 0 1 eyebrow_up_left
	flexcontroller phoneme range 0 1 eyebrow_down_right
	flexcontroller phoneme range 0 1 eyebrow_down_left
	flexcontroller phoneme range 0 1 eyebrow_outer_down_right
	flexcontroller phoneme range 0 1 eyebrow_outer_down_left
	flexcontroller phoneme range 0 1 eyebrow_outer_up_right
	flexcontroller phoneme range 0 1 eyebrow_outer_up_left
	flexcontroller phoneme range 0 1 smile_right
	flexcontroller phoneme range 0 1 smile_left
	flexcontroller phoneme range 0 1 sad_right
	flexcontroller phoneme range 0 1 sad_left
	flexcontroller phoneme range 0 1 sniff_right
	flexcontroller phoneme range 0 1 sniff_left
	flexcontroller phoneme range 0 1 cheek_up_right
	flexcontroller phoneme range 0 1 cheek_up_left
	flexcontroller phoneme range 0 1 mouth_open_right
	flexcontroller phoneme range 0 1 mouth_open_left
	flexcontroller eyes range -65 65 eyes_updown
	flexcontroller eyes range -65 65 eyes_rightleft

	%blinkL = blink_left
	%blinkR = blink_right
	%eyelid_droopL = eyelid_droop_left
	%eyelid_droopR = eyelid_droop_right
	%eyelid_lower_upL = eyelid_lower_up_left
	%eyelid_lower_upR = eyelid_lower_up_right
	%eyelid_upper_upL = eyelid_upper_up_left
	%eyelid_upper_upR = eyelid_upper_up_right
	%eyebrow_upL = eyebrow_up_left
	%eyebrow_upR = eyebrow_up_right
	%eyebrow_downL = eyebrow_down_left
	%eyebrow_downR = eyebrow_down_right
	%eyebrow_outer_downL = eyebrow_outer_down_left
	%eyebrow_outer_downR = eyebrow_outer_down_right
	%eyebrow_outer_upL = eyebrow_outer_up_left
	%eyebrow_outer_upR = eyebrow_outer_up_right
	%smileL = smile_left
	%smileR = smile_right
	%sadL = sad_left
	%sadR = sad_right
	%sniffL = sniff_left
	%sniffR = sniff_right
	%cheek_upL = cheek_up_left
	%cheek_upR = cheek_up_right
	%mouth_openL = mouth_open_left
	%mouth_openR = mouth_open_right
}

$bodygroup "gear"
{
	blank
	studio "woodspowgear.smd"
}
$bodygroup "hair"
{
	studio "woodspow_woodshair.smd"
}
$bodygroup "hair"
{
	studio "woodspow_woodshair1.smd"
}
$bodygroup "body"
{
	studio "woodspowbody.smd"
}
$bodygroup "arms"
{
	studio "woodspowarms.smd"
}


$mostlyopaque

$cdmaterials "models
inja\blackops\"
$cdmaterials "models
inja\blackops\woods\"

$texturegroup "skinfamilies"
{
	{
		"c_usa_marine_barnes_head_c.vmt"
	}
	{
		"c_usa_marine_barnes_head_c1.vmt"
	}
	{
		"c_usa_marine_barnes_head_c2.vmt"
	}
	{
		"c_usa_marine_barnes_head_c3.vmt"
	}
}

// This list shows the VMT files used in the SMD files.
// "eyeball_r.vmt"
// "eyeball_l.vmt"
// "c_gen_in.vmt"
// "c_usa_ma.vmt"
// "c_usa_marine_barnes_head_c.vmt"
// "c_usa_specops_barnes_body_c.vmt"
// "c_usa_specops_barnes_gear_c.vmt"
// "c_gen_arm_clean_c.vmt"
// "c_usa_jungmar_barnes_arms_left_c.vmt"
// "c_usa_jungmar_barnes_gear_c.vmt"
// "hair.vmt"
// "hair1.vmt"
// "c_usa_jungmar_barnes_pris_nb_body_c.vmt"
// "c_usa_jungle_marine_gear4_c.vmt"
// "c_usa_marine_barnes_head_c1.vmt"
// "c_usa_marine_barnes_head_c2.vmt"
// "c_usa_marine_barnes_head_c3.vmt"

$attachment "eyes" "ValveBiped.Bip01_Head1" 3.67 -4.32 0 rotate 0 -80.1 -90
$attachment "mouth" "ValveBiped.Bip01_Head1" 1 -6.5 0 rotate 0 -80 -90
$attachment "chest" "ValveBiped.Bip01_Spine2" 5 4 0 rotate 0 90 90
$attachment "forward" "ValveBiped.forward" 0 0 0 rotate 0 0 0
$attachment "anim_attachment_RH" "ValveBiped.Anim_Attachment_RH" 0 0 0 rotate -90 -90 0
$attachment "anim_attachment_LH" "ValveBiped.Anim_Attachment_LH" 0 0 0 rotate -90 -90 0
$attachment "anim_attachment_head" "ValveBiped.Bip01_Head1" 0 0 0 rotate -90 -90 0

$surfaceprop "flesh"

$contents "solid"

$eyeposition 0 0 70

// Only set this if you know what it does, and need it for special circumstances, such as with gibs.
$illumposition 0.654 0 36.127

$bbox -7.516 -21.718 -2.654 17.752 20.914 73.317

// $cbox is probably not used anymore
// $cbox 0 0 0 0 0 0

// $hboxset "default"
$hbox 1 "ValveBiped.Bip01_Head1" -1.25 -6.5 -3.19 8.25 3.5 3.31
$hbox 4 "ValveBiped.Bip01_L_UpperArm" 0 -2.75 -2.75 12.51 1.75 2.25
$hbox 4 "ValveBiped.Bip01_L_Forearm" 0 -2.19 -2.38 13 1.81 1.62
$hbox 4 "ValveBiped.Bip01_L_Hand" 0.06 -2 -1.5 4.06 1 2.5
$hbox 5 "ValveBiped.Bip01_R_UpperArm" 0 -3 -2.25 12.39 2 2.75
$hbox 5 "ValveBiped.Bip01_R_Forearm" -0.5 -2.2 -1.55 12.5 1.8 2.45
$hbox 5 "ValveBiped.Bip01_R_Hand" 0.06 -2 -2.5 4.06 1 1.5
$hbox 6 "ValveBiped.Bip01_L_Thigh" 0 -3.75 -3.25 17.85 3.75 3.25
$hbox 6 "ValveBiped.Bip01_L_Calf" 0 -3.51 -3.28 15.64 3.49 2.72
$hbox 6 "ValveBiped.Bip01_L_Foot" -1.07 -2 -2.84 5.04 5 2.16
$hbox 6 "ValveBiped.Bip01_L_Toe0" -0.5 -3 -2.19 2.5 0 2.46
$hbox 7 "ValveBiped.Bip01_R_Thigh" 0 -3.75 -3.25 17.85 3.75 3.25
$hbox 7 "ValveBiped.Bip01_R_Calf" 0 -3.51 -2.82 15.64 3.49 3.18
$hbox 7 "ValveBiped.Bip01_R_Foot" -1.06 -2.01 -2.28 5.05 4.99 2.72
$hbox 7 "ValveBiped.Bip01_R_Toe0" -0.5 -3 -2.6 2.5 0 2.1
$hbox 3 "ValveBiped.Bip01_Pelvis" -7.5 -5.5 -6 7.5 8.5 5
$hbox 2 "ValveBiped.Bip01_Spine2" -2.5 -2.5 -7 14.5 7.5 7
$skipboneinbbox

// NOTE: The following commented-out $definebone lines might be needed, as is often the case for view models. When needed, simply remove the two slashes '//' from the start of each line.
$definebone "ValveBiped.Bip01_Pelvis" "" 0 -0.533612 38.566914 1.570796 0 0 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_Spine" "ValveBiped.Bip01_Pelvis" 0 3.345131 -2.981898 1.570796 0.083193 1.570796 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_Spine1" "ValveBiped.Bip01_Spine" 3.995838 0 0 0 0 -0.028816 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_Spine2" "ValveBiped.Bip01_Spine1" 3.520298 -0.000006 0 0 0 0.097307 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_Spine4" "ValveBiped.Bip01_Spine2" 8.921471 0 0 0 0 0.186413 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_Neck1" "ValveBiped.Bip01_Spine4" 3.306427 0.000004 0 3.14159 0 0.406109 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_Head1" "ValveBiped.Bip01_Neck1" 3.602009 0 0 0 -0.000001 0.405033 0 0 0 0 0 0
$definebone "ValveBiped.forward" "ValveBiped.Bip01_Head1" 2.000034 -3.000011 0 -1.570796 0 -1.32645 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Clavicle" "ValveBiped.Bip01_Spine4" 2.059532 0.97793 -1.937661 -1.66157 1.286515 2.950146 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_UpperArm" "ValveBiped.Bip01_R_Clavicle" 6.028144 -0.000008 -0.000004 1.636731 0.302667 -0.566362 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Forearm" "ValveBiped.Bip01_R_UpperArm" 11.692547 -0.000005 0.000004 0 0 -0.699971 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Hand" "ValveBiped.Bip01_R_Forearm" 9.598707 -0.000021 0.000004 -1.559993 0.038701 0.036022 0 0 0 0 0 0
$definebone "ValveBiped.Anim_Attachment_RH" "ValveBiped.Bip01_R_Hand" 3.118672 -1.995663 0 -1.570796 0 -1.570795 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Clavicle" "ValveBiped.Bip01_Spine4" 2.059525 0.977935 1.937661 1.589741 -1.286512 2.950147 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_UpperArm" "ValveBiped.Bip01_L_Clavicle" 6.028149 0.000015 0 -1.573855 -0.358693 -0.584887 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Forearm" "ValveBiped.Bip01_L_UpperArm" 11.692575 0.000003 -0.000023 -0.001836 0.052856 -0.651758 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Hand" "ValveBiped.Bip01_L_Forearm" 10.25051 0.000006 -0.000053 1.568292 -0.038709 0.036022 0 0 0 0 0 0
$definebone "ValveBiped.Anim_Attachment_LH" "ValveBiped.Bip01_L_Hand" 3.063544 -1.960384 -0.000002 1.570797 0.000001 1.570797 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Thigh" "ValveBiped.Bip01_Pelvis" -3.890447 0 0 -1.573995 0.051724 -1.63777 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Calf" "ValveBiped.Bip01_R_Thigh" 17.848146 0 0 0 0 0.0342 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Foot" "ValveBiped.Bip01_R_Calf" 16.525244 0 -0.000003 0.03687 0.038157 -1.115696 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Thigh" "ValveBiped.Bip01_Pelvis" 3.890447 0 0 -1.568787 0.051789 -1.526776 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Calf" "ValveBiped.Bip01_L_Thigh" 17.848145 0 0 0 0 0.0342 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Foot" "ValveBiped.Bip01_L_Calf" 16.525253 0 0 -0.025636 -0.037306 -1.130012 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger0" "ValveBiped.Bip01_R_Hand" 0.977536 -0.362656 -1.526941 0.562195 0.262671 -0.991973 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger01" "ValveBiped.Bip01_R_Finger0" 2.0858 -0.000007 0.000004 0.000001 0.003279 0.228617 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger02" "ValveBiped.Bip01_R_Finger01" 1.40661 -0.000008 -0.000004 0 0.00501 0.362995 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger0" "ValveBiped.Bip01_L_Hand" 0.960292 -0.343758 1.502855 -1.012589 -0.304576 -0.928976 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger01" "ValveBiped.Bip01_L_Finger0" 2.048918 0.000017 0.000011 0.001029 -0.042011 0.182048 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger02" "ValveBiped.Bip01_L_Finger01" 1.381762 -0.000001 -0.000015 0 -0.0033 0.363014 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Toe0" "ValveBiped.Bip01_R_Foot" 6.87943 -0.000006 0.000001 -0.081334 -0.002949 -0.584373 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Toe0" "ValveBiped.Bip01_L_Foot" 6.879447 -0.00001 0 -0.007299 -0.002951 -0.584373 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger4" "ValveBiped.Bip01_R_Hand" 4.498004 -0.154541 1.390438 0.47914 -0.158545 -0.879041 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger41" "ValveBiped.Bip01_R_Finger4" 1.529682 -0.000006 -0.000013 0 -0.011932 -0.439672 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger42" "ValveBiped.Bip01_R_Finger41" 0.850002 -0.000012 -0.000004 -0.179445 -0.239268 -0.377736 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger3" "ValveBiped.Bip01_R_Hand" 4.594305 0.058636 0.502331 0.154999 -0.079305 -0.810205 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger31" "ValveBiped.Bip01_R_Finger3" 1.793709 -0.000038 0.000006 0 -0.005854 -0.247771 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger32" "ValveBiped.Bip01_R_Finger31" 1.394199 0 -0.000011 -0.232917 -0.065643 -0.749248 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger2" "ValveBiped.Bip01_R_Hand" 4.523274 0.246281 -0.468525 -0.086839 0.015349 -0.60566 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger21" "ValveBiped.Bip01_R_Finger2" 2.003973 0.000023 0.000006 0.043354 0.024216 -0.65736 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger22" "ValveBiped.Bip01_R_Finger21" 1.409168 -0.000034 0.000002 0 -0.004241 -0.21638 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger1" "ValveBiped.Bip01_R_Hand" 4.511535 0.12421 -1.517149 -0.349761 0.101552 -0.42257 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger11" "ValveBiped.Bip01_R_Finger1" 2.003783 0.000011 -0.000008 0.017708 0.100602 -0.44001 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Finger12" "ValveBiped.Bip01_R_Finger11" 1.281561 -0.000008 0.000011 -0.000001 -0.004929 -0.244295 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Wrist" "ValveBiped.Bip01_R_Forearm" 9.598735 -0.00001 -0.000011 0.00015 0 0 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Ulna" "ValveBiped.Bip01_R_Forearm" 4.799371 -0.00001 -0.000023 0.000081 0 0 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_R_Elbow" "ValveBiped.Bip01_R_UpperArm" 11.69253 -0.000003 0.000027 0 0 -0.0295 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger4" "ValveBiped.Bip01_L_Hand" 4.418548 -0.163044 -1.364561 -0.500014 0.404978 -1.024194 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger41" "ValveBiped.Bip01_L_Finger4" 1.502617 0.00001 0.000004 -0.038579 0.120634 -0.691186 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger42" "ValveBiped.Bip01_L_Finger41" 0.834984 0.00001 0.000001 0 0.004971 -0.244299 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger3" "ValveBiped.Bip01_L_Hand" 4.513143 0.053524 -0.493902 -0.118635 0.182858 -0.717627 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger31" "ValveBiped.Bip01_L_Finger3" 1.76195 0.00001 0.000002 -0.084906 0.07703 -0.742332 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger32" "ValveBiped.Bip01_L_Finger31" 1.369537 0.000013 -0.000004 0 0.007361 -0.430802 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger2" "ValveBiped.Bip01_L_Hand" 4.443348 0.245758 0.458216 0.087707 0.031641 -0.519952 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger21" "ValveBiped.Bip01_L_Finger2" 1.968521 0.000015 -0.000008 -0.086368 0.044545 -1.010905 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger22" "ValveBiped.Bip01_L_Finger21" 1.384251 0.000001 -0.000002 0 0.002798 -0.216404 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger1" "ValveBiped.Bip01_L_Hand" 4.431797 0.134399 1.489264 0.355351 -0.057545 -0.55369 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger11" "ValveBiped.Bip01_L_Finger1" 1.968353 -0.000004 -0.000006 -0.004452 -0.029448 -0.537401 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Finger12" "ValveBiped.Bip01_L_Finger11" 1.258892 -0.000002 -0.000003 0 0.003255 -0.244324 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Wrist" "ValveBiped.Bip01_L_Forearm" 10.25053 -0.000008 -0.000038 0.001272 0 0 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Ulna" "ValveBiped.Bip01_L_Forearm" 5.12526 0 -0.000034 0.000688 0 0 0 0 0 0 0 0
$definebone "ValveBiped.Bip01_L_Elbow" "ValveBiped.Bip01_L_UpperArm" 11.692583 0.000004 -0.000038 0 0 -0.0295 0 0 0 0 0 0




$sequence "ragdoll" "woodspow_anims\ragdoll.smd" {
	fps 30
	activity "ACT_DIERAGDOLL" 1
}

$includemodel "humans/male_shared.mdl"
$includemodel "humans/male_ss.mdl"
$includemodel "humans/male_gestures.mdl"
$includemodel "humans/male_postures.mdl"

$ikchain "rhand" "ValveBiped.Bip01_R_Hand" knee 0.707 0.707 0
$ikchain "lhand" "ValveBiped.Bip01_L_Hand" knee 0.707 0.707 0
$ikchain "rfoot" "ValveBiped.Bip01_R_Foot" knee 0.707 -0.707 0
$ikchain "lfoot" "ValveBiped.Bip01_L_Foot" knee 0.707 -0.707 0

$collisionjoints "woodspow_physics.smd"
{
	$mass 0
	$inertia 10
	$damping 0.01
	$rotdamping 1.5


	$jointconstrain "ValveBiped.Bip01_L_Thigh" x limit -40 40 0
	$jointconstrain "ValveBiped.Bip01_L_Thigh" y limit -55 90 0
	$jointconstrain "ValveBiped.Bip01_L_Thigh" z limit -110 120 0

	$jointconstrain "ValveBiped.Bip01_L_Calf" x limit -30 30 0
	$jointconstrain "ValveBiped.Bip01_L_Calf" y limit -12 12 0
	$jointconstrain "ValveBiped.Bip01_L_Calf" z limit -12 145 0

	$jointconstrain "ValveBiped.Bip01_R_Thigh" x limit -40 40 0
	$jointconstrain "ValveBiped.Bip01_R_Thigh" y limit -90 55 0
	$jointconstrain "ValveBiped.Bip01_R_Thigh" z limit -110 125 0

	$jointconstrain "ValveBiped.Bip01_R_Calf" x limit -30 30 0
	$jointconstrain "ValveBiped.Bip01_R_Calf" y limit -12 12 0
	$jointconstrain "ValveBiped.Bip01_R_Calf" z limit -12 145 0

	$jointconstrain "ValveBiped.Bip01_R_Foot" x limit -40 40 0
	$jointconstrain "ValveBiped.Bip01_R_Foot" y limit -40 40 0
	$jointconstrain "ValveBiped.Bip01_R_Foot" z limit -55 35 0

	$jointconstrain "ValveBiped.Bip01_Spine2" x limit -70 70 0
	$jointconstrain "ValveBiped.Bip01_Spine2" y limit -25 25 0
	$jointconstrain "ValveBiped.Bip01_Spine2" z limit -65 95 0

	$jointconstrain "ValveBiped.Bip01_L_Clavicle" x limit -28 19 0
	$jointconstrain "ValveBiped.Bip01_L_Clavicle" y limit -16 26 0
	$jointconstrain "ValveBiped.Bip01_L_Clavicle" z limit -10 46 0

	$jointconstrain "ValveBiped.Bip01_L_UpperArm" x limit -40 40 0
	$jointconstrain "ValveBiped.Bip01_L_UpperArm" y limit -115 150 0
	$jointconstrain "ValveBiped.Bip01_L_UpperArm" z limit -135 135 0

	$jointconstrain "ValveBiped.Bip01_L_Forearm" x limit -30 30 0
	$jointconstrain "ValveBiped.Bip01_L_Forearm" y limit -60 60 0
	$jointconstrain "ValveBiped.Bip01_L_Forearm" z limit -140 30 0

	$jointconstrain "ValveBiped.Bip01_R_Clavicle" x limit -28 19 0
	$jointconstrain "ValveBiped.Bip01_R_Clavicle" y limit -16 26 0
	$jointconstrain "ValveBiped.Bip01_R_Clavicle" z limit -10 46 0

	$jointconstrain "ValveBiped.Bip01_R_UpperArm" x limit -40 40 0
	$jointconstrain "ValveBiped.Bip01_R_UpperArm" y limit -150 115 0
	$jointconstrain "ValveBiped.Bip01_R_UpperArm" z limit -135 135 0

	$jointconstrain "ValveBiped.Bip01_R_Forearm" x limit -30 30 0
	$jointconstrain "ValveBiped.Bip01_R_Forearm" y limit -60 60 0
	$jointconstrain "ValveBiped.Bip01_R_Forearm" z limit -140 30 0

	$jointconstrain "ValveBiped.Bip01_R_Hand" x limit -60 60 0
	$jointconstrain "ValveBiped.Bip01_R_Hand" y limit -60 60 0
	$jointconstrain "ValveBiped.Bip01_R_Hand" z limit -70 70 0

	$jointconstrain "ValveBiped.Bip01_L_Hand" x limit -60 60 0
	$jointconstrain "ValveBiped.Bip01_L_Hand" y limit -60 60 0
	$jointconstrain "ValveBiped.Bip01_L_Hand" z limit -70 70 0

	$jointconstrain "ValveBiped.Bip01_Head1" x limit -70 70 0
	$jointconstrain "ValveBiped.Bip01_Head1" y limit -25 25 0
	$jointconstrain "ValveBiped.Bip01_Head1" z limit -65 40 0

	$jointconstrain "ValveBiped.Bip01_L_Foot" x limit -40 40 0
	$jointconstrain "ValveBiped.Bip01_L_Foot" y limit -40 40 0
	$jointconstrain "ValveBiped.Bip01_L_Foot" z limit -55 35 0
}

$collisiontext
{
	animatedfriction 
	{
		"animfrictionmin" "1.000000"
		"animfrictionmax" "400.000000"
		"animfrictiontimein" "0.500000"
		"animfrictiontimeout" "0.000000"
		"animfrictiontimehold" "0.300000"
	}
	editparams 
	{
		"rootname" "valvebiped.bip01_pelvis"
		"totalmass" "90.000000"
		"jointmerge" "ValveBiped.Bip01_Pelvis,ValveBiped.Bip01_Spine1"
	}
}



Things I noticed that there were no $bonemerge in my QC while yours did have it, and that your reference SMD was called “woodspow_reference_complete.smd”, but in mine it’s just called “woodspow_reference.smd”.

Try this QC and just change the $modelname to what you need.

I forgot to add. I edited the .qc (like the one you posted) to be compatible with CSS. I still have the original .qc as a backup.

What exactly did you edit in the QC, as well as the reference.smd? I’m guessing the latter is what is causing you problems.

Added the weapon bones.

I think I know what may have happened.
My explanation is for 3DS Max 2012, so it won’t be the same if you’re using another program.
When you simply change or add bones to a model, you’ll unfortunately need to re-do (in a sense) the entire skeleton. You would need to copy the “Skin” modifier, delete it, add the new bones/edit the bone positions, then paste the “skin” modifier you copied earlier.

3DS Max messes up the meshes/UV when you mess with the bones when it has a “skin” modifier, so long story short, that should be the issue you were having.

Well I am using Milkshape. I decided to test the unaltered, clean backup .smd without any added bones. It still has boneweight issues. I am pinning this on the decompiling itself. Maybe it has something to do with IDST?

Ah, that would explain it. I saw on the Crowbar bugs section that someone was using Milkshape to work with models as well, and what it came down was that the SMD importer for Milkshape messes up boneweights, as it was made to work with Half-Life 1 engine models. Unfortunately, there isn’t anything we can do for you except if someone out there is willing to do these for you. I’d suggest using another program over Milkshape; it’s not bad, just isn’t up to par with a lot of modeling programs nowadays, as you can see.

I also have 3dsmax 2013, but the issue is that the models import flatshaded.