Player model from counter strike source

I have a model from counter strike source, and i try to convert to garrysmod player model.I decompile the model, and i edit the .qc file with the new path, save it and compile. I make a addon folder, with the model, and a lua file:


player_manager.AddValidModel( "GeaHazmat", "models/player/gea/geahazmat/gea_hazmat.mdl" )
list.Set( "PlayerOptionsModel", "GeaHazmat", "models/player/gea/geahazmat/gea_hazmat.mdl" )

In game, (single player) all animation works well, too with the weapons, the problem is when i die, or type kill in console, the model don’t drop to the floor, he is like freeze:

http://img13.imageshack.us/img13/9700/helprj.jpg

Why all animations works well but when i die the model remain so?
This is my .qc file:


$cd "H:\modding\Decompiling XD\Test"
$modelname "player/gea/geahazmat/gea_hazmat.mdl"
$model "ct_sas" "ct_sas_reference.smd"

$lod 5
 {
  replacemodel "ct_sas_reference" "lod1_ct_sas_reference"
}
$lod 15
 {
  replacemodel "ct_sas_reference" "lod2_ct_sas_reference"
}
$lod 30
 {
  replacemodel "ct_sas_reference" "lod3_ct_sas_reference"
}
$lod 50
 {
  replacemodel "ct_sas_reference" "lod4_ct_sas_reference"
}
$lod 70
 {
  replacemodel "ct_sas_reference" "lod5_ct_sas_reference"
}
$shadowlod
{
  replacemodel "ct_sas_reference" "lod6_ct_sas_reference"
}
$poseparameter move_yaw -180.00 180.00
$poseparameter body_pitch -90.00 90.00
$poseparameter body_yaw -90.00 90.00
$cdmaterials "models\player\gea\geahazmat\"
$cdmaterials "models\humans\male\"
$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 "grenade0" "ValveBiped.Bip01_Spine" 6.41 3.85 8.73 rotate 68.11 91.48 93.56
$attachment "grenade1" "ValveBiped.Bip01_Spine" 6.23 1.36 8.58 rotate 42.63 88.51 93.85
$attachment "grenade2" "ValveBiped.Bip01_Spine" -0.55 4.14 -8.33 rotate -83.93 63.84 118.98
$attachment "grenade3" "ValveBiped.Bip01_Spine" 0.64 1.28 -8.35 rotate -70.87 -71.14 -105.92
$attachment "pistol" "ValveBiped.Bip01_R_Thigh" 0.76 2.91 -5.93 rotate -1.57 -9.00 75.29
$attachment "primary" "ValveBiped.Bip01_Spine2" 9.00 -4.17 -10.75 rotate -27.69 173.65 -13.75
$attachment "defusekit" "ValveBiped.Bip01_Pelvis" 0.00 1.05 -4.98 rotate -73.06 90.93 179.75
$attachment "eholster" "ValveBiped.Bip01_L_Thigh" 7.83 -5.91 1.49 rotate 80.18 -62.03 112.43
$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 "ak_anims_ct.mdl"
$includemodel "css_player_shared.mdl"
$includemodel "humans/male_shared.mdl"
$includemodel "humans/male_ss.mdl"
$includemodel "humans/male_gestures.mdl"
$includemodel "humans/male_postures.mdl"
$includemodel "cs_fix.mdl"
$includemodel "player/cs_player_shared.mdl"
$includemodel "player/ak_anims_ct.mdl"
$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.882 0.019 37.487
$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


Well, the reason there’s no ragdoll is because you completely removed the ragdoll data.
Also, the only included animation you need is “cs_fix.mdl”. Adding too many animations cause them to conflict with eachother.

Many thanks by your reply, is appreciated.
I’ll tried only with $includemodel “cs_fix.mdl” when garrysmod are fixed.
Fuck with the Client.dll engine error…

Well, now, when i tried to compile any model with GUIStudioMDL have this error:
Can’t load H:\MI STEAM xD\Steam\SteamApps\mynameofsteam\sourcesdk\bin\ep1\bin\filesystem_steam.dll.
Before the update GUIStudioMDL works fine, but now don’t…

EDIT:
I solved the problem. Only i had to have the open Source SDK.