I thought I finally got a model to work with multiple skins, but they both appear to be the same in garrysmod. And before you ask, yes, the texture files are different. Here is the qc:
[code]
$modelname "props/noggspanel.mdl"
$body mybody "noggspanel.smd"
$staticprop
$surfaceprop "metal"
$cdmaterials "models/props"
$scale 1
$texturegroup skinfamilies
{
{ "models/props/noggspanel.vmt" }
{ "models/props/noggspanel01.vmt" }
}
$sequence idle "idle.smd" loop fps 1
// Model uses material "noggspanel.vmt"
// Model uses material "noggspanel01.vmt"
$collisionmodel "noggspanel-phy.smd" {
$automass
$concave
}
$keyvalues
{
"prop_data"
{
"base" "Metal.Medium"
}
}
[/code]
and the material files:
[code]
"VertexLitGeneric"
{
"$basetexture" "models/props/noggspanel"
"$surfaceprop" "metal"
"$alphatest" 1
}
[/code]
[code]
"VertexLitGeneric"
{
"$basetexture" "models/props/noggspanel01"
"$surfaceprop" "metal"
"$alphatest" 1
}
[/code]
The model is called noggspanel, and the materials are noggspanel and noggspanel01. I find it interesting that garrysmod recognizes the fact that the model has two skins, yet they both spawn the same. What am I doing wrong?
Change it to this:
[code]$cdmaterials "models/props"
$texturegroup skinfamilies
{
{ "noggspanel.vmt" }
{ "noggspanel01.vmt" }
}[/code]
Aha! It worked!(even though when I first tried this it spawned as pink-and-black checkers, but when someone else tells me to, it works) Thank you!
Sorry, you need to Log In to post a reply to this thread.