- Jan 22, 2008
- 120
- 32
I've made a few models for TF2 in the past. Some animated and even one ragdoll model. This however is the first time I've tried to make a model with multiple custom animations. I can't get it to work. Here's my QC file:
$modelname jp/poormedic.mdl
$origin 0 0 0 90
$scale 1.0
$body "Body" "poormedic.smd"
$texturegroup "skinfamilies"
{
{ "medic_red" "medic_hands_red" }
{ "medic_blue" "medic_hands_blue" }
}
$surfaceprop "flesh"
$upaxis Z
$cdmaterials "models/player/medic"
$animation "idle_a" "poormedic_anim.smd" frames 1 50
$animation "idle2_a" "poormedic_anim.smd" frames 51 80
$animation "idle3_a" "poormedic_anim.smd" frames 81 130
$sequence "idle" {
"idle_a" loop fps 30
}
$sequence "idle2" {
"idle2_a" loop fps 30
}
$sequence "idle3" {
"idle3_a" loop fps 30
}
This compiles fine. It's visible and animating in both HLMV and Hammer. The sequences are all there, and the skins work too. But it's completely invisible in-game and I can't figure it out. I just attached it to a prop_dynamic in a simple map and it's never there when I load the map. It's almost more frustrating that it works in HLMV and not in-game as I have to keep reloading the map just to test it. I'm at my wits end here. It's ridiculous considering how much time I've spent trying to figure this out vs. time spent actually working on the model. Any ideas?
$modelname jp/poormedic.mdl
$origin 0 0 0 90
$scale 1.0
$body "Body" "poormedic.smd"
$texturegroup "skinfamilies"
{
{ "medic_red" "medic_hands_red" }
{ "medic_blue" "medic_hands_blue" }
}
$surfaceprop "flesh"
$upaxis Z
$cdmaterials "models/player/medic"
$animation "idle_a" "poormedic_anim.smd" frames 1 50
$animation "idle2_a" "poormedic_anim.smd" frames 51 80
$animation "idle3_a" "poormedic_anim.smd" frames 81 130
$sequence "idle" {
"idle_a" loop fps 30
}
$sequence "idle2" {
"idle2_a" loop fps 30
}
$sequence "idle3" {
"idle3_a" loop fps 30
}
This compiles fine. It's visible and animating in both HLMV and Hammer. The sequences are all there, and the skins work too. But it's completely invisible in-game and I can't figure it out. I just attached it to a prop_dynamic in a simple map and it's never there when I load the map. It's almost more frustrating that it works in HLMV and not in-game as I have to keep reloading the map just to test it. I'm at my wits end here. It's ridiculous considering how much time I've spent trying to figure this out vs. time spent actually working on the model. Any ideas?