Problem with a custom model

Discussion in 'Mapping Questions & Discussion' started by Jive Turkey, Feb 4, 2009.

  1. Jive Turkey

    Jive Turkey L3: Member

    Messages:
    120
    Positive Ratings:
    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?
     
  2. Sgt Frag

    Sgt Frag L14: Epic Member

    Messages:
    1,443
    Positive Ratings:
    294
    I've only done static props so far

    ie:
    $staticprop

    do you maybe need to say it's dynamic in the qc, then make it a dynamic in game?
     
  3. NovaSilisko

    aa NovaSilisko L42: Life, the Universe and Everything

    Messages:
    502
    Positive Ratings:
    129
    Check your console for errors?
     
  4. Jive Turkey

    Jive Turkey L3: Member

    Messages:
    120
    Positive Ratings:
    32
    Well whoop-dee-christ. I shut everything down, hlmv, hammer, and TF2, then reloaded TF2 and went into the map. Worked fine. There goes 4 hours of googling forums with desperate search terms, believing QC commands were in fact subject to voodoo incantations, and repeatedly, almost ritualistically recompiling the same bleeding model. This post was totally a last ditch effort. OTOH, hey it works like a charm:)

    Let that be a lesson to any other modellers that might later find this post in a similarly desperate state. When in doubt, close down and restart. You never know what the hl2 engine, in its sadistically infinite wisdom, decides to stupidly cache or just refuse to reload in one session...
     
  5. Vigilante212

    Vigilante212 L7: Fancy Member

    Messages:
    481
    Positive Ratings:
    33
    You think thats bad I spent months trying to figure out why my custom soundscape wouldnt work after i packed it in my map turns out I had to drop the ctf_ part at the front of the file for it to work.