Invisible model only while my model...?

OK, so I decided to port the L4D special infected yesterday with some custom running zombie animations. I started with the smoker - worked fine.

Can play as him, and spawn him. Next, I worked on the hunter. Did exactly what I did with the smoker, and I can spawn him, but when I set my model the same way I did with the smoker - sv_cheats 1;lua_run player.GetByID(1):SetModel( “models/infected/necropolis/hunter.mdl” );sv_cheats 0 - Gmod freezes for ten minutes, and when I look at my model with the camera tool, I’m invisible.

Smoker QC



$cd "C:\Program Files\Steam\steamapps\disseminate\sourcesdk\bin\ep1\bin"
$modelname "infected/smoker2.mdl"
$model "smoker_model" "smoke.smd"
$poseparameter move_yaw -180.00 180.00
$poseparameter body_pitch -90.00 90.00
$poseparameter body_yaw -90.00 90.00
$cdmaterials "models\infected\smoker\"
$hboxset "cstrike"
$hbox 3 "ValveBiped.Bip01_Pelvis" -8.225  -7.931  -5.581  8.225  1.469  5.581
$hbox 6 "ValveBiped.Bip01_L_Thigh" 6.462  -3.819  -3.231  26.437  3.819  3.231
$hbox 6 "ValveBiped.Bip01_L_Calf" 1.175  -3.525  -2.938  24.675  3.525  2.938
$hbox 6 "ValveBiped.Bip01_L_Toe0" -3.231  -1.762  -1.939  4.524  1.762  3.231
$hbox 7 "ValveBiped.Bip01_R_Thigh" 6.462  -3.819  -3.231  26.437  3.819  3.231
$hbox 7 "ValveBiped.Bip01_R_Calf" 1.175  -3.525  -2.938  24.675  3.525  2.938
$hbox 7 "ValveBiped.Bip01_R_Toe0" -3.231  -1.762  -1.939  4.524  1.762  3.231
$hbox 3 "ValveBiped.Bip01_Spine1" -8.460  -4.700  -7.637  3.290  7.050  7.637
$hbox 2 "ValveBiped.Bip01_Spine2" -4.700  -4.700  -7.637  14.100  7.050  7.637
$hbox 1 "ValveBiped.Bip01_Neck1" -4.112  -3.525  -3.525  1.762  3.525  3.525
$hbox 1 "ValveBiped.Bip01_Head1" -4.112  -5.287  -4.582  8.813  5.287  3.642
$hbox 4 "ValveBiped.Bip01_L_UpperArm" -3.525  -2.350  -2.350  12.925  2.350  2.350
$hbox 4 "ValveBiped.Bip01_L_Forearm" -1.175  -1.762  -1.762  15.275  1.762  1.762
$hbox 4 "ValveBiped.Bip01_L_Hand" 2.350  -2.350  -2.350  9.400  1.175  2.350
$hbox 5 "ValveBiped.Bip01_R_UpperArm" -3.525  -2.350  -2.350  12.925  2.350  2.350
$hbox 5 "ValveBiped.Bip01_R_Forearm" -1.175  -1.762  -1.762  15.275  1.762  1.762
$hbox 5 "ValveBiped.Bip01_R_Hand" 2.350  -2.350  -2.350  9.400  1.175  2.350
$attachment "lfoot" "ValveBiped.Bip01_L_Foot" 0.00 3.52 0.00 rotate 0.00 -21.00 -180.00
$attachment "rfoot" "ValveBiped.Bip01_R_Foot" 0.00 3.53 0.00 rotate -0.00 -21.00 180.00
$attachment "smoker_mouth" "ValveBiped.Bip01_Head1" -0.33 -4.42 0.09 rotate -0.00 -89.52 -0.00
$attachment "forward" "ValveBiped.Bip01_Head1" 3.53 -4.70 0.00 rotate -0.00 -90.00 -90.00
$includemodel "zed/male_shared.mdl"
$includemodel "humans/male_shared.mdl"
$includemodel "humans/male_ss.mdl"
$includemodel "humans/male_gestures.mdl"
$includemodel "humans/male_postures.mdl"
$surfaceprop "flesh"
$eyeposition 0.000 0.000 73.000
$illumposition -0.004 1.381 43.106
$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 100.0
	$inertia 2.00
	$damping 0.05
	$rotdamping 0.40
	$rootbone "valvebiped.bip01_pelvis"

	$jointmassbias "valvebiped.bip01_spine1" 8.00
	$jointconstrain "valvebiped.bip01_spine1" x limit -10.00 10.00 0.00
	$jointconstrain "valvebiped.bip01_spine1" y limit -16.00 16.00 0.00
	$jointconstrain "valvebiped.bip01_spine1" z limit -20.00 30.00 0.00

	$jointmassbias "valvebiped.bip01_spine2" 9.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

	$jointmassbias "valvebiped.bip01_r_clavicle" 4.00
	$jointconstrain "valvebiped.bip01_r_clavicle" x limit -15.00 15.00 0.00
	$jointconstrain "valvebiped.bip01_r_clavicle" y limit -10.00 10.00 0.00
	$jointconstrain "valvebiped.bip01_r_clavicle" z limit 0.00 45.00 0.00

	$jointmassbias "valvebiped.bip01_l_clavicle" 4.00
	$jointconstrain "valvebiped.bip01_l_clavicle" x limit -15.00 15.00 0.00
	$jointconstrain "valvebiped.bip01_l_clavicle" y limit -10.00 10.00 0.00
	$jointconstrain "valvebiped.bip01_l_clavicle" z limit 0.00 45.00 0.00

	$jointmassbias "valvebiped.bip01_l_upperarm" 5.00
	$jointconstrain "valvebiped.bip01_l_upperarm" x limit -15.00 20.00 0.00
	$jointconstrain "valvebiped.bip01_l_upperarm" y limit -40.00 32.00 0.00
	$jointconstrain "valvebiped.bip01_l_upperarm" z limit -80.00 25.00 0.00

	$jointmassbias "valvebiped.bip01_l_forearm" 4.00
	$jointconstrain "valvebiped.bip01_l_forearm" x limit -40.00 15.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 10.00 0.00

	$jointconstrain "valvebiped.bip01_l_hand" x limit -25.00 25.00 0.00
	$jointconstrain "valvebiped.bip01_l_hand" y limit -35.00 35.00 0.00
	$jointconstrain "valvebiped.bip01_l_hand" z limit -50.00 50.00 0.00

	$jointmassbias "valvebiped.bip01_r_upperarm" 5.00
	$jointconstrain "valvebiped.bip01_r_upperarm" x limit -15.00 20.00 0.00
	$jointconstrain "valvebiped.bip01_r_upperarm" y limit -40.00 32.00 0.00
	$jointconstrain "valvebiped.bip01_r_upperarm" z limit -80.00 25.00 0.00

	$jointmassbias "valvebiped.bip01_r_forearm" 4.00
	$jointconstrain "valvebiped.bip01_r_forearm" x limit -40.00 15.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 10.00 0.00

	$jointconstrain "valvebiped.bip01_r_hand" x limit -25.00 25.00 0.00
	$jointconstrain "valvebiped.bip01_r_hand" y limit -35.00 35.00 0.00
	$jointconstrain "valvebiped.bip01_r_hand" z limit -50.00 50.00 0.00

	$jointmassbias "valvebiped.bip01_r_thigh" 7.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 -55.00 25.00 0.00

	$jointmassbias "valvebiped.bip01_r_calf" 4.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 -20.00 30.00 0.00
	$jointconstrain "valvebiped.bip01_r_foot" y limit -30.00 20.00 0.00
	$jointconstrain "valvebiped.bip01_r_foot" z limit -30.00 50.00 0.00

	$jointmassbias "valvebiped.bip01_l_thigh" 7.00
	$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 -55.00 25.00 0.00

	$jointmassbias "valvebiped.bip01_l_calf" 4.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_l_foot" x limit -20.00 30.00 0.00
	$jointconstrain "valvebiped.bip01_l_foot" y limit -30.00 20.00 0.00
	$jointconstrain "valvebiped.bip01_l_foot" z limit -30.00 50.00 0.00

	$jointmassbias "valvebiped.bip01_head1" 4.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
	$animatedfriction 100.000 500.000 0.100 0.200 1.000
}


