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

Function PlayerHitAnimInit

src/SB/Game/zEntPlayer.cpp:4876–4894  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4874}
4875
4876void PlayerHitAnimInit(xModelInstance* model, xAnimTransition* tran, U32* index)
4877{
4878 *index = 0;
4879 xAnimState* state = model->Anim->Table->StateList;
4880 while ((state != NULL) && (*index < 8))
4881 {
4882 if (strncmp(state->Name, "Hit0", 4) == 0)
4883 {
4884 tran[*index].Dest = state;
4885 tran[*index].Callback = NULL;
4886 tran[*index].SrcTime = 0.0;
4887 tran[*index].DestTime = 0.0;
4888 tran[*index].BlendRecip = 5.0f;
4889 tran[*index].BlendOffset = NULL;
4890 (*index)++;
4891 }
4892 state = state->Next;
4893 }
4894}
4895
4896void zEntPlayerPreReset()
4897{

Callers

nothing calls this directly

Calls 1

strncmpFunction · 0.85

Tested by

no test coverage detected