Ragdoll deformation

Ba'al

Newbie
Joined
Feb 11, 2011
Messages
3
Reaction score
0
Hey guys, I've done some remodeling of CSP 1.05 leet model, I was "fixing" it so to speak. It is much better than the original, but I have a problem. The model deforms (at the waist) when the player dies, so now I'm asking you guys to help me.

This is how the model looks when deformed.

http://img64.imageshack.us/i/cspdust20001i.jpg/

And here's my qc file

Code:
$cd "C:\Users\Ba'al\Desktop\CSP\leet"
$modelname "player\t_leet.mdl"
$model "t_leet" "t_leet_reference.smd"
$poseparameter body_pitch -45.00 45.00
$poseparameter body_yaw -45.00 45.00
$poseparameter body_height 28.00 58.00
$cdmaterials "models\"
$cdmaterials "*\"
$bonemerge ValveBiped
$bonemerge ValveBiped.Bip01_R_Hand
$bonemerge ValveBiped.Bip01_L_Hand
$bonemerge ValveBiped.weapon_bone
$bonemerge ValveBiped.weapon_bone_Clip
$hboxset "cspromod"
$hbox 3 "ValveBiped.Bip01_Pelvis" -6.750  0.000  -5.000  6.750  4.000  5.000
$hbox 6 "ValveBiped.Bip01_L_Thigh" 0.000  -4.000  -3.500  14.000  4.000  3.500
$hbox 6 "ValveBiped.Bip01_L_Calf" -0.050  -3.500  -4.200  15.450  3.500  2.800
$hbox 6 "ValveBiped.Bip01_L_Foot" -0.500  -2.500  -2.100  8.500  2.500  2.100
$hbox 7 "ValveBiped.Bip01_R_Thigh" 0.000  -4.000  -3.500  14.000  4.000  3.500
$hbox 7 "ValveBiped.Bip01_R_Calf" -0.050  -3.500  -4.200  15.450  3.500  2.800
$hbox 7 "ValveBiped.Bip01_R_Foot" -0.500  -2.500  -2.100  8.500  2.500  2.100
$hbox 3 "ValveBiped.Bip01_Spine1" -3.000  -3.000  -6.000  7.000  7.000  6.000
$hbox 2 "ValveBiped.Bip01_Spine4" -2.500  -3.000  -7.000  5.500  7.000  7.000
$hbox 1 "ValveBiped.Bip01_Neck1" 2.000  -2.500  -2.000  5.000  2.500  2.000
$hbox 1 "ValveBiped.Bip01_Head1" 0.000  -4.000  -3.000  10.000  4.000  3.000
$hbox 4 "ValveBiped.Bip01_L_UpperArm" -1.500  -2.500  -2.000  9.500  2.500  2.000
$hbox 4 "ValveBiped.Bip01_L_Forearm" 0.500  -1.500  -2.000  9.500  2.500  2.000
$hbox 4 "ValveBiped.Bip01_L_Hand" 1.000  -1.500  -2.250  7.000  1.500  2.250
$hbox 5 "ValveBiped.Bip01_R_UpperArm" -1.500  -2.500  -2.000  9.500  2.500  2.000
$hbox 5 "ValveBiped.Bip01_R_Forearm" 0.500  -1.500  -2.000  9.500  2.500  2.000
$hbox 5 "ValveBiped.Bip01_R_Hand" 1.000  -1.500  -2.250  7.000  1.500  2.250
$heirarchy "Valvebiped.bip01_Spine" "valvebiped.Bip01_Pelvis"
$root "valvebiped.Bip01_Pelvis"
// Model uses material "t_leet.vmt"
$includemodel "player/csp_player_shared.mdl"
$surfaceprop "flesh"
$illumposition 1.435 -0.012 33.263
$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
$collisionjoints "phymodel.smd" {
    
	$mass 94.0
	$inertia 10.00
	$damping 0.00
	$rotdamping 4.00
	$rootbone "valvebiped.bip01_pelvis"
	$jointrotdamping "valvebiped.bip01" 0.00

	$jointrotdamping "valvebiped.bip01_spine1" 18.00
	$jointconstrain "valvebiped.bip01_spine1" x limit -20.00 20.00 0.00
	$jointconstrain "valvebiped.bip01_spine1" y limit -10.00 10.00 0.00
	$jointconstrain "valvebiped.bip01_spine1" z limit -15.00 30.00 0.00

	$jointmassbias "valvebiped.bip01_spine2" 1.60
	$jointrotdamping "valvebiped.bip01_spine2" 12.00
	$jointconstrain "valvebiped.bip01_spine2" x limit -30.00 30.00 0.00
	$jointconstrain "valvebiped.bip01_spine2" y limit -16.00 16.00 0.00
	$jointconstrain "valvebiped.bip01_spine2" z limit -20.00 15.00 0.00

	$jointmassbias "valvebiped.bip01_r_clavicle" 0.60
	$jointrotdamping "valvebiped.bip01_r_clavicle" 12.50
	$jointconstrain "valvebiped.bip01_r_clavicle" x limit 0.00 0.00 0.00
	$jointconstrain "valvebiped.bip01_r_clavicle" y limit -16.00 16.00 0.00
	$jointconstrain "valvebiped.bip01_r_clavicle" z limit 0.00 20.00 0.00

	$jointmassbias "valvebiped.bip01_l_clavicle" 0.60
	$jointrotdamping "valvebiped.bip01_l_clavicle" 12.50
	$jointconstrain "valvebiped.bip01_l_clavicle" x limit 0.00 0.00 0.00
	$jointconstrain "valvebiped.bip01_l_clavicle" y limit -16.00 16.00 0.00
	$jointconstrain "valvebiped.bip01_l_clavicle" z limit 0.00 20.00 0.00

	$jointmassbias "valvebiped.bip01_l_upperarm" 0.80
	$jointrotdamping "valvebiped.bip01_l_upperarm" 16.00
	$jointconstrain "valvebiped.bip01_l_upperarm" x limit -40.00 50.00 0.00
	$jointconstrain "valvebiped.bip01_l_upperarm" y limit -55.00 32.00 0.00
	$jointconstrain "valvebiped.bip01_l_upperarm" z limit -80.00 25.00 0.00

	$jointmassbias "valvebiped.bip01_l_forearm" 1.80
	$jointconstrain "valvebiped.bip01_l_forearm" x limit 0.00 0.00 0.00
	$jointconstrain "valvebiped.bip01_l_forearm" y limit 0.00 0.00 0.00
	$jointconstrain "valvebiped.bip01_l_forearm" z limit -120.00 -6.00 0.00

	$jointmassbias "valvebiped.bip01_l_hand" 0.60
	$jointrotdamping "valvebiped.bip01_l_hand" 8.00
	$jointconstrain "valvebiped.bip01_l_hand" x limit -30.00 37.00 0.00
	$jointconstrain "valvebiped.bip01_l_hand" y limit -12.00 8.00 0.00
	$jointconstrain "valvebiped.bip01_l_hand" z limit -20.00 35.00 0.00

	$jointmassbias "valvebiped.bip01_r_upperarm" 0.80
	$jointrotdamping "valvebiped.bip01_r_upperarm" 16.00
	$jointconstrain "valvebiped.bip01_r_upperarm" x limit -50.00 40.00 0.00
	$jointconstrain "valvebiped.bip01_r_upperarm" y limit -32.00 55.00 0.00
	$jointconstrain "valvebiped.bip01_r_upperarm" z limit -80.00 25.00 0.00

	$jointmassbias "valvebiped.bip01_r_forearm" 1.80
	$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 -120.00 -6.00 0.00

	$jointmassbias "valvebiped.bip01_r_hand" 0.60
	$jointrotdamping "valvebiped.bip01_r_hand" 8.00
	$jointconstrain "valvebiped.bip01_r_hand" x limit -37.00 30.00 0.00
	$jointconstrain "valvebiped.bip01_r_hand" y limit -8.00 12.00 0.00
	$jointconstrain "valvebiped.bip01_r_hand" z limit -35.00 20.00 0.00

	$jointrotdamping "valvebiped.bip01_pelvis" 0.00
	$jointconstrain "valvebiped.bip01_pelvis" x limit 0.00 0.00 0.00
	$jointconstrain "valvebiped.bip01_pelvis" y limit 0.00 0.00 0.00
	$jointconstrain "valvebiped.bip01_pelvis" z limit 0.00 0.00 0.00

	$jointmassbias "valvebiped.bip01_r_thigh" 0.80
	$jointconstrain "valvebiped.bip01_r_thigh" x limit -12.00 12.00 0.00
	$jointconstrain "valvebiped.bip01_r_thigh" y limit -12.00 20.00 0.00
	$jointconstrain "valvebiped.bip01_r_thigh" z limit -79.00 24.00 0.00

	$jointmassbias "valvebiped.bip01_r_calf" 1.20
	$jointrotdamping "valvebiped.bip01_r_calf" 3.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 116.00 0.00

	$jointmassbias "valvebiped.bip01_l_thigh" 0.80
	$jointconstrain "valvebiped.bip01_l_thigh" x limit -12.00 12.00 0.00
	$jointconstrain "valvebiped.bip01_l_thigh" y limit -20.00 12.00 0.00
	$jointconstrain "valvebiped.bip01_l_thigh" z limit -79.00 24.00 0.00

	$jointmassbias "valvebiped.bip01_l_calf" 1.20
	$jointrotdamping "valvebiped.bip01_l_calf" 3.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 116.00 0.00

	$jointmassbias "valvebiped.bip01_l_foot" 0.75
	$jointrotdamping "valvebiped.bip01_l_foot" 7.00
	$jointconstrain "valvebiped.bip01_l_foot" x limit -10.00 22.00 0.00
	$jointconstrain "valvebiped.bip01_l_foot" y limit -19.00 25.00 0.00
	$jointconstrain "valvebiped.bip01_l_foot" z limit -17.00 24.00 0.00

	$jointmassbias "valvebiped.bip01_r_foot" 0.75
	$jointrotdamping "valvebiped.bip01_r_foot" 7.00
	$jointconstrain "valvebiped.bip01_r_foot" x limit -10.00 22.00 0.00
	$jointconstrain "valvebiped.bip01_r_foot" y limit -19.00 25.00 0.00
	$jointconstrain "valvebiped.bip01_r_foot" z limit -17.00 24.00 0.00

	$jointmassbias "valvebiped.bip01_head1" 1.50
	$jointrotdamping "valvebiped.bip01_head1" 8.00
	$jointconstrain "valvebiped.bip01_head1" x limit -50.00 50.00 0.00
	$jointconstrain "valvebiped.bip01_head1" y limit -20.00 20.00 0.00
	$jointconstrain "valvebiped.bip01_head1" z limit -26.00 30.00 0.00
}

