MCPcopy Create free account
hub / github.com/JACoders/OpenJK / G2API_SetGhoul2ModelIndexes

Function G2API_SetGhoul2ModelIndexes

code/rd-vanilla/G2_API.cpp:1822–1833  ·  view source on GitHub ↗

run through the Ghoul2 models and set each of the mModel values to the correct one from the cgs.gameModel offset lsit

Source from the content-addressed store, hash-verified

1820
1821// run through the Ghoul2 models and set each of the mModel values to the correct one from the cgs.gameModel offset lsit
1822void G2API_SetGhoul2ModelIndexes(CGhoul2Info_v &ghoul2, qhandle_t *modelList, qhandle_t *skinList)
1823{
1824 G2ERROR(ghoul2.IsValid(),"Invalid ghlInfo");
1825 int i;
1826 for (i=0; i<ghoul2.size(); i++)
1827 {
1828 if (ghoul2[i].mModelindex != -1)
1829 {
1830 ghoul2[i].mSkin = skinList[ghoul2[i].mCustomSkin];
1831 }
1832 }
1833}
1834
1835
1836char *G2API_GetAnimFileNameIndex(qhandle_t modelIndex)

Callers

nothing calls this directly

Calls 2

IsValidMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected