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

Function zEntPlayer_MoveInfo

src/SB/Game/zEntPlayer.cpp:4589–4642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4587}
4588
4589S32 zEntPlayer_MoveInfo()
4590{
4591 U32 flags = 0;
4592 U32 userFlags1e = globals.player.ent.model->Anim->Single->State->UserFlags & 0x1e;
4593 const char* animName = globals.player.ent.model->Anim->Single->State->Name;
4594
4595 if (userFlags1e == 0 || globals.player.ent.model->Anim->Single->State->UserFlags & 1)
4596 {
4597 flags |= 1;
4598 }
4599
4600 if (userFlags1e == 4)
4601 {
4602 flags |= 2;
4603 }
4604
4605 if ((userFlags1e == 6) || (userFlags1e == 8))
4606 {
4607 flags |= 4;
4608 }
4609
4610 if (globals.player.IsBubbleSpinning || strcmp(animName, "Bspin01") == 0)
4611 {
4612 flags |= 0x20;
4613 }
4614
4615 if (strcmp(animName, "BbashStart01") == 0)
4616 {
4617 flags |= 8;
4618 }
4619
4620 if ((strcmp(animName, "BbounceStrike01") == 0) || (strcmp(animName, "BbounceStart01") == 0) ||
4621 (strcmp(animName, "BbounceAttack01") == 0))
4622 {
4623 flags |= 0x10;
4624 }
4625
4626 if (userFlags1e == 0xe)
4627 {
4628 flags |= 0x10;
4629 }
4630
4631 if (userFlags1e == 0xc)
4632 {
4633 flags |= 0x20;
4634 }
4635
4636 if (userFlags1e == 2 || flags & 1 || flags & 2)
4637 {
4638 flags |= 0x40;
4639 }
4640
4641 return flags;
4642}
4643
4644void zEntPlayer_GiveHealth(S32 quantity)
4645{

Callers 1

ConvertHitEventMethod · 0.70

Calls 1

strcmpFunction · 0.85

Tested by

no test coverage detected