Legs are bending the wrong way!

I need some help guys… The model’s legs are bending the wrong way, let this image describe to you what im trying to say:

http://uppix.net/6/b/7/77373e25eac42cc131d78b8ee09d6.png

Painful isn’t it?
So how do I fix this? I think its something wrong with the joint constraints, so here’s what I got:

$collisionjoints “phymodel.smd” {

$mass 90.0
$inertia 10.00
$damping 0.01
$rotdamping 1.50
$rootbone "valvebiped.bip01_pelvis"
$jointmerge "ValveBiped.Bip01_Pelvis" "ValveBiped.Bip01_Spine1"

$jointconstrain "valvebiped.bip01_l_thigh" x limit -25.00 25.00 0.00
$jointconstrain "valvebiped.bip01_l_thigh" y limit -10.00 15.00 0.00
$jointconstrain "valvebiped.bip01_l_thigh" z limit -90.00 45.00 0.00

$jointconstrain "valvebiped.bip01_l_calf" x limit -10.00 25.00 0.00
$jointconstrain "valvebiped.bip01_l_calf" y limit -5.00 5.00 0.00
$jointconstrain "valvebiped.bip01_l_calf" z limit -10.00 115.00 0.00

$jointconstrain "valvebiped.bip01_r_thigh" x limit -25.00 25.00 0.00
$jointconstrain "valvebiped.bip01_r_thigh" y limit -10.00 15.00 0.00
$jointconstrain "valvebiped.bip01_r_thigh" z limit -90.00 45.00 0.00

$jointconstrain "valvebiped.bip01_r_calf" x limit -10.00 25.00 0.00
$jointconstrain "valvebiped.bip01_r_calf" y limit -5.00 5.00 0.00
$jointconstrain "valvebiped.bip01_r_calf" z limit -10.00 115.00 0.00

$jointconstrain "valvebiped.bip01_r_foot" x limit 0.00 0.00 0.00
$jointconstrain "valvebiped.bip01_r_foot" y limit -25.00 6.00 0.00
$jointconstrain "valvebiped.bip01_r_foot" z limit -15.00 35.00 0.00

$jointconstrain "valvebiped.bip01_spine2" x limit -10.00 10.00 0.00
$jointconstrain "valvebiped.bip01_spine2" y limit -10.00 10.00 0.00
$jointconstrain "valvebiped.bip01_spine2" z limit -20.00 20.00 0.00

$jointconstrain "valvebiped.bip01_l_upperarm" x limit -40.00 40.00 0.00
$jointconstrain "valvebiped.bip01_l_upperarm" y limit -140.00 110.00 0.00
$jointconstrain "valvebiped.bip01_l_upperarm" z limit -135.00 135.00 0.00

$jointconstrain "valvebiped.bip01_l_forearm" x limit -30.00 30.00 0.00
$jointconstrain "valvebiped.bip01_l_forearm" y limit -60.00 60.00 0.00
$jointconstrain "valvebiped.bip01_l_forearm" z limit -150.00 5.00 0.00

$jointconstrain "valvebiped.bip01_r_upperarm" x limit -40.00 40.00 0.00
$jointconstrain "valvebiped.bip01_r_upperarm" y limit -110.00 140.00 0.00
$jointconstrain "valvebiped.bip01_r_upperarm" z limit -135.00 135.00 0.00

$jointconstrain "valvebiped.bip01_r_forearm" x limit -30.00 30.00 0.00
$jointconstrain "valvebiped.bip01_r_forearm" y limit -60.00 60.00 0.00
$jointconstrain "valvebiped.bip01_r_forearm" z limit -150.00 5.00 0.00

$jointconstrain "valvebiped.bip01_r_hand" x limit -60.00 60.00 0.00
$jointconstrain "valvebiped.bip01_r_hand" y limit -60.00 60.00 0.00
$jointconstrain "valvebiped.bip01_r_hand" z limit -60.00 80.00 0.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

$jointconstrain "valvebiped.bip01_l_hand" x limit -60.00 60.00 0.00
$jointconstrain "valvebiped.bip01_l_hand" y limit -60.00 60.00 0.00
$jointconstrain "valvebiped.bip01_l_hand" z limit -60.00 80.00 0.00

$jointconstrain "valvebiped.bip01_l_foot" x limit 0.00 0.00 0.00
$jointconstrain "valvebiped.bip01_l_foot" y limit -19.00 19.00 0.00
$jointconstrain "valvebiped.bip01_l_foot" z limit -15.00 35.00 0.00
$animatedfriction 1.000 400.000 0.500 0.000 0.300

}

Please help me.

Find out what axis they are moving in and reverse the constrains.

Hammer! Could you notify me when/if you release this? I’m a big fan of The Wall

They are moving in Axis Z, so I reversed the contstraints aaaaand:

“ERROR: Invalid joint constraint for ValveBiped.Bip01_L_Calf
Can’t build ragdoll!”

Goddamnit.

I seem to have fixed it by reversing the bones, thanks for the help.

http://uppix.net/f/1/c/0906c3002f84c0943e0d1d26f9ca5.png

Bump!