run through the Ghoul2 models and set each of the mModel values to the correct one from the cgs.gameModel offset lsit
| 1820 | |
| 1821 | // run through the Ghoul2 models and set each of the mModel values to the correct one from the cgs.gameModel offset lsit |
| 1822 | void 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 | |
| 1836 | char *G2API_GetAnimFileNameIndex(qhandle_t modelIndex) |