[TFC] Check if model has skins
Hello. Is there any way to check if a custom model (Team Fortress Classic) has skins and how many?
I've been looking all over the internet without any luck. Thanks a lot for reading the message ! |
Re: [TFC] Check if model has skins
Quote:
to or done anything like that before. It's easy to do in C++: Code:
int GetNumSkins( edict_t *pEntity )then fseek to the part of the file that contains the model data (i.e. an offset value from the beginning of the file since the model data is stored after bone, animation and sequence data). Then you could either fseek directly to skin data if you know the offset value OR you could read the entire model studiohdr_t data structure into an enumerated "struct" and extract the skin info from there. EDIT: numskinfamilies is the correct skin count data variable. See this thread for reference: https://forums.alliedmods.net/showthread.php?t=178658 |
Re: [TFC] Check if model has skins
Quote:
|
| All times are GMT -4. The time now is 20:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.