mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-02-10 04:02:26 +03:00
tag muzzle flashes
This commit is contained in:
parent
b98dc5fa6e
commit
b0a7c60c5b
@ -1105,6 +1105,10 @@ void Display_ArwingLaserCharge(Player* player) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Matrix_Push(&gGfxMatrix);
|
Matrix_Push(&gGfxMatrix);
|
||||||
|
|
||||||
|
// @port: Tag the transform.
|
||||||
|
FrameInterpolation_RecordOpenChild("ArwingMuzzleFlash", 0);
|
||||||
|
|
||||||
Matrix_Translate(gGfxMatrix, sp94.x, sp94.y, sp94.z, MTXF_NEW);
|
Matrix_Translate(gGfxMatrix, sp94.x, sp94.y, sp94.z, MTXF_NEW);
|
||||||
Matrix_Scale(gGfxMatrix, gMuzzleFlashScale[player->num], gMuzzleFlashScale[player->num], 1.0f,
|
Matrix_Scale(gGfxMatrix, gMuzzleFlashScale[player->num], gMuzzleFlashScale[player->num], 1.0f,
|
||||||
MTXF_APPLY);
|
MTXF_APPLY);
|
||||||
@ -1112,6 +1116,9 @@ void Display_ArwingLaserCharge(Player* player) {
|
|||||||
gSPDisplayList(gMasterDisp++, aOrbDL);
|
gSPDisplayList(gMasterDisp++, aOrbDL);
|
||||||
|
|
||||||
Matrix_Pop(&gGfxMatrix);
|
Matrix_Pop(&gGfxMatrix);
|
||||||
|
|
||||||
|
// @port Pop the transform id.
|
||||||
|
FrameInterpolation_RecordCloseChild();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LASERS_TWIN:
|
case LASERS_TWIN:
|
||||||
@ -1126,6 +1133,10 @@ void Display_ArwingLaserCharge(Player* player) {
|
|||||||
Matrix_MultVec3f(gCalcMatrix, &spAC, &sp94);
|
Matrix_MultVec3f(gCalcMatrix, &spAC, &sp94);
|
||||||
Matrix_MultVec3f(gCalcMatrix, &spA0, &sp88);
|
Matrix_MultVec3f(gCalcMatrix, &spA0, &sp88);
|
||||||
Matrix_Push(&gGfxMatrix);
|
Matrix_Push(&gGfxMatrix);
|
||||||
|
|
||||||
|
// @port: Tag the transform.
|
||||||
|
FrameInterpolation_RecordOpenChild("ArwingMuzzleFlash", 0);
|
||||||
|
|
||||||
Matrix_Translate(gGfxMatrix, sp94.x, sp94.y, sp94.z, MTXF_NEW);
|
Matrix_Translate(gGfxMatrix, sp94.x, sp94.y, sp94.z, MTXF_NEW);
|
||||||
Matrix_Scale(gGfxMatrix, gMuzzleFlashScale[player->num], gMuzzleFlashScale[player->num], 1.0f,
|
Matrix_Scale(gGfxMatrix, gMuzzleFlashScale[player->num], gMuzzleFlashScale[player->num], 1.0f,
|
||||||
MTXF_APPLY);
|
MTXF_APPLY);
|
||||||
@ -1133,7 +1144,14 @@ void Display_ArwingLaserCharge(Player* player) {
|
|||||||
gSPDisplayList(gMasterDisp++, aOrbDL);
|
gSPDisplayList(gMasterDisp++, aOrbDL);
|
||||||
Matrix_Pop(&gGfxMatrix);
|
Matrix_Pop(&gGfxMatrix);
|
||||||
|
|
||||||
|
// @port Pop the transform id.
|
||||||
|
FrameInterpolation_RecordCloseChild();
|
||||||
|
|
||||||
Matrix_Push(&gGfxMatrix);
|
Matrix_Push(&gGfxMatrix);
|
||||||
|
|
||||||
|
// @port: Tag the transform.
|
||||||
|
FrameInterpolation_RecordOpenChild("ArwingMuzzleFlash", 1);
|
||||||
|
|
||||||
Matrix_Translate(gGfxMatrix, sp88.x, sp88.y, sp88.z, MTXF_NEW);
|
Matrix_Translate(gGfxMatrix, sp88.x, sp88.y, sp88.z, MTXF_NEW);
|
||||||
Matrix_Scale(gGfxMatrix, gMuzzleFlashScale[player->num], gMuzzleFlashScale[player->num], 1.0f,
|
Matrix_Scale(gGfxMatrix, gMuzzleFlashScale[player->num], gMuzzleFlashScale[player->num], 1.0f,
|
||||||
MTXF_APPLY);
|
MTXF_APPLY);
|
||||||
@ -1141,6 +1159,9 @@ void Display_ArwingLaserCharge(Player* player) {
|
|||||||
gSPDisplayList(gMasterDisp++, aOrbDL);
|
gSPDisplayList(gMasterDisp++, aOrbDL);
|
||||||
|
|
||||||
Matrix_Pop(&gGfxMatrix);
|
Matrix_Pop(&gGfxMatrix);
|
||||||
|
|
||||||
|
// @port Pop the transform id.
|
||||||
|
FrameInterpolation_RecordCloseChild();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
Matrix_Pop(&gGfxMatrix);
|
Matrix_Pop(&gGfxMatrix);
|
||||||
|
Loading…
Reference in New Issue
Block a user