================================== void NPC_InitAnimTable( void ) Need to initialize this table. If someone tried to play an anim before table is filled in with values, causes tasks that wait for anim completion to never finish. (frameLerp of 0 * numFrames of 0 = 0) ================================== */
| 2566 | ================================== |
| 2567 | */ |
| 2568 | void NPC_InitAnimTable( void ) |
| 2569 | { |
| 2570 | for ( int i = 0; i < MAX_ANIM_FILES; i++ ) |
| 2571 | { |
| 2572 | for ( int j = 0; j < MAX_ANIMATIONS; j++ ) |
| 2573 | { |
| 2574 | level.knownAnimFileSets[i].animations[j].firstFrame = 0; |
| 2575 | level.knownAnimFileSets[i].animations[j].frameLerp = 100; |
| 2576 | // level.knownAnimFileSets[i].animations[j].initialLerp = 100; |
| 2577 | level.knownAnimFileSets[i].animations[j].numFrames = 0; |
| 2578 | } |
| 2579 | } |
| 2580 | } |
| 2581 | |
| 2582 | extern int G_ParseAnimFileSet( const char *skeletonName, const char *modelName=0); |
| 2583 | void NPC_InitGame( void ) |