I don't particularly want to make another thread about this, so I'm posting a help request here. I'd like to have skin file read support for misc_model_ghoul (currently has to read the internal texture name in the GLM, which carcass doesn't do properly and the texture is white & the noesis route is VERY fiddley), but from what I can tell, there's no support for anything to do with skin files for map entities. How hard would it be exactly to add it, and could someone please point me in the right direction? I've tried putting this in misc_model_ghoul and it does nothing:
char skinName[MAX_QPATH];
int skin = gi.RE_RegisterSkin(skinName);
gi.G2API_SetSkin(&ent->ghoul2[ent->playerModel], G_SkinIndex(skinName), skin);
I thought I'd try and get it to just load a model_default.skin seeing as every model does/should have one of these. EDIT: Looks like I got it to work by adding this to misc_model_ghoul:
char *skinName;//[MAX_QPATH];
int skin = gi.RE_RegisterSkin(skinName);
G_SpawnString("skinFile", "models/players/kyle/model_default.skin", &skinName);
gi.G2API_SetSkin(&ent->ghoul2[ent->playerModel], G_SkinIndex(skinName), skin);
It shows the skin & allows it to be specified on the misc_model_ghoul entity. Surf off/on work, as do shaders.