replace all ArwingInfo unks for names

This commit is contained in:
Alejandro Javier Asenjo Nitti 2024-08-15 04:01:44 -03:00
parent 02ea67c9cc
commit 76f7d6e335
24 changed files with 150 additions and 145 deletions

View File

@ -127,23 +127,23 @@ typedef struct PlayerShot {
/* 0x6C */ u8 bonus; /* 0x6C */ u8 bonus;
} PlayerShot; // size = 0x70 } PlayerShot; // size = 0x70
typedef struct ArwingInfo { // ArArwingInfo typedef struct ArwingInfo {
/* 0x00 */ u8 rightWingState; // rightWingState /* 0x00 */ u8 rightWingState;
/* 0x01 */ u8 leftWingState; // leftWingState /* 0x01 */ u8 leftWingState;
/* 0x04 */ f32 upperRightFlapYrot; // upperRightFlapYrot /* 0x04 */ f32 upperRightFlapYrot;
/* 0x08 */ f32 bottomRightFlapYrot; // bottomRightFlapYrot /* 0x08 */ f32 bottomRightFlapYrot;
/* 0x0C */ f32 upperLeftFlapYrot; // upperLeftFlapYrot /* 0x0C */ f32 upperLeftFlapYrot;
/* 0x10 */ f32 unk_10; // bottomLeftFlapYrot /* 0x10 */ f32 bottomLeftFlapYrot;
/* 0x14 */ f32 unk_14; // laserGunsYpos /* 0x14 */ f32 laserGunsYpos;
/* 0x18 */ f32 unk_18; // laserGunsXpos /* 0x18 */ f32 laserGunsXpos;
/* 0x1C */ f32 unk_1C; // wingsXrot /* 0x1C */ f32 wingsXrot;
/* 0x20 */ f32 unk_20; // wingsYrot /* 0x20 */ f32 wingsYrot;
/* 0x24 */ f32 unk_24; // wingsZrot /* 0x24 */ f32 wingsZrot;
/* 0x28 */ f32 unk_28; /* 0x28 */ f32 unk_28;
/* 0x2C */ u8 modelId; // teamFaceId /* 0x2C */ u8 teamFaceId;
/* 0x30 */ f32 unk_30; // teamFaceXrot /* 0x30 */ f32 teamFaceXrot;
/* 0x34 */ f32 unk_34; // teamFaceYrot /* 0x34 */ f32 teamFaceYrot;
/* 0x38 */ f32 unk_38; // windshieldXrot /* 0x38 */ f32 windshieldXrot;
} ArwingInfo; // size = 0x3C } ArwingInfo; // size = 0x3C
typedef struct PlayerSfx { typedef struct PlayerSfx {

View File

@ -170,7 +170,7 @@ void AllRange_GreatFoxRepair(Player* player) {
player->pos.z = 0.0f; player->pos.z = 0.0f;
gCsCamAtZ = 0.0f; gCsCamAtZ = 0.0f;
D_ctx_80177A48[0] = 1.0f; D_ctx_80177A48[0] = 1.0f;
player->arwing.modelId = 1; player->arwing.teamFaceId = 1;
player->csState++; player->csState++;
break; break;
@ -230,7 +230,7 @@ void AllRange_GreatFoxRepair(Player* player) {
player->rot.x += 0.4f; player->rot.x += 0.4f;
if (gCsFrameCount >= 130) { if (gCsFrameCount >= 130) {
player->state_1C8 = PLAYERSTATE_1C8_ACTIVE; player->state_1C8 = PLAYERSTATE_1C8_ACTIVE;
player->arwing.modelId = 0; player->arwing.teamFaceId = 0;
player->unk_014 = 0; player->unk_014 = 0;
player->unk_018 = 0; player->unk_018 = 0;
player->unk_01C = 0; player->unk_01C = 0;

View File

@ -130,7 +130,7 @@ void Cutscene_WarpZoneComplete(Player* player) {
D_ctx_80177A48[0] = 0.0f; D_ctx_80177A48[0] = 0.0f;
D_ctx_80177A48[1] = 0.0f; D_ctx_80177A48[1] = 0.0f;
D_ctx_80177A48[2] = 0.0f; D_ctx_80177A48[2] = 0.0f;
player->arwing.modelId = 1; player->arwing.teamFaceId = 1;
gCsFrameCount = 0; gCsFrameCount = 0;
/* fallthrough */ /* fallthrough */
case 1: case 1:
@ -776,7 +776,7 @@ void Cutscene_AllRangeMode(Player* player) {
} }
} }
} }
player->arwing.unk_10 = 0.0f; player->arwing.bottomLeftFlapYrot = 0.0f;
player->arwing.bottomRightFlapYrot = 0.0f; player->arwing.bottomRightFlapYrot = 0.0f;
player->arwing.upperLeftFlapYrot = 0.0f; player->arwing.upperLeftFlapYrot = 0.0f;
player->arwing.upperRightFlapYrot = 0.0f; player->arwing.upperRightFlapYrot = 0.0f;
@ -796,7 +796,7 @@ void Cutscene_AllRangeMode(Player* player) {
D_ctx_80177A48[1] = 0.0f; D_ctx_80177A48[1] = 0.0f;
D_ctx_80177A48[2] = 60.0f; D_ctx_80177A48[2] = 60.0f;
D_ctx_80177A48[3] = 0.0f; D_ctx_80177A48[3] = 0.0f;
player->arwing.modelId = 1; player->arwing.teamFaceId = 1;
player->csState++; player->csState++;
gCsFrameCount = 0; gCsFrameCount = 0;
/* fallthrough */ /* fallthrough */
@ -921,11 +921,11 @@ void Cutscene_CoComplete2(Player* player) {
player->arwing.upperRightFlapYrot = 0.0f; player->arwing.upperRightFlapYrot = 0.0f;
player->arwing.upperLeftFlapYrot = 0.0f; player->arwing.upperLeftFlapYrot = 0.0f;
player->arwing.bottomRightFlapYrot = 0.0f; player->arwing.bottomRightFlapYrot = 0.0f;
player->arwing.unk_10 = 0.0f; player->arwing.bottomLeftFlapYrot = 0.0f;
player->zRotBarrelRoll = 0.0f; player->zRotBarrelRoll = 0.0f;
player->zRotBank = 0.0f; player->zRotBank = 0.0f;
player->boostSpeed = 0.0f; player->boostSpeed = 0.0f;
player->arwing.modelId = 1; player->arwing.teamFaceId = 1;
player->baseSpeed = 40.0f; player->baseSpeed = 40.0f;
/* fallthrough */ /* fallthrough */
@ -1020,7 +1020,7 @@ void Cutscene_CoComplete2(Player* player) {
if (player->csTimer == 0) { if (player->csTimer == 0) {
player->csState = 1; player->csState = 1;
player->csTimer = 150; player->csTimer = 150;
player->arwing.unk_10 = 0.0f; player->arwing.bottomLeftFlapYrot = 0.0f;
player->arwing.bottomRightFlapYrot = 0.0f; player->arwing.bottomRightFlapYrot = 0.0f;
player->arwing.upperLeftFlapYrot = 0.0f; player->arwing.upperLeftFlapYrot = 0.0f;
player->arwing.upperRightFlapYrot = 0.0f; player->arwing.upperRightFlapYrot = 0.0f;
@ -1451,7 +1451,7 @@ void Cutscene_UTurn(Player* player) {
Math_SmoothStepToF(&player->arwing.upperRightFlapYrot, sp58.y, 0.3f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.upperRightFlapYrot, sp58.y, 0.3f, 100.0f, 0.0f);
Math_SmoothStepToF(&player->arwing.bottomRightFlapYrot, sp58.y, 0.3f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.bottomRightFlapYrot, sp58.y, 0.3f, 100.0f, 0.0f);
Math_SmoothStepToF(&player->arwing.upperLeftFlapYrot, sp58.y, 0.3f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.upperLeftFlapYrot, sp58.y, 0.3f, 100.0f, 0.0f);
Math_SmoothStepToF(&player->arwing.unk_10, sp58.y, 0.3f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.bottomLeftFlapYrot, sp58.y, 0.3f, 100.0f, 0.0f);
Math_SmoothStepToF(&player->zRotBank, 0.0f, 0.1f, 15.0f, 0.0f); Math_SmoothStepToF(&player->zRotBank, 0.0f, 0.1f, 15.0f, 0.0f);
Math_SmoothStepToF(&player->aerobaticPitch, 190.0f, 0.1f, 6.0f, 0.001f); Math_SmoothStepToF(&player->aerobaticPitch, 190.0f, 0.1f, 6.0f, 0.001f);
@ -1485,7 +1485,7 @@ void Cutscene_UTurn(Player* player) {
sp58.z = -sp58.y; sp58.z = -sp58.y;
Math_SmoothStepToF(&player->arwing.upperLeftFlapYrot, sp58.z, 0.3f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.upperLeftFlapYrot, sp58.z, 0.3f, 100.0f, 0.0f);
Math_SmoothStepToF(&player->arwing.unk_10, sp58.z, 0.3f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.bottomLeftFlapYrot, sp58.z, 0.3f, 100.0f, 0.0f);
player->unk_190 = 2.0f; player->unk_190 = 2.0f;
player->cam.eye.x += player->vel.x * 0.1f; player->cam.eye.x += player->vel.x * 0.1f;

View File

@ -535,24 +535,24 @@ bool Display_ArwingWingsOverrideLimbDraw(s32 limbIndex, Gfx** gfxPtr, Vec3f* pos
rot->y -= arwing->bottomRightFlapYrot; rot->y -= arwing->bottomRightFlapYrot;
break; break;
case 5: case 5:
rot->y -= arwing->unk_10; rot->y -= arwing->bottomLeftFlapYrot;
break; break;
case 6: case 6:
rot->y -= arwing->upperLeftFlapYrot; rot->y -= arwing->upperLeftFlapYrot;
break; break;
case 12: case 12:
rot->z += arwing->unk_20; rot->z += arwing->wingsYrot;
break; break;
case 13: case 13:
rot->z += arwing->unk_20; rot->z += arwing->wingsYrot;
break; break;
case 4: case 4:
pos->z -= arwing->unk_14; pos->z -= arwing->laserGunsYpos;
pos->x += arwing->unk_18; pos->x += arwing->laserGunsXpos;
break; break;
case 8: case 8:
pos->z += arwing->unk_14; pos->z += arwing->laserGunsYpos;
pos->x += arwing->unk_18; pos->x += arwing->laserGunsXpos;
break; break;
} }
return false; return false;
@ -560,13 +560,13 @@ bool Display_ArwingWingsOverrideLimbDraw(s32 limbIndex, Gfx** gfxPtr, Vec3f* pos
void Display_ArwingWings(ArwingInfo* arwing) { void Display_ArwingWings(ArwingInfo* arwing) {
Vec3f sp68[30]; Vec3f sp68[30];
s32 modelId; s32 teamFaceId;
Matrix_Push(&gGfxMatrix); Matrix_Push(&gGfxMatrix);
arwing->unk_18 = 0.0f; arwing->laserGunsXpos = 0.0f;
if (arwing->unk_14 < -7.0f) { if (arwing->laserGunsYpos < -7.0f) {
arwing->unk_18 = (-arwing->unk_14 - 7.0f) * 2.5f; arwing->laserGunsXpos = (-arwing->laserGunsYpos - 7.0f) * 2.5f;
} }
if (gGameState == GSTATE_PLAY) { if (gGameState == GSTATE_PLAY) {
@ -584,31 +584,31 @@ void Display_ArwingWings(ArwingInfo* arwing) {
D_display_800CA22C = false; D_display_800CA22C = false;
modelId = arwing->modelId; teamFaceId = arwing->teamFaceId;
if (D_display_800CA220 != 0) { if (D_display_800CA220 != 0) {
modelId = 1; teamFaceId = 1;
} }
if (modelId != 0) { if (teamFaceId != 0) {
Matrix_Push(&gGfxMatrix); Matrix_Push(&gGfxMatrix);
Matrix_Translate(gGfxMatrix, 0.0f, 6.4f, -16.5f, MTXF_APPLY); Matrix_Translate(gGfxMatrix, 0.0f, 6.4f, -16.5f, MTXF_APPLY);
Matrix_RotateY(gGfxMatrix, arwing->unk_34 * M_DTOR, MTXF_APPLY); Matrix_RotateY(gGfxMatrix, arwing->teamFaceYrot * M_DTOR, MTXF_APPLY);
Matrix_RotateX(gGfxMatrix, arwing->unk_30 * M_DTOR, MTXF_APPLY); Matrix_RotateX(gGfxMatrix, arwing->teamFaceXrot * M_DTOR, MTXF_APPLY);
Matrix_Scale(gGfxMatrix, 1.0f / 70.925f, 1.0f / 70.925f, 1.0f / 70.925f, MTXF_APPLY); Matrix_Scale(gGfxMatrix, 1.0f / 70.925f, 1.0f / 70.925f, 1.0f / 70.925f, MTXF_APPLY);
if (gGameState == GSTATE_ENDING) { if (gGameState == GSTATE_ENDING) {
Matrix_Scale(gGfxMatrix, 0.95f, 0.95f, 0.95f, MTXF_APPLY); Matrix_Scale(gGfxMatrix, 0.95f, 0.95f, 0.95f, MTXF_APPLY);
} }
Matrix_SetGfxMtx(&gMasterDisp); Matrix_SetGfxMtx(&gMasterDisp);
if (gExpertMode) { if (gExpertMode) {
gSPDisplayList(gMasterDisp++, D_display_800CA27C[modelId - 1]); gSPDisplayList(gMasterDisp++, D_display_800CA27C[teamFaceId - 1]);
} else { } else {
gSPDisplayList(gMasterDisp++, D_display_800CA26C[modelId - 1]); gSPDisplayList(gMasterDisp++, D_display_800CA26C[teamFaceId - 1]);
} }
Matrix_Pop(&gGfxMatrix); Matrix_Pop(&gGfxMatrix);
} }
Matrix_Translate(gGfxMatrix, 0.0f, 17.2f, -25.8f, MTXF_APPLY); Matrix_Translate(gGfxMatrix, 0.0f, 17.2f, -25.8f, MTXF_APPLY);
Matrix_RotateX(gGfxMatrix, arwing->unk_38 * M_DTOR, MTXF_APPLY); Matrix_RotateX(gGfxMatrix, arwing->windshieldXrot * M_DTOR, MTXF_APPLY);
Matrix_SetGfxMtx(&gMasterDisp); Matrix_SetGfxMtx(&gMasterDisp);
RCP_SetupDL_64_2(); RCP_SetupDL_64_2();
@ -694,7 +694,7 @@ void Display_Arwing(Player* player, s32 reflectY) {
} else { } else {
if ((gLevelType == LEVELTYPE_SPACE) || (gCurrentLevel == LEVEL_BOLSE)) { if ((gLevelType == LEVELTYPE_SPACE) || (gCurrentLevel == LEVEL_BOLSE)) {
player->arwing.unk_28 = player->arwing.upperRightFlapYrot = player->arwing.bottomRightFlapYrot = player->arwing.unk_28 = player->arwing.upperRightFlapYrot = player->arwing.bottomRightFlapYrot =
player->arwing.upperLeftFlapYrot = player->arwing.unk_10 = 0.0f; player->arwing.upperLeftFlapYrot = player->arwing.bottomLeftFlapYrot = 0.0f;
} }
D_display_800CA22C = true; D_display_800CA22C = true;
gReflectY = reflectY; gReflectY = reflectY;
@ -1018,7 +1018,7 @@ void Display_ArwingLaserCharge(Player* player) {
Matrix_Copy(gCalcMatrix, &D_display_80161418[player->num]); Matrix_Copy(gCalcMatrix, &D_display_80161418[player->num]);
laserStrength = gLaserStrength[player->num]; laserStrength = gLaserStrength[player->num];
if (player->arwing.unk_14 > -8.0f) { if (player->arwing.laserGunsYpos > -8.0f) {
laserStrength = LASERS_SINGLE; laserStrength = LASERS_SINGLE;
} }
@ -1620,8 +1620,8 @@ void Display_CsLevelCompleteHandleCamera(Player* player) {
switch (D_display_800CA220) { switch (D_display_800CA220) {
case 0: case 0:
Math_SmoothStepToAngle(&player->arwing.unk_30, 0.0f, 0.2f, 3.0f, 0.0f); Math_SmoothStepToAngle(&player->arwing.teamFaceXrot, 0.0f, 0.2f, 3.0f, 0.0f);
Math_SmoothStepToAngle(&player->arwing.unk_34, 0.0f, 0.2f, 3.0f, 0.0f); Math_SmoothStepToAngle(&player->arwing.teamFaceYrot, 0.0f, 0.2f, 3.0f, 0.0f);
gPlayCamEye.x = player->cam.eye.x; gPlayCamEye.x = player->cam.eye.x;
gPlayCamEye.y = player->cam.eye.y; gPlayCamEye.y = player->cam.eye.y;
gPlayCamEye.z = player->cam.eye.z; gPlayCamEye.z = player->cam.eye.z;
@ -1651,8 +1651,8 @@ void Display_CsLevelCompleteHandleCamera(Player* player) {
} }
sp3C = 360.0f - sp3C; sp3C = 360.0f - sp3C;
Math_SmoothStepToAngle(&player->arwing.unk_30, sp38, 0.2f, 6.0f, 0.0f); Math_SmoothStepToAngle(&player->arwing.teamFaceXrot, sp38, 0.2f, 6.0f, 0.0f);
Math_SmoothStepToAngle(&player->arwing.unk_34, sp3C, 0.2f, 6.0f, 0.0f); Math_SmoothStepToAngle(&player->arwing.teamFaceYrot, sp3C, 0.2f, 6.0f, 0.0f);
Math_SmoothStepToF(&D_display_800CA380, gControllerPress[0].stick_y * 0.75f, 0.1f, 2.0f, 0.0f); Math_SmoothStepToF(&D_display_800CA380, gControllerPress[0].stick_y * 0.75f, 0.1f, 2.0f, 0.0f);
Math_SmoothStepToF(&D_display_800CA384, gControllerPress[0].stick_x * 3.0f, 0.1f, 5.0f, 0.0f); Math_SmoothStepToF(&D_display_800CA384, gControllerPress[0].stick_x * 3.0f, 0.1f, 5.0f, 0.0f);

View File

@ -535,16 +535,16 @@ void func_edisplay_8005B388(Actor199* actor) {
D_edisplay_80161630.upperRightFlapYrot = actor->fwork[15]; D_edisplay_80161630.upperRightFlapYrot = actor->fwork[15];
D_edisplay_80161630.upperLeftFlapYrot = actor->fwork[16]; D_edisplay_80161630.upperLeftFlapYrot = actor->fwork[16];
D_edisplay_80161630.bottomRightFlapYrot = actor->fwork[26]; D_edisplay_80161630.bottomRightFlapYrot = actor->fwork[26];
D_edisplay_80161630.unk_10 = actor->fwork[27]; D_edisplay_80161630.bottomLeftFlapYrot = actor->fwork[27];
D_edisplay_80161630.unk_14 = D_edisplay_80161630.unk_18 = D_edisplay_80161630.unk_1C = D_edisplay_80161630.laserGunsYpos = D_edisplay_80161630.laserGunsXpos = D_edisplay_80161630.wingsXrot =
D_edisplay_80161630.unk_20 = D_edisplay_80161630.unk_38 = D_edisplay_80161630.unk_24 = 0.0f; D_edisplay_80161630.wingsYrot = D_edisplay_80161630.windshieldXrot = D_edisplay_80161630.wingsZrot = 0.0f;
D_edisplay_80161630.unk_28 = actor->fwork[17]; D_edisplay_80161630.unk_28 = actor->fwork[17];
D_edisplay_80161630.modelId = actor->iwork[14]; D_edisplay_80161630.teamFaceId = actor->iwork[14];
D_edisplay_80161630.unk_30 = actor->fwork[20]; D_edisplay_80161630.teamFaceXrot = actor->fwork[20];
D_edisplay_80161630.unk_34 = actor->fwork[19]; D_edisplay_80161630.teamFaceYrot = actor->fwork[19];
if (gLevelType == LEVELTYPE_SPACE) { if (gLevelType == LEVELTYPE_SPACE) {
D_edisplay_80161630.upperRightFlapYrot = D_edisplay_80161630.bottomRightFlapYrot = D_edisplay_80161630.upperLeftFlapYrot = D_edisplay_80161630.upperRightFlapYrot = D_edisplay_80161630.bottomRightFlapYrot =
D_edisplay_80161630.unk_10 = 0.0f; D_edisplay_80161630.upperLeftFlapYrot = D_edisplay_80161630.bottomLeftFlapYrot = 0.0f;
} }
Display_ArwingWings(&D_edisplay_80161630); Display_ArwingWings(&D_edisplay_80161630);
} else if (gLevelType == LEVELTYPE_PLANET) { } else if (gLevelType == LEVELTYPE_PLANET) {

View File

@ -2570,25 +2570,25 @@ void ActorEvent_ProcessTriggers(ActorEvent* this) {
break; break;
case EVC_SINGLE_LASER: case EVC_SINGLE_LASER:
if (gPlayer[0].arwing.unk_14 > -8.0f) { if (gPlayer[0].arwing.laserGunsYpos > -8.0f) {
ActorEvent_TriggerBranch(this); ActorEvent_TriggerBranch(this);
} }
break; break;
case EVC_TWIN_LASER: case EVC_TWIN_LASER:
if ((gPlayer[0].arwing.unk_14 < -8.0f) && (gLaserStrength[0] == LASERS_TWIN)) { if ((gPlayer[0].arwing.laserGunsYpos < -8.0f) && (gLaserStrength[0] == LASERS_TWIN)) {
ActorEvent_TriggerBranch(this); ActorEvent_TriggerBranch(this);
} }
break; break;
case EVC_HYPER_LASER: case EVC_HYPER_LASER:
if ((gPlayer[0].arwing.unk_14 < -8.0f) && (gLaserStrength[0] == LASERS_HYPER)) { if ((gPlayer[0].arwing.laserGunsYpos < -8.0f) && (gLaserStrength[0] == LASERS_HYPER)) {
ActorEvent_TriggerBranch(this); ActorEvent_TriggerBranch(this);
} }
break; break;
case EVC_UNK3_LASER: case EVC_UNK3_LASER:
if ((gPlayer[0].arwing.unk_14 < -8.0f) && (gLaserStrength[0] == LASERS_UNK_3)) { if ((gPlayer[0].arwing.laserGunsYpos < -8.0f) && (gLaserStrength[0] == LASERS_UNK_3)) {
ActorEvent_TriggerBranch(this); ActorEvent_TriggerBranch(this);
} }
break; break;

View File

@ -3027,7 +3027,7 @@ void Player_ArwingLaser(Player* player) {
LaserStrength laser; LaserStrength laser;
laser = gLaserStrength[gPlayerNum]; laser = gLaserStrength[gPlayerNum];
if (player->arwing.unk_14 > -8.0f) { if (player->arwing.laserGunsYpos > -8.0f) {
laser = LASERS_SINGLE; laser = LASERS_SINGLE;
} }
@ -3301,9 +3301,9 @@ void Player_Shoot(Player* player) {
if (!Player_UpdateLockOn(player)) { if (!Player_UpdateLockOn(player)) {
if (gLaserStrength[gPlayerNum] > LASERS_SINGLE) { if (gLaserStrength[gPlayerNum] > LASERS_SINGLE) {
Math_SmoothStepToF(&player->arwing.unk_14, -10.0f, 1.0f, 0.5f, 0.0f); Math_SmoothStepToF(&player->arwing.laserGunsYpos, -10.0f, 1.0f, 0.5f, 0.0f);
} else { } else {
Math_SmoothStepToF(&player->arwing.unk_14, 0.0f, 1.0f, 0.5f, 0.0f); Math_SmoothStepToF(&player->arwing.laserGunsYpos, 0.0f, 1.0f, 0.5f, 0.0f);
} }
if (gShootButton[player->num] & gInputPress->button) { if (gShootButton[player->num] & gInputPress->button) {
Player_ArwingLaser(player); Player_ArwingLaser(player);
@ -3366,7 +3366,7 @@ void Player_ArwingBank(Player* player) {
Math_SmoothStepToF(&player->arwing.upperRightFlapYrot, -70.0f, 0.3f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.upperRightFlapYrot, -70.0f, 0.3f, 100.0f, 0.0f);
Math_SmoothStepToF(&player->arwing.bottomRightFlapYrot, -70.0f, 0.3f, 100.0f, 0.f); Math_SmoothStepToF(&player->arwing.bottomRightFlapYrot, -70.0f, 0.3f, 100.0f, 0.f);
Math_SmoothStepToF(&player->arwing.upperLeftFlapYrot, 70.0f, 0.3f, 100.0f, 0.f); Math_SmoothStepToF(&player->arwing.upperLeftFlapYrot, 70.0f, 0.3f, 100.0f, 0.f);
Math_SmoothStepToF(&player->arwing.unk_10, 70.0f, 0.3f, 100.0f, 0.f); Math_SmoothStepToF(&player->arwing.bottomLeftFlapYrot, 70.0f, 0.3f, 100.0f, 0.f);
if (player->pos.y < (gGroundHeight + 70.0f)) { if (player->pos.y < (gGroundHeight + 70.0f)) {
player->pos.y += 6.0f; player->pos.y += 6.0f;
} }
@ -3380,7 +3380,7 @@ void Player_ArwingBank(Player* player) {
Math_SmoothStepToF(&player->arwing.upperRightFlapYrot, 70.0f, 0.3f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.upperRightFlapYrot, 70.0f, 0.3f, 100.0f, 0.0f);
Math_SmoothStepToF(&player->arwing.bottomRightFlapYrot, 70.0f, 0.3f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.bottomRightFlapYrot, 70.0f, 0.3f, 100.0f, 0.0f);
Math_SmoothStepToF(&player->arwing.upperLeftFlapYrot, -70.0f, 0.3f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.upperLeftFlapYrot, -70.0f, 0.3f, 100.0f, 0.0f);
Math_SmoothStepToF(&player->arwing.unk_10, -70.0f, 0.3f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.bottomLeftFlapYrot, -70.0f, 0.3f, 100.0f, 0.0f);
if (player->pos.y < (gGroundHeight + 70.0f)) { if (player->pos.y < (gGroundHeight + 70.0f)) {
player->pos.y += 6.0f; player->pos.y += 6.0f;
} }
@ -3601,7 +3601,7 @@ void Player_MoveArwing360(Player* player) {
Math_SmoothStepToF(&player->arwing.upperRightFlapYrot, -sp60 + sp5C, 0.1f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.upperRightFlapYrot, -sp60 + sp5C, 0.1f, 100.0f, 0.0f);
Math_SmoothStepToF(&player->arwing.bottomRightFlapYrot, -sp60 - sp5C, 0.1f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.bottomRightFlapYrot, -sp60 - sp5C, 0.1f, 100.0f, 0.0f);
Math_SmoothStepToF(&player->arwing.upperLeftFlapYrot, -sp60 + sp58, 0.1f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.upperLeftFlapYrot, -sp60 + sp58, 0.1f, 100.0f, 0.0f);
Math_SmoothStepToF(&player->arwing.unk_10, -sp60 - sp58, 0.1f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.bottomLeftFlapYrot, -sp60 - sp58, 0.1f, 100.0f, 0.0f);
scale = 0.1f; scale = 0.1f;
if ((player->zRotBank > 10.0f) && (sp7C > 0)) { if ((player->zRotBank > 10.0f) && (sp7C > 0)) {
@ -3736,7 +3736,7 @@ void Player_PerformLoop(Player* player) {
Math_SmoothStepToF(&player->arwing.upperRightFlapYrot, sp58, 0.3f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.upperRightFlapYrot, sp58, 0.3f, 100.0f, 0.0f);
Math_SmoothStepToF(&player->arwing.bottomRightFlapYrot, sp58, 0.3f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.bottomRightFlapYrot, sp58, 0.3f, 100.0f, 0.0f);
Math_SmoothStepToF(&player->arwing.upperLeftFlapYrot, sp58, 0.3f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.upperLeftFlapYrot, sp58, 0.3f, 100.0f, 0.0f);
Math_SmoothStepToF(&player->arwing.unk_10, sp58, 0.3f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.bottomLeftFlapYrot, sp58, 0.3f, 100.0f, 0.0f);
if (player->aerobaticPitch < 180.0f) { if (player->aerobaticPitch < 180.0f) {
player->pos.y += 2.0f; player->pos.y += 2.0f;
@ -3864,7 +3864,7 @@ void Player_MoveArwingOnRails(Player* player) {
Math_SmoothStepToF(&player->arwing.upperRightFlapYrot, (-sp7C) + sp78, 0.1f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.upperRightFlapYrot, (-sp7C) + sp78, 0.1f, 100.0f, 0.0f);
Math_SmoothStepToF(&player->arwing.bottomRightFlapYrot, (-sp7C) - sp78, 0.1f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.bottomRightFlapYrot, (-sp7C) - sp78, 0.1f, 100.0f, 0.0f);
Math_SmoothStepToF(&player->arwing.upperLeftFlapYrot, (-sp7C) + sp74, 0.1f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.upperLeftFlapYrot, (-sp7C) + sp74, 0.1f, 100.0f, 0.0f);
Math_SmoothStepToF(&player->arwing.unk_10, (-sp7C) - sp74, 0.1f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.bottomLeftFlapYrot, (-sp7C) - sp74, 0.1f, 100.0f, 0.0f);
} }
sp84 = 0.1f; sp84 = 0.1f;
@ -4793,7 +4793,7 @@ void Player_Setup(Player* playerx) {
} }
if (gLaserStrength[gPlayerNum] > LASERS_SINGLE) { if (gLaserStrength[gPlayerNum] > LASERS_SINGLE) {
player->arwing.unk_14 = -10.0f; player->arwing.laserGunsYpos = -10.0f;
} }
gPauseEnabled = false; gPauseEnabled = false;
} }
@ -5037,7 +5037,7 @@ void Player_ArwingBoost(Player* player) {
Math_SmoothStepToF(&player->arwing.upperRightFlapYrot, 0.0f, 0.5f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.upperRightFlapYrot, 0.0f, 0.5f, 100.0f, 0.0f);
Math_SmoothStepToF(&player->arwing.bottomRightFlapYrot, 0.0f, 0.5f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.bottomRightFlapYrot, 0.0f, 0.5f, 100.0f, 0.0f);
Math_SmoothStepToF(&player->arwing.upperLeftFlapYrot, 0.0f, 0.5f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.upperLeftFlapYrot, 0.0f, 0.5f, 100.0f, 0.0f);
Math_SmoothStepToF(&player->arwing.unk_10, 0.0f, 0.5f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.bottomLeftFlapYrot, 0.0f, 0.5f, 100.0f, 0.0f);
} }
player->boostMeter += sp28; player->boostMeter += sp28;
if (player->boostMeter > 90.0f) { if (player->boostMeter > 90.0f) {
@ -5135,7 +5135,7 @@ void Player_ArwingBrake(Player* player) {
Math_SmoothStepToF(&player->arwing.upperRightFlapYrot, 90.0f, 0.2f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.upperRightFlapYrot, 90.0f, 0.2f, 100.0f, 0.0f);
Math_SmoothStepToF(&player->arwing.bottomRightFlapYrot, -90.0f, 0.2f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.bottomRightFlapYrot, -90.0f, 0.2f, 100.0f, 0.0f);
Math_SmoothStepToF(&player->arwing.upperLeftFlapYrot, 90.0f, 0.2f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.upperLeftFlapYrot, 90.0f, 0.2f, 100.0f, 0.0f);
Math_SmoothStepToF(&player->arwing.unk_10, -90.0f, 0.2f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.bottomLeftFlapYrot, -90.0f, 0.2f, 100.0f, 0.0f);
} }
player->boostMeter += sp30; player->boostMeter += sp30;
@ -5784,14 +5784,14 @@ void Player_Update(Player* player) {
case PLAYERSTATE_1C8_LEVEL_INTRO: case PLAYERSTATE_1C8_LEVEL_INTRO:
gShowHud = 0; gShowHud = 0;
gPauseEnabled = false; gPauseEnabled = false;
player->arwing.modelId = 1; player->arwing.teamFaceId = 1;
Cutscene_LevelStart(player); Cutscene_LevelStart(player);
break; break;
case PLAYERSTATE_1C8_ACTIVE: case PLAYERSTATE_1C8_ACTIVE:
gShowHud = 1; gShowHud = 1;
Player_LowHealthMsg(player); Player_LowHealthMsg(player);
player->arwing.modelId = 0; player->arwing.teamFaceId = 0;
D_hud_80161704 = 255; D_hud_80161704 = 255;
if ((!gVersusMode || gVsMatchStart) && !player->somersault && (gInputPress->button & U_CBUTTONS) && if ((!gVersusMode || gVsMatchStart) && !player->somersault && (gInputPress->button & U_CBUTTONS) &&
@ -5862,12 +5862,12 @@ void Player_Update(Player* player) {
gVsLockOnTimers[player->num][0] = gVsLockOnTimers[player->num][1] = gVsLockOnTimers[player->num][2] = gVsLockOnTimers[player->num][0] = gVsLockOnTimers[player->num][1] = gVsLockOnTimers[player->num][2] =
gVsLockOnTimers[player->num][3] = 0; gVsLockOnTimers[player->num][3] = 0;
} }
player->arwing.modelId = 1; player->arwing.teamFaceId = 1;
Math_SmoothStepToF(&player->arwing.upperRightFlapYrot, 0.0f, 0.1f, 5.0f, 0); Math_SmoothStepToF(&player->arwing.upperRightFlapYrot, 0.0f, 0.1f, 5.0f, 0);
Math_SmoothStepToF(&player->arwing.bottomRightFlapYrot, 0.0f, 0.1f, 5.0f, 0); Math_SmoothStepToF(&player->arwing.bottomRightFlapYrot, 0.0f, 0.1f, 5.0f, 0);
Math_SmoothStepToF(&player->arwing.upperLeftFlapYrot, 0.0f, 0.1f, 5.0f, 0); Math_SmoothStepToF(&player->arwing.upperLeftFlapYrot, 0.0f, 0.1f, 5.0f, 0);
Math_SmoothStepToF(&player->arwing.unk_10, 0.0f, 0.1f, 5.0f, 0); Math_SmoothStepToF(&player->arwing.bottomLeftFlapYrot, 0.0f, 0.1f, 5.0f, 0);
Player_UpdateShields(player); Player_UpdateShields(player);
Cutscene_UTurn(player); Cutscene_UTurn(player);

View File

@ -845,25 +845,25 @@ void Ending_80191294(u32 arg0, AssetInfo* asset) {
Matrix_SetGfxMtx(&gMasterDisp); Matrix_SetGfxMtx(&gMasterDisp);
D_ending_80198590.unk_28 = 0.0f; D_ending_80198590.unk_28 = 0.0f;
D_ending_80198590.unk_10 = D_ending_80198590.unk_28; D_ending_80198590.bottomLeftFlapYrot = D_ending_80198590.unk_28;
D_ending_80198590.unk_14 = 0.0f; D_ending_80198590.laserGunsYpos = 0.0f;
D_ending_80198590.upperLeftFlapYrot = D_ending_80198590.unk_10; D_ending_80198590.upperLeftFlapYrot = D_ending_80198590.bottomLeftFlapYrot;
D_ending_80198590.bottomRightFlapYrot = D_ending_80198590.upperLeftFlapYrot; D_ending_80198590.bottomRightFlapYrot = D_ending_80198590.upperLeftFlapYrot;
D_ending_80198590.upperRightFlapYrot = D_ending_80198590.bottomRightFlapYrot; D_ending_80198590.upperRightFlapYrot = D_ending_80198590.bottomRightFlapYrot;
D_ending_80198590.unk_24 = D_ending_80198590.upperRightFlapYrot; D_ending_80198590.wingsZrot = D_ending_80198590.upperRightFlapYrot;
D_ending_80198590.unk_20 = D_ending_80198590.unk_24; D_ending_80198590.wingsYrot = D_ending_80198590.wingsZrot;
D_ending_80198590.unk_1C = D_ending_80198590.unk_20; D_ending_80198590.wingsXrot = D_ending_80198590.wingsYrot;
D_ending_80198590.unk_18 = D_ending_80198590.unk_1C; D_ending_80198590.laserGunsXpos = D_ending_80198590.wingsXrot;
if ((arg0 > 520) && (arg0 < 720)) { if ((arg0 > 520) && (arg0 < 720)) {
D_ending_80198590.modelId = 1; D_ending_80198590.teamFaceId = 1;
} else { } else {
D_ending_80198590.modelId = 0; D_ending_80198590.teamFaceId = 0;
} }
D_ending_80198590.unk_38 = 0.0f; D_ending_80198590.windshieldXrot = 0.0f;
D_ending_80198590.unk_30 = +D_ending_801985F0.x; D_ending_80198590.teamFaceXrot = +D_ending_801985F0.x;
D_ending_80198590.unk_34 = -D_ending_801985F0.y; D_ending_80198590.teamFaceYrot = -D_ending_801985F0.y;
Display_ArwingWings(&D_ending_80198590); Display_ArwingWings(&D_ending_80198590);
} }

View File

@ -2964,7 +2964,7 @@ void Corneria_LevelStart(Player* player) {
Corneria_SpawnClouds(); Corneria_SpawnClouds();
player->arwing.unk_30 = 0; player->arwing.teamFaceXrot = 0;
switch (player->csState) { switch (player->csState) {
case 0: // LevelStart initialization case 0: // LevelStart initialization
@ -3037,7 +3037,7 @@ void Corneria_LevelStart(Player* player) {
} }
if ((player->csTimer < 190) && (player->csTimer > 150)) { if ((player->csTimer < 190) && (player->csTimer > 150)) {
Math_SmoothStepToF(&player->arwing.unk_24, 2.0f, 0.2f, 0.5f, 0.0f); Math_SmoothStepToF(&player->arwing.wingsZrot, 2.0f, 0.2f, 0.5f, 0.0f);
} }
if (player->csTimer < 150) { if (player->csTimer < 150) {
@ -3082,7 +3082,7 @@ void Corneria_LevelStart(Player* player) {
} }
if (gMsgCharIsPrinting && ((gGameFrameCount & 2) != 0)) { if (gMsgCharIsPrinting && ((gGameFrameCount & 2) != 0)) {
player->arwing.unk_30 = 5.0f; player->arwing.teamFaceXrot = 5.0f;
} }
break; break;
@ -3094,7 +3094,7 @@ void Corneria_LevelStart(Player* player) {
} }
if (gMsgCharIsPrinting && ((gGameFrameCount & 2) != 0)) { if (gMsgCharIsPrinting && ((gGameFrameCount & 2) != 0)) {
player->arwing.unk_30 = 5.0f; player->arwing.teamFaceXrot = 5.0f;
} }
gCsCamEyeY = player->pos.y + 10.0f; gCsCamEyeY = player->pos.y + 10.0f;
@ -3103,7 +3103,7 @@ void Corneria_LevelStart(Player* player) {
case 4: case 4:
if (gMsgCharIsPrinting && ((gGameFrameCount & 2) != 0)) { if (gMsgCharIsPrinting && ((gGameFrameCount & 2) != 0)) {
player->arwing.unk_30 = 5.0f; player->arwing.teamFaceXrot = 5.0f;
} }
Math_SmoothStepToF(&D_ctx_80177A48[0], 0.1f, 1.0f, 0.001f, 0.0f); Math_SmoothStepToF(&D_ctx_80177A48[0], 0.1f, 1.0f, 0.001f, 0.0f);
@ -3250,9 +3250,9 @@ void Corneria_LevelStart(Player* player) {
} }
// Fox's head rotates back and forth as he speaks. // Fox's head rotates back and forth as he speaks.
player->arwing.unk_30 = 0.0f; player->arwing.teamFaceXrot = 0.0f;
if (gMsgCharIsPrinting && ((gGameFrameCount & 2) != 0)) { if (gMsgCharIsPrinting && ((gGameFrameCount & 2) != 0)) {
player->arwing.unk_30 = 5.0f; player->arwing.teamFaceXrot = 5.0f;
} }
if (player->csTimer == 80) { if (player->csTimer == 80) {
@ -3366,7 +3366,7 @@ void Corneria_LevelStart(Player* player) {
Math_SmoothStepToF(&player->arwing.upperLeftFlapYrot, D_ctx_80177A48[2], 0.2f, 1.0f, 0.0f); Math_SmoothStepToF(&player->arwing.upperLeftFlapYrot, D_ctx_80177A48[2], 0.2f, 1.0f, 0.0f);
player->arwing.bottomRightFlapYrot = player->arwing.upperRightFlapYrot; player->arwing.bottomRightFlapYrot = player->arwing.upperRightFlapYrot;
player->arwing.unk_10 = player->arwing.upperLeftFlapYrot; player->arwing.bottomLeftFlapYrot = player->arwing.upperLeftFlapYrot;
player->cam.eye.y -= 3.0f; player->cam.eye.y -= 3.0f;
player->cam.at.y -= 3.0f; player->cam.at.y -= 3.0f;
@ -3450,7 +3450,8 @@ void Corneria_LevelComplete1(Player* player) {
f32 temp_fa1; f32 temp_fa1;
f32 temp_deg; f32 temp_deg;
player->arwing.upperRightFlapYrot = player->arwing.upperLeftFlapYrot = player->arwing.bottomRightFlapYrot = player->arwing.unk_10 = 0.0f; player->arwing.upperRightFlapYrot = player->arwing.upperLeftFlapYrot = player->arwing.bottomRightFlapYrot =
player->arwing.bottomLeftFlapYrot = 0.0f;
Math_SmoothStepToF(&player->zRotBarrelRoll, 0.0f, 0.1f, 15.0f, 0.0f); Math_SmoothStepToF(&player->zRotBarrelRoll, 0.0f, 0.1f, 15.0f, 0.0f);
Math_SmoothStepToF(&player->zRotBank, 0.0f, 0.1f, 15.0f, 0.0f); Math_SmoothStepToF(&player->zRotBank, 0.0f, 0.1f, 15.0f, 0.0f);

View File

@ -2020,7 +2020,7 @@ void Meteo_LevelStart(Player* player) {
} }
if (gCsFrameCount > 660) { if (gCsFrameCount > 660) {
player->arwing.modelId = 0; player->arwing.teamFaceId = 0;
} }
if (gCsFrameCount == 340) { if (gCsFrameCount == 340) {
@ -2238,7 +2238,7 @@ void Meteo_LevelComplete(Player* player) {
D_ctx_80177A48[1] = 0.0f; D_ctx_80177A48[1] = 0.0f;
D_ctx_80177A48[2] = 0.0f; D_ctx_80177A48[2] = 0.0f;
player->arwing.modelId = 1; player->arwing.teamFaceId = 1;
gCsFrameCount = 0; gCsFrameCount = 0;

View File

@ -1741,7 +1741,7 @@ void SectorX_LevelComplete(Player* player) {
D_ctx_80177A48[2] = 100.0f; D_ctx_80177A48[2] = 100.0f;
D_ctx_80177A48[4] = 100.0f; D_ctx_80177A48[4] = 100.0f;
D_ctx_80177A48[5] = 0.0f; D_ctx_80177A48[5] = 0.0f;
player->arwing.modelId = 1; player->arwing.teamFaceId = 1;
Play_ClearObjectData(); Play_ClearObjectData();
case 1: case 1:

View File

@ -2653,7 +2653,7 @@ void Area6_LevelComplete(Player* player) {
case 0: case 0:
gCsFrameCount = 0; gCsFrameCount = 0;
player->csState = 1; player->csState = 1;
player->arwing.modelId = 1; player->arwing.teamFaceId = 1;
player->unk_194 = 5.0f; player->unk_194 = 5.0f;
player->unk_190 = 2.0f; player->unk_190 = 2.0f;
player->baseSpeed = 60.0f; player->baseSpeed = 60.0f;

View File

@ -700,7 +700,7 @@ void Aquas_801AA4BC(Player* player) {
Math_SmoothStepToF(&player->arwing.upperRightFlapYrot, -70.0f, 0.3f, 100.0f, 0); Math_SmoothStepToF(&player->arwing.upperRightFlapYrot, -70.0f, 0.3f, 100.0f, 0);
Math_SmoothStepToF(&player->arwing.bottomRightFlapYrot, -70.0f, 0.3f, 100.0f, 0); Math_SmoothStepToF(&player->arwing.bottomRightFlapYrot, -70.0f, 0.3f, 100.0f, 0);
Math_SmoothStepToF(&player->arwing.upperLeftFlapYrot, 70.0f, 0.3f, 100.0f, 0); Math_SmoothStepToF(&player->arwing.upperLeftFlapYrot, 70.0f, 0.3f, 100.0f, 0);
Math_SmoothStepToF(&player->arwing.unk_10, 70.0f, 0.3f, 100.0f, 0); Math_SmoothStepToF(&player->arwing.bottomLeftFlapYrot, 70.0f, 0.3f, 100.0f, 0);
} }
} }
@ -711,7 +711,7 @@ void Aquas_801AA4BC(Player* player) {
Math_SmoothStepToF(&player->arwing.upperRightFlapYrot, 70.0f, 0.3f, 100.0f, 0); Math_SmoothStepToF(&player->arwing.upperRightFlapYrot, 70.0f, 0.3f, 100.0f, 0);
Math_SmoothStepToF(&player->arwing.bottomRightFlapYrot, 70.0f, 0.3f, 100.0f, 0); Math_SmoothStepToF(&player->arwing.bottomRightFlapYrot, 70.0f, 0.3f, 100.0f, 0);
Math_SmoothStepToF(&player->arwing.upperLeftFlapYrot, -70.0f, 0.3f, 100.0f, 0); Math_SmoothStepToF(&player->arwing.upperLeftFlapYrot, -70.0f, 0.3f, 100.0f, 0);
Math_SmoothStepToF(&player->arwing.unk_10, -70.0f, 0.3f, 100.0f, 0); Math_SmoothStepToF(&player->arwing.bottomLeftFlapYrot, -70.0f, 0.3f, 100.0f, 0);
} }
} }

View File

@ -3149,8 +3149,9 @@ void Solar_LevelComplete(Player* player) {
player->camRoll = player->aerobaticPitch = 0.0f; player->camRoll = player->aerobaticPitch = 0.0f;
player->baseSpeed = 40.0f; player->baseSpeed = 40.0f;
player->arwing.upperRightFlapYrot = player->arwing.upperLeftFlapYrot = player->arwing.bottomRightFlapYrot = player->arwing.unk_10 = player->arwing.upperRightFlapYrot = player->arwing.upperLeftFlapYrot = player->arwing.bottomRightFlapYrot =
player->zRotBarrelRoll = player->zRotBank = player->boostSpeed = 0.0f; player->arwing.bottomLeftFlapYrot = player->zRotBarrelRoll = player->zRotBank = player->boostSpeed =
0.0f;
player->draw = true; player->draw = true;
gCsCamEyeX = player->cam.eye.x; gCsCamEyeX = player->cam.eye.x;
@ -3243,7 +3244,7 @@ void Solar_LevelComplete(Player* player) {
player->pos.y = 200.0f; player->pos.y = 200.0f;
player->pos.z = -(gPathProgress - 500.0f); player->pos.z = -(gPathProgress - 500.0f);
player->csState++; player->csState++;
player->arwing.modelId = 1; player->arwing.teamFaceId = 1;
Audio_StartPlayerNoise(0); Audio_StartPlayerNoise(0);
@ -3278,7 +3279,7 @@ void Solar_LevelComplete(Player* player) {
gFillScreenAlphaStep = 4; gFillScreenAlphaStep = 4;
if (gMsgCharIsPrinting) { if (gMsgCharIsPrinting) {
player->arwing.unk_30 = (s32) (gGameFrameCount % 2U) * 5.0f; player->arwing.teamFaceXrot = (s32) (gGameFrameCount % 2U) * 5.0f;
} }
switch (gCsFrameCount) { switch (gCsFrameCount) {

View File

@ -4763,8 +4763,9 @@ void Zoness_LevelComplete(Player* player) {
player->camRoll = 0.0f; player->camRoll = 0.0f;
player->baseSpeed = 40.0f; player->baseSpeed = 40.0f;
player->draw = true; player->draw = true;
player->arwing.upperRightFlapYrot = player->arwing.upperLeftFlapYrot = player->arwing.bottomRightFlapYrot = player->arwing.unk_10 = player->arwing.upperRightFlapYrot = player->arwing.upperLeftFlapYrot = player->arwing.bottomRightFlapYrot =
player->zRotBarrelRoll = player->zRotBank = player->boostSpeed = 0.0f; player->arwing.bottomLeftFlapYrot = player->zRotBarrelRoll = player->zRotBank = player->boostSpeed =
0.0f;
gCsCamEyeX = player->cam.eye.x; gCsCamEyeX = player->cam.eye.x;
gCsCamEyeY = player->cam.eye.y; gCsCamEyeY = player->cam.eye.y;
@ -4824,7 +4825,7 @@ void Zoness_LevelComplete(Player* player) {
Audio_KillSfxBySource(player->sfxSource); Audio_KillSfxBySource(player->sfxSource);
gFillScreenAlpha = 250; gFillScreenAlpha = 250;
player->csTimer = 20; player->csTimer = 20;
player->arwing.modelId = 1; player->arwing.teamFaceId = 1;
player->baseSpeed = 0.0f; player->baseSpeed = 0.0f;
player->rot.x = 0.0f; player->rot.x = 0.0f;
player->rot.y = 0.0f; player->rot.y = 0.0f;

View File

@ -1461,7 +1461,7 @@ void Bolse_LevelComplete(Player* player) {
gCsFrameCount = 0; gCsFrameCount = 0;
gGroundHeight = -10000.0f; gGroundHeight = -10000.0f;
player->hideShadow = true; player->hideShadow = true;
player->arwing.modelId = 1; player->arwing.teamFaceId = 1;
AUDIO_PLAY_SFX(NA_SE_EN_ANDROSS_EXPLOSION, actor50->sfxSource, 0); AUDIO_PLAY_SFX(NA_SE_EN_ANDROSS_EXPLOSION, actor50->sfxSource, 0);
Audio_StartPlayerNoise(0); Audio_StartPlayerNoise(0);
} }

View File

@ -676,13 +676,13 @@ void Fortuna_LevelComplete(Player* player) {
player->arwing.upperRightFlapYrot = 0.0f; player->arwing.upperRightFlapYrot = 0.0f;
player->arwing.upperLeftFlapYrot = 0.0f; player->arwing.upperLeftFlapYrot = 0.0f;
player->arwing.bottomRightFlapYrot = 0.0f; player->arwing.bottomRightFlapYrot = 0.0f;
player->arwing.unk_10 = 0.0f; player->arwing.bottomLeftFlapYrot = 0.0f;
Math_SmoothStepToF(&player->boostSpeed, 0.0f, 0.1f, 1.5f, 0.0f); Math_SmoothStepToF(&player->boostSpeed, 0.0f, 0.1f, 1.5f, 0.0f);
switch (player->csState) { switch (player->csState) {
case -1: case -1:
player->arwing.modelId = 1; player->arwing.teamFaceId = 1;
player->rot.y = 0.0f; player->rot.y = 0.0f;
player->baseSpeed = 30.0f; player->baseSpeed = 30.0f;
player->yRot_114 = 180.0f; player->yRot_114 = 180.0f;
@ -841,7 +841,7 @@ void Fortuna_LevelComplete(Player* player) {
} }
player->pos.z = -10000.0f; player->pos.z = -10000.0f;
gCsFrameCount = 0; gCsFrameCount = 0;
player->arwing.modelId = 1; player->arwing.teamFaceId = 1;
player->wingPosition = 1; player->wingPosition = 1;
SEQCMD_STOP_SEQUENCE(SEQ_PLAYER_BGM, 100); SEQCMD_STOP_SEQUENCE(SEQ_PLAYER_BGM, 100);
SEQCMD_STOP_SEQUENCE(SEQ_PLAYER_FANFARE, 100); SEQCMD_STOP_SEQUENCE(SEQ_PLAYER_FANFARE, 100);

View File

@ -1800,7 +1800,7 @@ void Katina_LevelComplete(Player* player) {
Vec3f dest; Vec3f dest;
f32 angle; f32 angle;
player->arwing.unk_10 = 0.0f; player->arwing.bottomLeftFlapYrot = 0.0f;
player->arwing.upperLeftFlapYrot = 0.0f; player->arwing.upperLeftFlapYrot = 0.0f;
player->arwing.bottomRightFlapYrot = 0.0f; player->arwing.bottomRightFlapYrot = 0.0f;
player->arwing.upperRightFlapYrot = 0.0f; player->arwing.upperRightFlapYrot = 0.0f;

View File

@ -6515,8 +6515,8 @@ void Macbeth_LevelComplete2(Player* player) {
player->aerobaticPitch = 0.0f; player->aerobaticPitch = 0.0f;
player->camRoll = 0.0f; player->camRoll = 0.0f;
player->boostSpeed = 0.0f; player->boostSpeed = 0.0f;
player->arwing.upperLeftFlapYrot = player->arwing.bottomRightFlapYrot = player->arwing.unk_10 = player->zRotBarrelRoll = player->arwing.upperLeftFlapYrot = player->arwing.bottomRightFlapYrot = player->arwing.bottomLeftFlapYrot =
player->zRotBank = 0.0f; player->zRotBarrelRoll = player->zRotBank = 0.0f;
player->yBob = 0.0f; player->yBob = 0.0f;
player->rockAngle = 0.0f; player->rockAngle = 0.0f;
player->unk_16C = 0.0f; player->unk_16C = 0.0f;
@ -6951,8 +6951,9 @@ void Macbeth_LevelComplete2(Player* player) {
player->yRot_114 = player->aerobaticPitch = player->camRoll = player->unk_174 = player->unk_178 = player->yRot_114 = player->aerobaticPitch = player->camRoll = player->unk_174 = player->unk_178 =
player->unk_17C = player->unk_180 = player->unk_184 = player->arwing.upperRightFlapYrot = player->unk_17C = player->unk_180 = player->unk_184 = player->arwing.upperRightFlapYrot =
player->unk_170 = player->unk_16C = player->rockAngle = player->yBob = player->unk_170 = player->unk_16C = player->rockAngle = player->yBob =
player->arwing.upperLeftFlapYrot = player->arwing.bottomRightFlapYrot = player->arwing.unk_10 = player->arwing.upperLeftFlapYrot = player->arwing.bottomRightFlapYrot =
player->zRotBarrelRoll = player->zRotBank = player->boostSpeed = 0.0f; player->arwing.bottomLeftFlapYrot = player->zRotBarrelRoll = player->zRotBank =
player->boostSpeed = 0.0f;
player->baseSpeed = 5.0f; player->baseSpeed = 5.0f;

View File

@ -3857,12 +3857,13 @@ void Andross_80193C4C(Player* player) {
Math_SmoothStepToF(D_ctx_80177A48, 1.0f, 1.0f, 0.01f, 0.0f); Math_SmoothStepToF(D_ctx_80177A48, 1.0f, 1.0f, 0.01f, 0.0f);
player->arwing.upperRightFlapYrot = player->arwing.bottomRightFlapYrot = player->arwing.upperLeftFlapYrot = player->arwing.unk_10 = 0.0f; player->arwing.upperRightFlapYrot = player->arwing.bottomRightFlapYrot = player->arwing.upperLeftFlapYrot =
player->arwing.bottomLeftFlapYrot = 0.0f;
switch (player->csState) { switch (player->csState) {
case 0: case 0:
gCsFrameCount = 0; gCsFrameCount = 0;
player->arwing.modelId = 1; player->arwing.teamFaceId = 1;
D_ctx_80177A48[0] = 0.0f; D_ctx_80177A48[0] = 0.0f;
if (player->aerobaticPitch > 180.0f) { if (player->aerobaticPitch > 180.0f) {
player->aerobaticPitch -= 360.0f; player->aerobaticPitch -= 360.0f;

View File

@ -2087,8 +2087,8 @@ void SectorY_LevelComplete(Player* player) {
player->camRoll = 0.0f; player->camRoll = 0.0f;
player->baseSpeed = 40.0f; player->baseSpeed = 40.0f;
player->boostSpeed = 0.0f; player->boostSpeed = 0.0f;
player->arwing.upperRightFlapYrot = player->arwing.upperLeftFlapYrot = player->arwing.bottomRightFlapYrot = player->arwing.unk_10 = player->arwing.upperRightFlapYrot = player->arwing.upperLeftFlapYrot = player->arwing.bottomRightFlapYrot =
player->zRotBarrelRoll = player->zRotBank = 0.0f; player->arwing.bottomLeftFlapYrot = player->zRotBarrelRoll = player->zRotBank = 0.0f;
player->draw = true; player->draw = true;
D_ctx_80177A48[8] = Math_RadToDeg( D_ctx_80177A48[8] = Math_RadToDeg(
Math_Atan2F(gPlayer[0].cam.eye.x - boss->obj.pos.x, gPlayer[0].cam.eye.z - boss->obj.pos.z)); Math_Atan2F(gPlayer[0].cam.eye.x - boss->obj.pos.x, gPlayer[0].cam.eye.z - boss->obj.pos.z));
@ -2193,13 +2193,13 @@ void SectorY_LevelComplete(Player* player) {
D_ctx_80177A48[7] = 25.0f; D_ctx_80177A48[7] = 25.0f;
D_ctx_80177A48[8] = 500.0f; D_ctx_80177A48[8] = 500.0f;
D_ctx_80177A48[9] = 3600.0f; D_ctx_80177A48[9] = 3600.0f;
player->arwing.modelId = 1; player->arwing.teamFaceId = 1;
} }
break; break;
case 3: case 3:
if ((gCsFrameCount < 720) && gMsgCharIsPrinting) { if ((gCsFrameCount < 720) && gMsgCharIsPrinting) {
player->arwing.unk_30 = (f32) (gGameFrameCount & 2) * 5.0f; player->arwing.teamFaceXrot = (f32) (gGameFrameCount & 2) * 5.0f;
} }
gFillScreenAlphaTarget = 0; gFillScreenAlphaTarget = 0;

View File

@ -305,7 +305,7 @@ void Venom2_LevelComplete(Player* player) {
Math_SmoothStepToF(&player->arwing.upperRightFlapYrot, -var_fa0 + sp74, 0.1f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.upperRightFlapYrot, -var_fa0 + sp74, 0.1f, 100.0f, 0.0f);
Math_SmoothStepToF(&player->arwing.bottomRightFlapYrot, -var_fa0 - sp74, 0.1f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.bottomRightFlapYrot, -var_fa0 - sp74, 0.1f, 100.0f, 0.0f);
Math_SmoothStepToF(&player->arwing.upperLeftFlapYrot, -var_fa0 + sp70, 0.1f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.upperLeftFlapYrot, -var_fa0 + sp70, 0.1f, 100.0f, 0.0f);
Math_SmoothStepToF(&player->arwing.unk_10, -var_fa0 - sp70, 0.1f, 100.0f, 0.0f); Math_SmoothStepToF(&player->arwing.bottomLeftFlapYrot, -var_fa0 - sp70, 0.1f, 100.0f, 0.0f);
sp94 = player->pos.x - gBosses[0].obj.pos.x; sp94 = player->pos.x - gBosses[0].obj.pos.x;
sp90 = player->pos.y - (gBosses[0].obj.pos.y + 700.0f); sp90 = player->pos.y - (gBosses[0].obj.pos.y + 700.0f);
sp8C = player->pos.z - gBosses[0].obj.pos.z; sp8C = player->pos.z - gBosses[0].obj.pos.z;
@ -313,9 +313,9 @@ void Venom2_LevelComplete(Player* player) {
switch (player->csState) { switch (player->csState) {
case 0: case 0:
player->csState++; player->csState++;
player->arwing.upperRightFlapYrot = player->arwing.upperLeftFlapYrot = player->arwing.bottomRightFlapYrot = player->arwing.unk_10 = player->arwing.upperRightFlapYrot = player->arwing.upperLeftFlapYrot = player->arwing.bottomRightFlapYrot =
0.0f; player->arwing.bottomLeftFlapYrot = 0.0f;
player->arwing.modelId = 1; player->arwing.teamFaceId = 1;
D_ctx_80177A48[0] = 0.0f; D_ctx_80177A48[0] = 0.0f;
D_ctx_80177A48[1] = 0.1f; D_ctx_80177A48[1] = 0.1f;

View File

@ -2271,15 +2271,15 @@ void Map_801A116C(void) {
arwing.rightWingState = arwing.leftWingState = WINGSTATE_INTACT; arwing.rightWingState = arwing.leftWingState = WINGSTATE_INTACT;
// clang-format off // clang-format off
arwing.unk_18 = arwing.unk_1C = arwing.unk_20 = arwing.unk_24 = arwing.upperRightFlapYrot = arwing.laserGunsXpos = arwing.wingsXrot = arwing.wingsYrot = arwing.wingsZrot = arwing.upperRightFlapYrot =
arwing.bottomRightFlapYrot = arwing.upperLeftFlapYrot = arwing.unk_10 = arwing.unk_28 = 0.0f; arwing.bottomRightFlapYrot = arwing.upperLeftFlapYrot = arwing.bottomLeftFlapYrot = arwing.unk_28 = 0.0f;
// clang-format on // clang-format on
arwing.unk_14 = 0.0f; arwing.laserGunsYpos = 0.0f;
arwing.modelId = 1; arwing.teamFaceId = 1;
arwing.unk_30 = 0.0f; arwing.teamFaceXrot = 0.0f;
arwing.unk_34 = 0.0f; arwing.teamFaceYrot = 0.0f;
arwing.unk_38 = 0.0f; arwing.windshieldXrot = 0.0f;
Display_ArwingWings(&arwing); Display_ArwingWings(&arwing);

View File

@ -2254,14 +2254,14 @@ void Title_8018D2B8(s32 arg0) {
Matrix_SetGfxMtx(&gMasterDisp); Matrix_SetGfxMtx(&gMasterDisp);
arwing.rightWingState = arwing.leftWingState = WINGSTATE_INTACT; arwing.rightWingState = arwing.leftWingState = WINGSTATE_INTACT;
arwing.unk_18 = arwing.unk_1C = arwing.unk_20 = arwing.unk_24 = arwing.upperRightFlapYrot = arwing.bottomRightFlapYrot = arwing.laserGunsXpos = arwing.wingsXrot = arwing.wingsYrot = arwing.wingsZrot = arwing.upperRightFlapYrot =
arwing.upperLeftFlapYrot = arwing.unk_10 = arwing.unk_28 = 0.0f; arwing.bottomRightFlapYrot = arwing.upperLeftFlapYrot = arwing.bottomLeftFlapYrot = arwing.unk_28 = 0.0f;
arwing.unk_14 = D_menu_801B84E8[arg0].unk_28; arwing.laserGunsYpos = D_menu_801B84E8[arg0].unk_28;
arwing.modelId = D_menu_801B84E8[arg0].unk_34; arwing.teamFaceId = D_menu_801B84E8[arg0].unk_34;
arwing.unk_30 = D_menu_801B84E8[arg0].unk_2C; arwing.teamFaceXrot = D_menu_801B84E8[arg0].unk_2C;
arwing.unk_34 = D_menu_801B84E8[arg0].unk_30; arwing.teamFaceYrot = D_menu_801B84E8[arg0].unk_30;
arwing.unk_38 = D_menu_801B84E8[arg0].unk_24; arwing.windshieldXrot = D_menu_801B84E8[arg0].unk_24;
Display_ArwingWings(&arwing); Display_ArwingWings(&arwing);