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

Function zEntPlayer_IsSneaking

src/SB/Game/zEntPlayer.cpp:3637–3653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3635}
3636
3637S32 zEntPlayer_IsSneaking()
3638{
3639 if (gCurrentPlayer != eCurrentPlayerSpongeBob)
3640 {
3641 return false;
3642 }
3643
3644 U32 flags = globals.player.ent.model->Anim->Single->State->UserFlags;
3645 if ((flags & 1) != 0 || (flags & 0x1e) == 2 || (flags & 0x1e) == 4)
3646 {
3647 return true;
3648 }
3649 else
3650 {
3651 return false;
3652 }
3653}
3654
3655S32 load_talk_filter(U8* filter, xModelAssetParam* params, U32 params_size, S32 max_size)
3656{

Callers 2

zPlatform_UpdateFunction · 0.85
zPlatform_MountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected