summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/engine/fox_demo.c6
-rw-r--r--src/overlays/ovl_i2/fox_me.c12
-rw-r--r--src/overlays/ovl_i3/fox_a6.c12
-rw-r--r--src/overlays/ovl_i3/fox_so.c6
-rw-r--r--src/overlays/ovl_i4/fox_bo.c16
-rw-r--r--src/overlays/ovl_i4/fox_fo.c7
-rw-r--r--src/overlays/ovl_i4/fox_ka.c22
-rw-r--r--src/overlays/ovl_i4/fox_sz.c24
-rw-r--r--src/overlays/ovl_i6/fox_sy.c16
9 files changed, 74 insertions, 47 deletions
diff --git a/src/engine/fox_demo.c b/src/engine/fox_demo.c
index 67cce8ba..86ae27de 100644
--- a/src/engine/fox_demo.c
+++ b/src/engine/fox_demo.c
@@ -100,8 +100,10 @@ void func_demo_80048CC4(ActorCutscene* this, s32 index) {
} else {
this->iwork[11] = 1;
- // @port: Setup team faces
- this->iwork[14] = index + 2;
+ if (CVarGetInteger("gTeamFaces", 1) == 1) {
+ // @port: Setup team faces
+ this->iwork[14] = index + 2;
+ }
AUDIO_PLAY_SFX(NA_SE_ARWING_ENGINE_FG, this->sfxSource, 4);
}
diff --git a/src/overlays/ovl_i2/fox_me.c b/src/overlays/ovl_i2/fox_me.c
index ddf473c0..c064f1d9 100644
--- a/src/overlays/ovl_i2/fox_me.c
+++ b/src/overlays/ovl_i2/fox_me.c
@@ -1917,8 +1917,10 @@ void Meteo_LevelStart_SetupTeam(ActorCutscene* this, s32 teamIdx) {
this->iwork[11] = 1;
AUDIO_PLAY_SFX(NA_SE_ARWING_ENGINE_FG, this->sfxSource, 4);
- // @port: Setup team faces
- this->iwork[14] = teamIdx + 2;
+ if (CVarGetInteger("gTeamFaces", 1) == 1) {
+ // @port: Setup team faces
+ this->iwork[14] = teamIdx + 2;
+ }
return;
}
@@ -2402,8 +2404,10 @@ void Meteo_LevelComplete_SetupTeam(ActorCutscene* this, s32 teamIdx) {
this->iwork[11] = 1;
AUDIO_PLAY_SFX(NA_SE_ARWING_ENGINE_FG, this->sfxSource, 4);
- // @port: Setup team faces
- this->iwork[14] = teamIdx + 2;
+ if (CVarGetInteger("gTeamFaces", 1) == 1) {
+ // @port: Setup team faces
+ this->iwork[14] = teamIdx + 2;
+ }
}
}
diff --git a/src/overlays/ovl_i3/fox_a6.c b/src/overlays/ovl_i3/fox_a6.c
index 12c1c823..a91fc318 100644
--- a/src/overlays/ovl_i3/fox_a6.c
+++ b/src/overlays/ovl_i3/fox_a6.c
@@ -2229,8 +2229,10 @@ void Area6_8018D804(ActorCutscene* this, s32 teamIdx) {
this->fwork[0] = 0.0f;
Object_SetInfo(&this->info, this->obj.id);
- // @port: Setup team faces
- this->iwork[14] = teamIdx + 2;
+ if (CVarGetInteger("gTeamFaces", 1) == 1) {
+ // @port: Setup team faces
+ this->iwork[14] = teamIdx + 2;
+ }
AUDIO_PLAY_SFX(NA_SE_ARWING_ENGINE_FG, this->sfxSource, 4);
}
@@ -2663,9 +2665,9 @@ void Area6_8018EC38(ActorCutscene* this, s32 teamIdx) {
this->fwork[0] = 0.0f;
// @port: Setup team faces (original code was omitting Peppy)
- // if (teamIdx + 1 != 3) {
- this->iwork[14] = teamIdx + 2;
- // }
+ if ((teamIdx + 1 != 3) || (CVarGetInteger("gTeamFaces", 1) == 1)) {
+ this->iwork[14] = teamIdx + 2;
+ }
Object_SetInfo(&this->info, this->obj.id);
AUDIO_PLAY_SFX(NA_SE_ARWING_ENGINE_FG, this->sfxSource, 4);
diff --git a/src/overlays/ovl_i3/fox_so.c b/src/overlays/ovl_i3/fox_so.c
index 755538b7..a95681e5 100644
--- a/src/overlays/ovl_i3/fox_so.c
+++ b/src/overlays/ovl_i3/fox_so.c
@@ -3130,8 +3130,10 @@ void Solar_801A7750(void) {
Object_SetInfo(&actor->info, actor->obj.id);
actor->iwork[11] = 1;
- // @port: Setup team faces
- actor->iwork[14] = i + 2;
+ if (CVarGetInteger("gTeamFaces", 1) == 1) {
+ // @port: Setup team faces
+ actor->iwork[14] = i + 2;
+ }
AUDIO_PLAY_SFX(NA_SE_ARWING_ENGINE_FG, actor->sfxSource, 4);
}
diff --git a/src/overlays/ovl_i4/fox_bo.c b/src/overlays/ovl_i4/fox_bo.c
index 0cf9d925..b52a21c1 100644
--- a/src/overlays/ovl_i4/fox_bo.c
+++ b/src/overlays/ovl_i4/fox_bo.c
@@ -1054,8 +1054,10 @@ void Bolse_8018EAEC(ActorCutscene* this, s32 index) {
Object_SetInfo(&this->info, this->obj.id);
this->iwork[11] = 1;
- // @port: Setup team faces
- this->iwork[14] = index + 2;
+ if (CVarGetInteger("gTeamFaces", 1) == 1) {
+ // @port: Setup team faces
+ this->iwork[14] = index + 2;
+ }
AUDIO_PLAY_SFX(NA_SE_ARWING_ENGINE_FG, this->sfxSource, 4);
}
@@ -1371,9 +1373,11 @@ void Bolse_8018F83C(Actor* this, s32 index) {
this->vel.z = -gPlayer[0].baseSpeed;
Object_SetInfo(&this->info, this->obj.id);
this->iwork[11] = 1;
-
- // @port: Setup team faces
- this->iwork[14] = index + 2;
+
+ if (CVarGetInteger("gTeamFaces", 1) == 1) {
+ // @port: Setup team faces
+ this->iwork[14] = index + 2;
+ }
AUDIO_PLAY_SFX(NA_SE_ARWING_ENGINE_FG, this->sfxSource, 4);
}
@@ -2307,6 +2311,6 @@ void Bolse_DrawDynamicGround(void) {
}
Matrix_Pop(&gGfxMatrix);
- // @port Pop the transform id.
+ // @port Pop the transform id.
FrameInterpolation_RecordCloseChild();
}
diff --git a/src/overlays/ovl_i4/fox_fo.c b/src/overlays/ovl_i4/fox_fo.c
index 634cc4db..66dae536 100644
--- a/src/overlays/ovl_i4/fox_fo.c
+++ b/src/overlays/ovl_i4/fox_fo.c
@@ -634,9 +634,10 @@ void Fortuna_LevelComplete_CsSpawnTeam(ActorCutscene* this, s32 actorIdx) {
if (actorIdx < 3) {
this->iwork[11] = 1;
AUDIO_PLAY_SFX(NA_SE_ARWING_ENGINE_FG, this->sfxSource, 4);
-
- // @port: Setup team faces
- this->iwork[14] = actorIdx + 2;
+ if (CVarGetInteger("gTeamFaces", 1) == 1) {
+ // @port: Setup team faces
+ this->iwork[14] = actorIdx + 2;
+ }
} else {
this->obj.pos.z = -9500.0f;
this->animFrame = ACTOR_CS_GREAT_FOX;
diff --git a/src/overlays/ovl_i4/fox_ka.c b/src/overlays/ovl_i4/fox_ka.c
index a8d43bd5..1e714523 100644
--- a/src/overlays/ovl_i4/fox_ka.c
+++ b/src/overlays/ovl_i4/fox_ka.c
@@ -1715,8 +1715,10 @@ void Katina_SFTeamMissionAccomUpdate(ActorCutscene* this, s32 idx) {
this->iwork[KA_ACTOR_IWORK_11] = 1;
- // @port: Setup team faces
- this->iwork[14] = idx + 1;
+ if (CVarGetInteger("gTeamFaces", 1) == 1) {
+ // @port: Setup team faces
+ this->iwork[14] = idx + 1;
+ }
AUDIO_PLAY_SFX(NA_SE_ARWING_ENGINE_FG, this->sfxSource, 4);
}
@@ -1744,8 +1746,10 @@ void Katina_SFTeamFleeUpdate(ActorCutscene* this, s32 idx) {
this->iwork[KA_ACTOR_IWORK_11] = 1;
- // @port: Setup team faces
- this->iwork[14] = idx + 1;
+ if (CVarGetInteger("gTeamFaces", 1) == 1) {
+ // @port: Setup team faces
+ this->iwork[14] = idx + 1;
+ }
AUDIO_PLAY_SFX(NA_SE_ARWING_ENGINE_FG, this->sfxSource, 4);
}
@@ -1790,9 +1794,11 @@ void Katina_SFTeam_LevelComplete_Update(void) {
actor->animFrame = ACTOR_CS_CORNERIAN_FIGHTER;
}
- // @port: Setup team faces
- if ((i >= 0) && (i <= 2)) {
- actor->iwork[14] = i + 2;
+ if (CVarGetInteger("gTeamFaces", 1) == 1) {
+ // @port: Setup team faces
+ if ((i >= 0) && (i <= 2)) {
+ actor->iwork[14] = i + 2;
+ }
}
Object_SetInfo(&actor->info, actor->obj.id);
@@ -2633,7 +2639,7 @@ void Katina_EnemyDraw(ActorAllRange* this) {
}
// @port: never use low poly
- if (CVarGetInteger("gDisableLOD", 0) == 1) {
+ if (CVarGetInteger("gDisableLOD", 1) == 1) {
this->iwork[KA_ACTOR_LOW_POLY] = false;
}
diff --git a/src/overlays/ovl_i4/fox_sz.c b/src/overlays/ovl_i4/fox_sz.c
index 75db78ef..20f86590 100644
--- a/src/overlays/ovl_i4/fox_sz.c
+++ b/src/overlays/ovl_i4/fox_sz.c
@@ -780,17 +780,19 @@ void SectorZ_CsTeamInit(ActorCutscene* this, s32 index) {
Object_SetInfo(&this->info, this->obj.id);
- // @port: Setup team faces
- switch (index) {
- case 0: // Slippy
- this->iwork[14] = index + 3;
- break;
- case 1: // Falco
- this->iwork[14] = index + 1;
- break;
- case 2: // Peppy
- this->iwork[14] = index + 2;
- break;
+ if (CVarGetInteger("gTeamFaces", 1) == 1) {
+ // @port: Setup team faces
+ switch (index) {
+ case 0: // Slippy
+ this->iwork[14] = index + 3;
+ break;
+ case 1: // Falco
+ this->iwork[14] = index + 1;
+ break;
+ case 2: // Peppy
+ this->iwork[14] = index + 2;
+ break;
+ }
}
AUDIO_PLAY_SFX(NA_SE_ARWING_ENGINE_FG, this->sfxSource, 4);
diff --git a/src/overlays/ovl_i6/fox_sy.c b/src/overlays/ovl_i6/fox_sy.c
index b39c2faf..9eb22ef4 100644
--- a/src/overlays/ovl_i6/fox_sy.c
+++ b/src/overlays/ovl_i6/fox_sy.c
@@ -2069,9 +2069,11 @@ void SectorY_8019EB80(void) {
}
actor->iwork[11] = 1;
- // @port: Setup team faces
- if ((i >= 0) && (i <= 2)) {
- actor->iwork[14] = i + 2;
+ if (CVarGetInteger("gTeamFaces", 1) == 1) {
+ // @port: Setup team faces
+ if ((i >= 0) && (i <= 2)) {
+ actor->iwork[14] = i + 2;
+ }
}
AUDIO_PLAY_SFX(NA_SE_ARWING_ENGINE_FG, actor->sfxSource, 4);
@@ -2601,9 +2603,11 @@ void SectorY_801A06A4(ActorCutscene* this, s32 teamIdx) {
this->state = teamIdx + 7;
this->iwork[11] = 1;
Object_SetInfo(&this->info, this->obj.id);
-
- // @port: Setup team faces
- this->iwork[14] = teamIdx + 2;
+
+ if (CVarGetInteger("gTeamFaces", 1) == 1) {
+ // @port: Setup team faces
+ this->iwork[14] = teamIdx + 2;
+ }
AUDIO_PLAY_SFX(NA_SE_ARWING_ENGINE_FG, this->sfxSource, 4);
AUDIO_PLAY_SFX(NA_SE_ARWING_BOOST, this->sfxSource, 0);