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

Function zEntPlayerEmitSlideBubbles

src/SB/Game/zEntPlayer.cpp:4408–4420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4406}
4407
4408void zEntPlayerEmitSlideBubbles()
4409{
4410 xModelInstance* model = globals.player.ent.model;
4411 U8 rand;
4412 xVec3 vec;
4413
4414 if ((model->Flags & 1) && (rand = xrand(), rand < 0x80))
4415 {
4416 xVec3Copy(&vec, (xVec3*)&model->Mat->pos);
4417 vec.y -= 0.5f;
4418 zFX_SpawnBubbleTrail(&vec, 1);
4419 }
4420}
4421
4422static void zEntPlayerCheckHelmetPop()
4423{

Callers

nothing calls this directly

Calls 3

xrandFunction · 0.85
xVec3CopyFunction · 0.85
zFX_SpawnBubbleTrailFunction · 0.70

Tested by

no test coverage detected