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

Function zEntPlayerEmitTongueBubbles

src/SB/Game/zEntPlayer.cpp:4394–4406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4392}
4393
4394void zEntPlayerEmitTongueBubbles()
4395{
4396 xModelInstance* model = globals.player.sb_models[6];
4397 U8 rand;
4398 xVec3 vec;
4399
4400 if ((model->Flags & 1) && (rand = xrand(), rand < 0x80))
4401 {
4402 xVec3Copy(&vec, (xVec3*)&model->Mat->pos);
4403 vec.y -= 0.5f;
4404 zFX_SpawnBubbleTrail(&vec, 1);
4405 }
4406}
4407
4408void zEntPlayerEmitSlideBubbles()
4409{

Callers

nothing calls this directly

Calls 3

xrandFunction · 0.85
xVec3CopyFunction · 0.85
zFX_SpawnBubbleTrailFunction · 0.70

Tested by

no test coverage detected