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

Method playSplat

src/SB/Game/zNPCTypeBossPatrick.cpp:1634–1673  ·  view source on GitHub ↗

95% match, string offsets are just incorrect for now. Should fix itself when strings are all correct.

Source from the content-addressed store, hash-verified

1632// 95% match, string offsets are just incorrect for now.
1633// Should fix itself when strings are all correct.
1634void zNPCBPatrick::playSplat(xVec3* pos)
1635{
1636 if (this->splatTimer > f1664)
1637 {
1638 this->splatTimer = f832;
1639
1640 F32 picker = xurand() * f2077;
1641
1642 if (picker < f831)
1643 {
1644 xSndPlay3D(xStrHash("b201_rp_spin_spurt1"), f2078, f832, 0, 0, pos, f891, f1659,
1645 SND_CAT_GAME, f832);
1646 }
1647 else if (picker < f891)
1648 {
1649 xSndPlay3D(xStrHash("b201_rp_spin_spurt2"), f2078, f832, 0, 0, pos, f891, f1659,
1650 SND_CAT_GAME, f832);
1651 }
1652 else if (picker < f1051)
1653 {
1654 xSndPlay3D(xStrHash("b201_rp_spin_spurt3"), f2078, f832, 0, 0, pos, f891, f1659,
1655 SND_CAT_GAME, f832);
1656 }
1657 else if (picker < f1670)
1658 {
1659 xSndPlay3D(xStrHash("b201_rp_spin_spurt4"), f2078, f832, 0, 0, pos, f891, f1659,
1660 SND_CAT_GAME, f832);
1661 }
1662 else if (picker < f1049)
1663 {
1664 xSndPlay3D(xStrHash("b201_rp_spin_spurt5"), f2078, f832, 0, 0, pos, f891, f1659,
1665 SND_CAT_GAME, f832);
1666 }
1667 else
1668 {
1669 xSndPlay3D(xStrHash("b201_rp_spin_spurt6"), f2078, f832, 0, 0, pos, f891, f1659,
1670 SND_CAT_GAME, f832);
1671 }
1672 }
1673}
1674
1675U32 zNPCBPatrick::canSpawnChucks()
1676{

Callers 1

RenderGlobsMethod · 0.95

Calls 3

xurandFunction · 0.85
xSndPlay3DFunction · 0.70
xStrHashFunction · 0.50

Tested by

no test coverage detected