Thanks for your help.
 
All I could think of is to cross reference this to a working file:

Code:
	$jointrotdamping "valvebiped.bip01_pelvis" 0.00
	$jointconstrain "valvebiped.bip01_pelvis" x limit 0.00 0.00 0.00
	$jointconstrain "valvebiped.bip01_pelvis" y limit 0.00 0.00 0.00
	$jointconstrain "valvebiped.bip01_pelvis" z limit 0.00 0.00 0.00
 
Nope, didn't work, I've added these lines here:

Code:
	$mass 94.0
	$inertia 10.00
	$damping 0.00
	$rotdamping 4.00
	$rootbone "ValveBiped.Bip01_Pelvis"
	$jointrotdamping "valvebiped.bip01_pelvis" 0.00
	$jointconstrain "valvebiped.bip01_pelvis" x limit 0.00 0.00 0.00
	$jointconstrain "valvebiped.bip01_pelvis" y limit 0.00 0.00 0.00
	$jointconstrain "valvebiped.bip01_pelvis" z limit 0.00 0.00 0.00

Is this ok?
 
I did it.

Code:
	$jointmerge "valvebiped.bip01_pelvis" "valvebiped.bip01"
	$jointmerge "valvebiped.bip01_pelvis" "valvebiped.bip01_spine1"

I added this.
 
Back
Top