MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / count_talk_anims

Function count_talk_anims

src/SB/Game/zEntPlayer.cpp:3692–3713  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3690}
3691
3692static U32 count_talk_anims(xAnimTable* anims)
3693{
3694 xAnimFile* firstData = anims->StateList->Data;
3695 char talkAnimName[20];
3696 S32 talkAnimCount = 0;
3697
3698 sprintf(talkAnimName, "Talk%02d", 1);
3699
3700 for (xAnimState* state = anims->StateList; state != NULL; state = state->Next)
3701 {
3702 if (stricmp(state->Name, talkAnimName) == 0)
3703 {
3704 if (state->Data == firstData || ++talkAnimCount >= 4)
3705 {
3706 break;
3707 }
3708 sprintf(talkAnimName, "Talk%02d", talkAnimCount + 1);
3709 }
3710 }
3711
3712 return talkAnimCount;
3713}
3714
3715static void load_player_ini(zPlayerSettings& ps, xModelInstance& model, xModelAssetParam* modelass,
3716 U32 params_size)

Callers 1

load_player_iniFunction · 0.85

Calls 2

sprintfFunction · 0.85
stricmpFunction · 0.85

Tested by

no test coverage detected