Hunter QC



$cd "C:\Program Files\Steam\steamapps\disseminate\sourcesdk\bin\ep1\bin"
$modelname "infected/hunter2.mdl"
$model "hunter_model" "hunt.smd"
$poseparameter move_yaw -180.00 180.00
$poseparameter body_pitch -90.00 90.00
$poseparameter body_yaw -90.00 90.00
$cdmaterials "models\infected\hunter\"
$hboxset "cstrike"
$hbox 3 "ValveBiped.Bip01_Pelvis" -7.500  -7.200  -6.000  7.500  1.800  6.000
$hbox 6 "ValveBiped.Bip01_L_Thigh" 6.000  -4.500  -3.500  20.000  2.500  3.500
$hbox 6 "ValveBiped.Bip01_L_Calf" 1.750  -3.000  -3.000  20.250  3.000  3.000
$hbox 6 "ValveBiped.Bip01_L_Toe0" -3.500  -1.500  -2.500  3.500  1.500  2.500
$hbox 7 "ValveBiped.Bip01_R_Thigh" 6.000  -4.500  -3.500  20.000  2.500  3.500
$hbox 7 "ValveBiped.Bip01_R_Calf" 1.750  -3.000  -3.000  20.250  3.000  3.000
$hbox 7 "ValveBiped.Bip01_R_Toe0" -3.500  -1.500  -2.500  3.500  1.500  2.500
$hbox 3 "ValveBiped.Bip01_Spine1" -8.500  -7.000  -7.500  4.500  5.000  7.500
$hbox 2 "ValveBiped.Bip01_Spine2" -0.950  -5.500  -7.500  11.050  6.500  7.500
$hbox 1 "ValveBiped.Bip01_Neck1" -0.100  -2.500  -2.750  5.300  3.500  2.750
$hbox 1 "ValveBiped.Bip01_Head1" -1.700  -5.050  -3.700  7.700  4.450  3.700
$hbox 4 "ValveBiped.Bip01_L_UpperArm" -1.500  -2.480  -2.200  11.500  2.480  2.200
$hbox 4 "ValveBiped.Bip01_L_Forearm" 0.000  -2.300  -2.250  12.000  2.300  2.250
$hbox 4 "ValveBiped.Bip01_L_Hand" 0.280  -2.370  -2.750  6.330  1.490  1.650
$hbox 5 "ValveBiped.Bip01_R_UpperArm" -1.500  -2.480  -2.200  11.500  2.480  2.200
$hbox 5 "ValveBiped.Bip01_R_Forearm" 0.000  -2.300  -2.250  12.000  2.300  2.250
$hbox 5 "ValveBiped.Bip01_R_Hand" 0.280  -2.370  -2.750  6.330  1.490  1.650
$attachment "lfoot" "ValveBiped.Bip01_L_Foot" 1.00 3.00 0.00 rotate -0.00 -23.00 180.00
$attachment "rfoot" "ValveBiped.Bip01_R_Foot" 1.00 3.00 0.00 rotate 0.00 -23.00 -180.00
$attachment "lhand" "ValveBiped.Bip01_L_Hand" 5.00 -2.00 0.00 rotate 0.00 0.00 0.00
$attachment "rhand" "ValveBiped.Bip01_R_Hand" 5.00 -2.00 0.00 rotate 0.00 0.00 -0.00
$includemodel "zed/male_shared.mdl"
$includemodel "humans/male_shared.mdl"
$includemodel "humans/male_ss.mdl"
$includemodel "humans/male_gestures.mdl"
$includemodel "humans/male_postures.mdl"
$surfaceprop "flesh"
$eyeposition 0.000 0.000 73.000
$illumposition -1.160 -0.108 35.782
$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 100.0
	$inertia 2.00
	$damping 0.05
	$rotdamping 0.40
	$rootbone "valvebiped.bip01_pelvis"

	$jointmassbias "valvebiped.bip01_spine1" 0.75
	$jointconstrain "valvebiped.bip01_spine1" x limit -10.00 10.00 0.00
	$jointconstrain "valvebiped.bip01_spine1" y limit -16.00 16.00 0.00
	$jointconstrain "valvebiped.bip01_spine1" z limit -20.00 30.00 0.00

	$jointmassbias "valvebiped.bip01_spine2" 0.75
	$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

	$jointmassbias "valvebiped.bip01_r_clavicle" 3.00
	$jointconstrain "valvebiped.bip01_r_clavicle" x limit -15.00 15.00 0.00
	$jointconstrain "valvebiped.bip01_r_clavicle" y limit -10.00 10.00 0.00
	$jointconstrain "valvebiped.bip01_r_clavicle" z limit 0.00 45.00 0.00

	$jointmassbias "valvebiped.bip01_l_clavicle" 3.00
	$jointconstrain "valvebiped.bip01_l_clavicle" x limit -15.00 15.00 0.00
	$jointconstrain "valvebiped.bip01_l_clavicle" y limit -10.00 10.00 0.00
	$jointconstrain "valvebiped.bip01_l_clavicle" z limit 0.00 45.00 0.00

	$jointconstrain "valvebiped.bip01_l_upperarm" x limit -15.00 20.00 0.00
	$jointconstrain "valvebiped.bip01_l_upperarm" y limit -40.00 32.00 0.00
	$jointconstrain "valvebiped.bip01_l_upperarm" z limit -80.00 25.00 0.00

	$jointmassbias "valvebiped.bip01_l_forearm" 2.00
	$jointconstrain "valvebiped.bip01_l_forearm" x limit -40.00 15.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 10.00 0.00

	$jointmassbias "valvebiped.bip01_l_hand" 4.00
	$jointconstrain "valvebiped.bip01_l_hand" x limit -25.00 25.00 0.00
	$jointconstrain "valvebiped.bip01_l_hand" y limit -35.00 35.00 0.00
	$jointconstrain "valvebiped.bip01_l_hand" z limit -50.00 50.00 0.00

	$jointconstrain "valvebiped.bip01_r_upperarm" x limit -15.00 20.00 0.00
	$jointconstrain "valvebiped.bip01_r_upperarm" y limit -40.00 32.00 0.00
	$jointconstrain "valvebiped.bip01_r_upperarm" z limit -80.00 25.00 0.00

	$jointmassbias "valvebiped.bip01_r_forearm" 2.00
	$jointconstrain "valvebiped.bip01_r_forearm" x limit -40.00 15.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 10.00 0.00

	$jointmassbias "valvebiped.bip01_r_hand" 4.00
	$jointconstrain "valvebiped.bip01_r_hand" x limit -25.00 25.00 0.00
	$jointconstrain "valvebiped.bip01_r_hand" y limit -35.00 35.00 0.00
	$jointconstrain "valvebiped.bip01_r_hand" z limit -50.00 50.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 -55.00 25.00 0.00

	$jointmassbias "valvebiped.bip01_r_calf" 2.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

	$jointmassbias "valvebiped.bip01_r_foot" 4.00
	$jointconstrain "valvebiped.bip01_r_foot" x limit -20.00 30.00 0.00
	$jointconstrain "valvebiped.bip01_r_foot" y limit -30.00 20.00 0.00
	$jointconstrain "valvebiped.bip01_r_foot" z limit -30.00 50.00 0.00

	$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 -55.00 25.00 0.00

	$jointmassbias "valvebiped.bip01_l_calf" 2.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

	$jointmassbias "valvebiped.bip01_l_foot" 4.00
	$jointconstrain "valvebiped.bip01_l_foot" x limit -20.00 30.00 0.00
	$jointconstrain "valvebiped.bip01_l_foot" y limit -30.00 20.00 0.00
	$jointconstrain "valvebiped.bip01_l_foot" z limit -30.00 50.00 0.00

	$jointmassbias "valvebiped.bip01_head1" 2.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
	$animatedfriction 100.000 500.000 0.100 1.000 0.200
}


Note that at first, I used the original L4D hunter QC with some tweaks, then removed it piece by piece down to the smoker level. There are no studiomdl errors.

You screwed it up when you rigged it to the skeleton. Either scale the model to fit the skeleton better or use the L4D animations and make some custom ones for sitting and other gmod things.

L4D models are already rigged to a ValveBiped skeleton perfectly. Could complexity be an issue (Hunters have three bones per finger)?