Skip to content

Commit

Permalink
zEntPlayer: trails funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
escape209 committed Sep 23, 2024
1 parent 6e32a89 commit 5113dab
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions src/SB/Game/zEntPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3610,6 +3610,62 @@ F32 ComputeFudge(F32 a, F32 b)
return MIN(a, 1.0f);
}



U8 BubbleBounceContrails(xAnimSingle* anim)
{
S32 ret = 0;
xAnimState* state = anim->State;
if
(

((strcmp(state->Name, "BbounceStart01") == 0) && (anim->Time >= 0.9f))
||
(strcmp(state->Name, "BbounceAttack01") == 0)
)
{
ret = 1;
}
return ret;
}

U8 BubbleBashContrails(xAnimSingle* anim)
{
S32 ret = 0;
xAnimState* state = anim->State;
if
(
((strcmp(state->Name, "BbashStart01") == 0) && (anim->Time >= 0.6f))
||
(strcmp(state->Name, "BbashAttack01") == 0) ||
(strcmp(state->Name, "BbashMiss01") == 0) &&
(anim->Time <= 0.125f)
)
{
ret = 1;
}
return ret;
}

U8 StunBubbleTrail(xAnimSingle* anim)
{
S32 ret = 0;
xAnimState* state = anim->State;
if
(
(strcmp(state->Name, "StunFall") == 0)
||
(
(strcmp(state->Name, "StunJump") == 0) &&
(anim->Time >= 0.6f) && (anim->Time <= 1.0f)
)
)
{
ret = 1;
}
return ret;
}

static void load_player_ini(zPlayerSettings& ps, xModelInstance& model, xModelAssetParam* modelass,
U32 params_size)
{
Expand Down

0 comments on commit 5113dab

Please sign in to comment.