Why does my Playermodel look like this?

So yeah pretty self explanatory, pretty sure it is a issue with the bones but they are all named correctly as the animations are working.
So does anybody know why model looks like this?

http://s18.postimg.org/mvq2rkppx/Screenshot_13.png

http://s18.postimg.org/smg95axpx/Screenshot_14.png

Show a picture of the skeleton.

http://s13.postimg.org/9nr5hwtmr/Screenshot_17.png

http://s13.postimg.org/7hwuneq6b/Screenshot_19.png

http://s13.postimg.org/6uxxxvtab/Screenshot_20.png

I took the mixamo auto rig for ragdolls and simply renamed the bones, but I had a similar issue when I tried to to use a standart valve skeleton and rerig it. This was easier since the weight painting was already done

I tried to rotate the bones as the standart ones seemed to all be in a 90 degree angle, but that didn’t help, could it relate to how I am exporting it? like which axis is considered up?

[editline]27th October 2015[/editline]

Okay I believe its the angles of the bones themselves because valve has weird ass angles on the bones. I tried imidating the ones on the standart valve skeleton but that ended with a similar result. anyone have a idea on what I angle they should be in?

it probably has less to do with the angles and more with the fact that you need to set up the bone pivot rotations instead. that’s probably what’s actually fucking it up.

bone pivot rotations?