checking for t.mdl with GET_MODEL_PTR Created 4 years ago2019-05-04 07:08:32 UTC by tschumann tschumann

Created 4 years ago2019-05-04 07:08:32 UTC by tschumann tschumann

Posted 4 years ago2019-05-04 07:08:32 UTC Post #342572
Does the data returned by GET_MODEL_PTR tell you if textures are stored externally? If it does then how do you get the model pointer for the *t.mdl?
Posted 4 years ago2019-05-04 08:25:51 UTC Post #342573
If textureindex is 0 then the engine assumes there's a T.mdl.

Note that it's only loaded by clients, the server never loads it.

Regardless the texture data is stored off in the model_t texinfo member which you can't get to from game code so you can't access it either way.
Posted 4 years ago2019-05-05 01:45:23 UTC Post #342574
Hm okay - I guess textureindex will be 0 for models with no textures but the game handles that.

My problem is that I want to see how many skins a model has by checking numskinfamilies but it looks like I can't use that if the textures are external. If I want to get the number of skins I guess the only alternative is to try and open up the *t.mdl and parse the header then?
You must be logged in to post a response.