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

Function tikiDyingCB

src/SB/Game/zNPCTypeTiki.cpp:1667–1682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1665}
1666
1667static S32 tikiDyingCB(xGoal* rawgoal, void*, en_trantype* trantype, F32 dt, void*)
1668{
1669 rawgoal->GetOwner();
1670 zNPCGoalTikiDying* goal = (zNPCGoalTikiDying*)rawgoal;
1671 S32 nextgoal = 0;
1672
1673 goal->tmr_dying = (-1.0f > goal->tmr_dying - dt) ? -1.0f : goal->tmr_dying - dt;
1674
1675 if (goal->tmr_dying < 0.0f)
1676 {
1677 *trantype = GOAL_TRAN_SET;
1678 nextgoal = NPC_GOAL_TIKIDEAD;
1679 }
1680
1681 return nextgoal;
1682}
1683
1684static S32 tikiDeadCB(xGoal* rawgoal, void*, en_trantype*, F32, void*)
1685{

Callers

nothing calls this directly

Calls 1

GetOwnerMethod · 0.80

Tested by

no test coverage detected