Skip to content

Commit

Permalink
tag muzzle flashes
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicdcer committed Jan 31, 2025
1 parent b98dc5f commit b0a7c60
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/engine/fox_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -1105,13 +1105,20 @@ void Display_ArwingLaserCharge(Player* player) {
}

Matrix_Push(&gGfxMatrix);

// @port: Tag the transform.
FrameInterpolation_RecordOpenChild("ArwingMuzzleFlash", 0);

Matrix_Translate(gGfxMatrix, sp94.x, sp94.y, sp94.z, MTXF_NEW);
Matrix_Scale(gGfxMatrix, gMuzzleFlashScale[player->num], gMuzzleFlashScale[player->num], 1.0f,
MTXF_APPLY);
Matrix_SetGfxMtx(&gMasterDisp);
gSPDisplayList(gMasterDisp++, aOrbDL);

Matrix_Pop(&gGfxMatrix);

// @port Pop the transform id.
FrameInterpolation_RecordCloseChild();
break;

case LASERS_TWIN:
Expand All @@ -1126,21 +1133,35 @@ void Display_ArwingLaserCharge(Player* player) {
Matrix_MultVec3f(gCalcMatrix, &spAC, &sp94);
Matrix_MultVec3f(gCalcMatrix, &spA0, &sp88);
Matrix_Push(&gGfxMatrix);

// @port: Tag the transform.
FrameInterpolation_RecordOpenChild("ArwingMuzzleFlash", 0);

Matrix_Translate(gGfxMatrix, sp94.x, sp94.y, sp94.z, MTXF_NEW);
Matrix_Scale(gGfxMatrix, gMuzzleFlashScale[player->num], gMuzzleFlashScale[player->num], 1.0f,
MTXF_APPLY);
Matrix_SetGfxMtx(&gMasterDisp);
gSPDisplayList(gMasterDisp++, aOrbDL);
Matrix_Pop(&gGfxMatrix);

// @port Pop the transform id.
FrameInterpolation_RecordCloseChild();

Matrix_Push(&gGfxMatrix);

// @port: Tag the transform.
FrameInterpolation_RecordOpenChild("ArwingMuzzleFlash", 1);

Matrix_Translate(gGfxMatrix, sp88.x, sp88.y, sp88.z, MTXF_NEW);
Matrix_Scale(gGfxMatrix, gMuzzleFlashScale[player->num], gMuzzleFlashScale[player->num], 1.0f,
MTXF_APPLY);
Matrix_SetGfxMtx(&gMasterDisp);
gSPDisplayList(gMasterDisp++, aOrbDL);

Matrix_Pop(&gGfxMatrix);

// @port Pop the transform id.
FrameInterpolation_RecordCloseChild();
break;
}
Matrix_Pop(&gGfxMatrix);
Expand Down

0 comments on commit b0a7c60

Please sign in to comment.