#How to copy an existing model if DotA says the vmdl is missing?

1 messages · Page 1 of 1 (latest)

wraith pendant
#

I'm trying to recolor some existing unit models, but some models disappear when I hit 'Save As' to copy the model. How do I get around this problem?

smoky nacelle
#

if you dont have the content files for the model then you cannot copy it.
you can extract the mesh from the compiled vmdl_c with VRF, but you will lose any animations in the process.
to get the model back in working order its a pretty convoluted process.

#

if it were me, id probably try to recolor the model via:

worn lionBOT
smoky nacelle
#

or a particle

#

instead of making a new model for it.
but, i dont know exactly what you're trying to do.

wraith pendant
#

I appreciate it! I'll give that a shot

worldly sable
#

can also override the model's textures (see CHC for an example @wraith pendant )

wraith pendant
#

Perfect! Ty

eager wyvern
#

piggy backing on this thread, how would i achieve the same thing with an item's model?
I've tried

function item_rune_of_life:Spawn()
    self:GetContainer():SetRenderColor(255, 0, 0)
end

but getting nil error. I'd like to set the scale and tint of an item color when it's on the ground

smoky nacelle
#

The container should have that function, since its class extends CBaseModelEntity.
But if its not working then you're out of luck.

smoky nacelle
#

For one, its run on server and client. While setrendercolor is server only.

And two, the container may not exist yet at that point in time.