#How to copy an existing model if DotA says the vmdl is missing?
1 messages · Page 1 of 1 (latest)
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.
see here for a step by step on that if you're interested #1032460486811340861 message
if it were me, id probably try to recolor the model via:
Found 1 function for setrendercolor
🇸 CBaseModelEntity:SetRenderColor(r: int, g: int, b: int): nil
Sets the render color of the entity.
or a particle
instead of making a new model for it.
but, i dont know exactly what you're trying to do.
I appreciate it! I'll give that a shot
can also override the model's textures (see CHC for an example @wraith pendant )
Perfect! Ty
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
The container should have that function, since its class extends CBaseModelEntity.
But if its not working then you're out of luck.
Oh. Actually, Spawn() is probably the issue.
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.