turning a ragdoll into a player model

hi

the title pretty much says it all. i want to turn a ragdoll into a player model but have no idea how.
can anyone tell me (or send a link) how i can do this?

thanks.

Rigging to the hl2 skeleton: http://www.facepunch.com/showthread.php?t=542906

Adding animations: http://forum.facepunch.com/showthread.php?t=764320&p=15824733#post15824733