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

Function BubbleBashCB

src/SB/Game/zEntPlayer.cpp:1622–1637  ·  view source on GitHub ↗

probably equivalent: looks like sda relocation memes on sPlayerCollAdjust

Source from the content-addressed store, hash-verified

1620
1621// probably equivalent: looks like sda relocation memes on sPlayerCollAdjust
1622static U32 BubbleBashCB(xAnimTransition*, xAnimSingle* anim, void*)
1623{
1624 zEntPlayer_SNDPlay(ePlayerSnd_BubbleBashStart, 0.0f);
1625 zEntPlayer_SNDStop(ePlayerSnd_SlipLoop);
1626
1627 globals.player.ent.frame->vel.y = 0.0f;
1628 bbash_start_ht = globals.player.ent.frame->mat.pos.y + sPlayerCollAdjust;
1629 bbash_tmr = -globals.player.g.BBashDelay;
1630 bbash_end_tmr = 0.25f;
1631 globals.player.JumpState = 2;
1632 bbash_hit = 0;
1633
1634 zCameraMinTargetHeightSet(bbash_start_ht);
1635
1636 return 0;
1637}
1638
1639static U32 BBashStrikeCheck(xAnimTransition*, xAnimSingle* anim, void*)
1640{

Callers

nothing calls this directly

Calls 3

zEntPlayer_SNDPlayFunction · 0.85
zEntPlayer_SNDStopFunction · 0.85

Tested by

no test coverage detected