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

Function SpewDebugStuffToFile

code/game/NPC_stats.cpp:366–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364
365#ifdef CONVENIENT_ANIMATION_FILE_DEBUG_THING
366void SpewDebugStuffToFile(animation_t *bgGlobalAnimations)
367{
368 char BGPAFtext[40000];
369 fileHandle_t f;
370 int i = 0;
371
372 gi.FS_FOpenFile("file_of_debug_stuff_SP.txt", &f, FS_WRITE);
373
374 if (!f)
375 {
376 return;
377 }
378
379 BGPAFtext[0] = 0;
380
381 while (i < MAX_ANIMATIONS)
382 {
383 strcat(BGPAFtext, va("%i %i\n", i, bgGlobalAnimations[i].frameLerp));
384 i++;
385 }
386
387 gi.FS_Write(BGPAFtext, strlen(BGPAFtext), f);
388 gi.FS_FCloseFile(f);
389}
390#endif
391
392int CG_CheckAnimFrameForEventType( animevent_t *animEvents, int keyFrame, animEventType_t eventType, unsigned short modelIndex )

Callers 1

G_ParseAnimationFileFunction · 0.70

Calls 1

vaFunction · 0.50

Tested by

no test coverage detected