• I converted a player model, however it has no ragdoll, what am I missing?
    7 replies, posted
Here's a sample - [IMG]http://cloud-3.steampowered.com/ugc/3332966560970431505/B42BAA1E1A709B83080944F5F51788ED9C29878F/[/IMG] This is the .qc file - [CODE]$cd "C:\Users\Jacob\Desktop" $modelname "player\techknow\bugs_v2\bugs.mdl" $model "body" "bugs2.smd" $poseparameter move_yaw -180.00 180.00 $poseparameter body_pitch -90.00 90.00 $poseparameter body_yaw -90.00 90.00 $cdmaterials "models\player\techknow\bugs_v2\" $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" 4.08 3.90 8.66 rotate 82.85 25.20 20.51 $attachment "grenade1" "ValveBiped.Bip01_Spine" 3.81 1.45 8.92 rotate 72.71 80.54 78.54 $attachment "grenade2" "ValveBiped.Bip01_Spine" -2.13 4.42 -8.82 rotate -77.40 -55.53 -117.32 $attachment "grenade3" "ValveBiped.Bip01_Spine" 3.84 6.03 8.24 rotate 62.51 -75.79 -79.34 $attachment "pistol" "ValveBiped.Bip01_R_Thigh" -0.93 3.33 -5.94 rotate 0.94 -1.57 80.10 $attachment "primary" "ValveBiped.Bip01_Spine2" 13.03 -3.98 -7.48 rotate -17.39 177.19 -4.18 $attachment "eholster" "ValveBiped.Bip01_L_Thigh" 5.15 -0.56 5.20 rotate 3.68 -91.56 99.67 $attachment "defusekit" "ValveBiped.Bip01_Pelvis" 2.21 -0.19 -5.09 rotate -70.24 138.62 133.79 $attachment "c4" "ValveBiped.Bip01_Spine2" 13.67 -7.55 0.95 rotate -29.12 65.25 22.32 $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 "m_anm.mdl" $includemodel "m_gst.mdl" $includemodel "m_pst.mdl" $includemodel "m_shd.mdl" $includemodel "m_ss.mdl" $surfaceprop "flesh" $eyeposition -0.000 -0.000 73.000 $illumposition -0.019 0.660 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[/CODE] It compiles just fine and ragdoll.smd, the qc and bugs2.smd are all located on my desktop. Using Cannonfodder's StudioCompiler. Anyone able to see where I messed up?
Basically, you are missing the whole physics model part. [code] $collisionjoints "ragdoll.smd" { // spine is physics root, but not animation root $rootbone "valvebiped.bip01_pelvis" // Mass in kilograms (alyx is about 130 pounds) $mass 60.0 $inertia 5.00 $damping 0.01 $rotdamping 1.50 $rootbone "valvebiped.bip01_pelvis" $jointmerge "valvebiped.bip01_pelvis" "valvebiped.bip01" $jointmerge "valvebiped.bip01_pelvis" "valvebiped.bip01_spine1" $jointconstrain "valvebiped.bip01_spine2" x limit -48.00 48.00 1.00 $jointconstrain "valvebiped.bip01_spine2" y limit -26.00 26.00 1.00 $jointconstrain "valvebiped.bip01_spine2" z limit -39.00 68.00 1.00 $jointconstrain "valvebiped.bip01_r_upperarm" x limit -64.00 64.00 1.00 $jointconstrain "valvebiped.bip01_r_upperarm" y limit -26.00 122.00 1.00 $jointconstrain "valvebiped.bip01_r_upperarm" z limit -122.00 50.00 1.00 $jointconstrain "valvebiped.bip01_l_upperarm" x limit -64.00 64.00 1.00 $jointconstrain "valvebiped.bip01_l_upperarm" y limit -122.00 28.00 1.00 $jointconstrain "valvebiped.bip01_l_upperarm" z limit -100.00 59.00 1.00 $jointconstrain "valvebiped.bip01_l_forearm" x limit 0.00 0.00 1.00 $jointconstrain "valvebiped.bip01_l_forearm" y limit 0.00 0.00 0.00 $jointconstrain "valvebiped.bip01_l_forearm" z limit -140.00 0.00 1.00 $jointconstrain "valvebiped.bip01_l_hand" x limit -68.00 68.00 1.00 $jointconstrain "valvebiped.bip01_l_hand" y limit -37.00 41.00 1.00 $jointconstrain "valvebiped.bip01_l_hand" z limit -44.00 70.00 1.00 $jointconstrain "valvebiped.bip01_r_forearm" x limit 0.00 0.00 0.00 $jointconstrain "valvebiped.bip01_r_forearm" y limit 0.00 0.00 0.00 $jointconstrain "valvebiped.bip01_r_forearm" z limit -149.00 1.00 1.00 $jointconstrain "valvebiped.bip01_r_hand" x limit -75.00 93.00 1.00 $jointconstrain "valvebiped.bip01_r_hand" y limit -37.00 32.00 1.00 $jointconstrain "valvebiped.bip01_r_hand" z limit -48.00 66.00 1.00 $jointconstrain "valvebiped.bip01_r_thigh" x limit -50.00 48.00 1.00 $jointconstrain "valvebiped.bip01_r_thigh" y limit -19.00 70.00 1.00 $jointconstrain "valvebiped.bip01_r_thigh" z limit -79.00 73.00 1.00 $jointconstrain "valvebiped.bip01_r_calf" x limit 0.00 0.00 0.00 $jointconstrain "valvebiped.bip01_r_calf" y limit 0.00 0.00 0.00 $jointconstrain "valvebiped.bip01_r_calf" z limit 0.00 133.00 1.00 $jointconstrain "valvebiped.bip01_head1" x limit -61.00 61.00 1.00 $jointconstrain "valvebiped.bip01_head1" y limit -44.00 44.00 1.00 $jointconstrain "valvebiped.bip01_head1" z limit -32.00 50.00 1.00 $jointconstrain "valvebiped.bip01_l_thigh" x limit -39.00 39.00 1.00 $jointconstrain "valvebiped.bip01_l_thigh" y limit -59.00 23.00 1.00 $jointconstrain "valvebiped.bip01_l_thigh" z limit -84.00 66.00 1.00 $jointconstrain "valvebiped.bip01_l_calf" x limit 0.00 0.00 0.00 $jointconstrain "valvebiped.bip01_l_calf" y limit 0.00 0.00 0.00 $jointconstrain "valvebiped.bip01_l_calf" z limit 0.00 131.00 1.00 $jointconstrain "valvebiped.bip01_l_foot" x limit -23.00 23.00 1.00 $jointconstrain "valvebiped.bip01_l_foot" y limit -28.00 28.00 1.00 $jointconstrain "valvebiped.bip01_l_foot" z limit -46.00 46.00 1.00 $jointconstrain "valvebiped.bip01_r_foot" x limit -23.00 23.00 1.00 $jointconstrain "valvebiped.bip01_r_foot" y limit -23.00 23.00 1.00 $jointconstrain "valvebiped.bip01_r_foot" z limit -35.00 57.00 1.00 } [/code]
I pasted your code at the bottom to test, still no different, then right before [CODE]$sequence ragdoll "ragdoll" ACT_DIERAGDOLL 1 fps 30.00[/CODE] still no progress.
You need actual physics model with these bones for it to work. Wiki has examples.
Isn't the ragdoll.smd my physics model though?
I don't know, is it?
If you decompiled the model to convert it, you need to re-rig the skeleton. [url]http://facepunch.com/forumdisplay.php?f=40[/url]
[QUOTE=Acecool;44113439]If you decompiled the model to convert it, you need to re-rig the skeleton. [url]http://facepunch.com/forumdisplay.php?f=40[/url][/QUOTE] It has a skeleton, as you can see by the reflection of his character. He just doesn't have the collision models set up for it. You're in the wrong board for this. You need to bring your problem to [url]http://facepunch.com/forumdisplay.php?f=40[/url]
Sorry, you need to Log In to post a reply to this thread.