Talk:$model (QC)

From Valve Developer Community
Revision as of 17:56, 2 May 2008 by Beeswax (talk | contribs)
Jump to navigation Jump to search

multiple $models

Using MdlDecompiler to look at a DOD player model QC, I found this:

$modelname "player\german_support.mdl"
$model "body" "german_support_reference.smd"
$model "helmet" "german_helmet_reference.smd"
$model "helmet" "UnknownModelName.smd"
// ...
$attachment "2" "ValveBiped.Bip01_Head1" -0.00 0.00 0.00 rotate -0.00 0.00 0.00
$attachment "head" "ValveBiped.Bip01_Head1" -0.00 0.00 0.00 rotate -0.00 0.00 0.00

Looking through the SMDs, the "german_helmet_reference.smd" mesh is enveloped to the "ValveBiped.Bip01_Head1" bone and "UnknownModelName.smd" contains no triangles whatsoever. So, is this :

1. MdlDecompiler not translating the binaries into a valid QC (I haven't tested it) ?

2. An alternative method to $bodygroup for combining meshes; enveloping a second mesh to the main skeleton as opposed to using the head $attachment and a sub-model ?

3. Or something else entirely ? --Beeswax 17:56, 2 May 2008 (PDT)