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

Function NPC_InitAnimTable

code/game/NPC.cpp:2568–2580  ·  view source on GitHub ↗

================================== 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) ================================== */

Source from the content-addressed store, hash-verified

2566==================================
2567*/
2568void 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
2582extern int G_ParseAnimFileSet( const char *skeletonName, const char *modelName=0);
2583void NPC_InitGame( void )

Callers 1

NPC_InitGameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected