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

Function zEntPlayerCheckHelmetPop

src/SB/Game/zEntPlayer.cpp:4422–4437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4420}
4421
4422static void zEntPlayerCheckHelmetPop()
4423{
4424 xVec3 vec;
4425 xModelInstance* model = globals.player.sb_models[7];
4426 if ((globals.player.IsBubbleBashing == 0) || (globals.player.sb_models[7]->Flags & 1))
4427 {
4428 return;
4429 }
4430 xMat4x3Mul((xMat4x3*)globals.player.sb_models[7]->Mat,
4431 (xMat4x3*)(&globals.player.ent.model->Mat[5]),
4432 (xMat4x3*)(globals.player.ent.model)->Mat);
4433 xVec3Copy(&vec, (xVec3*)&model->Mat->pos);
4434 vec.y += 0.35f;
4435 zFX_SpawnBubbleHit(&vec, 0x32);
4436 globals.player.IsBubbleBashing = 0;
4437}
4438
4439static void zEntPlayerCheckShoePop()
4440{

Callers

nothing calls this directly

Calls 3

xMat4x3MulFunction · 0.85
xVec3CopyFunction · 0.85
zFX_SpawnBubbleHitFunction · 0.70

Tested by

no test coverage detected