Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 24 additions & 11 deletions src/melee/ft/chara/ftKirby/ftKb_Init.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
#include <baselib/random.h>
#include <MSL/math.h>

void ftAnim_80070458_proto(Fighter* fp, struct KirbyFV_x44_t*, int);

MotionState ftKb_Init_MotionStateTable[ftKb_MS_SelfCount] = {
{
// ftKb_MS_JumpAerialF1 = 341
Expand Down Expand Up @@ -3197,17 +3199,23 @@ void ftKb_Init_OnKnockbackExit(HSD_GObj* gobj)
Fighter_OnKnockbackExit(gobj, 1);
}

void ftKb_Init_UnkDemoCallbacks0(int arg0, int* arg1, int* arg2)
void ftKb_Init_UnkDemoCallbacks0(int kind, int* out1, int* out2)
{
if (arg0 != 14) {
if (arg0 < 14 && arg0 >= 11) {
*arg1 = 14;
*arg2 = 16;
}
} else {
*arg2 = 17;
*arg1 = 17;
if (kind == 14) {
goto case14;
}
if (kind >= 14) {
return;
}
if (kind < 11) {
return;
}
*out1 = 14;
*out2 = 16;
return;
case14:
*out2 = 17;
*out1 = 17;
}

char* ftKb_Init_GetMotionFileString(enum_t arg0)
Expand Down Expand Up @@ -3269,8 +3277,13 @@ void ftKb_Init_UnkCallbackPairs0_0(Fighter_GObj* gobj)
}
}

/// #ftKb_Init_UnkCallbackPairs0_1

void ftKb_Init_UnkCallbackPairs0_1(Fighter_GObj* gobj, int arg1, float arg2)
{
Fighter* fp = GET_FIGHTER(gobj);
if (fp->fv.kb.hat.x14.data != NULL && fp->fv.kb.hat.jobj == NULL) {
ftAnim_80070458_proto(fp, &fp->fv.kb.x44, arg1);
}
}
void ftKb_SpecialN_800EFA40(HSD_GObj* gobj)
{
Fighter* fp = GET_FIGHTER(gobj);
Expand Down