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

Function smashCB

src/SB/Game/zNPCTypeBossSB1.cpp:589–615  ·  view source on GitHub ↗

91% match, just has a register scheduling issue

Source from the content-addressed store, hash-verified

587
588// 91% match, just has a register scheduling issue
589static S32 smashCB(xGoal* rawgoal, void*, en_trantype* trantype, F32 dt, void*)
590{
591 zNPCGoalBossSB1Smash* smash = (zNPCGoalBossSB1Smash*)rawgoal;
592 zNPCB_SB1* sb1 = (zNPCB_SB1*)rawgoal->GetOwner();
593
594 S32 nextgoal = 0;
595
596 if (sSB1_armTgtHit)
597 {
598 nextgoal = NPC_GOAL_BOSSSB1DEFLATE;
599 *trantype = GOAL_TRAN_SET;
600 return nextgoal;
601 }
602
603 if (SB1_CheckFeetStomp(sb1, &nextgoal, trantype))
604 {
605 return nextgoal;
606 }
607
608 if (smash->timeInGoal > 4.7666664f)
609 {
610 nextgoal = NPC_GOAL_BOSSSB1IDLE;
611 *trantype = GOAL_TRAN_SET;
612 }
613
614 return nextgoal;
615}
616
617static S32 deflateCB(xGoal* rawgoal, void*, en_trantype* trantype, F32 dt, void*)
618{

Callers

nothing calls this directly

Calls 2

SB1_CheckFeetStompFunction · 0.85
GetOwnerMethod · 0.80

Tested by

no test coverage detected