MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / SpawnDiveBubbles

Function SpawnDiveBubbles

TombEngine/Game/effects/bubble.cpp:87–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85 }
86
87 void SpawnDiveBubbles(const Vector3& pos, int roomNumber, unsigned int count)
88 {
89 constexpr auto SPAWN_RADIUS = BLOCK(1 / 32.0f);
90
91 auto sphere = BoundingSphere(pos, SPAWN_RADIUS);
92 for (int i = 0; i < count; i++)
93 {
94 auto bubblePos = Random::GeneratePointInSphere(sphere);
95 SpawnBubble(bubblePos, roomNumber, (int)BubbleFlags::HighAmplitude);
96 }
97 }
98
99 void SpawnChaffBubble(const Vector3& pos, int roomNumber)
100 {

Callers 1

HandlePlayerDiveBubblesFunction · 0.85

Calls 2

GeneratePointInSphereFunction · 0.85
SpawnBubbleFunction · 0.85

Tested by

no test coverage detected