I've coded in the gibbing already, now I'm just working on getting some basic models in so that it's functional. Pretty much what I've done is decompiled the metrocop model, cut off an arm, and then closed the gap that created, then exported it as an SMD named ragdoll_pose.smd (as per the instructions here: click click). I also opened the ragdoll.smd (the weird 15-20 block structural outline of the model) and cut off the same arm in that, then exported it as ragdoll.smd.
The tutorial I linked to mentions a ragdoll.qc, but I couldn't find one of those anywhere, so I just used the QC that was created when I decompiled the model (I edited the QC a bit to get rid of the bones that no longer exist)
My QC file for the body with the missing left arm is
- Code: Select all
$cd "C:\Users\Ian\temp\gibbing\combine\output\uncomp\bodies\la"
$modelname "missingleftarm.mdl"
$model "police" "ragdoll_pose.SMD"
$cdmaterials "models\Police\"
$hboxset "default"
$hbox 1 "ValveBiped.Bip01_Head1" -3.500 -7.710 -3.850 7.500 5.710 3.960
$hbox 5 "ValveBiped.Bip01_R_UpperArm" 0.000 -3.370 -2.370 12.390 3.410 3.800
$hbox 5 "ValveBiped.Bip01_R_Forearm" -0.990 -3.500 -2.370 9.330 3.100 3.270
$hbox 5 "ValveBiped.Bip01_R_Hand" -1.190 -1.860 -2.330 5.310 1.940 2.610
$hbox 6 "ValveBiped.Bip01_L_Thigh" 0.000 -6.000 -3.550 17.850 4.000 4.450
$hbox 6 "ValveBiped.Bip01_L_Calf" 0.000 -3.510 -3.280 15.640 3.490 2.720
$hbox 6 "ValveBiped.Bip01_L_Foot" -1.070 -2.000 -2.840 5.040 5.000 2.160
$hbox 6 "ValveBiped.Bip01_L_Toe0" -0.500 -3.000 -2.190 2.500 0.000 2.460
$hbox 7 "ValveBiped.Bip01_R_Thigh" 0.000 -6.000 -4.550 17.850 4.000 3.400
$hbox 7 "ValveBiped.Bip01_R_Calf" 0.000 -3.510 -2.820 15.640 3.490 3.180
$hbox 7 "ValveBiped.Bip01_R_Foot" -1.060 -2.010 -2.280 5.050 4.990 2.720
$hbox 7 "ValveBiped.Bip01_R_Toe0" -0.500 -3.000 -2.600 2.500 0.000 2.100
$hbox 3 "ValveBiped.Bip01_Pelvis" -7.500 -6.000 -6.000 7.500 6.000 6.000
$hbox 2 "ValveBiped.Bip01_Spine2" -6.500 -2.500 -7.000 10.500 7.500 7.000
$attachment "eyes" "ValveBiped.Bip01_Head1" 3.34 -5.28 -0.00 rotate 0.00 -80.10 -90.00
$attachment "Center" "ValveBiped.Bip01_Spine1" -6.20 2.09 0.00 rotate -0.00 96.62 90.00
$attachment "Chest" "ValveBiped.Bip01_Spine4" -2.70 3.88 -0.00 rotate -0.00 79.75 90.00
$attachment "RHand" "ValveBiped.Bip01_R_Hand" 3.00 0.00 0.00 rotate 0.00 -0.00 -0.00
$attachment "zipline" "ValveBiped.Bip01_Spine4" 2.00 -2.00 -0.00 rotate 0.00 -17.00 -0.00
$attachment "manhack" "ValveBiped.Bip01_Spine" 18.00 -6.00 3.00 rotate -25.00 50.00 0.00
$attachment "forward" "ValveBiped.forward" 0.00 0.00 0.00 rotate 0.00 0.00 -0.00
$attachment "anim_attachment_RH" "ValveBiped.Anim_Attachment_RH" -0.00 -0.00 -0.00 rotate -90.00 -90.00 0.00
$attachment "anim_attachment_head" "ValveBiped.Bip01_Head1" -0.00 0.00 0.00 rotate -90.00 -90.00 0.00
$includemodel "Police_animations.mdl"
$includemodel "Police_ss.mdl"
$surfaceprop "flesh"
$eyeposition -0.000 0.000 72.000
$illumposition -1.866 0.053 36.320
$sequence ragdoll "ragdoll" ACT_DIERAGDOLL 1 fps 30.00
$ikchain rhand ValveBiped.Bip01_R_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
It all compiles just fine and the game runs. When I get into the game and shoot off the left arm, the model freezes in the position shown in the pictures and in console I get the error: "Bad ragdoll for missingleftarm.mdl"
I'm not sure why the ragdoll isn't falling. It isn't solid either, I can walk right through it. Any ideas?
PICTURES:
1
2



