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

Function NPCC_BuildStandardAnimTran

src/SB/Game/zNPCTypeCommon.cpp:3532–3573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3530}
3531
3532void NPCC_BuildStandardAnimTran(xAnimTable* table, char** namelist, S32* ourAnims, S32 idx_dflt,
3533 F32 blend)
3534{
3535 xAnimTransition* def = NULL;
3536 char** names = namelist;
3537
3538 S32 i = 0;
3539
3540 while (ourAnims[i] != 0) // *ourAnims matches better than ourAnims[i] for some reason?
3541 {
3542 if (idx_dflt == ourAnims[i])
3543 {
3544 i++;
3545 }
3546 else if (def == NULL)
3547 {
3548 def = xAnimTableNewTransition(table, names[ourAnims[i]], names[idx_dflt], NULL, NULL,
3549 0x10, 0, 0.0f, 0.0f, 0, 0, blend, NULL);
3550 }
3551 else
3552 {
3553 xAnimTableAddTransition(table, def, names[ourAnims[i]]);
3554 i++;
3555 }
3556 }
3557 i = 0;
3558 while (ourAnims[i] != 0)
3559 {
3560 if (idx_dflt == ourAnims[i])
3561 {
3562 i++;
3563 }
3564 else
3565 {
3566 xAnimTableNewTransition(table, names[ourAnims[i]], names[idx_dflt], NULL, NULL, 0, 0,
3567 0.0f, 0.0f, 0, 0, blend, NULL);
3568 xAnimTableNewTransition(table, names[idx_dflt], names[ourAnims[i]], NULL, NULL, 0, 0,
3569 0.0f, 0.0f, 0, 0, blend, NULL);
3570 i++;
3571 }
3572 }
3573}
3574
3575void zNPCCommon_EjectPhlemOnPawz()
3576{

Callers 15

ZNPC_AnimTable_DutchmanFunction · 0.70
ZNPC_AnimTable_BossSandyFunction · 0.70
ZNPC_AnimTable_RobotBaseFunction · 0.70
ZNPC_AnimTable_FodderFunction · 0.70
ZNPC_AnimTable_HammerFunction · 0.70
ZNPC_AnimTable_TarTarFunction · 0.70
ZNPC_AnimTable_GLoveFunction · 0.70
ZNPC_AnimTable_MonsoonFunction · 0.70

Calls 2

xAnimTableAddTransitionFunction · 0.85
xAnimTableNewTransitionFunction · 0.50

Tested by

no test coverage detected