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

Function tauntCB

src/SB/Game/zNPCTypeBossSB1.cpp:543–561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

541}
542
543static S32 tauntCB(xGoal* rawgoal, void*, en_trantype* trantype, F32 dt, void*)
544{
545 zNPCB_SB1* sb1 = (zNPCB_SB1*)rawgoal->GetOwner();
546
547 S32 nextgoal = 0;
548
549 if (SB1_CheckFeetStomp(sb1, &nextgoal, trantype))
550 {
551 return nextgoal;
552 }
553
554 if (sb1->AnimTimeRemain(NULL) < 1.1f * dt)
555 {
556 nextgoal = NPC_GOAL_BOSSSB1IDLE;
557 *trantype = GOAL_TRAN_SET;
558 }
559
560 return nextgoal;
561}
562
563static S32 stompCB(xGoal* rawgoal, void*, en_trantype* trantype, F32 dt, void*)
564{

Callers

nothing calls this directly

Calls 3

SB1_CheckFeetStompFunction · 0.85
GetOwnerMethod · 0.80
AnimTimeRemainMethod · 0.80

Tested by

no test coverage detected