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

Function BubbleBashCheck

src/SB/Game/zEntPlayer.cpp:1601–1619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1599}
1600
1601static U32 BubbleBashCheck(xAnimTransition*, xAnimSingle* anim, void*)
1602{
1603 if (globals.player.cheat_mode != 0)
1604 {
1605 return 0;
1606 }
1607
1608 if (zEntTeleportBox_playerIn())
1609 {
1610 return 0;
1611 }
1612
1613 if (sPlayerCollAdjust > 0.2f)
1614 {
1615 return 0;
1616 }
1617
1618 return (!globals.player.ControlOff && globals.pad0->pressed & XPAD_BUTTON_SQUARE);
1619}
1620
1621// probably equivalent: looks like sda relocation memes on sPlayerCollAdjust
1622static U32 BubbleBashCB(xAnimTransition*, xAnimSingle* anim, void*)

Callers

nothing calls this directly

Calls 1

zEntTeleportBox_playerInFunction · 0.85

Tested by

no test coverage detected