- Jan 24, 2011
- 224
- 12
For my map I'm trying to reskin a vending machine I got from GMod.
Importing things from GMod, texture and all is usually no problem. But when I try to reskin it it's usually hit or miss whenever it'll work or not.
I'm sure I've done everything right and properly addressed the .qc, .smd and .vmt files...
...but I don't know why it's not working.
I had the same problem with another object with a custom skin, it too had a broken texture. So I decided to just delete it and re-imported it again and that time around it functioned properly but I did not know what I did right that time.
Am I missing some small detail I should be doing?
Importing things from GMod, texture and all is usually no problem. But when I try to reskin it it's usually hit or miss whenever it'll work or not.
I'm sure I've done everything right and properly addressed the .qc, .smd and .vmt files...
Code:
$ModelName "mystic_monkey\vending_machine\dispenser.mdl"
$StaticProp
$BodyGroup "Body"
{
studio "dispenser_reference.smd"
}
$LOD 100
{
replacemodel "dispenser_reference.smd" "dispenser_reference_lod1.smd"
}
$SurfaceProp "plastic_barrel"
$Contents "solid"
$MaxEyeDeflection 90
$CDMaterials "models\mystic_monkey\vending_machine\"
$TextureGroup "skinfamilies"
{
{ "chaos_cola" }
{ "chaos_soda" }
}
$CBox 0 0 0 0 0 0
$BBox -21.661 -26.375 -48.285 21.423 26.334 48.293
$Sequence "idle" {
"dispenser_anims\idle.smd"
fadein 0.2
fadeout 0.2
fps 30
}
$CollisionModel "dispenser_physics.smd"
{
$mass 600
$inertia 1
$damping 0
$rotdamping 0
$rootbone " "
$concave
}
$KeyValues
{
prop_data
{
"base" "Metal.Large"
}
}
I had the same problem with another object with a custom skin, it too had a broken texture. So I decided to just delete it and re-imported it again and that time around it functioned properly but I did not know what I did right that time.
Am I missing some small detail I should be doing?