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

Function NPC_InitGame

code/game/NPC.cpp:2583–2598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2581
2582extern int G_ParseAnimFileSet( const char *skeletonName, const char *modelName=0);
2583void NPC_InitGame( void )
2584{
2585// globals.NPCs = (gNPC_t *) gi.TagMalloc(game.maxclients * sizeof(game.bots[0]), TAG_GAME);
2586 debugNPCName = gi.cvar ( "d_npc", "", 0 );
2587 NPC_LoadParms();
2588 NPC_InitAI();
2589 NPC_InitAnimTable();
2590 G_ParseAnimFileSet("_humanoid"); //GET THIS CACHED NOW BEFORE CGAME STARTS
2591 /*
2592 ResetTeamCounters();
2593 for ( int team = TEAM_FREE; team < TEAM_NUM_TEAMS; team++ )
2594 {
2595 teamLastEnemyTime[team] = -10000;
2596 }
2597 */
2598}
2599
2600void NPC_SetAnim(gentity_t *ent,int setAnimParts,int anim,int setAnimFlags, int iBlend)
2601{ // FIXME : once torsoAnim and legsAnim are in the same structure for NCP and Players

Callers 1

InitGameFunction · 0.70

Calls 4

NPC_LoadParmsFunction · 0.70
NPC_InitAIFunction · 0.70
NPC_InitAnimTableFunction · 0.70
G_ParseAnimFileSetFunction · 0.70

Tested by

no test coverage detected