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

Method NewTime

src/SB/Game/zNPCTypeBossPatrick.cpp:1567–1584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1565
1566 xVec3Init(&bubbleVel, 0.0f, 1.0f, 0.0f);
1567
1568 for (i = 0; i < 50; i++)
1569 {
1570 if (!(this->glob[i].flags & 1) || (this->glob[i].flags & 4))
1571 {
1572 continue;
1573 }
1574
1575 if (xrand() & 0x200)
1576 {
1577 zParPTankSpawnBubbles(&this->glob[i].lastPos, &bubbleVel, 1, 1.0f);
1578 }
1579
1580 if (xVec3Dist2(&this->glob[i].lastPos, &globals.player.ent.bound.sph.center) < 1.0f)
1581 {
1582 this->bossFlags |= 2;
1583 this->glob[i].flags = 0;
1584 doDamage = 1;
1585
1586 this->playSplat(&this->glob[i].lastPos);
1587

Callers

nothing calls this directly

Calls 4

GetBonePosFunction · 0.70
zGridUpdateEntFunction · 0.70
xQuickCullForBoundFunction · 0.50
NewTimeFunction · 0.50

Tested by

no test coverage detected